{
  "info": {
    "_postman_id": "d55fc989-3834-528c-9d14-a6dccd92ed9c",
    "name": "Kejue API (v2026-11-09)",
    "description": "Automation-first access to Kejue Voice and Inference for API clients, CLIs, and agents. Every error uses a stable machine-readable envelope. This allowlisted contract excludes browser-session, provider-callback, and operator routes.\n\nGenerated from `api-reference/openapi.json`.\n\n**Setup**: set `apiKey` for Voice and `inferenceApiKey` for Inference (and `baseUrl` for on-prem) in the collection variables or the bundled environments.\n\n- Every POST sends `Idempotency-Key: {{$guid}}`. That's a new key on each Send; to safely *retry* one request, replace it with a fixed value.\n- Any response `ETag` is saved to `{{etag}}`. `If-Match` headers are included but disabled; enable them for conditional writes (412 `precondition_failed` means re-read first).\n- List requests store the first row's id and `next_cursor`; creates store the new id. Enable the `cursor` query param to fetch the next page.\n- Rate limit: 600 requests/key/minute; honor `Retry-After`.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "const etag = pm.response.headers.get('ETag');",
          "if (etag) pm.collectionVariables.set('etag', etag);"
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.kejue.co/v1"
    },
    {
      "key": "apiKey",
      "value": "kejue_<prefix>_<secret>"
    },
    {
      "key": "inferenceApiKey",
      "value": ""
    },
    {
      "key": "breakGlassReason",
      "value": "Investigating customer complaint (ticket #1234)"
    },
    {
      "key": "etag",
      "value": ""
    },
    {
      "key": "nextCursor",
      "value": ""
    },
    {
      "key": "callId",
      "value": ""
    },
    {
      "key": "agentId",
      "value": ""
    },
    {
      "key": "contactId",
      "value": ""
    },
    {
      "key": "apiKeyId",
      "value": ""
    },
    {
      "key": "sipTrunkId",
      "value": ""
    },
    {
      "key": "webhookId",
      "value": ""
    },
    {
      "key": "piiAccessRequestId",
      "value": ""
    },
    {
      "key": "inferenceRequestId",
      "value": ""
    },
    {
      "key": "inferenceVoiceId",
      "value": ""
    },
    {
      "key": "inferenceKeyId",
      "value": ""
    },
    {
      "key": "inferenceUploadId",
      "value": ""
    },
    {
      "key": "inferenceJobId",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Inference",
      "item": [
        {
          "name": "Create a resumable audio upload",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/uploads",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "uploads"
              ]
            },
            "description": "**Create a resumable audio upload**\n\nCreates an organization-owned, bounded multipart upload. Send the original supported audio directly to the signed storage URLs, never through the API. Uploads expire after 24 hours. Use one stable Idempotency-Key for this upload; retrying the same payload returns its identity, while changing the payload conflicts. Outstanding upload count and byte budgets are checked before storage access is issued.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 409: `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`, `inference_job_limit`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`, `inference_async_disabled`, `inference_model_unavailable`, `inference_storage_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"filename\": \"recording.mp3\",\n  \"size_bytes\": 16777216,\n  \"content_type\": \"audio/mpeg\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('inferenceUploadId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "Read upload progress",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/uploads/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "uploads",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceUploadId}}"
                }
              ]
            },
            "description": "**Read upload progress**\n\nReturns the authoritative stored-part inventory and upload expiry for this workspace. After reopening a browser, reselect the same source file and verify each existing part checksum before reusing it. The response contains no object keys or storage credentials.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 410: `inference_upload_expired`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_storage_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Abort an unused audio upload",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/uploads/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "uploads",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceUploadId}}"
                }
              ]
            },
            "description": "**Abort an unused audio upload**\n\nRevokes this workspace\u2019s unused upload and schedules physical cleanup, including unfinished multipart parts. Once attached to a transcription job, delete the job instead. An unknown or another workspace\u2019s upload has the same not-found response.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 409: `conflict`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_storage_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Sign audio upload parts",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/uploads/:id/parts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "uploads",
                ":id",
                "parts"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceUploadId}}"
                }
              ]
            },
            "description": "**Sign audio upload parts**\n\nSigns at most four exact part numbers and base64 SHA-256 checksums. Part size is 16 MiB except the final remainder. URLs last at most 15 minutes and can be refreshed while the upload is valid. Bind each PUT to its returned headers and exact bytes. Browser JavaScript must let the browser provide Content-Length. Each refresh uses a new Idempotency-Key; never forward API authorization or cookies to storage.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 409: `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 410: `inference_upload_expired`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`, `inference_async_disabled`, `inference_model_unavailable`, `inference_storage_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"parts\": [\n    {\n      \"part_number\": 1,\n      \"checksum_sha256\": \"{{inferencePartChecksum}}\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Complete an audio upload",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/uploads/:id/complete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "uploads",
                ":id",
                "complete"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceUploadId}}"
                }
              ]
            },
            "description": "**Complete an audio upload**\n\nReconciles the server-side part inventory, completes multipart storage and verifies actual object size before marking the upload ready. Send an empty JSON object and one stable Idempotency-Key across retries. Caller-provided ETags and multipart ETags are not accepted as whole-file SHA-256 proofs. A ready upload can be attached to one transcription job.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 409: `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 410: `inference_upload_expired`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`, `inference_async_disabled`, `inference_model_unavailable`, `inference_storage_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Submit an asynchronous transcription job",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/transcription-jobs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "transcription-jobs"
              ]
            },
            "description": "**Submit an asynchronous transcription job**\n\nSubmits one ready upload to a published STT model with supports_async enabled. Accepted original audio is at most 18,000 seconds inclusive and 5 GiB, within the model\u2019s separate limits. The server validates decoded samples before reserving the full duration in the STT wallet. Invalid audio is uncharged; insufficient credit enters awaiting_credits without GPU work. Jobs survive client disconnects and ordinary browser session expiry. Word timing is opt-in acoustic forced alignment in a qualified language, with explicit null timings for unaligned words. Use a stable Idempotency-Key for one logical job.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `inference_model_not_found`, `not_found`; 408: `request_timeout`; 409: `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`, `inference_job_limit`; 410: `inference_upload_expired`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `inference_unsupported_timestamps`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`, `inference_async_disabled`, `inference_model_unavailable`, `inference_storage_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"upload_id\": \"{{inferenceUploadId}}\",\n  \"model\": \"kejue-stt\",\n  \"language\": \"ar\",\n  \"timestamp_granularity\": \"word\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('inferenceJobId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "List transcription jobs",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/transcription-jobs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "transcription-jobs"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "25",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "validating",
                  "disabled": true
                }
              ]
            },
            "description": "**List transcription jobs**\n\nLists this workspace\u2019s durable job metadata, newest first. Follow next_cursor until null. Metadata contains state, progress, deadlines, charged request identity and result expiry without transcript content or storage references. Poll with backoff; completion time includes preparation, queueing, recognition and optional alignment.\n\nRequired permission: `inference-stt:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('inferenceJobId')) pm.collectionVariables.set('inferenceJobId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Read a transcription job",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/transcription-jobs/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "transcription-jobs",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceJobId}}"
                }
              ]
            },
            "description": "**Read a transcription job**\n\nReads workspace-scoped job status, preparation or processing phase, committed progress and result expiry. Unknown and unauthorized IDs both return not_found. Disabling admission does not remove existing job metadata, retained results, cancellation or deletion.\n\nRequired permission: `inference-stt:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Delete transcription content",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/transcription-jobs/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "transcription-jobs",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceJobId}}"
                }
              ]
            },
            "description": "**Delete transcription content**\n\nCancels outstanding work and immediately revokes access to source audio, intermediate audio and transcript content. Physical storage cleanup is durable and retried after logical deletion; unfinished uploads and abandoned generations are included. Authorized billing and audit metadata remain. Already downloaded content cannot be recalled.\n\nRequired permission: `inference-stt:delete`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Read a transcription result",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/transcription-jobs/:id/result",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "transcription-jobs",
                ":id",
                "result"
              ],
              "query": [
                {
                  "key": "format",
                  "value": "json",
                  "disabled": true
                },
                {
                  "key": "reason",
                  "value": "{{breakGlassReason}}",
                  "description": "Sensitive-content access justification when required by workspace policy.",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceJobId}}"
                }
              ]
            },
            "description": "**Read a transcription result**\n\nRetrieves an authorized, audited, decrypted transcript as JSON or plain text. Requires transcription read and sensitive-content access under the workspace policy. Only committed output can be returned: unfinished jobs may have an explicit partial result with gaps, never inferred content. Returns 409 before any output and 410 at expiry or logical deletion. Word offsets are integer milliseconds from the original audio start; unaligned words have null start/end, and chunk ranges are coarse audio ownership intervals. Retained transcript content expires seven days after termination, shortened by stricter workspace retention.\n\nRequired permission: `inference-stt:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `pii_access_approval_required`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 409: `inference_result_not_ready`; 410: `inference_content_expired`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `pii_access_mode_unavailable`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_storage_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Retry a job credit reservation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/transcription-jobs/:id/resume",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "transcription-jobs",
                ":id",
                "resume"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceJobId}}"
                }
              ]
            },
            "description": "**Retry a job credit reservation**\n\nReattempts a full-duration STT wallet reservation for a prepared awaiting_credits job without reuploading. The original processing deadline still applies. Async holds share the STT balance but do not consume interactive session concurrency. Repeated state transitions cannot charge audio twice.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 402: `inference_quota_exhausted`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 409: `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`, `inference_async_disabled`, `inference_model_unavailable`, `inference_storage_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Cancel remaining transcription work",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/transcription-jobs/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "transcription-jobs",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceJobId}}"
                }
              ]
            },
            "description": "**Cancel remaining transcription work**\n\nFences further dispatch and late results, then settles only unique committed audio intervals and releases the remaining reservation. Already committed partial results remain retrievable until expiry. Recognition or alignment retries never add another customer charge. Repeating cancellation is safe.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `not_found`; 408: `request_timeout`; 409: `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List published Inference model names",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/models",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "models"
              ]
            },
            "description": "**List published Inference model names**\n\nList published Inference model names STT models advertise asynchronous file-job support, a separate maximum original-file size and audio duration, timestamp granularities, and qualified alignment languages. Check these capabilities before uploading long recordings.\n\nRequired permission: `inference-models:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('inferenceRequestId')) pm.collectionVariables.set('inferenceRequestId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "List approved voices for a model",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/voices?model=string",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "voices"
              ],
              "query": [
                {
                  "key": "model",
                  "value": "string"
                }
              ]
            },
            "description": "**List approved voices for a model**\n\nList approved voices for a model\n\nRequired permission: `inference-voices:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `inference_model_not_found`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('inferenceVoiceId')) pm.collectionVariables.set('inferenceVoiceId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Play a cached voice sample",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/voices/:id/sample?model=string",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "voices",
                ":id",
                "sample"
              ],
              "query": [
                {
                  "key": "model",
                  "value": "string"
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceVoiceId}}"
                }
              ]
            },
            "description": "**Play a cached voice sample**\n\nPlay a cached voice sample\n\nRequired permission: `inference-voices:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `inference_model_not_found`, `not_found`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Read Inference balances and concurrency",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/limits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "limits"
              ]
            },
            "description": "**Read Inference balances and concurrency**\n\nRead Inference balances and concurrency\n\nRequired permission: `inference-usage:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('inferenceRequestId')) pm.collectionVariables.set('inferenceRequestId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Read Inference usage and recent requests",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "usage"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "7",
                  "disabled": true
                }
              ]
            },
            "description": "**Read Inference usage and recent requests**\n\nRead Inference usage and recent requests\n\nRequired permission: `inference-usage:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('inferenceRequestId')) pm.collectionVariables.set('inferenceRequestId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Read durable Inference request status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/requests/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "requests",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceRequestId}}"
                }
              ]
            },
            "description": "**Read durable Inference request status**\n\nRead durable Inference request status\n\nRequired permission: `inference-usage:read`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Stream synthesized speech",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/audio/speech",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "audio",
                "speech"
              ]
            },
            "description": "**Stream synthesized speech**\n\nSends raw little-endian PCM16 mono at 16 kHz as audio is produced. Use a dedicated Inference key. The Idempotency-Key identifies one computation; a repeated key returns 409 without rerunning or replaying audio. Text to speech is charged by the input length in characters; the whole input is reserved at admission (402 if the balance is short) and charged once audio starts; nothing is charged if no audio is produced. Audio length never changes the charge. Output is capped by the model's audio limit and the optional max_audio_seconds, as a safety limit. Inspect X-Kejue-Inference-Status trailer (completed/error/cancelled) and GET /inference/requests/{id}; a 200 or EOF alone cannot prove completion. output_limit indicates output stopped at the audio cap. Audio content is never retained.\n\nRequired permission: `inference-tts:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 402: `inference_quota_exhausted`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `inference_model_not_found`, `inference_voice_not_found`; 408: `request_timeout`; 409: `inference_request_exists`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `inference_concurrency_exhausted`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 502: `inference_upstream_failed`; 503: `authentication_unavailable`, `inference_capacity_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"kejue-tts\",\n  \"voice\": \"{{inferenceVoiceId}}\",\n  \"input\": \"Welcome to Kejue.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Transcribe an audio file",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/audio/transcriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "audio",
                "transcriptions"
              ]
            },
            "description": "**Transcribe an audio file**\n\nAccepts PCM16 mono 16 kHz WAV audio up to the published model limit and at most 300 seconds. Accepted input duration is charged once dispatched, including partial failures; pre-dispatch refusals release the reservation. A repeated Idempotency-Key returns 409 without recomputation. Audio and transcript content are not retained by the usage ledger.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 402: `inference_quota_exhausted`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `inference_model_not_found`; 408: `request_timeout`; 409: `inference_request_exists`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `inference_concurrency_exhausted`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 502: `inference_upstream_failed`; 503: `authentication_unavailable`, `inference_capacity_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "model",
                  "type": "text",
                  "value": "kejue-stt"
                },
                {
                  "key": "language",
                  "type": "text",
                  "value": "en"
                },
                {
                  "key": "file",
                  "type": "file",
                  "src": null
                }
              ]
            }
          }
        },
        {
          "name": "Mint a one-use live session token",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/realtime-tokens",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "realtime-tokens"
              ]
            },
            "description": "**Mint a one-use live session token**\n\nMint a token for browser clients without exposing a long-lived key. Backend clients can instead authenticate directly on either realtime WebSocket with an Inference API key in the Authorization Bearer header. Requires an Inference API key or an authorized browser session. The model decides the session. A speech-to-text model opens a live transcription socket (needs inference-stt:create), a TTS model a live speech socket (needs inference-tts:create and an approved voice). Returns a one-use token valid for 30 seconds and the absolute wss:// URL to connect to with ?token=\u2026; never place a long-lived key in a WebSocket URL. Each successful POST mints a fresh token. Credit (audio minutes for speech to text, a character budget for text to speech) is reserved only when connecting.\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `inference_model_not_found`, `inference_voice_not_found`; 408: `request_timeout`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"kejue-stt\",\n  \"language\": \"en\",\n  \"max_audio_seconds\": 60\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('inferenceRequestId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "Connect a live transcription session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/audio/transcriptions/realtime",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "audio",
                "transcriptions",
                "realtime"
              ],
              "query": [
                {
                  "key": "token",
                  "value": "string",
                  "description": "One-use browser token. Omit when authenticating with an API key.",
                  "disabled": true
                },
                {
                  "key": "model",
                  "value": "string",
                  "description": "Published STT model alias. Required with API-key authentication; omit when using a token.",
                  "disabled": true
                },
                {
                  "key": "language",
                  "value": "ar",
                  "description": "STT language with API-key authentication. Omit when using a token.",
                  "disabled": true
                },
                {
                  "key": "max_audio_seconds",
                  "value": "1",
                  "description": "Audio reservation cap with API-key authentication. Omit when using a token. 1\u2013300 (default 60) without turn detection; 1\u2013525 (default 300) with turn_detection. Always within the model limit.",
                  "disabled": true
                },
                {
                  "key": "turn_detection",
                  "value": "semantic",
                  "description": "Turn detection with API-key authentication (see InferenceTurnDetection). The model finds turns in a continuous stream and sends speech_started, speech_stopped and one final transcript per turn. Omit for the commit-driven session; omit when using a token.",
                  "disabled": true
                },
                {
                  "key": "td_silence_ms",
                  "value": "100",
                  "description": "Silence before a verdict (semantic) or before the turn ends (vad), in milliseconds. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_max_silence_ms",
                  "value": "200",
                  "description": "Semantic backstop in milliseconds; at least td_silence_ms. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_threshold",
                  "value": "0",
                  "description": "Turn-model completion probability (semantic). Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_min_speech_ms",
                  "value": "0",
                  "description": "Voice needed before a turn opens, in milliseconds. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_prefix_padding_ms",
                  "value": "0",
                  "description": "Audio kept from before the detected start of speech, in milliseconds. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_vad_threshold",
                  "value": "0",
                  "description": "Speech probability above which a frame counts as voice. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_idle_ms",
                  "value": "0",
                  "description": "Ends an open turn when no audio arrives for this long; 0 turns it off. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_no_speech_logprob",
                  "value": "-10",
                  "description": "Mean token log-probability below which a turn is reported as no speech. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_incomplete_threshold",
                  "value": "0",
                  "description": "With semantic turn detection, an end-of-turn probability below this counts as clearly unfinished and extends the wait by td_incomplete_extend_ms; 0 turns it off. Must not exceed td_threshold. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                },
                {
                  "key": "td_incomplete_extend_ms",
                  "value": "0",
                  "description": "Extra silence allowed after the speaker's last word when the end-of-turn model judges the sentence clearly unfinished. Requires turn_detection. API-key authentication only.",
                  "disabled": true
                }
              ]
            },
            "description": "**Connect a live transcription session**\n\nConnect directly from a backend with an Inference API key in the Authorization Bearer header and model, language (ar, en or auto; default ar), and max_audio_seconds (1\u2013300; default 60, within the model limit) query parameters. Add turn_detection (semantic or vad) and optional td_* parameters for turn detection, the same option and ranges as the token body's turn_detection object (td_silence_ms is its silence_ms, and so on); with it max_audio_seconds is 1\u2013525 (default 300). For browsers, mint a one-use token with POST /inference/realtime-tokens and connect using only the token query parameter. Do not combine token and Authorization or send a long-lived key in the URL. Send binary PCM16 mono 16 kHz frames (at most 64 KiB). Send {\"type\":\"commit\"} to finalize a segment or {\"type\":\"finish\"} to finalize and close. Events contain type ready/transcript/finished/error; transcript carries final text (refining interim hypotheses are not supported). With turn detection on (token or query parameters), stream audio continuously and the model ends turns itself. Extra events speech_started {segment, audio_start_ms} and speech_stopped {segment, audio_end_ms} (milliseconds of session audio) mark each turn, and each final transcript also carries end_of_turn {reason, probability, audio_end_ms, silence_ms} and no_speech true when the turn held no speech. reason is semantic, silence, max_silence, commit, idle or max_turn. Send commit before finish if a turn may still be open. A model build without turn detection answers with an error event, code turn_detection_unavailable. Accepted audio is charged, with the session bounded by reserved minutes and the published limit. A session that receives nothing for 30 seconds before finish gets an error event with code idle_timeout and closes with 1008. Close codes are 1000 after finished, 1008 for idle_timeout, audio_limit_reached or invalid_message, 1011 when the model fails. Sessions last at most 9 minutes. When using a token, it is consumed on the first connection attempt. Credentials, options, permissions, and available minutes are checked before the upgrade; each direct connection creates a new session.\n\nRequired permission: `inference-stt:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 402: `inference_quota_exhausted`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `inference_model_not_found`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `inference_concurrency_exhausted`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_capacity_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Connect a live speech session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/audio/speech/realtime",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "audio",
                "speech",
                "realtime"
              ],
              "query": [
                {
                  "key": "token",
                  "value": "string",
                  "description": "One-use browser token. Omit when authenticating with an API key.",
                  "disabled": true
                },
                {
                  "key": "model",
                  "value": "string",
                  "description": "Published TTS model alias. Required with API-key authentication; omit when using a token.",
                  "disabled": true
                },
                {
                  "key": "voice",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Approved voice UUID. Required with API-key authentication; omit when using a token.",
                  "disabled": true
                },
                {
                  "key": "max_characters",
                  "value": "10000",
                  "description": "Character budget reserved for the session with API-key authentication. Omit when using a token.",
                  "disabled": true
                },
                {
                  "key": "max_audio_seconds",
                  "value": "600",
                  "description": "Cap on the speech the session may produce, with API-key authentication. A safety limit; it does not change what is charged. Omit when using a token.",
                  "disabled": true
                }
              ]
            },
            "description": "**Connect a live speech session**\n\nConnect directly from a backend with an Inference API key in the Authorization Bearer header and model, voice (approved UUID), and optionally max_characters (1\u2013100000; default 10000) and max_audio_seconds (1\u2013600; default 600) query parameters. For browsers, mint a one-use token with POST /inference/realtime-tokens and connect using only the token query parameter. Do not combine token and Authorization or send a long-lived key in the URL. TTS does not accept language. The model connection opens once, at connect, so every utterance skips connection setup. Send {\"type\":\"speak\",\"text\":\u2026} (1\u20138000 characters) for each utterance; utterances may be pipelined and are spoken in order. Audio returns as binary PCM16 mono frames at the sample_rate in the ready event, followed by {\"type\":\"done\",\"segment\":n,\"audio_ms\":\u2026} per utterance. {\"type\":\"cancel\"} drops every utterance not yet fully spoken and answers {\"type\":\"cancelled\",\"segments\":[\u2026]}; {\"type\":\"keepalive\"} holds a quiet session open; {\"type\":\"finish\"} ends the session once queued speech is done, answered by {\"type\":\"finished\"}. Each speak message is charged by its characters when accepted, against the session's max_characters budget; a message that would pass it is refused with character_limit_reached and costs nothing. max_audio_seconds only caps the speech produced. With nothing queued and nothing received for 60 seconds the session gets an error event with code idle_timeout and closes with 1008. Close codes are 1000 after finished, 1008 for idle_timeout, audio_limit_reached, character_limit_reached or invalid_message, 1011 when the model fails. Sessions last at most 9 minutes. When using a token, it is consumed on the first connection attempt. Credentials, options, permissions, and available minutes are checked before the upgrade; each direct connection creates a new session.\n\nRequired permission: `inference-tts:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 402: `inference_quota_exhausted`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `entitlement_required`, `forbidden`, `team_not_connected`; 404: `inference_model_not_found`, `inference_voice_not_found`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `inference_concurrency_exhausted`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`, `inference_capacity_unavailable`, `inference_model_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "List API keys",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/api-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "api-keys"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "description": "Opaque pagination cursor from a previous response's next_cursor.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "Number of API keys to return.",
                  "disabled": true
                }
              ]
            },
            "description": "**List API keys**\n\nInference-only credentials for this workspace. Lists safe credential metadata in reverse creation order. Secret and hash material are never returned. Follow `next_cursor` until null for a complete traversal.\n\nRequired permission: `inference-api-keys:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('inferenceKeyId')) pm.collectionVariables.set('inferenceKeyId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Create an API key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/api-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "api-keys"
              ]
            },
            "description": "**Create an API key**\n\nInference-only credentials for this workspace. Creates a scoped credential. The `key` secret is returned in this response only and can never be retrieved again. Supplied scopes are canonicalized, and may not exceed the caller's own permissions.\n\nRequired permission: `inference-api-keys:create`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `delegation_not_allowed`, `entitlement_required`, `forbidden`, `permission_escalation`, `team_not_connected`; 408: `request_timeout`; 409: `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `response_buffer_failed`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"speech-service\",\n  \"scopes\": [\n    \"inference-models:read\",\n    \"inference-voices:read\",\n    \"inference-tts:create\",\n    \"inference-usage:read\"\n  ],\n  \"expires_in_days\": 90\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('inferenceKeyId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get an API key",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inference/api-keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "api-keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceKeyId}}"
                }
              ]
            },
            "description": "**Get an API key**\n\nInference-only credentials for this workspace. Returns safe metadata only; the credential secret is never retrievable. The strong ETag hashes the exact public JSON representation and therefore changes when last_used_at or any other emitted field changes.\n\nRequired permission: `inference-api-keys:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `forbidden`, `team_not_connected`; 404: `api_key_not_found`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Revoke an API key",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inference/api-keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inference",
                "api-keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{inferenceKeyId}}"
                }
              ]
            },
            "description": "**Revoke an API key**\n\nInference-only credentials for this workspace. Idempotently soft-revokes the credential. The metadata remains available for auditing. This operation accepts no request body.\n\nRequired permission: `inference-api-keys:delete`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_header`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `api_key_product_mismatch`, `forbidden`, `team_not_connected`; 404: `api_key_not_found`; 408: `request_timeout`; 412: `precondition_failed`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `response_buffer_failed`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{inferenceApiKey}}",
                  "type": "string"
                }
              ]
            }
          }
        }
      ],
      "description": "Use an Inference key. These are individual reference requests, not a run-all workflow. For long recordings, create an upload, sign and PUT exact parts directly to storage without API credentials, complete the upload, then create a transcription job and poll it. See /inference/async-transcription. Keep stable idempotency keys when retrying create/complete/job submission; use fresh identities for refreshed part URLs."
    },
    {
      "name": "Calls",
      "item": [
        {
          "name": "List non-eval calls",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/calls",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calls"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "description": "Opaque keyset cursor returned as next_cursor. It is bound to this endpoint's sort and direction.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "Number of calls to return.",
                  "disabled": true
                },
                {
                  "key": "agent_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "disabled": true
                },
                {
                  "key": "agent_ids",
                  "value": "[\"00000000-0000-0000-0000-000000000000\"]",
                  "description": "Repeatable agent UUID scope. Matches any listed agent; ANDed with agent_id, agent_name and other filters. At most 120 values.",
                  "disabled": true
                },
                {
                  "key": "agent_name",
                  "value": "string",
                  "disabled": true
                },
                {
                  "key": "campaign_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Restrict to calls placed by one campaign.",
                  "disabled": true
                },
                {
                  "key": "flow_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Restrict to calls that ran inside one flow.",
                  "disabled": true
                },
                {
                  "key": "group_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Restrict to calls routed through one group (any member).",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "live",
                  "disabled": true
                },
                {
                  "key": "call_id",
                  "value": "string",
                  "description": "Call-ID needle matched case-insensitively against the call UUID. `call_id_match` picks the mode and defaults to `starts_with`, so the 8-character short ID shown in the dashboard finds its call while a full UUID still matches.",
                  "disabled": true
                },
                {
                  "key": "call_id_match",
                  "value": "contains",
                  "description": "Match mode for `call_id`. Defaults to `starts_with`. Only read when `call_id` is present.",
                  "disabled": true
                },
                {
                  "key": "caller_number",
                  "value": "string",
                  "description": "Customer phone-number needle. `caller_match` picks the mode and defaults to a case-insensitive `contains`, so trailing digits still find the call. Only calls with a stored caller number match; purged and older calls have none.",
                  "disabled": true
                },
                {
                  "key": "caller_match",
                  "value": "contains",
                  "description": "Match mode for `caller_number`. Defaults to `contains`; `is` is an exact match. Only read when `caller_number` is present.",
                  "disabled": true
                },
                {
                  "key": "lifecycle_status",
                  "value": "ringing",
                  "disabled": true
                },
                {
                  "key": "outcome",
                  "value": "string",
                  "disabled": true
                },
                {
                  "key": "direction",
                  "value": "inbound",
                  "disabled": true
                },
                {
                  "key": "handled_by",
                  "value": "ai",
                  "description": "Restrict to AI-handled or ingested human-handled calls. Distinct from the session's channel, which records how the call reached the platform.",
                  "disabled": true
                },
                {
                  "key": "started_from",
                  "value": "2026-09-24T00:00:00Z",
                  "description": "Inclusive RFC3339 start time.",
                  "disabled": true
                },
                {
                  "key": "started_to",
                  "value": "2026-09-24T00:00:00Z",
                  "description": "Exclusive RFC3339 end time; must be after started_from.",
                  "disabled": true
                },
                {
                  "key": "duration_min",
                  "value": "0",
                  "disabled": true
                },
                {
                  "key": "duration_max",
                  "value": "0",
                  "disabled": true
                },
                {
                  "key": "total_duration_min",
                  "value": "0",
                  "disabled": true
                },
                {
                  "key": "total_duration_max",
                  "value": "0",
                  "disabled": true
                },
                {
                  "key": "turns_min",
                  "value": "0",
                  "disabled": true
                },
                {
                  "key": "turns_max",
                  "value": "0",
                  "disabled": true
                },
                {
                  "key": "has_recording",
                  "value": "true",
                  "disabled": true
                },
                {
                  "key": "legal_hold",
                  "value": "true",
                  "disabled": true
                },
                {
                  "key": "purged",
                  "value": "true",
                  "description": "true returns only purged tombstones; false returns only unpurged calls.",
                  "disabled": true
                },
                {
                  "key": "include_purged",
                  "value": "true",
                  "description": "Include purged tombstones when purged is omitted.",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "started_at",
                  "disabled": true
                },
                {
                  "key": "dir",
                  "value": "desc",
                  "disabled": true
                },
                {
                  "key": "ef",
                  "value": "[\"string\"]",
                  "description": "Repeatable base64url-encoded extraction-field filter object. Each encoded value is at most 4096 bytes; a request may contain at most 20. See CallExtractionFilter.",
                  "disabled": true
                },
                {
                  "key": "campaign_name",
                  "value": "string",
                  "description": "Exact-match campaign name (analysis-board drill-down). Matches every campaign with that display name.",
                  "disabled": true
                },
                {
                  "key": "channel",
                  "value": "sip_inbound",
                  "description": "How the call reached the platform. Null for rows predating the column's backfill, which therefore match no value.",
                  "disabled": true
                },
                {
                  "key": "channel_not",
                  "value": "[\"sip_inbound\"]",
                  "description": "Repeatable channel exclusion. Every exclusion is ANDed with other filters, including channel. Null channels do not match, consistent with analysis neq filters. At most six values.",
                  "disabled": true
                },
                {
                  "key": "failure_code",
                  "value": "string",
                  "description": "Exact-match failure code (analysis-board drill-down).",
                  "disabled": true
                },
                {
                  "key": "human_agent",
                  "value": "string",
                  "description": "Exact-match human-agent label. Null for AI-handled calls.",
                  "disabled": true
                },
                {
                  "key": "platform_number",
                  "value": "string",
                  "description": "Exact-match platform (our end) phone number.",
                  "disabled": true
                },
                {
                  "key": "guardrail_name",
                  "value": "string",
                  "description": "Calls with a guardrail trigger of this name. Combined with the other guardrail_* parameters into a single existence test, so all of them must describe the SAME trigger.",
                  "disabled": true
                },
                {
                  "key": "guardrail_id",
                  "value": "string",
                  "description": "Calls with a guardrail trigger of this id. See guardrail_name.",
                  "disabled": true
                },
                {
                  "key": "guardrail_severity",
                  "value": "string",
                  "description": "Calls with a guardrail trigger of this severity. See guardrail_name.",
                  "disabled": true
                },
                {
                  "key": "guardrail_set_slug",
                  "value": "string",
                  "description": "Calls with a guardrail trigger from this set. See guardrail_name.",
                  "disabled": true
                },
                {
                  "key": "tool_slug",
                  "value": "string",
                  "description": "Calls that invoked this tool. Combined with the other tool_* parameters into a single existence test, so all of them must describe the SAME invocation.",
                  "disabled": true
                },
                {
                  "key": "tool_name",
                  "value": "string",
                  "description": "Calls that invoked a tool with this display name. See tool_slug.",
                  "disabled": true
                },
                {
                  "key": "tool_kind",
                  "value": "catalog",
                  "description": "Calls that invoked a tool of this kind. See tool_slug.",
                  "disabled": true
                },
                {
                  "key": "tool_ok",
                  "value": "true",
                  "description": "Calls with a succeeding (true) or failing (false) tool invocation. See tool_slug.",
                  "disabled": true
                },
                {
                  "key": "tool_error_kind",
                  "value": "network",
                  "description": "Calls with a tool invocation that failed this way. See tool_slug.",
                  "disabled": true
                }
              ]
            },
            "description": "**List non-eval calls**\n\nReturns a cursor page of call metadata. Eval-backed sessions and purged calls are excluded by default. Query parameters are closed and singleton except `ef` (up to 20), `agent_ids` (up to 120), and `channel_not` (up to six). Unknown or duplicate singleton parameters return 400 instead of being ignored. `next_cursor` is bound to the selected sort and direction.\n\nRequired permission: `calls:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`; 503: `authentication_unavailable`"
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('callId')) pm.collectionVariables.set('callId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Get a call and its redacted artifacts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/calls/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calls",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{callId}}"
                }
              ]
            },
            "description": "**Get a call and its redacted artifacts**\n\nReturns the call, redacted transcript/tool I/O, post-call results, recordings metadata, metrics, actions, context-delivery state, and retention state. Eval-backed sessions are indistinguishable from missing calls. Purged tombstones remain readable and expose `purge_cleanup` for asynchronous deletion polling. Retry-After is present while purge cleanup, context delivery, or an embedded webhook delivery remains nonterminal.\n\nRequired permission: `calls:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `call_not_found`, `recording_not_found`, `tool_invocation_not_found`, `tool_io_raw_not_found`, `transcript_not_found`, `transcript_raw_not_found`, `turn_audio_not_found`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`, `recording_decryption_failed`, `stored_data_invalid`, `tool_io_decryption_failed`, `transcript_decryption_failed`; 503: `authentication_unavailable`, `recording_storage_unavailable`, `recording_unavailable`, `tool_io_decryption_unavailable`, `transcript_decryption_unavailable`, `turn_audio_storage_unavailable`, `turn_audio_unavailable`"
          }
        },
        {
          "name": "Purge a call's content",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calls/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calls",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{callId}}"
                }
              ]
            },
            "description": "**Purge a call's content**\n\nIdempotently removes call content and queues durable deletion of recording, SIP-PCAP, and turn-audio blobs. The call must be ended, outside all post-call processing fences, and not under legal hold. A 202 means object cleanup remains pending; the response and subsequent GET expose pollable cleanup counts.\n\nRequired permission: `calls:delete`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_header`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `call_not_found`; 408: `request_timeout`; 409: `call_not_ended`, `call_on_legal_hold`, `call_processing_in_progress`, `conflict`; 412: `precondition_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `no_org`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`"
          }
        },
        {
          "name": "Inject context into a live call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calls/:id/context",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calls",
                ":id",
                "context"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{callId}}"
                }
              ]
            },
            "description": "**Inject context into a live call**\n\nEncrypts and durably records one context message before scheduling delivery. On 202, wait for Retry-After and GET the Location call; match the returned message `id` in `data_messages` and poll `delivery_status` until `published` or `failed`.\n\nRequired permission: `calls:inject-context`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `call_not_found`; 408: `request_timeout`; 409: `call_not_live`, `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limit_exceeded`, `rate_limited`; 500: `audit_required`, `context_encryption_failed`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `no_org`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`, `context_delivery_unconfigured`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"content\": \"Caller identity verified via SMS OTP. Case #4821 status: refund approved.\",\n  \"urgency\": \"soon\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Hang up a live call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calls/:id/hangup",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calls",
                ":id",
                "hangup"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{callId}}"
                }
              ]
            },
            "description": "**Hang up a live call**\n\nDurably records hangup intent, asks the call-bound provider to terminate the live call, and returns 200 only after provider confirmation or when the call is already terminal. A scheduled reconciliation heals the related outbound job and attempt after commit. Provider failures do not falsely mark the call ended; retryable 502, 503, and 504 errors may be retried with the same Idempotency-Key as directed by error.details. Evaluation calls and calls from another workspace are deliberately indistinguishable from missing calls.\n\nRequired permission: `calls:hangup`\n\nError codes: 400: `body_read_failed`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `call_not_found`; 408: `request_timeout`; 409: `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 413: `request_too_large`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `response_buffer_failed`; 502: `call_hangup_provider_failed`; 503: `authentication_unavailable`, `call_hangup_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`; 504: `call_hangup_outcome_unknown`"
          }
        },
        {
          "name": "Download a call recording",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Range",
                "value": "string",
                "description": "One RFC 9110 byte interval. Multiple ranges are rejected with 416 and a JSON error envelope.",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calls/:id/recording",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calls",
                ":id",
                "recording"
              ],
              "query": [
                {
                  "key": "reason",
                  "value": "{{breakGlassReason}}",
                  "description": "Human audit justification, recorded on the access audit row whenever it is sent. Whether it is required depends on the workspace's sensitive-data access mode. In `reason` mode it is required (at least 8 characters) on the transcript, recording and tool-I/O reads, and omitting it returns 400. In `approval` mode a user reads under an approved access request instead (the approved request's reason is recorded), while an API key keeps the `reason` rule. In `open` mode it is optional. Per-turn audio never requires it in any mode. Control characters are rejected.",
                  "disabled": true
                },
                {
                  "key": "recording_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Exact recording row. Mutually exclusive with role, leg, and segment_index.",
                  "disabled": true
                },
                {
                  "key": "role",
                  "value": "agent",
                  "disabled": true
                },
                {
                  "key": "leg",
                  "value": "caller",
                  "disabled": true
                },
                {
                  "key": "segment_index",
                  "value": "0",
                  "disabled": true
                },
                {
                  "key": "download",
                  "value": "false",
                  "description": "Use attachment rather than inline Content-Disposition.",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{callId}}"
                }
              ]
            },
            "description": "**Download a call recording**\n\nBreak-glass read of a KMS-encrypted recording. `reason`, when sent, is written to the audit log; see the parameter for when it is required. Select either one exact `recording_id`, or a role/leg/segment tuple; mixing these selectors returns 400. Supports exactly one HTTP byte range and always returns the canonical JSON error envelope on failure.\n\nRequired permission: `calls:download-recording`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `call_not_found`, `recording_not_found`, `tool_invocation_not_found`, `tool_io_raw_not_found`, `transcript_not_found`, `transcript_raw_not_found`, `turn_audio_not_found`; 408: `request_timeout`; 409: `conflict`, `recording_failed`, `recording_not_ready`; 410: `recording_blob_missing`, `turn_audio_expired`; 416: `invalid_range`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`, `recording_decryption_failed`, `stored_data_invalid`, `tool_io_decryption_failed`, `transcript_decryption_failed`; 503: `authentication_unavailable`, `recording_storage_unavailable`, `recording_unavailable`, `tool_io_decryption_unavailable`, `transcript_decryption_unavailable`, `turn_audio_storage_unavailable`, `turn_audio_unavailable`"
          }
        },
        {
          "name": "Read raw transcript",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/calls/:id/transcript-raw",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calls",
                ":id",
                "transcript-raw"
              ],
              "query": [
                {
                  "key": "reason",
                  "value": "{{breakGlassReason}}",
                  "description": "Human audit justification, recorded on the access audit row whenever it is sent. Whether it is required depends on the workspace's sensitive-data access mode. In `reason` mode it is required (at least 8 characters) on the transcript, recording and tool-I/O reads, and omitting it returns 400. In `approval` mode a user reads under an approved access request instead (the approved request's reason is recorded), while an API key keeps the `reason` rule. In `open` mode it is optional. Per-turn audio never requires it in any mode. Control characters are rejected.",
                  "disabled": true
                },
                {
                  "key": "leg",
                  "value": "caller",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{callId}}"
                }
              ]
            },
            "description": "**Read raw transcript**\n\nBreak-glass read of the newest KMS-encrypted unredacted transcript for one call leg. The reason is audited; ordinary GET /calls/{id} returns only the redacted transcript.\n\nRequired permission: `pii-access:unmask`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `call_not_found`, `recording_not_found`, `tool_invocation_not_found`, `tool_io_raw_not_found`, `transcript_not_found`, `transcript_raw_not_found`, `turn_audio_not_found`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`, `recording_decryption_failed`, `stored_data_invalid`, `tool_io_decryption_failed`, `transcript_decryption_failed`; 503: `authentication_unavailable`, `recording_storage_unavailable`, `recording_unavailable`, `tool_io_decryption_unavailable`, `transcript_decryption_unavailable`, `turn_audio_storage_unavailable`, `turn_audio_unavailable`"
          }
        }
      ],
      "description": "Call history, live-call control (context injection, hangup) and the break-glass artifacts. `recording` and `transcript-raw` require a `reason` (8\u2013500 chars) and are audited; set `breakGlassReason` in the environment. Use **Send and Download** for recordings (audio/ogg)."
    },
    {
      "name": "Agents",
      "item": [
        {
          "name": "List agents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "description": "Opaque pagination cursor from a previous response's next_cursor.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "1",
                  "description": "Page size (endpoint-bounded; typical default 25, max 100).",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "string",
                  "description": "Case-insensitive substring search over agent slug and name.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "2026-09-24T00:00:00Z",
                  "description": "Inclusive creation-time lower bound. A YYYY-MM-DD date is also accepted as midnight UTC.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "2026-09-24T00:00:00Z",
                  "description": "Exclusive creation-time upper bound. Must be later than created_from.",
                  "disabled": true
                },
                {
                  "key": "mode",
                  "value": "pathway",
                  "disabled": true
                },
                {
                  "key": "archived",
                  "value": "exclude",
                  "disabled": true
                }
              ]
            },
            "description": "**List agents**\n\nReturns a cursor-paginated organization-scoped page ordered by creation time and ID, newest first. Cursors are bound to this endpoint and filter set. Use archived=include or archived=only when an archived aggregate must remain discoverable. mode, pipeline_topology, and node_count are derived from the effective version in strict production\u2192staging\u2192draft precedence; they do not necessarily describe a newer unpromoted draft when production exists.\n\nRequired permission: `agents:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`; 503: `authentication_unavailable`"
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('agentId')) pm.collectionVariables.set('agentId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Create an agent and its mutable draft",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents"
              ]
            },
            "description": "**Create an agent and its mutable draft**\n\nCreates the aggregate at revision 1 and seeds exactly one mutable draft. Use the returned Location for the canonical agent representation and its ETag for conditional follow-up writes.\n\nRequired permission: `agents:create`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `empty_body`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 409: `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`, `slug_taken`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `agent_baseline_too_large`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `response_buffer_failed`; 503: `agent_capacity_exhausted`, `authentication_unavailable`, `capacity_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"slug\": \"billing_assistant\",\n  \"name\": \"Billing Assistant\",\n  \"mode\": \"prompt\",\n  \"prompt\": \"Help {{lead_name}} resolve their billing question. Never request a secret; use call {{system.call_id}} for support correlation.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('agentId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get an agent aggregate",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/agents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{agentId}}"
                }
              ]
            },
            "description": "**Get an agent aggregate**\n\nReturns metadata, mutable draft, deployment pointers, and compact immutable history from one coherent aggregate snapshot. Use the strong ETag on any subsequent agent mutation.\n\nRequired permission: `agents:read`\n\nError codes: 400: `body_read_failed`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `agent_not_found`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`; 503: `authentication_unavailable`"
          }
        },
        {
          "name": "Update agent metadata",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/agents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{agentId}}"
                }
              ]
            },
            "description": "**Update agent metadata**\n\nRenames the agent. Same-value patches are successful semantic no-ops and retain the current revision and ETag.\n\nRequired permission: `agents:update`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `empty_body`, `invalid_header`, `invalid_json`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `multiple_json_values`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `agent_not_found`; 408: `request_timeout`; 409: `agent_archived`, `agent_state_changed`; 412: `precondition_failed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `response_buffer_failed`; 503: `authentication_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Billing and Payments Assistant\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Archive an agent",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/agents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{agentId}}"
                }
              ]
            },
            "description": "**Archive an agent**\n\nSoft-archives the aggregate. Repeating the operation is a semantic no-op and preserves the revision. Supply If-Match to prevent archiving a newer representation than the one your automation inspected.\n\nRequired permission: `agents:delete`\n\nError codes: 400: `body_read_failed`, `invalid_header`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `agent_not_found`; 408: `request_timeout`; 412: `precondition_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `response_buffer_failed`; 503: `authentication_unavailable`"
          }
        }
      ],
      "description": "`PATCH /agents/{id}` only updates metadata (rename). Prompt/config edits go through the draft \u2192 staging \u2192 deploy lifecycle, which is not part of this collection."
    },
    {
      "name": "Contacts",
      "item": [
        {
          "name": "List contacts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/contacts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "description": "Opaque pagination cursor from a previous response's next_cursor.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "string",
                  "description": "Case-insensitive substring search across E.164, display name, and company.",
                  "disabled": true
                },
                {
                  "key": "e164",
                  "value": "string",
                  "description": "Exact E.164 match. In a raw URL, encode `+` as `%2B`.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "string",
                  "description": "Inclusive created_at lower bound as RFC3339 or YYYY-MM-DD (midnight UTC).",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "string",
                  "description": "Exclusive created_at upper bound as RFC3339 or YYYY-MM-DD (midnight UTC). Must be after created_from.",
                  "disabled": true
                },
                {
                  "key": "tag_id",
                  "value": "[\"00000000-0000-0000-0000-000000000000\"]",
                  "description": "Repeat up to 20 times. A returned contact must have every supplied tag.",
                  "disabled": true
                }
              ]
            },
            "description": "**List contacts**\n\nReturns contacts ordered by most recent contact activity, then ID. Repeated `tag_id` values use AND semantics. Use exact `e164` lookup when an agent must resolve one canonical contact deterministically; percent-encode the leading plus sign.\n\nRequired permission: `contacts:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`, `stored_data_invalid`; 503: `authentication_unavailable`"
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('contactId')) pm.collectionVariables.set('contactId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Create a contact",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts"
              ]
            },
            "description": "**Create a contact**\n\nCreates a directory contact and can atomically assign existing tags. The E.164 number is immutable because it is the stable key used to associate call history and memory. Use Idempotency-Key for safe retries.\n\nRequired permission: `contacts:create`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 409: `conflict`, `contact_e164_conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `no_tx`, `response_buffer_failed`, `stored_data_invalid`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"e164\": \"+12025550100\",\n  \"display_name\": \"Jane Doe\",\n  \"company\": \"Acme Corp\",\n  \"timezone\": \"Asia/Dubai\",\n  \"notes\": \"Prefers afternoon calls.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('contactId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get a contact",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/contacts/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{contactId}}"
                }
              ]
            },
            "description": "**Get a contact**\n\nReturns the canonical contact, hydrated tags, current call count, and mutable notes. The ETag changes when contact fields or tag representations change.\n\nRequired permission: `contacts:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `contact_not_found`; 408: `request_timeout`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`, `stored_data_invalid`; 503: `authentication_unavailable`"
          }
        },
        {
          "name": "Update a contact",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{contactId}}"
                }
              ]
            },
            "description": "**Update a contact**\n\nReplaces only supplied mutable fields. Set a field to an empty string to clear it. E.164 is intentionally immutable; create a different contact for a different number. Use If-Match to reject a stale read-modify-write cycle. A semantic no-op preserves `updated_at` and ETag and records `contact.update.noop`.\n\nRequired permission: `contacts:update`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `invalid_header`, `invalid_json`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `contact_not_found`; 408: `request_timeout`; 412: `precondition_failed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `no_tx`, `response_buffer_failed`, `stored_data_invalid`; 503: `authentication_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"display_name\": \"Jane A. Doe\",\n  \"company\": \"Acme Corp\",\n  \"timezone\": \"Europe/London\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete a contact",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{contactId}}"
                }
              ]
            },
            "description": "**Delete a contact**\n\nPermanently deletes the directory contact, its tag assignments, and contact memory. Existing call records remain addressable and retain their original caller number. Use If-Match to reject deletion after a concurrent change.\n\nRequired permission: `contacts:delete`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_header`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `contact_not_found`; 408: `request_timeout`; 412: `precondition_failed`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`"
          }
        }
      ]
    },
    {
      "name": "API keys",
      "item": [
        {
          "name": "List API keys",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api-keys"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "description": "Opaque pagination cursor from a previous response's next_cursor.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "Number of API keys to return.",
                  "disabled": true
                }
              ]
            },
            "description": "**List API keys**\n\nLists safe credential metadata in reverse creation order. Secret and hash material are never returned. Follow `next_cursor` until null for a complete traversal.\n\nRequired permission: `api-keys:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`"
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('apiKeyId')) pm.collectionVariables.set('apiKeyId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Create an API key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api-keys"
              ]
            },
            "description": "**Create an API key**\n\nCreates a scoped credential. The `key` secret is returned in this response only and can never be retrieved again. Supplied scopes are canonicalized, and may not exceed the caller's own permissions.\n\nRequired permission: `api-keys:create`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `delegation_not_allowed`, `forbidden`, `permission_escalation`, `team_not_connected`; 408: `request_timeout`; 409: `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `response_buffer_failed`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"reporting-integration\",\n  \"scopes\": [\n    \"calls:read\",\n    \"agents:read\"\n  ],\n  \"expires_in_days\": 90\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('apiKeyId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get an API key",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api-keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api-keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{apiKeyId}}"
                }
              ]
            },
            "description": "**Get an API key**\n\nReturns safe metadata only; the credential secret is never retrievable. The strong ETag hashes the exact public JSON representation and therefore changes when last_used_at or any other emitted field changes.\n\nRequired permission: `api-keys:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `api_key_not_found`; 408: `request_timeout`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `stored_data_invalid`; 503: `authentication_unavailable`"
          }
        },
        {
          "name": "Revoke an API key",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api-keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api-keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{apiKeyId}}"
                }
              ]
            },
            "description": "**Revoke an API key**\n\nIdempotently soft-revokes the credential. The metadata remains available for auditing. This operation accepts no request body.\n\nRequired permission: `api-keys:delete`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_header`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `api_key_not_found`; 408: `request_timeout`; 412: `precondition_failed`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `response_buffer_failed`, `stored_data_invalid`; 503: `authentication_unavailable`"
          }
        }
      ]
    },
    {
      "name": "SIP trunks",
      "item": [
        {
          "name": "List SIP trunks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sip-trunks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sip-trunks"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "description": "Opaque pagination cursor from a previous response's next_cursor.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "Number of catalog resources to return. The server fetches one extra row internally to produce next_cursor.",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "string",
                  "description": "Case-insensitive literal substring search across slug, name, and description. The supplied and trimmed values must each contain 1\u2013200 Unicode characters; blank values and every Unicode control character are rejected. Percent, underscore, and backslash are literal characters, not LIKE syntax.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "string",
                  "description": "Inclusive created_at lower bound as RFC3339 or YYYY-MM-DD (midnight UTC).",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "string",
                  "description": "Exclusive created_at upper bound as RFC3339 or YYYY-MM-DD (midnight UTC). Must be after created_from.",
                  "disabled": true
                },
                {
                  "key": "archived",
                  "value": "exclude",
                  "description": "Whether archived resources are excluded, included alongside active resources, or returned exclusively.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "provisioning",
                  "description": "Exact status filter. status=archived requires archived=include or archived=only.",
                  "disabled": true
                },
                {
                  "key": "provider",
                  "value": "sip",
                  "disabled": true
                },
                {
                  "key": "sip_signaling_mode",
                  "value": "static_peer",
                  "disabled": true
                }
              ]
            },
            "description": "**List SIP trunks**\n\nReturns the workspace's SIP trunks in deterministic reverse-creation order. Raw provider error bodies are never returned to API keys; use last_error_code and last_error for recovery decisions.\n\nRequired permission: `sip-trunks:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`; 503: `authentication_unavailable`"
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('sipTrunkId')) pm.collectionVariables.set('sipTrunkId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Create a SIP trunk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sip-trunks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sip-trunks"
              ]
            },
            "description": "**Create a SIP trunk**\n\nCreates a durable trunk row and starts asynchronous provider provisioning. Poll resource_url until status is active or error. Supply Idempotency-Key so a network retry cannot create a duplicate provider trunk.\n\nRequired permission: `sip-trunks:create`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 409: `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`, `name_taken`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal`, `internal_error`, `kms_error`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`, `credential_service_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"carrier-main\",\n  \"provider\": \"sip\",\n  \"sip_signaling_mode\": \"static_peer\",\n  \"inbound_auth_mode\": \"ip_allowlist\",\n  \"inbound_allowed_addresses\": [\n    \"203.0.113.10\"\n  ],\n  \"outbound_address\": \"sip.your-carrier.example\",\n  \"outbound_transport\": \"udp\",\n  \"outbound_auth_mode\": \"credentials\",\n  \"auth_username\": \"sonus\",\n  \"auth_password\": \"carrier-password\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('sipTrunkId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get a SIP trunk",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sip-trunks/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sip-trunks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{sipTrunkId}}"
                }
              ]
            },
            "description": "**Get a SIP trunk**\n\nReturns the complete safe configuration and provisioning state. Nullable fields are emitted as JSON null and collection fields as arrays or objects, enabling lossless agent round trips.\n\nRequired permission: `sip-trunks:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `sip_trunk_not_found`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`; 503: `authentication_unavailable`"
          }
        },
        {
          "name": "Partially update a SIP trunk",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sip-trunks/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sip-trunks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{sipTrunkId}}"
                }
              ]
            },
            "description": "**Partially update a SIP trunk**\n\nUpdates only supplied fields. Explicit null clears nullable capacity and advanced settings. Provider-facing changes are asynchronously reconciled from stored encrypted configuration, so unchanged credentials do not need to be resent.\n\nRequired permission: `sip-trunks:update`\n\nError codes: 400: `bad_request`, `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `invalid_header`, `invalid_json`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `sip_trunk_not_found`; 408: `request_timeout`; 409: `conflict`, `name_taken`, `sip_trunk_provisioning`; 412: `precondition_failed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `credential_encryption_failed`, `db_error`, `internal`, `internal_error`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`, `credential_service_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"carrier-main\",\n  \"inbound_allowed_addresses\": [\n    \"203.0.113.10\",\n    \"203.0.113.11\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Archive a SIP trunk",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sip-trunks/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sip-trunks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{sipTrunkId}}"
                }
              ]
            },
            "description": "**Archive a SIP trunk**\n\nIdempotently soft-archives a trunk and schedules provider cleanup. Returns 409 while active phone numbers still reference it. Reassign or archive those numbers first.\n\nRequired permission: `sip-trunks:delete`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_header`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `sip_trunk_not_found`; 408: `request_timeout`; 409: `conflict`, `sip_trunk_in_use`; 412: `precondition_failed`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`"
          }
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "List webhook configurations",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "description": "Opaque pagination cursor from a previous response's next_cursor.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "Number of catalog resources to return. The server fetches one extra row internally to produce next_cursor.",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "string",
                  "description": "Case-insensitive substring search across webhook name and URL.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "string",
                  "description": "Inclusive created_at lower bound as RFC3339 or YYYY-MM-DD (midnight UTC).",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "string",
                  "description": "Exclusive created_at upper bound as RFC3339 or YYYY-MM-DD (midnight UTC). Must be after created_from.",
                  "disabled": true
                },
                {
                  "key": "archived",
                  "value": "exclude",
                  "description": "Whether archived resources are excluded, included alongside active resources, or returned exclusively.",
                  "disabled": true
                },
                {
                  "key": "active",
                  "value": "true",
                  "disabled": true
                },
                {
                  "key": "event",
                  "value": "call.completed",
                  "disabled": true
                }
              ]
            },
            "description": "**List webhook configurations**\n\nReturns webhook configurations newest first. Signing secrets are never returned by list or get.\n\nRequired permission: `webhooks:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`; 503: `authentication_unavailable`"
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('webhookId')) pm.collectionVariables.set('webhookId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Create a webhook configuration",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks"
              ]
            },
            "description": "**Create a webhook configuration**\n\nCreates a public-HTTPS destination and returns its signing secret exactly once. Store the whsec_ value before discarding the response. Idempotent replay of the same POST may replay that original one-time response.\n\nRequired permission: `webhooks:create`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 409: `conflict`, `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`, `webhook_name_taken`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `no_tx`, `response_buffer_failed`, `webhook_secret_encryption_failed`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"call-events\",\n  \"url\": \"https://example.com/webhooks/kejue\",\n  \"events\": [\n    \"call.completed\"\n  ],\n  \"active\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if ([201, 202].includes(pm.response.code)) pm.collectionVariables.set('webhookId', pm.response.json().id);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get a webhook configuration",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{webhookId}}"
                }
              ]
            },
            "description": "**Get a webhook configuration**\n\nReturns one workspace webhook configuration, including archived resources, delivery-status metadata and a strong ETag, but never its signing secret or secret hash. Cross-workspace IDs are indistinguishable from missing IDs and supplying any request body is rejected.\n\nRequired permission: `webhooks:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `webhook_not_found`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`; 503: `authentication_unavailable`"
          }
        },
        {
          "name": "Update a webhook configuration",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{webhookId}}"
                }
              ]
            },
            "description": "**Update a webhook configuration**\n\nReplaces only supplied fields. An unchanged patch is a successful no-op and retains its ETag.\n\nRequired permission: `webhooks:update`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `empty_body`, `invalid_header`, `invalid_json`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `webhook_not_found`; 408: `request_timeout`; 409: `conflict`, `webhook_archived`, `webhook_name_taken`; 412: `precondition_failed`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"events\": [\n    \"call.completed\",\n    \"campaign.completed\"\n  ],\n  \"active\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Archive a webhook configuration",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "If-Match",
                "value": "{{etag}}",
                "description": "Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{webhookId}}"
                }
              ]
            },
            "description": "**Archive a webhook configuration**\n\nIdempotently archives the webhook. Active agent-version references or unexpired running deliveries return webhook_in_use. Pending and expired-lease deliveries are cancelled atomically when archival succeeds.\n\nRequired permission: `webhooks:delete`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_header`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `invalid_uuid`, `unexpected_body`, `unknown_query_parameter`, `value_too_long`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `webhook_not_found`; 408: `request_timeout`; 409: `conflict`, `webhook_in_use`; 412: `precondition_failed`; 422: `referenced_resource_missing`, `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `internal_error`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`"
          }
        }
      ]
    },
    {
      "name": "PII access requests",
      "item": [
        {
          "name": "List break-glass access requests",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/pii-access-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pii-access-requests"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "{{nextCursor}}",
                  "description": "Opaque pagination cursor from a previous response's next_cursor.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "Number of catalog resources to return. The server fetches one extra row internally to produce next_cursor.",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "string",
                  "description": "Case-insensitive search across requester email, requester display name, the stated reason, and the call ID.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "pending",
                  "description": "Filter by effective status. `expired` selects approvals whose lifetime has elapsed; those rows remain stored as `approved`.",
                  "disabled": true
                },
                {
                  "key": "call_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Only requests raised against this call.",
                  "disabled": true
                },
                {
                  "key": "requested_by",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Only requests raised by this user.",
                  "disabled": true
                },
                {
                  "key": "inference_job_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Filter access requests by an Inference transcription job. Do not combine with call_id.",
                  "disabled": true
                }
              ]
            },
            "description": "**List break-glass access requests**\n\nReturns a newest-first page of requests to read un-redacted call data. What you see depends on what you hold: a principal with `pii-access:approve` sees every request in the organization, and everyone else sees only the requests they raised themselves. Filters combine with AND and are applied in the database, so a match is found across the whole backlog rather than within the current page. Cursors are bound to this endpoint and the complete filter set. Voice API keys return call requests only and preserve the existing call response shape. The browser queue also includes Inference transcription-job requests. Job requests have null call_id and a non-null inference_job_id; call requests omit inference_job_id. Use the matching subject filter to find an existing grant.\n\nRequired permission: `pii-access:read`\n\nError codes: 400: `body_read_failed`, `duplicate_query_parameter`, `invalid_query_parameter`, `invalid_request_id`, `unexpected_body`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 408: `request_timeout`; 429: `authentication_rate_limited`, `rate_limited`; 500: `db_error`, `internal_error`, `no_tx`; 503: `authentication_unavailable`"
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (Array.isArray(j.data) && j.data.length && !pm.collectionVariables.get('piiAccessRequestId')) pm.collectionVariables.set('piiAccessRequestId', j.data[0].id);",
                  "pm.collectionVariables.set('nextCursor', j.next_cursor || '');"
                ]
              }
            }
          ]
        },
        {
          "name": "Approve or reject a break-glass access request",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/pii-access-requests/:id/decision",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pii-access-requests",
                ":id",
                "decision"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{piiAccessRequestId}}"
                }
              ]
            },
            "description": "**Approve or reject a break-glass access request**\n\nDecides a pending request. Approving grants the requester standing access to that whole call \u2014 raw transcript, recordings, raw tool I/O, and per-turn audio \u2014 until it expires or is revoked; the lifetime is stamped from the organization's `pii_access_grant_days` at decision time, so shortening that setting later never cuts short an approval already granted. Approving your own request returns 403 whenever the organization has another holder of `pii-access:approve`; the sole approver is permitted and the decision is recorded as self-approved.\n\nRequired permission: `pii-access:approve`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `pii_access_self_decision_forbidden`, `team_not_connected`; 404: `pii_access_request_not_found`; 408: `request_timeout`; 409: `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`, `pii_access_request_not_actionable`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"decision\": \"approve\",\n  \"note\": \"Approved for ticket #1234.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Revoke a granted break-glass access request",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Required on every API-key POST except side-effect-free preview operations, which expose OptionalIdempotencyKey. Use a 1 to 255 character portable ASCII HTTP token and one stable, unique value for one logical intent. Reusing it with the same actor, authorization context, method, canonical resource path, query, If-Match value, and body replays the committed result; changing any of those inputs returns a deterministic conflict."
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/pii-access-requests/:id/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pii-access-requests",
                ":id",
                "revoke"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "{{piiAccessRequestId}}"
                }
              ]
            },
            "description": "**Revoke a granted break-glass access request**\n\nWithdraws an approval that has already been granted. The next sensitive read by that user on that call is refused; reads that already happened remain in the audit log, which is what the trail is for. Only a live approval can be revoked.\n\nRequired permission: `pii-access:approve`\n\nError codes: 400: `body_read_failed`, `duplicate_field`, `duplicate_query_parameter`, `idempotency_key_required`, `invalid_idempotency_key`, `invalid_json`, `invalid_path_parameter`, `invalid_query_parameter`, `invalid_request_id`, `multiple_json_values`, `request_body_read_failed`, `unknown_query_parameter`; 401: `unauthorized`; 403: `ai_connectors_disabled`, `forbidden`, `team_not_connected`; 404: `pii_access_request_not_found`; 408: `request_timeout`; 409: `idempotency_conflict`, `idempotency_in_progress`, `idempotency_result_lost`, `idempotency_security_context_changed`, `pii_access_request_not_actionable`; 413: `request_too_large`; 415: `unsupported_media_type`; 422: `validation_failed`; 429: `authentication_rate_limited`, `rate_limited`; 500: `audit_required`, `db_error`, `idempotency_identity_unavailable`, `idempotency_misconfigured`, `idempotency_persistence_failed`, `idempotency_unavailable`, `internal_error`, `no_tx`, `response_buffer_failed`; 503: `authentication_unavailable`, `idempotency_capacity_exceeded`, `idempotency_result_unavailable`, `idempotency_unavailable`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"note\": \"Investigation closed.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ],
      "description": "Raising a break-glass request (`POST /pii-access-requests`) is a browser-session workflow and is refused for API keys, so it is not in the public contract. API keys can list, decide (approve/reject) and revoke requests."
    }
  ]
}
