API reference

Audits

Audit a site for AI readiness, poll the result and read the fixes.

How audits work

An audit checks a site for AI readiness and scores it. The gateway reads https://<brand_domain> and no other address. Start one, poll it, then read the fixes.

Audits

POST /v1/audits

Start an audit of the brand's website. Billed per audit

It is always the full audit. The gateway reads https://<brand_domain>; the request cannot name any other address, an email or a user. 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_domainstringYesThe brand's domain, such as example.com: a plain host name with no scheme, path, port or IP address. The audit reads https://<brand_domain>; you cannot send another address.

Returns 202. Accepted: audit_id. Poll GET /v1/audits/{id}. A brand that already has an audit running is answered audit_in_progress and nothing is charged.

Request
curl -X POST https://api.thrivestack.ai/v1/audits \
  -H 'Authorization: Bearer tsk_live_YOUR_KEY' \
  -H 'Idempotency-Key: audit-acme-2026-12-04' \
  -H 'Content-Type: application/json' \
  -d '{"brand_domain": "acme.com"}'
Response
{
  "data": { "id": "aud_01HV...", "status": "queued", "status_url": "/v1/audits/aud_01HV..." },
  "meta": { "request_id": "req_01HV...", "cost": { "amount": "...", "currency": "USD", "state": "estimated" } }
}

GET /v1/audits/{id}

Get an audit. Free

ParameterInRequiredDescription
idpathYesThe id returned when it was created.

Returns 200. The audit.

GET /v1/audits

List audits. Free

Returns 200. The audits.

GET /v1/audits/{id}/recommendations

Recommendations from an audit. Free

ParameterInRequiredDescription
idpathYesThe id returned when it was created.

Returns 200. The recommendations.