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

# Get call history

> Read a filtered call-history envelope with matching totals. History includes failed starts and omits transcripts, event data, extracted data and recording URLs.

**FIXED · account** Inbox number discovery is account-wide. Filter threads by channel and number, and call history by number. `DELETE /v1/calls` purges calls and related recordings account-wide and reports sms\_deleted=0. For one customer verify each call ID, then use `DELETE /v1/calls/{id}`.

**NOT OFFERED → do this instead · number** A business\_number filter on campaign and opt-out reads does not establish tenant identity. Authorise the tenant and its number on your server. Keep that filter through SMS pagination. Bulk call deletion stays account-wide.

**YOU CAN CHANGE · account** Choose direction, source, outcome and period when supported. The number narrows a history read only. `direction` `all`, `inbound`, `outbound`, `web` · `source` `all`, `campaign`, `web`, `test`, `other` · `outcome` `all`, `successful`, `unsuccessful`, `unknown`, `failed` · `period` `all`, `today`, `week`, `month`.

**SCOPE · account** Keep the same filters with each server-issued cursor.

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

Read a filtered call-history envelope with matching totals. History includes failed starts and omits transcripts, event data, extracted data and recording URLs.

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

**The important part**

* Keep the same filters while paging through history.
* Unknown outcome and missing analysis must stay unknown in your UI.

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

## Authentication

Send `Authorization: Bearer KEY_ID:KEY_SECRET` using the owning account’s server-side credential.

## Request fields

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `limit` (query) | integer | No | `50` | Strict integer page size; signs, fractions and leading zeros are refused. Minimum 1. Maximum 200. |
| `offset` (query) | integer | No | `0` | Offset for the first page only. Prefer the returned cursor for continuation. Minimum 0. Maximum 1000000. |
| `cursor` (query) | string | No | Omitted | Opaque continuation cursor, up to 4096 characters. With cursor, send only limit; do not repeat filters or a nonzero offset. Maximum 4096 characters. |
| `direction` (query) | string | No | `"all"` | Filter by direction. Allowed: `"all"`, `"inbound"`, `"outbound"`, `"web"`. |
| `source` (query) | string | No | `"all"` | Filter by source. Allowed: `"all"`, `"campaign"`, `"web"`, `"test"`, `"other"`. |
| `outcome` (query) | string | No | `"all"` | Filter by outcome. Allowed: `"all"`, `"successful"`, `"unsuccessful"`, `"unknown"`, `"failed"`. |
| `period` (query) | string | No | `"month"` | UTC time range: today starts at UTC midnight; week is the preceding 7 days; month the preceding 30 days. Allowed: `"all"`, `"today"`, `"week"`, `"month"`. |
| `agent` (query) | string | No | `"all"` | Agent ID, or all. This is agent, not agent\_id. Maximum 200 characters. |
| `number` (query) | string | No | `"all"` | Business number, or all; use + in E.164 and encode it in the query. Maximum 80 characters. |
| `search` (query) | string | No | `""` | Trimmed literal search in caller name, call ID and phone numbers. Control characters are invalid. Maximum 120 characters. |
| `since` (query) | string | No | Omitted | Optional ISO timestamp with a time zone. Overrides the period start; must not be after until. Maximum 40 characters. Format: date-time. |
| `until` (query) | string | No | Omitted | Optional ISO timestamp with a time zone; defaults to request time. Maximum 40 characters. Format: date-time. |

Do not send a request body.

Order is created\_at descending, nulls last, then row ID descending. The cursor binds the account, filters and first-page time boundary. Send only cursor and optional limit for the next page. Stop when has\_more is false and next\_cursor is null; stop on a repeated cursor. This is not a frozen database snapshot: later updates and deletion can change results.

The default period is the preceding 30 days. Cost sums include only known values; cost\_unknown counts rows excluded from that sum. Null success is not a failed call. outcome=failed selects failed starts; their IDs can begin failed:. A retained call\_summary can still be present, so treat the result as private account data.

