Check iMessage
/api/v1/ext/contacts/check-imessage
Check whether a contact, phone number or Apple ID email is on iMessage.
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | body | number | yes | The workspace whose Mac does the check. Must belong to the installer. |
| contact_id | body | number | no | A contact in the workspace. Provide this, phone or email. |
| phone | body | string | no | A phone number with country code. An Apple ID email is accepted here too. |
body | string | no | An Apple ID email. |
Responses
| Status | When |
|---|---|
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
checkobjectApple's answer for the handle
handlestringThe phone or email checked.
+61412345678availablebooleantrue when the handle is on iMessage.
truestatusstringApple's raw answer, when the Mac reports one.
availablesilencedbooleantrue when the recipient has notifications silenced by a Focus; null when unknown.
focus_statusstringThe recipient's Focus state as Messages reports it; null when unknown.
contact_idnumberThe contact checked, when `contact_id` was given.
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
}'{
"success": true,
"data": {
"handle": "+61412345678",
"available": true,
"status": "available",
"silenced": false,
"focus_status": null,
"contact_id": 1234
}
}« Delete contact
Add tags »
