Call readiness
GET
/api/v1/ext/calls/readiness
Can the workspace call right now, line by line.
Auth: Bearer access_token
Scope: calls.read
facetime is the Mac, android whether a SIM call would carry browser audio, missed_call whether the Missed Call action could ring; routing is the Call Routing order. The lines, the order and the kinds of call are explained in the guide.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | A workspace of the installer. |
Responses
| Status | When |
|---|---|
200 | OK |
200 | OK — no Mac for calling |
401 | Missing or invalid token |
403 | Missing scope |
404 | Workspace does not exist or is not the installer's (same response for both) |
RequestResponses
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/calls/readiness" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": {
"workspace_id": 7,
"facetime": {
"ready": true,
"reason": null,
"message": null
},
"android": {
"audio": false,
"reason": "no_device"
},
"missed_call": {
"ready": true,
"reason": null,
"message": null
},
"routing": [
[
"imessage"
],
[
"android"
]
]
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Query parameters
A workspace of the installer.
Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/calls/readiness
Previous
« Send to group
Next
Place a call »
