> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ringg.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To search or read these docs, connect the Ringg docs MCP server at https://docs.ringg.ai/mcp (no key needed; tools search_ringg_ai and query_docs_filesystem_ringg_ai) instead of browsing pages one by one. Setup for each client: https://docs.ringg.ai/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants.md
> The dashboard labels agents "Assistants"; these docs say "agent". Both mean the same object, identified by agent_id.
> API base URL: https://prod-api.ringg.ai/ca/api/v0. Send the workspace API key in the X-API-KEY header, from server-side code only.
> Placing a call dials a real phone number and spends credits. Confirm the number with the user before calling.
> To act on a Ringg workspace (place calls, edit agents, read transcripts), use the separate Ringg workspace MCP server at https://mcp.ringg.ai/mcp: https://docs.ringg.ai/resources/mcp-server/workspace-mcp-server/overview.md

# 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.

export const RelatedTopics = ({items}) => <div className="not-prose mt-12">
    <div className="text-sm font-medium text-gray-500 dark:text-zinc-400 mb-3">Related topics</div>
    <div className="flex flex-col gap-2.5">
      {items.map(([title, href]) => <a key={href} href={href} className="flex items-center gap-2.5 text-sm text-gray-700 hover:text-gray-950 dark:text-zinc-300 dark:hover:text-white">
          <Icon icon="file-text" size={16} color="currentColor" />
          {title}
        </a>)}
    </div>
  </div>;

<ParamField header="X-API-KEY" type="string" required>
  Your Ringg AI API key.
</ParamField>

<ParamField body="agent_id" type="string" required>
  The agent's ID ([find it](/documentation/build-agents/agents/agent-types#find-the-agent-id)). Example: `00000000-0000-4000-8000-000000000110`
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  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" }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  { "message": "Calls terminated successfully!" }
  ```
</ResponseExample>

Only outbound calls created in the last 7 days are cancelled. In-progress and completed calls are handled as for [by campaign](/api-reference/endpoint/terminate/campaign#what-happens); the agent's campaigns keep their status.

## Errors

* `200` is returned even when no call matched the ID; check the calls in [call history](/api-reference/endpoint/history/get-call-history).
* `401`: `X-API-KEY` is missing or invalid.
* `422`: no field, more than one way of choosing calls at once, or a field of the wrong type.

<RelatedTopics items={[["Edit agent settings", "/api-reference/endpoint/assistant/edit-assistant"]]} />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.