Start a site audit
Starts a paid one-page Site audit of the brand’s input landing-page URL (the audit never expands beyond that page, but it reads domain-control resources such as robots.txt and sitemap files). Body: { brand_id: uuid }, an accessible, non-archived workspace brand inside the credential allowlist. Returns 202 Accepted with the audit, task, and billing references; the collected data and issued issues become readable at GET /v1/site-audits/{audit_id} when the audit reaches a usable terminal state. The accepted call authorizes the fixed 10-credit reservation; a failed audit releases it.
/site-auditsAuthorizationBearer token · headerrequiredAPI key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.
AuthorizationOAuth2 access token · headerrequiredOAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.
Idempotency-KeystringrequiredA new value, such as a UUID, for each new request. Send the same value to retry a request safely; see https://docs.zaraftis.com/conventions#safe-retries-with-idempotency-key.
application/jsonbrand_idstring<uuid>requiredAccepted audit (audit, task, and billing references)
AcceptedSiteAuditEnvelopebad_request or validation_failed
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequiredwallet_not_activated, insufficient_credits, or payment_action_required
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequirednot_found: unknown id, or an id this key cannot see
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequiredrate_limited: wait the Retry-After seconds
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequiredcapacity_unavailable, spending_temporarily_unavailable, or reconciliation_pending
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequired