> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview contact hours

> Preview recipient-local Nixflex contact windows without sending calls or SMS. Treat the result as advisory and recheck policy at dispatch.

**FIXED · account** An incoming STOP blocks voice and SMS across the owning account. The receiving business number is evidence only.

**NOT OFFERED → do this instead · number** A number or a separate agent does not create its own STOP boundary. Businesses on a platform share its STOP list. Honour the suppression across their numbers.

**YOU CAN CHANGE · account** Add a do-not-contact entry for all channels, voice or SMS. Check the selected owner and recipient before any change.

**SCOPE · recipient** Preview local contact rules before outreach. Report the reason when a recipient is held and resolve the underlying policy or missing data. `needs_timezone`, `timezone_policy_paused`, `contact_policy_paused`, `consent_required`, `consent_withdrawn`, `do_not_contact`, `outside_hours`, `not_due_local`, `policy_migration_required`, `country_policy_review`, `holiday_data_unavailable`, `public_holiday`.

Keyword STOP works independently. AI recognition of a sender’s clear objection in a verified incoming SMS is off by default. Customers have no switch for it. Where enabled on eligible automatic replies, it blocks calls and texts account-wide and may send one goodbye.

On `GET /v1/contact-suppressions`, business\_number alone selects keyword evidence. Add source=attributed for keyword and AI entries. To correct an eligible AI mistake, the Owner or account key sends phone\_number, channel=all, current review\_version and a reason to `POST /v1/contact-suppressions/ai-corrections`. Reload on review\_changed. Keyword STOP and independent restrictions stay locked. Correction never supplies consent.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#contact-controls)

Preview recipient-local contact windows without sending calls, SMS or campaign work. The result is advisory and expires after one minute; final dispatch checks still apply.

Method: **POST** · Success: **200** · Scope: **Owning account**

**The important part**

* The preview is advice for the supplied recipient location and time.
* It neither sends a message nor reserves a future contact window.

