/v1/scheduled-reports/{scheduled_report_id}/region-configs/{region_config_id} Attach a region config
A region config belongs to the schedule it was created for (POST /v1/region-configs with scheduled_report_id). This answers the config when it is already this schedule's, and returns 400 validation_error when it belongs to another schedule: create another region config for this one.
To remove a region from a schedule, delete the region config itself (DELETE /v1/region-configs/{id}).
Path parameters
-
Region config UUID.
-
Scheduled report UUID.
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.
Responses
-
Owning brand id (UUID).
-
Country the region targets.
-
ISO-8601 timestamp when the region config was created.
-
Stable region-config identifier (UUID).
-
Whether the config is used by scheduled runs.
-
Language label (e.g.
English,Spanish). -
Human-readable label (e.g.
United States, English). -
Schedule this config feeds. Required: every region config is tied to exactly one schedule (DB column is
NOT NULL). - ai_platforms array of string
AI platforms this region runs against, as it runs them today: a retired engine reads as the one that replaced it, so the list can be sent back as is. 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.
- last_error_message string (nullable) nullable
Last error message surfaced by a scheduled run, if any.
- last_run_at string (nullable) nullable
ISO-8601 timestamp of the most recent scheduled run from this config.
- last_run_status enum (nullable) nullable
Status of the most recent run.
- location string (nullable) nullable
Free-form location string used for queries.
- object string
Always
region_config. - prompts_count integer
Active prompts this region config asks: its own and the ones every region config shares.
- source_report_id string (nullable) nullable
Always null: a region config is a market of its scheduled report and keeps no source report.
- updated_at string (nullable) nullable
ISO-8601 timestamp of the last update to the region config.
Example response
{
"ai_platforms": [
"chatgpt_web",
"ai_overviews",
"perplexity_web"
],
"brand_id": "3f9c7e8a-1b6a-4d8e-92cf-7d9c8b1e2a04",
"country": "United States",
"created_at": "2026-04-01T11:00:00+00:00",
"id": "018e7c2e-33ab-7df1-b1cd-2ac3a8f9112d",
"is_active": true,
"language": "English",
"last_run_at": "2026-04-19T03:00:00+00:00",
"last_run_status": "completed",
"location": "New York, NY",
"name": "United States, English",
"object": "region_config",
"prompts_count": 12,
"scheduled_report_id": "018e7c2d-33ab-7df1-b1cd-2ac3a8f9112d",
"updated_at": "2026-04-19T03:00:00+00:00"
}-
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": "not_found",
"message": "Resource not found"
},
"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": "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"
}