POST /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:

  1. POST /v1/scheduled-reports (this endpoint).
  2. For each region you want to track: POST /v1/region-configs with scheduled_report_id set (up to the brand owner's plan cap of region configs per report).
  3. 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

  • 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: ScheduledReportCreate
  • brand_id string required

    Brand to attach the schedule to (UUID).

  • frequency enum required

    How often the schedule runs (daily, weekly, monthly).

  • name string required

    Human-readable label that surfaces in dashboards/emails.

    min length: 1 · max length: 200

  • markets array of MarketIn (nullable) nullable

    Instead of region_configs: the markets to start with and no prompts yet, 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; a market without its own country is 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 prompts or with the prompts of its source_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.

    max items: 20

  • schedule ScheduleSlot (nullable) nullable

    When the runs happen: time (HH:MM) in tz, plus dow (0 = Sunday) for weekly and dom (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

Schedule created. application/json
Type: ScheduledReport
  • brand_id string required

    Owning brand id (UUID).

  • created_at string required

    ISO-8601 timestamp when the schedule was created.

    format: `date-time`

  • credits_per_run integer required

    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.

    min: 0

  • frequency enum required

    Cadence the schedule runs at.

  • id string required

    Stable schedule identifier (UUID).

  • is_active boolean required

    Whether the schedule will run on its next tick.

  • name string required

    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.

    format: `date-time`

  • 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.

    format: `date-time`

  • object string

    Always scheduled_report.

    default: `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) or no_prompts (also a schedule waiting for a region config's city, with the reason in last_error_message).

  • schedule ScheduleSlot (nullable) nullable

    The slot next_run_at follows: a local time in a time zone, with the weekday or day of month.

  • status enum (nullable) nullable

    active, paused or archived; is_active is status == 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"
}
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"
}