API reference

Runs and answers

Start a run on AI engines, follow it, and read the answers and results.

How runs work

A run asks every saved prompt on every engine you choose and stores the answers. It is a job: you get 202 and a run_id, then poll until it finishes. The price of an answer that could not be delivered is refunded when the run ends.

Only one run can go at a time for a brand. Starting another answers started: false and charges nothing.

Start and follow a run

POST /v1/runs

Start a run on the chosen engines. Billed per answer

The exact price (prompts x engines) is charged when the run is accepted, and the price of any answer that was not delivered is refunded when the run ends. Times out after 30s.

ParameterInRequiredDescription
Idempotency-KeyheaderYesA retry with the same key is answered from the stored response and charged once.

Body (JSON)

FieldTypeRequiredDescription
brand_domainstringYes
enginesarray of stringYesThe engines to run on. Required; an answer is made for every prompt on every engine. Each one of: chatgpt, google-ai-overview, gemini, google-ai-mode, bing-ai-mode, meta-ai, google-search, bing-search, google-news

Returns 202. Accepted: run_id, or started: false if a run is already in flight (nothing is charged then).

Request
curl -X POST https://api.thrivestack.ai/v1/runs \
  -H 'Authorization: Bearer tsk_live_YOUR_KEY' \
  -H 'Idempotency-Key: run-acme-2026-12-04' \
  -H 'Content-Type: application/json' \
  -d '{"brand_domain": "acme.com", "engines": ["chatgpt", "gemini", "bing-ai-mode"]}'
Response
{
  "data": { "id": "run_01HV...", "status": "queued", "status_url": "/v1/runs/run_01HV..." },
  "meta": { "request_id": "req_01HV...", "cost": { "amount": "...", "currency": "USD", "state": "estimated" } }
}

GET /v1/runs/{id}

Get a run. Free

ParameterInRequiredDescription
idpathYesThe id returned when it was created.

Returns 200. The run.

GET /v1/runs/latest

The latest run. Free

ParameterInRequiredDescription
brand_domainqueryNoThe brand's domain, as listed on the key.

Returns 200. The run.

Read answers and results

GET /v1/runs/{id}/results

Results of a run. Free

ParameterInRequiredDescription
idpathYesThe id returned when it was created.

Returns 200. The results.

GET /v1/prompts/{id}/answers

Answers for one prompt. Free

ParameterInRequiredDescription
idpathYesThe id returned when it was created.

Returns 200. The answers.