Pause Prompts
Pause up to 100 active prompts so that they stop being analyzed for a time. Each paused prompt refunds one prompt credit.
curl --request POST \
--url https://api.aiclicks.io/api/v1/prompts/pause \
--header 'Authorization: Bearer ak_live_xxx' \
--header 'Content-Type: application/json' \
--data '{
"domain_id": "8f1d3c0a-2f9b-4c11-9b80-7a82e1f0c3f3",
"prompt_ids": [
"21c1f9aa-9b6d-4e3a-8a31-2b0c0e1f2a3b",
"5b7e2d10-4c3a-4f8e-9d21-6a0b1c2d3e4f"
]
}'
import httpx, os
resp = httpx.post(
"https://api.aiclicks.io/api/v1/prompts/pause",
headers={"Authorization": f"Bearer {os.environ['AICLICKS_API_KEY']}"},
json={
"domain_id": "8f1d3c0a-2f9b-4c11-9b80-7a82e1f0c3f3",
"prompt_ids": [
"21c1f9aa-9b6d-4e3a-8a31-2b0c0e1f2a3b",
"5b7e2d10-4c3a-4f8e-9d21-6a0b1c2d3e4f",
],
},
)
resp.raise_for_status()
data = resp.json()["data"]
print(len(data["paused_ids"]), "paused;", data["credits_refunded"], "credits back")
const resp = await fetch("https://api.aiclicks.io/api/v1/prompts/pause", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AICLICKS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
domain_id: "8f1d3c0a-2f9b-4c11-9b80-7a82e1f0c3f3",
prompt_ids: [
"21c1f9aa-9b6d-4e3a-8a31-2b0c0e1f2a3b",
"5b7e2d10-4c3a-4f8e-9d21-6a0b1c2d3e4f",
],
}),
});
const { data } = await resp.json();
console.log(data.paused_ids.length, data.remaining_prompts);
{
"data": {
"paused_ids": [
"21c1f9aa-9b6d-4e3a-8a31-2b0c0e1f2a3b",
"5b7e2d10-4c3a-4f8e-9d21-6a0b1c2d3e4f"
],
"credits_refunded": 2,
"remaining_prompts": 42
},
"generated_at": "2026-12-01T10:00:11.218000+00:00"
}
{
"detail": "Resume the brand before you pause or resume its prompts."
}
{
"detail": "Invalid or revoked API key"
}
{
"detail": "Too many requests. Please try again later."
}
Pauses active prompts of a domain. A paused prompt is not in the next analysis runs. The API keeps the history, the topics and the tags of the prompt. Each paused prompt gives one prompt credit back to the team. To start the analysis again, use POST /api/v1/prompts/resume.
Send 1 to 100 prompt IDs. The API skips IDs that are not active prompts of the domain, for example prompts that are already paused or archived. A skipped ID causes no error and no refund. data.paused_ids lists the prompts that the API paused. Find prompt IDs with GET /api/v1/prompts.
Pause is different from archive. A paused prompt stays in the list of the domain with status: "paused", and you can resume it. Use pause to stop a prompt for a time.
Authorizations
Your API key in the format Bearer ak_live_<your-key>. Create a key in the dashboard under Settings → Developers. The key must have access to the team that owns domain_id.
Must be application/json.
Body parameters
UUID of the domain that owns the prompts.
UUIDs of the prompts to pause. Send 1 to 100 IDs. The API skips IDs that are not active prompts of the domain.
Response
UUIDs of the prompts that the API paused. Skipped IDs are not in this list. An empty list means that the call changed nothing.
The prompt credits that the team got back. This is one credit for each paused prompt. For a pitch domain, the value is 0.
The prompt credits of the team after the refund.
ISO-8601 time when the server made this response.
Side effects
- The paused prompts stop being analyzed. Their old answers stay in the history.
- The team gets one prompt credit back for each paused prompt.
GET /api/v1/promptsshows the prompts withstatus: "paused"when you sendstatus=pausedorstatus=all.- To pause a full brand, use
POST /api/v1/domains/pause.
Errors
The API key is missing, malformed or revoked.
The caller cannot edit the domain. Or the API key has no access to this domain. Or the plan of the team does not include API access.
The domain does not exist.
The domain is paused. Resume the domain with POST /api/v1/domains/resume first.
The body is not valid. For example, prompt_ids is empty, has more than 100 items, or has a value that is not a UUID.
You sent too many requests. Read the Retry-After header to know how long to wait.