Skip to main content
PATCH
/
campaign
/
terminate
/
agent
Terminate All Calls by Agent ID
curl --request PATCH \
  --url https://prod-api.ringg.ai/ca/api/v0/campaign/terminate/agent \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "agent_id": "196d8d88-591e-4e08-8324-2f928d152fff"
}
'
{
  "message": "Calls terminated successfully!"
}

Terminate All Agent Calls

Stop all active calls for a specific AI agent across all campaigns. This is useful when you need to halt all operations for a particular agent.
Impact: This will terminate ALL active calls for the specified agent, regardless of which campaign they belong to.

When to Use This

  • Agent Issues: When an agent has problems and needs to stop all calls
  • Emergency Stop: Quick way to halt all calls for a specific agent
  • Agent Maintenance: Before updating or modifying an agent configuration
  • Resource Management: When an agent is consuming too many resources

What Gets Terminated

Calls that will be terminated:
  • Calls in “registered” status (queued and waiting)
  • Calls in “retry” status (scheduled for retry)
Calls that won’t be affected:
  • Already completed calls
  • Calls currently in progress (connected)
  • Calls that haven’t started yet
Note: You can find your agent ID in the agent the top of your dashboard.

Headers

X-API-KEY
string
required

(Required) Your Ringg AI API key.

Example:

"7251cb4b-3373-43a4-844c-b27a1d45e0c9"

Body

application/json
agent_id
string
required

(Required) ID of the agent whose calls should be terminated

Example:

"196d8d88-591e-4e08-8324-2f928d152fff"

Response

Calls terminated successfully.

message
string
Example:

"Calls terminated successfully!"