myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Check iMessage

POST

/api/v1/ext/contacts/check-imessage

Check whether a contact, phone number or Apple ID email is on iMessage.

Auth: Bearer access_token
Scope: contacts.read

10 checks / minute per Mac

Asks Apple, through the workspace's Mac, whether the handle is registered for iMessage — the same check as Check iMessage on a app.mycrmsim.com contact. Give a contact_id (its phone, else its email, is checked) or a phone (with country code) or an email. The answer is recorded, so the app.mycrmsim.com and later sends use it. Needs a Mac with Advanced Mode on in the workspace (else 400 NO_ADVANCED_MODE_MAC). Apple rate-limits these lookups: each Mac takes 10 checks a minute (429 RATE_LIMITED beyond that). A handle Apple has not seen recently can take 10–20 s to answer; after 26 s the request is a 504 MAC_TIMEOUT — try again. silenced and focus_status say whether the recipient has notifications silenced by a Focus, when the Mac could tell (null otherwise) — see Notify anyway.

Parameters

NameInTypeRequiredDescription
workspace_id
body
number
yes
The workspace whose Mac does the check. Must belong to the installer.
contact_id
body
numbernoA contact in the workspace. Provide this, phone or email.
phone
body
stringnoA phone number with country code. An Apple ID email is accepted here too.
email
body
stringnoAn Apple ID email.

Responses

StatusWhen
200
OK
400
No contact_id, phone or email
400
Phone without a country code
400
No Mac with Advanced Mode on the workspace
401
Missing or invalid token
403
Missing scope
404
Workspace or contact not found
429
More than 10 checks in a minute on this Mac
503
The Mac is not connected
504
The Mac did not answer in time

Response schema

checkobject

Apple's answer for the handle

handlestring

The phone or email checked.

Example:+61412345678
availableboolean

true when the handle is on iMessage.

Example:true
statusstring
nullable

Apple's raw answer, when the Mac reports one.

Example:available
silencedboolean
nullable

true when the recipient has notifications silenced by a Focus; null when unknown.

focus_statusstring
nullable

The recipient's Focus state as Messages reports it; null when unknown.

contact_idnumber
nullable

The contact checked, when `contact_id` was given.

Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/contacts/check-imessage" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7,
  "contact_id": 1234
}'
Responses
OK
{
  "success": true,
  "data": {
    "handle": "+61412345678",
    "available": true,
    "status": "available",
    "silenced": false,
    "focus_status": null,
    "contact_id": 1234
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/contacts/check-imessage
Previous

« Delete contact

Next

Add tags »