Resume Prompts
Resume up to 100 paused prompts so that they are analyzed again. Each resumed prompt uses one prompt credit.
curl --request POST \
--url https://api.aiclicks.io/api/v1/prompts/resume \
--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"]
}'
import httpx, os
resp = httpx.post(
"https://api.aiclicks.io/api/v1/prompts/resume",
headers={"Authorization": f"Bearer {os.environ['AICLICKS_API_KEY']}"},
json={
"domain_id": "8f1d3c0a-2f9b-4c11-9b80-7a82e1f0c3f3",
"prompt_ids": ["21c1f9aa-9b6d-4e3a-8a31-2b0c0e1f2a3b"],
},
)
resp.raise_for_status()
data = resp.json()["data"]
print(len(data["resumed_ids"]), "resumed;", data["credits_charged"], "credits used")
const resp = await fetch("https://api.aiclicks.io/api/v1/prompts/resume", {
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"],
}),
});
const { data } = await resp.json();
console.log(data.resumed_ids.length, data.remaining_prompts);
{
"data": {
"resumed_ids": ["21c1f9aa-9b6d-4e3a-8a31-2b0c0e1f2a3b"],
"credits_charged": 1,
"remaining_prompts": 41
},
"generated_at": "2026-12-01T10:05:42.031000+00:00"
}
{
"detail": "Not enough prompt credits to resume these prompts."
}
{
"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."
}
Resumes paused prompts of a domain. The next analysis runs include the prompts again. Each resumed prompt uses one prompt credit of the team. To pause prompts, use POST /api/v1/prompts/pause.
Send 1 to 100 prompt IDs. The API skips IDs that are not paused prompts of the domain, for example prompts that are already active or archived. A skipped ID causes no error and uses no credit. data.resumed_ids lists the prompts that the API resumed. Find the IDs of paused prompts with GET /api/v1/prompts/paused, or with GET /api/v1/prompts?status=paused.
If the team does not have one free credit for each prompt to resume, the call returns 400 and the API resumes no prompts.
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 resume. Send 1 to 100 IDs. The API skips IDs that are not paused prompts of the domain.
Response
UUIDs of the prompts that the API resumed. Skipped IDs are not in this list. An empty list means that the call changed nothing.
The prompt credits that the resume used. This is one credit for each resumed prompt. For a pitch domain, the value is 0.
The prompt credits of the team after the resume.
ISO-8601 time when the server made this response.
Side effects
- The resumed prompts are in the next analysis runs.
- The team uses one prompt credit for each resumed prompt.
Errors
The team does not have enough prompt credits. The API resumes no prompts.
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.