Decline ringing call
POST
/api/v1/ext/calls/incoming/{call_id}/decline
Decline a ringing call, or dismiss it for this user only.
Auth: Bearer access_token
Scope: calls.write
scope: "all" (default) declines the call on the line for everyone; "me" only closes it for the installer's own session, others can still answer.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| call_id | path | string | yes | The call id. |
| scope | body | enum | no | Default all. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
404 | Call does not exist or is not the installer's (same response for both) |
409 | It stopped ringing (answered, declined, or the caller hung up) |
RequestResponses
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/calls/incoming/{call_id}/decline" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"message": "Call declined",
"data": {
"call_id": "ring-5f2a",
"scope": "all"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
The call id.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/calls/incoming/%7Bcall_id%7D/decline
Previous
« List ringing calls
Next
List recent calls »
