curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/campaign/terminate" \
--header "X-API-KEY: $RINGG_API_KEY" \
--header "Content-Type: application/json" \
--data '{ "agent_id": "00000000-0000-4000-8000-000000000110" }'
{ "message": "Calls terminated successfully!" }
Terminate All Calls by Agent ID
Stop every queued and retry call of one agent across all of its campaigns, for example when the agent is misbehaving and must not make more calls.
PATCH
/
campaign
/
terminate
curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/campaign/terminate" \
--header "X-API-KEY: $RINGG_API_KEY" \
--header "Content-Type: application/json" \
--data '{ "agent_id": "00000000-0000-4000-8000-000000000110" }'
{ "message": "Calls terminated successfully!" }
string
required
Your Ringg AI API key.
curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/campaign/terminate" \
--header "X-API-KEY: $RINGG_API_KEY" \
--header "Content-Type: application/json" \
--data '{ "agent_id": "00000000-0000-4000-8000-000000000110" }'
{ "message": "Calls terminated successfully!" }
Errors
200is returned even when no call matched the ID; check the calls in call history.401:X-API-KEYis missing or invalid.422: no field, more than one way of choosing calls at once, or a field of the wrong type.
Was this page helpful?