DomainsDomain Status

Domain Status

The analysis progress of a domain. Use it to know when the data of a new domain is ready.

curl --request GET \
  --url 'https://api.aiclicks.io/api/v1/domain-status?domain_id=8f1d3c0a-2f9b-4c11-9b80-7a82e1f0c3f3' \
  --header 'Authorization: Bearer ak_live_xxx'
{
  "data": {
    "timestamp": "2026-11-09T10:00:10.950913+00:00Z",
    "analysis_created_at": "2026-11-09T09:41:02.118Z",
    "queries_count": 40,
    "responses_count": 112,
    "analysis_complete": false,
    "citations_pending": true,
    "has_any_completed_analysis": false,
    "is_discovery_ready": false
  },
  "generated_at": "2026-11-09T10:00:11.105Z",
  "domain_id": "8f1d3c0a-2f9b-4c11-9b80-7a82e1f0c3f3"
}

This endpoint tells you where the analysis of a domain stands. Use it after you create a domain with POST /api/v1/domains. Poll this endpoint until the data is ready.

The first analysis of a new domain usually takes tens of minutes. Poll every few minutes. Do not poll in a tight loop.

The response is not cached. Each call reads the current state.

The domain_id query parameter is required. To find the domains that your key can access, use GET /api/v1/domains.

Authorizations

header
Authorizationstring
Required

Your API key formatted as Bearer ak_live_<your-key>. Create one in the dashboard under Settings → Developers.

header
X-Request-Idstring

Optional UUID for log correlation. If you do not send one, the server makes one and returns it in the response.

Query parameters

query
domain_idstring
Required

UUID of the domain. Find domains with GET /api/v1/domains.

Response

dataobject
Required

The analysis state of the domain.

timestampstring
Required

Time of the status check.

analysis_created_atstring

Start time of the analysis that is running. null when no analysis is running.

queries_countinteger

Number of prompts in the running analysis. null when no analysis is running.

responses_countinteger

Number of AI answers that the running analysis has collected. null when no analysis is running.

analysis_completeboolean
Required

true when no analysis is running.

citations_pendingboolean
Required

true while the server still processes the cited pages of the latest analysis.

has_any_completed_analysisboolean
Required

true when at least one analysis is complete. If true, the analytics endpoints return data.

is_discovery_readyboolean
Required

true when a completed analysis exists and the AI answers named competitors. If true, GET /api/v1/competitor-discovery has candidates.

domain_idstring
Required

Echo of the requested domain.

generated_atstring
Required

ISO-8601 timestamp of when the server made this response.

Response headers

HeaderDescription
X-CacheAlways BYPASS. The server does not cache this endpoint.
X-Request-IdUnique request id. Echoes your id if you send one.
X-RateLimit-LimitMaximum requests per minute for this key.
X-RateLimit-RemainingRequests that remain in the current minute.
X-RateLimit-ResetUnix epoch seconds when the window resets.

Caching

The server does not cache this endpoint. Each call returns the current state.

Errors

401 Unauthorizederror

The API key is missing, not valid, or revoked.

403 Forbiddenerror

The team's developer_access flag is off. Or the domain is not in the scope of your API key.

404 Not Founderror

The domain_id is not valid or does not exist. Or your user is not a member of the domain's team.

422 Unprocessable Entityerror

The domain_id is missing.

429 Too Many Requestserror

You sent too many requests. The Retry-After header tells you how long to wait.