For recording availability and temporary download access, use [Get a call recording](https://docs.nixflex.com/api-reference/calls/get-calls-id-recording.md).

## 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 |
| - | - | - |
| `data` | array of object | Page of matching retained call metadata. |
| `data[].call_id` | string | Call identifier. Failed starts can use the failed: prefix. |
| `data[].id` | string | Row ID of this call record (UUID) when present. Use `call_id` to identify the call in requests. Format: uuid. |
| `data[].agent_id` | string or null | Agent identifier, if retained. |
| `data[].from_number` | string or null | Origin number, if retained. |
| `data[].to_number` | string or null | Destination number, if retained. |
| `data[].call_type` | string or null | Call channel/type, such as inbound, outbound or web. |
| `data[].call_direction` | string or null | Direction recorded for the call. |
| `data[].call_status` | string or null | Recorded lifecycle state; unknown future states must be tolerated. |
| `data[].duration_ms` | integer or null | Connected duration in milliseconds; not elapsed ringing time or proof of billed time. |
| `data[].created_at` | string or null | Creation time when retained. Format: date-time. |
| `data[].start_timestamp` | integer or null | Start time in Unix milliseconds. |
| `data[].end_timestamp` | integer or null | End time in Unix milliseconds. |
| `data[].answered_at` | integer or null | Answer time in Unix milliseconds, when known. |
| `data[].ended_reason` | string or null | Recorded end/failure reason. A null value is unknown, not success. |
| `data[].call_successful` | boolean or null | Assessment of success. Null means unknown. |
| `data[].caller_sentiment` | string or null | Post-call sentiment, if retained. |
| `data[].cost` | number or null | Stored cost value. Null must remain unknown. |
| `data[].charged_minutes` | number or null | Stored charged-minute value, when known. |
| `data[].campaign_id` | string or null | Associated campaign, if any. |
| `data[].test_requested_by` | string or null | Retained test source marker, if any. |
| `data[].caller_name` | string or null | Caller name, if retained. |
| `data[].payload_deleted_at` | string or null | Time content was erased. Format: date-time. |
| `data[].payload_deleted_reason` | string or null | Recorded erasure reason. |
| `data[].payload_in_own_storage` | boolean or null | Whether payload was stored in account-connected storage; its current contents are not inspected. |
| `data[].call_retention_days` | integer or null | Retention policy recorded for this call. |
| `data[].payload_scheduled_for_deletion` | boolean | Content is hidden while deletion processing finishes. |
| `data[].call_summary` | string or null | Retained summary; can be absent or null. |
| `data[].recording_availability` | string or null | Stored recording processing state. |
| `data[].recording_availability_reason` | string or null | Stored recording processing reason. |
| `totals` | object | Saved value. |
| `totals.total` | integer | All matching retained rows, not just this page. Minimum 0. |
| `totals.minutes` | number | Sum of nonnegative connected durations divided by 60,000. |
| `totals.cost` | number | Sum of known stored costs; unknown costs are counted separately. |
| `totals.cost_unknown` | integer | Matching rows whose cost is unknown. Minimum 0. |
| `totals.successful` | integer | Matching rows whose success flag is true. Minimum 0. |
| `filters` | object | Saved value. |
| `filters.direction` | string | Filter by direction. Allowed: `"all"`, `"inbound"`, `"outbound"`, `"web"`. |
| `filters.source` | string | Filter by source. Allowed: `"all"`, `"campaign"`, `"web"`, `"test"`, `"other"`. |
| `filters.outcome` | string | Filter by outcome. Allowed: `"all"`, `"successful"`, `"unsuccessful"`, `"unknown"`, `"failed"`. |
| `filters.period` | string | UTC time range: today starts at UTC midnight; week is the preceding 7 days; month the preceding 30 days. Allowed: `"all"`, `"today"`, `"week"`, `"month"`. |
| `filters.agent` | string | Agent ID, or all. This is agent, not agent\_id. Maximum 200 characters. |
| `filters.number` | string | Business number, or all; use + in E.164 and encode it in the query. Maximum 80 characters. |
| `filters.search` | string | Trimmed literal search in caller name, call ID and phone numbers. Control characters are invalid. Maximum 120 characters. |
| `filters.since` | string or null | Optional ISO timestamp with a time zone. Overrides the period start; must not be after until. Maximum 40 characters. Format: date-time. |
| `filters.until` | string | Optional ISO timestamp with a time zone; defaults to request time. Maximum 40 characters. Format: date-time. |
| `limit` | integer | Applied page limit. |
| `offset` | integer | Applied offset; zero during cursor continuation. |
| `has_more` | boolean | Whether another page exists. |
| `next_cursor` | string or null | Opaque continuation, or null at the end. |

## Example request

Raw HTTP base URL: `https://api.nixflex.com/v1`. Node and Python SDK base URL: `https://api.nixflex.com`. The SDK adds `/v1`. Keep `NIXFLEX_API_KEY` in your private process environment. The shell examples use Bash syntax. SDK and CLI examples require Node/CLI 0.11.0 or later and Python 0.4.0 or later.

```bash cURL theme={"dark"}
curl --request GET \
  --url "https://api.nixflex.com/v1/calls/history?period=month&outcome=failed&limit=25" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY"
```

```javascript Node theme={"dark"}
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl,maxRetries:0});
const result = await client.calls.history({period:"month",outcome:"failed",limit:25});
// Handle result privately; do not log secrets or call content.
```

```python Python theme={"dark"}
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
with Nixflex(os.environ["NIXFLEX_API_KEY"], base_url=base_url,max_retries=0) as client:
    result = client.calls.history(period="month",outcome="failed",limit=25)
# AsyncNixflex supports the same calls with await (and async with).
```

```bash CLI theme={"dark"}
nixflex calls history --period month --outcome failed --limit 25 --base-url https://api.nixflex.com --json
```

## Example response

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

```json Response theme={"dark"}
{
  "data": [],
  "totals": {
    "total": 0,
    "minutes": 0,
    "cost": 0,
    "cost_unknown": 0,
    "successful": 0
  },
  "filters": {
    "direction": "all",
    "source": "all",
    "outcome": "all",
    "period": "all",
    "agent": "all",
    "number": "all",
    "search": "",
    "since": null,
    "until": "2026-11-01T12:00:00.000Z"
  },
  "limit": 1,
  "offset": 0,
  "has_more": false,
  "next_cursor": null
}
```

## 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_call_history`](https://docs.nixflex.com/api-reference/errors#invalid_call_history) | A filter, timestamp, limit or cursor combination is invalid. | Correct the query. Continuation uses cursor and limit only. |
| 503 | [`call_data_unavailable`](https://docs.nixflex.com/api-reference/errors#call_data_unavailable) | The history snapshot could not be read safely. | Retry a bounded read; do not substitute zero totals. |
| 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 is a read-only request. Retry transient connection or server failures with bounded backoff; respect Retry-After for 429. Do not retry validation or ownership errors unchanged. A later read can return newer state.

## Related endpoints

* [List calls](https://docs.nixflex.com/api-reference/calls/list.md)
* [Get a call](https://docs.nixflex.com/api-reference/calls/get.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json GET /calls/history
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:
  /calls/history:
    get:
      tags:
        - Calls
      summary: Get call history
      description: >-
        Read a filtered call-history envelope with matching totals. History
        includes failed starts and omits transcripts, event data, extracted data
        and recording URLs. Order is created_at descending, nulls last, then row
        ID descending. The cursor binds the account, filters and first-page time
        boundary. Send only cursor and optional limit for the next page. Stop
        when has_more is false and next_cursor is null; stop on a repeated
        cursor. This is not a frozen database snapshot: later updates and
        deletion can change results.


        The default period is the preceding 30 days. Cost sums include only
        known values; cost_unknown counts rows excluded from that sum. Null
        success is not a failed call. outcome=failed selects failed starts;
        their IDs can begin failed:. A retained call_summary can still be
        present, so treat the result as private account data.


        <span id="history-without-changing-old-clients"></span>

        <span id="recording-status-and-download"></span>

        <span id="kits"></span>

        For recording availability and temporary download access, use [Get a
        call recording](/api-reference/calls/get-calls-id-recording).
      operationId: callHistory
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            description: >-
              Strict integer page size; signs, fractions and leading zeros are
              refused.
            minimum: 1
            maximum: 200
            default: 50
          description: >-
            Strict integer page size; signs, fractions and leading zeros are
            refused.
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            description: >-
              Offset for the first page only. Prefer the returned cursor for
              continuation.
            minimum: 0
            maximum: 1000000
            default: 0
          description: >-
            Offset for the first page only. Prefer the returned cursor for
            continuation.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            description: >-
              Opaque continuation cursor, up to 4096 characters. With cursor,
              send only limit; do not repeat filters or a nonzero offset.
            maxLength: 4096
          description: >-
            Opaque continuation cursor, up to 4096 characters. With cursor, send
            only limit; do not repeat filters or a nonzero offset.
        - name: direction
          in: query
          required: false
          schema:
            type: string
            description: Filter by direction.
            enum:
              - all
              - inbound
              - outbound
              - web
            default: all
          description: Filter by direction.
        - name: source
          in: query
          required: false
          schema:
            type: string
            description: Filter by source.
            enum:
              - all
              - campaign
              - web
              - test
              - other
            default: all
          description: Filter by source.
        - name: outcome
          in: query
          required: false
          schema:
            type: string
            description: Filter by outcome.
            enum:
              - all
              - successful
              - unsuccessful
              - unknown
              - failed
            default: all
          description: Filter by outcome.
        - name: period
          in: query
          required: false
          schema:
            type: string
            description: >-
              UTC time range: today starts at UTC midnight; week is the
              preceding 7 days; month the preceding 30 days.
            enum:
              - all
              - today
              - week
              - month
            default: month
          description: >-
            UTC time range: today starts at UTC midnight; week is the preceding
            7 days; month the preceding 30 days.
        - name: agent
          in: query
          required: false
          schema:
            type: string
            description: Agent ID, or all. This is agent, not agent_id.
            maxLength: 200
            default: all
          description: Agent ID, or all. This is agent, not agent_id.
        - name: number
          in: query
          required: false
          schema:
            type: string
            description: >-
              Business number, or all; use + in E.164 and encode it in the
              query.
            maxLength: 80
            default: all
          description: Business number, or all; use + in E.164 and encode it in the query.
        - name: search
          in: query
          required: false
          schema:
            type: string
            description: >-
              Trimmed literal search in caller name, call ID and phone numbers.
              Control characters are invalid.
            maxLength: 120
            default: ''
          description: >-
            Trimmed literal search in caller name, call ID and phone numbers.
            Control characters are invalid.
        - name: since
          in: query
          required: false
          schema:
            type: string
            description: >-
              Optional ISO timestamp with a time zone. Overrides the period
              start; must not be after until.
            format: date-time
            maxLength: 40
          description: >-
            Optional ISO timestamp with a time zone. Overrides the period start;
            must not be after until.
        - name: until
          in: query
          required: false
          schema:
            type: string
            description: Optional ISO timestamp with a time zone; defaults to request time.
            format: date-time
            maxLength: 40
          description: Optional ISO timestamp with a time zone; defaults to request time.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        call_id:
                          type: string
                          description: >-
                            Call identifier. Failed starts can use the failed:
                            prefix.
                        id:
                          type: string
                          description: >-
                            Row ID of this call record (UUID) when present. Use
                            `call_id` to identify the call in requests.
                          format: uuid
                        agent_id:
                          type:
                            - string
                            - 'null'
                          description: Agent identifier, if retained.
                        from_number:
                          type:
                            - string
                            - 'null'
                          description: Origin number, if retained.
                        to_number:
                          type:
                            - string
                            - 'null'
                          description: Destination number, if retained.
                        call_type:
                          type:
                            - string
                            - 'null'
                          description: Call channel/type, such as inbound, outbound or web.
                        call_direction:
                          type:
                            - string
                            - 'null'
                          description: Direction recorded for the call.
                        call_status:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Recorded lifecycle state; unknown future states must
                            be tolerated.
                        duration_ms:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Connected duration in milliseconds; not elapsed
                            ringing time or proof of billed time.
                        created_at:
                          type:
                            - string
                            - 'null'
                          description: Creation time when retained.
                          format: date-time
                        start_timestamp:
                          type:
                            - integer
                            - 'null'
                          description: Start time in Unix milliseconds.
                        end_timestamp:
                          type:
                            - integer
                            - 'null'
                          description: End time in Unix milliseconds.
                        answered_at:
                          type:
                            - integer
                            - 'null'
                          description: Answer time in Unix milliseconds, when known.
                        ended_reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Recorded end/failure reason. A null value is
                            unknown, not success.
                        call_successful:
                          type:
                            - boolean
                            - 'null'
                          description: Assessment of success. Null means unknown.
                        caller_sentiment:
                          type:
                            - string
                            - 'null'
                          description: Post-call sentiment, if retained.
                        cost:
                          type:
                            - number
                            - 'null'
                          description: Stored cost value. Null must remain unknown.
                        charged_minutes:
                          type:
                            - number
                            - 'null'
                          description: Stored charged-minute value, when known.
                        campaign_id:
                          type:
                            - string
                            - 'null'
                          description: Associated campaign, if any.
                        test_requested_by:
                          type:
                            - string
                            - 'null'
                          description: Retained test source marker, if any.
                        caller_name:
                          type:
                            - string
                            - 'null'
                          description: Caller name, if retained.
                        payload_deleted_at:
                          type:
                            - string
                            - 'null'
                          description: Time content was erased.
                          format: date-time
                        payload_deleted_reason:
                          type:
                            - string
                            - 'null'
                          description: Recorded erasure reason.
                        payload_in_own_storage:
                          type:
                            - boolean
                            - 'null'
                          description: >-
                            Whether payload was stored in account-connected
                            storage; its current contents are not inspected.
                        call_retention_days:
                          type:
                            - integer
                            - 'null'
                          description: Retention policy recorded for this call.
                        payload_scheduled_for_deletion:
                          type: boolean
                          description: >-
                            Content is hidden while deletion processing
                            finishes.
                        call_summary:
                          type:
                            - string
                            - 'null'
                          description: Retained summary; can be absent or null.
                        recording_availability:
                          type:
                            - string
                            - 'null'
                          description: Stored recording processing state.
                        recording_availability_reason:
                          type:
                            - string
                            - 'null'
                          description: Stored recording processing reason.
                      required:
                        - call_id
                      description: >-
                        Call metadata and any retained summary. Transcript,
                        event data, extracted data and recording URLs are
                        omitted.
                      additionalProperties: true
                    description: Page of matching retained call metadata.
                  totals:
                    type: object
                    properties:
                      total:
                        type: integer
                        description: All matching retained rows, not just this page.
                        minimum: 0
                      minutes:
                        type: number
                        description: >-
                          Sum of nonnegative connected durations divided by
                          60,000.
                      cost:
                        type: number
                        description: >-
                          Sum of known stored costs; unknown costs are counted
                          separately.
                      cost_unknown:
                        type: integer
                        description: Matching rows whose cost is unknown.
                        minimum: 0
                      successful:
                        type: integer
                        description: Matching rows whose success flag is true.
                        minimum: 0
                    required:
                      - total
                      - minutes
                      - cost
                      - cost_unknown
                      - successful
                    description: ''
                    additionalProperties: false
                  filters:
                    type: object
                    properties:
                      direction:
                        type: string
                        description: Filter by direction.
                        enum:
                          - all
                          - inbound
                          - outbound
                          - web
                        default: all
                      source:
                        type: string
                        description: Filter by source.
                        enum:
                          - all
                          - campaign
                          - web
                          - test
                          - other
                        default: all
                      outcome:
                        type: string
                        description: Filter by outcome.
                        enum:
                          - all
                          - successful
                          - unsuccessful
                          - unknown
                          - failed
                        default: all
                      period:
                        type: string
                        description: >-
                          UTC time range: today starts at UTC midnight; week is
                          the preceding 7 days; month the preceding 30 days.
                        enum:
                          - all
                          - today
                          - week
                          - month
                        default: month
                      agent:
                        type: string
                        description: Agent ID, or all. This is agent, not agent_id.
                        maxLength: 200
                        default: all
                      number:
                        type: string
                        description: >-
                          Business number, or all; use + in E.164 and encode it
                          in the query.
                        maxLength: 80
                        default: all
                      search:
                        type: string
                        description: >-
                          Trimmed literal search in caller name, call ID and
                          phone numbers. Control characters are invalid.
                        maxLength: 120
                        default: ''
                      since:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Optional ISO timestamp with a time zone. Overrides the
                          period start; must not be after until.
                        format: date-time
                        maxLength: 40
                      until:
                        type: string
                        description: >-
                          Optional ISO timestamp with a time zone; defaults to
                          request time.
                        format: date-time
                        maxLength: 40
                    required:
                      - direction
                      - source
                      - outcome
                      - period
                      - agent
                      - number
                      - search
                      - since
                      - until
                    description: ''
                    additionalProperties: false
                  limit:
                    type: integer
                    description: Applied page limit.
                  offset:
                    type: integer
                    description: Applied offset; zero during cursor continuation.
                  has_more:
                    type: boolean
                    description: Whether another page exists.
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: Opaque continuation, or null at the end.
                required:
                  - data
                  - totals
                  - filters
                  - limit
                  - offset
                  - has_more
                  - next_cursor
                description: ''
                additionalProperties: false
              example:
                data: []
                totals:
                  total: 0
                  minutes: 0
                  cost: 0
                  cost_unknown: 0
                  successful: 0
                filters:
                  direction: all
                  source: all
                  outcome: all
                  period: all
                  agent: all
                  number: all
                  search: ''
                  since: null
                  until: '2026-11-01T12:00:00.000Z'
                limit: 1
                offset: 0
                has_more: false
                next_cursor: null
        '400':
          description: >-
            invalid_call_history: A filter, timestamp, limit or cursor
            combination is invalid. Correct the query. Continuation uses cursor
            and limit only.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '401':
          description: >-
            unauthorized: The credential is missing or invalid. Check the full
            account credential.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '429':
          description: >-
            rate_limit_exceeded: The account request limit was reached. Wait for
            Retry-After. Reconcile uncertain writes before resending.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '503':
          description: >-
            call_data_unavailable: The history snapshot could not be read
            safely. Retry a bounded read; do not substitute zero totals.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
      security:
        - bearerAuth: []
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.