Cancel call
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/calls/{callId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://blackbox.dasha.ai/api/v1/calls/{callId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://blackbox.dasha.ai/api/v1/calls/{callId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Cancel call
Cancels a scheduled call and removes it from the queue. Triggers a webhook notification with call deadline status. This operation cannot cancel calls that are already in progress.
DELETE
/
api
/
v1
/
calls
/
{callId}
Cancel call
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/calls/{callId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://blackbox.dasha.ai/api/v1/calls/{callId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://blackbox.dasha.ai/api/v1/calls/{callId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}This operation only cancels scheduled calls. Active calls in progress cannot be canceled through this endpoint.
What Happens
- Call is removed from the queue
- Webhook notification is sent with deadline status
- Call status is updated to canceled
Impact
- Scheduled calls: Successfully canceled before execution
- Active calls: Cannot be canceled (use call control endpoints instead)
- Completed calls: Cannot be canceled
Path Parameters
Call identifier
Response
Call canceled successfully
Was this page helpful?