> ## 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 Calls by Numbers

> Stop all queued and retry calls to up to 100 phone numbers across every campaign in the workspace, for example to honour an opt-out from all your 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="mobile_numbers" type="string[]" required>
  Up to 100 numbers, each with country code. Example: `["+919876543210", "+919876543211"]`
</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 '{ "mobile_numbers": ["+919876543210", "+919876543211"] }'
  ```
</RequestExample>

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

## Errors

* `400`: a number has no call, or no call that can still be terminated, for example `Mobile numbers not found in campaign: …`.
* `401`: `X-API-KEY` is missing or invalid.
* `422`: no field, more than 100 numbers, or a field of the wrong type.

<RelatedTopics items={[["Monitor a campaign", "/documentation/deploy/campaigns/manage-a-campaign"], ["by campaign numbers", "/api-reference/endpoint/terminate/campaign-numbers"]]} />


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