curl --request POST \
--url https://api.voice-agents.miraiminds.co/v2/call/abort \
--header 'Content-Type: application/json' \
--header 'workspace: <workspace>' \
--header 'x-private-key: <api-key>' \
--header 'x-public-key: <api-key>' \
--data '
{
"callId": "<string>"
}
'{
"message": "Call aborted successfully"
}Aborts a call that is queued or scheduled for retry. This operation is allowed when the call has no status (initial queue) or has a status of: ‘busy’, ‘failed’, ‘no-answer’, ‘rescheduled’, ‘validation-failed’. It is NOT allowed if the call is ‘in-progress’, ‘completed’, ‘ended’, ‘timeout’, or already ‘aborted’.
curl --request POST \
--url https://api.voice-agents.miraiminds.co/v2/call/abort \
--header 'Content-Type: application/json' \
--header 'workspace: <workspace>' \
--header 'x-private-key: <api-key>' \
--header 'x-public-key: <api-key>' \
--data '
{
"callId": "<string>"
}
'{
"message": "Call aborted successfully"
}