/v1/scheduled-reports Create a scheduled report
Create a scheduled report. next_run_at is the next occurrence of its schedule slot: pass one, or it runs at the time of day it was created (UTC), one frequency from now.
The fastest setup passes region_configs: every market (country, optional city, language) with its prompts, created in the same call, all or nothing. The schedule is active as soon as one of them has prompts, and every run leaves one report per active region config.
markets instead sets up where it asks with no prompts yet (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): the schedule starts inactive (paused_reason: no_prompts) and resumes by itself once its region configs get prompts (POST /v1/region-configs/{config_id}/prompts). Past the plan's cap of markets per report, 403 plan_limit_reached.
Without region_configs or markets the schedule starts inactive (is_active: false, paused_reason: no_markets): one with no region configs produces no reports. It activates by itself as soon as you add the first active region config in step 2: complete the steps below and no extra call is needed. A schedule left without one never runs and never bills.
Step by step instead:
POST /v1/scheduled-reports(this endpoint).- For each region you want to track:
POST /v1/region-configswithscheduled_report_idset (up to the brand owner's plan cap of region configs per report). - Seed each config's prompts:
POST /v1/region-configs/{config_id}/prompts.
Every tick (or manual POST .../executions) materialises one report per active region config of the schedule.
Query parameters
-
Preview the call without executing it. Runs auth, scope, eligibility and body validation, then returns
200with adry_runobject reporting the request-unit and credit cost plus a non-consuming quota snapshot. Nothing is debited, reserved, dispatched or mutated. An invalid body still returns422.default: false
Header parameters
-
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 withdry_run=true.
Request body
application/json required-
Brand to attach the schedule to (UUID).
-
How often the schedule runs (
daily,weekly,monthly). -
Human-readable label that surfaces in dashboards/emails.
- markets array of MarketIn (nullable) nullable
Instead of
region_configs: the markets to start with and no prompts yet, asPOST /v1/reports/{report_id}/marketstakes them (a whole country, a city in it, or one of the brand's places bylocation_id; a market without its owncountryis in the brand's; two identical entries are one market). The schedule waits paused (no_prompts) until prompts are added to its region configs, then resumes by itself. Past the plan's cap of markets per report,403 plan_limit_reached. - region_configs array of ScheduleRegionConfigCreate
Region configs to create with the schedule, up to 20: one per market (country, optional city, language), each seeded with its own
promptsor with the prompts of itssource_report_id(copy_report_prompts). Every run leaves one report per active config, never a merged one. All or nothing: if one config fails, the schedule is not created. - schedule ScheduleSlot (nullable) nullable
When the runs happen:
time(HH:MM) intz, plusdow(0 = Sunday) for weekly anddom(1 to 28) for monthly. Without it the schedule starts on the default the app's form proposes: a weekday and a time between 07:00 and 19:30 drawn for you and the brand, weighted to quiet hours, in your time zone (UTC when unknown), and for monthly a day drawn the same way.
Example payload
{
"brand_id": "3f9c7e8a-1b6a-4d8e-92cf-7d9c8b1e2a04",
"frequency": "weekly",
"name": "adidas weekly visibility"
}Responses
-
Owning brand id (UUID).
-
ISO-8601 timestamp when the schedule was created.
-
What one run reserves at today's region configs and prompts: each active region config's prompts it can ask times 1 credit per 3 of the AI platforms that answer from its country. 0 while none has a prompt to ask. Creating the schedule costs nothing; each run charges this.
-
Cadence the schedule runs at.
-
Stable schedule identifier (UUID).
-
Whether the schedule will run on its next tick.
-
Human-readable label.
- 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). Its runs and prompts.
- last_error_message string (nullable) nullable
Human-readable failure reason from the last run, when applicable.
- last_run_at string (nullable) nullable
ISO-8601 timestamp of the last execution.
- last_run_status enum (nullable) nullable
Outcome of the last execution.
- next_run_at string (nullable) nullable
ISO-8601 timestamp of the next scheduled execution.
- object string
Always
scheduled_report. - paused_reason enum (nullable) nullable
Why a paused schedule is paused:
user,credits(the account ran out),no_markets(it waits for its first region config) orno_prompts(also a schedule waiting for a region config's city, with the reason inlast_error_message). - schedule ScheduleSlot (nullable) nullable
The slot
next_run_atfollows: a local time in a time zone, with the weekday or day of month. - status enum (nullable) nullable
active,pausedorarchived;is_activeisstatus == active.
Example response
{
"brand_id": "3f9c7e8a-1b6a-4d8e-92cf-7d9c8b1e2a04",
"created_at": "2026-03-01T10:00:00+00:00",
"credits_per_run": 30,
"frequency": "weekly",
"id": "018e7c2d-33ab-7df1-b1cd-2ac3a8f9112d",
"is_active": true,
"last_run_at": "2026-04-01T09:00:11.412+00:00",
"last_run_status": "completed",
"name": "adidas weekly visibility",
"next_run_at": "2026-04-08T09:00:00+00:00",
"object": "scheduled_report",
"schedule": {
"dow": 3,
"time": "09:00",
"tz": "America/New_York"
},
"status": "active"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "validation_error",
"message": "Request validation failed"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid credentials"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "forbidden",
"message": "You do not have permission to access this resource"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "conflict",
"message": "Resource conflict"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "body_validation_error",
"message": "Request body did not match the expected schema"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "rate_limit_exceeded",
"message": "Per-minute rate limit exceeded"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "internal_error",
"message": "An unexpected error occurred"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}-
Show fields
-
Stable machine-readable error code from the catalog.
-
Human-readable description suitable for logging.
- details object
Optional, code-specific context (e.g.
errorsarray forvalidation_error,retry_afterforservice_unavailable). Shape depends onerror.code; treat as opaque otherwise.Show fields
Empty object (no properties).
-
- request_id string
Server-generated correlation id for the request. Mirrors the
X-Correlation-IDresponse header. Include this when contacting support.
Example response
{
"error": {
"code": "service_unavailable",
"message": "Service temporarily unavailable, please retry"
},
"request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}