Get call routing
GET
/api/v1/ext/calls/routing
The order of lines a workspace's calls try.
Auth: Bearer access_token
Scope: calls.read
routing is a list of rows, each with one line; the first row dials first and the next rows back it up. Empty means no routing is set: a call then tries the Mac, then Android. lines are the names a row may hold.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | A workspace of the installer. |
Responses
| Status | When |
|---|---|
200 | OK |
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/routing" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": {
"workspace_id": 7,
"routing": [
[
"imessage"
],
[
"android"
]
],
"lines": [
"imessage",
"android",
"whatsapp",
"twilio"
],
"max_rows": 4
}
}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/routing
Previous
« List lines
Next
Save call routing »
