PromptsResume Prompts

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"]
  }'
{
  "data": {
    "resumed_ids": ["21c1f9aa-9b6d-4e3a-8a31-2b0c0e1f2a3b"],
    "credits_charged": 1,
    "remaining_prompts": 41
  },
  "generated_at": "2026-12-01T10:05:42.031000+00:00"
}

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

header
Authorizationstring
Required

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.

header
Content-Typestring
Required

Must be application/json.

Body parameters

body
domain_idstring
Required

UUID of the domain that owns the prompts.

body
prompt_idsarray
Required

UUIDs of the prompts to resume. Send 1 to 100 IDs. The API skips IDs that are not paused prompts of the domain.

Response

data.resumed_idsarray
Required

UUIDs of the prompts that the API resumed. Skipped IDs are not in this list. An empty list means that the call changed nothing.

data.credits_chargedinteger
Required

The prompt credits that the resume used. This is one credit for each resumed prompt. For a pitch domain, the value is 0.

data.remaining_promptsinteger
Required

The prompt credits of the team after the resume.

generated_atstring
Required

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

400 Bad Requesterror

The team does not have enough prompt credits. The API resumes no prompts.

401 Unauthorizederror

The API key is missing, malformed or revoked.

403 Forbiddenerror

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.

404 Not Founderror

The domain does not exist.

409 Conflicterror

The domain is paused. Resume the domain with POST /api/v1/domains/resume first.

422 Unprocessable Entityerror

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.

429 Too Many Requestserror

You sent too many requests. Read the Retry-After header to know how long to wait.