POST /v1/reports

Create a report

Create a report in draft status. No analysis is dispatched yet, so you can edit prompts before spending credits.

With region_config_id the report copies that region config's market (country, city, language and AI platforms you leave out): it is a one-off copy and does not join the scheduled report's runs.

With markets it asks in several places at once (each a whole country, a city in it, or one of the brand's places by location_id, as POST /v1/reports/{report_id}/markets takes them): every run leaves one result per market, listed with GET /v1/reports/{report_id}/markets. Past the plan's cap of markets per report, 403 plan_limit_reached.

Workflow: 0. Required before step 3: POST /v1/brands/{brand_id}/facts to research the brand asynchronously, or PATCH /v1/brands/{brand_id}/facts with {"description": "..."} to set them manually.

  1. POST /v1/reports (this endpoint): returns a draft.
  2. POST /v1/reports/{id}/prompts: seed prompts (manual or auto-generated).
  3. POST /v1/reports/{id}/runs: dispatch the analysis (returns job_id).
  4. GET /v1/jobs/{job_id}: poll until completed.
  5. GET /v1/reports/{id}: read the final report (prompts + results inlined).

Requires the brand to have name and website set; returns 422 validation_error otherwise.

Query parameters

  • dry_run boolean optional

    Preview the call without executing it. Runs auth, scope, eligibility and body validation, then returns 200 with a dry_run object reporting the request-unit and credit cost plus a non-consuming quota snapshot. Nothing is debited, reserved, dispatched or mutated. An invalid body still returns 422.

    default: false

Header parameters

  • Idempotency-Key string required

    Required with an API key, else 400 idempotency_key_required: a new value per operation (a UUID works). A retry with the same key and body within 24 hours replays the first success instead of running again; a 4xx or 5xx is not stored, so the same key runs once the cause is fixed. Ignored with dry_run=true.

Request body

application/json required
Type: ReportCreate
  • brand_id string required

    Brand to attach the report to (UUID).

  • ai_platforms array of enum (nullable) nullable

    AI platforms to query. Engines: chatgpt_web, ai_overviews, perplexity_web, gemini_web, microsoft_copilot, meta_ai, grok_web, deepseek_web, chatgpt, claude, grok, perplexity, gemini, muse. 1 credit per prompt for every 3 engines you pick, rounded up (1 to 3 cost 1, 4 to 6 cost 2), 5 with all of them. Any other value, retired ones included (chatgpt_search, claude_search), answers ai_platform_unsupported. Defaults to ["chatgpt_web", "ai_overviews", "perplexity_web"], or to the region config's engines when region_config_id is set (a retired engine there runs as its replacement).

  • country string (nullable) nullable

    Country the report targets.

  • language string (nullable) nullable

    Primary language. Accepts English name (English) or ISO 639-1 code (en).

  • location string (nullable) nullable

    Free-form location used to scope queries, e.g. New York, NY or California. More specific than country.

  • markets array of MarketIn (nullable) nullable

    Where the report asks, one market each, as POST /v1/reports/{report_id}/markets takes them: a whole country, a city in it, or one of the brand's places by location_id. Instead of location; a market without its own country is in country (else the region config's, else the brand's); two identical entries are one market. Each run leaves one result per market, and the response reads the first one. Past the plan's cap of markets per report, 403 plan_limit_reached.

  • name string (nullable) nullable

    Optional human-readable report name. Defaults to <brand_name> Report.

  • region_config_id string (nullable) nullable

    Optional region config to copy the market from (UUID): any of country, location, language and ai_platforms you leave out comes from it. The report is a one-off copy and does not join the scheduled report's runs, so its region_config_id reads null.

Responses

Draft report created. application/json
Type: Report
  • brand_id string required

    Owning brand id (UUID).

  • created_at string required

    ISO-8601 timestamp when the report was created.

    format: `date-time`

  • id string required

    Stable report identifier (UUID).

  • name string required

    Human-readable report label (defaults to Untitled Report).

  • status enum required

    Report lifecycle status.

  • ai_platforms array of string

    AI platforms the report runs against. An open set: results recorded before an engine was retired keep it (chatgpt_search, claude_search). 1 credit per prompt for every 3 engines you pick, rounded up (1 to 3 cost 1, 4 to 6 cost 2), 5 with all of them.

  • app_url string (nullable) nullable

    The page that shows this object in the app, opened on its brand: an absolute URL on the account's app host (its white-label domain when it has one live). A draft opens on its setup, anything else on its result.

  • batch_id string (nullable) nullable

    The scheduled run this report belongs to, shared by the reports of that run; null for a one-off.

  • build_phase enum (nullable) nullable

    Where a running report is: queued, answering (the engines answer), resolving (the businesses the answers name are resolved) or finishing; null when it is not running.

  • Cells that permanently failed after retries.

    min: 0 · default: `0`

  • country string (nullable) nullable

    Country the report was scoped to.

  • Cells that returned degraded/partial data in this report.

    min: 0 · default: `0`

  • failure_reason string (nullable) nullable

    Human-readable reason when status == 'failed'.

  • language string (nullable) nullable

    Primary language (English name like English, Spanish).

  • location string (nullable) nullable

    Free-form location string used for queries.

  • market_id string (nullable) nullable

    The market (country, city and language) this report measured; equals region_config_id when set.

  • object string

    Always report.

    default: `report`

  • progress ReportProgress (nullable) nullable

    Cells answered and failed while the report runs; null when it is not running.

  • Prompt-platform results that surfaced the brand. Always ≤ total_results.

    min: 0 · default: `0`

  • region_config_id string (nullable) nullable

    The region config of the scheduled report this report ran for; null for a one-off report.

  • run_id string (nullable) nullable

    The run this report is the result of (one report per market and run); null for a draft.

  • scheduled_report_id string (nullable) nullable

    The scheduled report this report is a run of; null for a one-off report. A manual run of a schedule (POST /v1/scheduled-reports/{id}/executions) carries it too.

  • skipped_platforms array of string

    The platforms of ai_platforms that do not run in the report's country: never asked there and never charged, so their answers are absent by design, not missing. Empty when every platform runs there.

  • Total prompt-platform results materialised by the run

    min: 0 · default: `0`

  • tracker_id string (nullable) nullable

    The tracker (the report's definition: its markets, prompts and engines) this report is a result of. Equals scheduled_report_id for a scheduled report and id for a one-off report's first run.

  • visibility_score number (nullable) nullable

    Aggregate brand visibility score (0-100). Null until the report completes.

  • True while a processing report has not started yet because it waits for the account's other reports in flight to finish; it starts on its own, within two hours at most.

    default: `false`

Example response
{
  "ai_platforms": [
    "chatgpt_web",
    "ai_overviews",
    "perplexity_web"
  ],
  "brand_id": "3f9c7e8a-1b6a-4d8e-92cf-7d9c8b1e2a04",
  "cells_permanently_failed": 0,
  "country": "United States",
  "created_at": "2024-09-01T11:00:00+00:00",
  "degraded_cells_count": 0,
  "id": "8a72d9f1-c4b5-4e6d-9b1f-0e3a2c6d8b04",
  "language": "en",
  "location": "United States",
  "market_id": "8a72d9f1-c4b5-4e6d-9b1f-0e3a2c6d8b04",
  "name": "adidas weekly visibility, Sept 2024",
  "object": "report",
  "ranked_prompts": 17,
  "run_id": "8a72d9f1-c4b5-4e6d-9b1f-0e3a2c6d8b04",
  "skipped_platforms": [],
  "status": "completed",
  "total_results": 60,
  "tracker_id": "8a72d9f1-c4b5-4e6d-9b1f-0e3a2c6d8b04",
  "visibility_score": 42.7,
  "waiting_for_other_runs": false
}
Request validation failed application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "validation_error",
    "message": "Request validation failed"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Missing or invalid credentials application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid credentials"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
You do not have permission to access this resource application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "forbidden",
    "message": "You do not have permission to access this resource"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Resource conflict application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "conflict",
    "message": "Resource conflict"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Request body did not match the expected schema application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "body_validation_error",
    "message": "Request body did not match the expected schema"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Per-minute rate limit exceeded application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "Per-minute rate limit exceeded"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
An unexpected error occurred application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "internal_error",
    "message": "An unexpected error occurred"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Service temporarily unavailable, please retry application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "service_unavailable",
    "message": "Service temporarily unavailable, please retry"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}