[Business guide](https://docs.nixflex.com/guides/business/contact-controls.md) · [Developer guide](https://docs.nixflex.com/guides/developer/contact-controls.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

Preview contact hours for the actual recipient. Country policy, local time, holidays and missing location data can affect the result. The engine checks again at dispatch. The public API offers no configurable per-recipient frequency cap. The shipped UK default is Monday to Friday, 09:00–18:00 recipient-local time. Set a narrower campaign window for a 17:00 cutoff. Enforce your own weekly recipient and daily offer caps before submitting work. A country under policy review can still be held.

## Authentication

Send `Authorization: Bearer KEY_ID:KEY_SECRET` using the owning account’s server-side credential. Send `Content-Type: application/json`.

## Request fields

Unknown root fields are ignored.

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `agent_id` | string | Yes | None | Owned agent with a configured valid IANA time zone. Pattern: `^[A-Za-z0-9_-]{1,64}$`. |
| `recipients` | array of object | Yes | None | Between one and 20 recipients. Maximum 20 items. Minimum 1 items. |
| `recipients[].phone` | string | Yes | None | Input number used for location estimates. Maximum 32 characters. |
| `recipients[].country` | string | No | Omitted | Optional two-letter country. Maximum 2 characters. |
| `recipients[].timezone` | string | No | Omitted | Optional recipient time zone. Maximum 80 characters. |
| `campaign` | object | No | Omitted | Optional preview assumptions; unknown keys are ignored. |
| `campaign.allow_wider_hours` | boolean | No | `false` | Preview assumption only; does not record permission. |
| `campaign.start` | string | No | Omitted | HH:mm start; provide end too. Pattern: `^(?:[01][0-9]&#124;2[0-3]):[0-5][0-9]$`. |
| `campaign.end` | string | No | Omitted | HH:mm end; must differ from start. Pattern: `^(?:[01][0-9]&#124;2[0-3]):[0-5][0-9]$`. |
| `campaign.days` | array of string | No | Omitted | Optional selected weekdays. Maximum 7 items. Minimum 1 items. Allowed items: `"sun"`, `"mon"`, `"tue"`, `"wed"`, `"thu"`, `"fri"`, `"sat"`. |
| `campaign.scheduled_date` | string | No | Omitted | Valid calendar date in YYYY-MM-DD form. Format: date. |

The campaign preview uses start and end as HH:mm, unlike campaign creation’s minute fields. Omitted period settings use the current policy. Unknown or ambiguous locations, holidays and unverified policy data can hold a row rather than promise a future window. Multiple possible zones must satisfy the applicable checks.

next\_allowed is a bounded estimate: computation can stop for budget, horizon or missing policy data. windows describe current recipient-local-date windows, not an unlimited future schedule. allow\_wider\_hours only changes the preview assumption; it does not save the required campaign confirmation. The example versions and times are illustrative.

## Response fields

`200 OK` returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

| Field | Type | Meaning |
| - | - | - |
| `preview_only` | boolean | No contact is sent. Value: `true`. |
| `mode` | string | Current preview policy mode. Allowed: `"global"`, `"legacy_recipient_estimate"`. |
| `policy_version` | string | Contact policy version. |
| `runtime_timezone_version` | string | Runtime time-zone data version. |
| `as_of` | string | Server calculation time. Format: date-time. |
| `expires_at` | string | One minute after as\_of. Format: date-time. |
| `agent_timezone` | string | Configured agent zone. |
| `rows` | array of object | Saved value. |
| `rows[].index` | integer | Zero-based input row. |
| `rows[].country` | string or null | Resolved country. |
| `rows[].possible_zones` | array of string | Saved value. |
| `rows[].display_reason` | string or null | Human-display reason such as weekend or outside\_hours. |
| `rows[].message` | string | Advisory explanation. |
| `rows[].next_allowed` | object or null | Saved value. |
| `rows[].next_allowed.at_utc` | string | Next estimated allowed time in UTC. Format: date-time. |
| `rows[].next_allowed.local` | array of object | Saved value. |
| `rows[].next_allowed.local[].zone` | string | IANA time zone. |
| `rows[].next_allowed.local[].date` | string | Local calendar date. |
| `rows[].next_allowed.local[].time` | string | Local HH:mm time. |
| `rows[].next_unavailable` | string or null | Why no future estimate is available, such as budget or horizon. |
| `rows[].advisory_only` | boolean | Always true. Value: `true`. |
| `rows[].local_now` | array of object | Saved value. |
| `rows[].local_now[].zone` | string | IANA time zone. |
| `rows[].local_now[].date` | string | Local calendar date. |
| `rows[].local_now[].time` | string | Local HH:mm time. |
| `rows[].hold_reason` | string or null | Current policy hold code. |
| `rows[].allowed_now` | boolean | Current time-window estimate, not permission to dispatch. |
| `rows[].windows` | array of object | Saved value. |
| `rows[].windows[].start_utc` | string | UTC window start. Format: date-time. |
| `rows[].windows[].end_utc` | string | UTC window end. Format: date-time. |
| `rows[].windows[].recipient` | array of object | Saved value. |
| `rows[].windows[].recipient[].zone` | string | Recipient zone. |
| `rows[].windows[].recipient[].start` | object | Saved value. |
| `rows[].windows[].recipient[].start.date` | string | Local calendar date. |
| `rows[].windows[].recipient[].start.time` | string | Local HH:mm time. |
| `rows[].windows[].recipient[].end` | object | Saved value. |
| `rows[].windows[].recipient[].end.date` | string | Local calendar date. |
| `rows[].windows[].recipient[].end.time` | string | Local HH:mm time. |
| `rows[].windows[].agent` | object | Saved value. |
| `rows[].windows[].agent.zone` | string | Agent zone. |
| `rows[].windows[].agent.start` | object | Saved value. |
| `rows[].windows[].agent.start.date` | string | Local calendar date. |
| `rows[].windows[].agent.start.time` | string | Local HH:mm time. |
| `rows[].windows[].agent.end` | object | Saved value. |
| `rows[].windows[].agent.end.date` | string | Local calendar date. |
| `rows[].windows[].agent.end.time` | string | Local HH:mm time. |

## Example request

These examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. Keep `NIXFLEX_API_KEY` private. cURL uses Bash; CLI uses PowerShell and reads the key through `NIXFLEX_API_KEY`. Replace fixture identifiers and reserved example numbers with approved account-owned values. Configure the existing MCP installation for the same account at `https://api.nixflex.com` before using the shown tool arguments. Python shows the synchronous client; `AsyncNixflex` uses the same method with `async with` and `await`.

```bash cURL theme={"dark"}
curl --request POST \
  --url "https://api.nixflex.com/v1/contact-hours/preview" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"agent_id":"agent_fixture","recipients":[{"phone":"+12025550101","country":"US","timezone":"America/New_York"}]}'
```

```javascript Node theme={"dark"}
import Nixflex from 'nixflex';

const c = new Nixflex({
  apiKey: process.env.NIXFLEX_API_KEY,
  baseUrl: 'https://api.nixflex.com',
  maxRetries: 0,
});
const result = await c.contacts.preview({"agent_id": "agent_fixture", "recipients": [{"phone": "+12025550101", "country": "US", "timezone": "America/New_York"}]});
```

```python Python theme={"dark"}
import os
from nixflex import Nixflex

with Nixflex(
    api_key=os.environ["NIXFLEX_API_KEY"],
    base_url="https://api.nixflex.com",
    max_retries=0,
) as c:
    result = c.contacts.preview(agent_id='agent_fixture', recipients=[{'phone': '+12025550101', 'country': 'US', 'timezone': 'America/New_York'}])
```

```powershell CLI (PowerShell) theme={"dark"}
$body = @'
{
  "agent_id": "agent_fixture",
  "recipients": [
    {
      "phone": "+12025550101",
      "country": "US",
      "timezone": "America/New_York"
    }
  ]
}
'@
[IO.File]::WriteAllText('request-98.json', $body, (New-Object Text.UTF8Encoding $false))
nixflex contacts preview --body '@request-98.json' --json --base-url "https://api.nixflex.com"
```

```json MCP theme={"dark"}
{
  "name": "preview_contact_hours",
  "arguments": {
    "agent_id": "agent_fixture",
    "recipients": [
      {
        "phone": "+12025550101",
        "country": "US",
        "timezone": "America/New_York"
      }
    ]
  }
}
```

## Example response

Illustrative `200` response. Identifiers and values are examples; some optional or compatibility fields are omitted.

```json Response theme={"dark"}
{
  "preview_only": true,
  "mode": "global",
  "policy_version": "example-version",
  "runtime_timezone_version": "example-tz-version",
  "as_of": "2026-11-01T12:00:00Z",
  "expires_at": "2026-11-01T12:01:00Z",
  "agent_timezone": "Europe/London",
  "rows": [
    {
      "index": 0,
      "country": "US",
      "possible_zones": [
        "America/New_York"
      ],
      "display_reason": "outside_hours",
      "message": "Outside calling hours - next start time could not be confirmed",
      "next_allowed": null,
      "next_unavailable": "budget",
      "advisory_only": true,
      "local_now": [
        {
          "zone": "America/New_York",
          "date": "2026-11-01",
          "time": "07:00"
        }
      ],
      "hold_reason": "outside_hours",
      "allowed_now": false,
      "windows": []
    }
  ]
}
```

## Errors

Failures return an `error` object with `code`, `message`, `doc_url` and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 400 | [`invalid_contact_preview`](https://docs.nixflex.com/api-reference/errors#invalid_contact_preview) | The preview request has an invalid shape or limit. | Correct agent, recipients and campaign preview fields. |
| 404 | [`not_found`](https://docs.nixflex.com/api-reference/errors#not_found) | No matching object belongs to this account. | Check the account and identifier. |
| 422 | [`agent_timezone_required`](https://docs.nixflex.com/api-reference/errors#agent_timezone_required) | The owned agent has no valid configured time zone. | Configure the intended time zone before requesting a preview. |
| 429 | [`contact_preview_busy`](https://docs.nixflex.com/api-reference/errors#contact_preview_busy) | The preview worker is busy. | Wait and retry with bounded backoff. |
| 503 | [`contact_preview_unavailable`](https://docs.nixflex.com/api-reference/errors#contact_preview_unavailable) | Policy or preview data could not be confirmed. | Retry later; do not treat failure as permission to contact. |
| 400 | [`invalid_json`](https://docs.nixflex.com/api-reference/errors#invalid_json) | Invalid JSON body. | Correct JSON syntax. |
| 413 | [`payload_too_large`](https://docs.nixflex.com/api-reference/errors#payload_too_large) | The request exceeds the JSON body limit. | Send a smaller request. |
| 401 | [`unauthorized`](https://docs.nixflex.com/api-reference/errors#unauthorized) | The credential is missing or invalid. | Check the full account credential. |
| 429 | [`rate_limit_exceeded`](https://docs.nixflex.com/api-reference/errors#rate_limit_exceeded) | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |

## Retry and idempotency

This POST is read-only and can be retried with bounded backoff. Its result expires after one minute and is never a send-permission token. Respect 429 and compute a fresh preview when inputs or timing change.

## Related endpoints

* [List contact suppressions](https://docs.nixflex.com/api-reference/contact-controls/get-contact-suppressions.md)
* [Add contact suppressions](https://docs.nixflex.com/api-reference/contact-controls/post-contact-suppressions.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json POST /contact-hours/preview
openapi: 3.1.0
info:
  title: Nixflex public API
  version: 1.0.0
  description: >-
    Nixflex API reference for agents, calls, messaging, knowledge, organisations
    and integrations. Authenticate with the owning account and follow each
    operation’s permissions, response and retry contract.
servers:
  - url: https://api.nixflex.com/v1
security:
  - bearerAuth: []
paths:
  /contact-hours/preview:
    post:
      tags:
        - Contact controls
      summary: Preview contact hours
      description: >-
        Preview recipient-local contact windows without sending calls, SMS or
        campaign work. The result is advisory and expires after one minute;
        final dispatch checks still apply. The campaign preview uses start and
        end as HH:mm, unlike campaign creation’s minute fields. Omitted period
        settings use the current policy. Unknown or ambiguous locations,
        holidays and unverified policy data can hold a row rather than promise a
        future window. Multiple possible zones must satisfy the applicable
        checks.


        next_allowed is a bounded estimate: computation can stop for budget,
        horizon or missing policy data. windows describe current
        recipient-local-date windows, not an unlimited future schedule.
        allow_wider_hours only changes the preview assumption; it does not save
        the required campaign confirmation. The example versions and times are
        illustrative.
      operationId: post_contact_hours_preview
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                agent_id:
                  type: string
                  description: Owned agent with a configured valid IANA time zone.
                  pattern: ^[A-Za-z0-9_-]{1,64}$
                recipients:
                  type: array
                  items:
                    type: object
                    properties:
                      phone:
                        type: string
                        description: Input number used for location estimates.
                        maxLength: 32
                      country:
                        type: string
                        description: Optional two-letter country.
                        maxLength: 2
                      timezone:
                        type: string
                        description: Optional recipient time zone.
                        maxLength: 80
                    required:
                      - phone
                    description: ''
                    additionalProperties: false
                  description: Between one and 20 recipients.
                  minItems: 1
                  maxItems: 20
                campaign:
                  type: object
                  properties:
                    allow_wider_hours:
                      type: boolean
                      description: Preview assumption only; does not record permission.
                      default: false
                    start:
                      type: string
                      description: HH:mm start; provide end too.
                      pattern: ^(?:[01][0-9]|2[0-3]):[0-5][0-9]$
                    end:
                      type: string
                      description: HH:mm end; must differ from start.
                      pattern: ^(?:[01][0-9]|2[0-3]):[0-5][0-9]$
                    days:
                      type: array
                      items:
                        type: string
                        description: Lowercase weekday.
                        enum:
                          - sun
                          - mon
                          - tue
                          - wed
                          - thu
                          - fri
                          - sat
                      description: Optional selected weekdays.
                      minItems: 1
                      maxItems: 7
                    scheduled_date:
                      type: string
                      description: Valid calendar date in YYYY-MM-DD form.
                      format: date
                  description: Optional preview assumptions; unknown keys are ignored.
                  additionalProperties: true
              required:
                - agent_id
                - recipients
              description: Unknown root fields are ignored.
              additionalProperties: true
            example:
              agent_id: agent_example
              recipients:
                - phone: '+12025550101'
                  country: US
                  timezone: America/New_York
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  preview_only:
                    type: boolean
                    description: No contact is sent.
                    const: true
                  mode:
                    type: string
                    description: Current preview policy mode.
                    enum:
                      - global
                      - legacy_recipient_estimate
                  policy_version:
                    type: string
                    description: Contact policy version.
                  runtime_timezone_version:
                    type: string
                    description: Runtime time-zone data version.
                  as_of:
                    type: string
                    description: Server calculation time.
                    format: date-time
                  expires_at:
                    type: string
                    description: One minute after as_of.
                    format: date-time
                  agent_timezone:
                    type: string
                    description: Configured agent zone.
                  rows:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: integer
                          description: Zero-based input row.
                        country:
                          type:
                            - string
                            - 'null'
                          description: Resolved country.
                        possible_zones:
                          type: array
                          items:
                            type: string
                            description: Plausible recipient time zone.
                          description: ''
                        display_reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Human-display reason such as weekend or
                            outside_hours.
                        message:
                          type: string
                          description: Advisory explanation.
                        next_allowed:
                          type:
                            - object
                            - 'null'
                          properties:
                            at_utc:
                              type: string
                              description: Next estimated allowed time in UTC.
                              format: date-time
                            local:
                              type: array
                              items:
                                type: object
                                properties:
                                  zone:
                                    type: string
                                    description: IANA time zone.
                                  date:
                                    type: string
                                    description: Local calendar date.
                                  time:
                                    type: string
                                    description: Local HH:mm time.
                                required:
                                  - zone
                                  - date
                                  - time
                                description: ''
                                additionalProperties: false
                              description: ''
                          required:
                            - at_utc
                            - local
                          description: ''
                          additionalProperties: false
                        next_unavailable:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Why no future estimate is available, such as budget
                            or horizon.
                        advisory_only:
                          type: boolean
                          description: Always true.
                          const: true
                        local_now:
                          type: array
                          items:
                            type: object
                            properties:
                              zone:
                                type: string
                                description: IANA time zone.
                              date:
                                type: string
                                description: Local calendar date.
                              time:
                                type: string
                                description: Local HH:mm time.
                            required:
                              - zone
                              - date
                              - time
                            description: ''
                            additionalProperties: false
                          description: ''
                        hold_reason:
                          type:
                            - string
                            - 'null'
                          description: Current policy hold code.
                        allowed_now:
                          type: boolean
                          description: >-
                            Current time-window estimate, not permission to
                            dispatch.
                        windows:
                          type: array
                          items:
                            type: object
                            properties:
                              start_utc:
                                type: string
                                description: UTC window start.
                                format: date-time
                              end_utc:
                                type: string
                                description: UTC window end.
                                format: date-time
                              recipient:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    zone:
                                      type: string
                                      description: Recipient zone.
                                    start:
                                      type: object
                                      properties:
                                        date:
                                          type: string
                                          description: Local calendar date.
                                        time:
                                          type: string
                                          description: Local HH:mm time.
                                      required:
                                        - date
                                        - time
                                      description: ''
                                      additionalProperties: false
                                    end:
                                      type: object
                                      properties:
                                        date:
                                          type: string
                                          description: Local calendar date.
                                        time:
                                          type: string
                                          description: Local HH:mm time.
                                      required:
                                        - date
                                        - time
                                      description: ''
                                      additionalProperties: false
                                  required:
                                    - zone
                                    - start
                                    - end
                                  description: ''
                                  additionalProperties: false
                                description: ''
                              agent:
                                type: object
                                properties:
                                  zone:
                                    type: string
                                    description: Agent zone.
                                  start:
                                    type: object
                                    properties:
                                      date:
                                        type: string
                                        description: Local calendar date.
                                      time:
                                        type: string
                                        description: Local HH:mm time.
                                    required:
                                      - date
                                      - time
                                    description: ''
                                    additionalProperties: false
                                  end:
                                    type: object
                                    properties:
                                      date:
                                        type: string
                                        description: Local calendar date.
                                      time:
                                        type: string
                                        description: Local HH:mm time.
                                    required:
                                      - date
                                      - time
                                    description: ''
                                    additionalProperties: false
                                required:
                                  - zone
                                  - start
                                  - end
                                description: ''
                                additionalProperties: false
                            required:
                              - start_utc
                              - end_utc
                              - recipient
                              - agent
                            description: ''
                            additionalProperties: false
                          description: ''
                      required:
                        - index
                        - country
                        - possible_zones
                        - display_reason
                        - message
                        - next_allowed
                        - next_unavailable
                        - advisory_only
                        - local_now
                        - hold_reason
                        - allowed_now
                        - windows
                      description: ''
                      additionalProperties: false
                    description: ''
                required:
                  - preview_only
                  - mode
                  - policy_version
                  - runtime_timezone_version
                  - as_of
                  - expires_at
                  - agent_timezone
                  - rows
                description: ''
                additionalProperties: false
              example:
                preview_only: true
                mode: global
                policy_version: example-version
                runtime_timezone_version: example-tz-version
                as_of: '2026-11-01T12:00:00Z'
                expires_at: '2026-11-01T12:01:00Z'
                agent_timezone: Europe/London
                rows:
                  - index: 0
                    country: US
                    possible_zones:
                      - America/New_York
                    display_reason: outside_hours
                    message: >-
                      Outside calling hours - next start time could not be
                      confirmed
                    next_allowed: null
                    next_unavailable: budget
                    advisory_only: true
                    local_now:
                      - zone: America/New_York
                        date: '2026-11-01'
                        time: '07:00'
                    hold_reason: outside_hours
                    allowed_now: false
                    windows: []
        '400':
          description: >-
            invalid_contact_preview: The preview request has an invalid shape or
            limit. invalid_json: Invalid JSON body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '401':
          description: 'unauthorized: The credential is missing or invalid.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '404':
          description: 'not_found: No matching object belongs to this account.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '413':
          description: 'payload_too_large: The request exceeds the JSON body limit.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '422':
          description: >-
            agent_timezone_required: The owned agent has no valid configured
            time zone.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '429':
          description: >-
            contact_preview_busy: The preview worker is busy.
            rate_limit_exceeded: The account request limit was reached.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '503':
          description: >-
            contact_preview_unavailable: Policy or preview data could not be
            confirmed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A
        verified personal dashboard Bearer session may be used where the
        operation documents role-based access.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.