{"openapi":"3.1.0","info":{"title":"Nivo Public API","version":"1.2.0","description":"The Nivo Public API lets your systems work with your Nivo data over HTTPS. This\nreference documents every endpoint, and the guides in this sidebar explain the\nrules that apply to all of them: authentication, rate limits, errors, retries\nand versioning. The *Webhooks* guide explains how Nivo notifies your systems when something\nhappens on a case.\n\n## Environments\n\n| Environment | Base URL | Use it for |\n| --- | --- | --- |\n| Production | `https://api.nivohub.ai` | Live data. |\n| Pre-production | `https://api.nivo-test.ai` | Integration testing. Separate API keys; data may be reset. |\n\nAPI keys only work in the environment they were created in.\n\n## Quick start\n\n**1. Get an API key.** A provider administrator creates one in the Nivo console.\nYou receive a **key id** (`nivo_…`) and a **secret**\n(`nsk_…`). The secret is shown once — store it in your secret manager.\n\n**2. Exchange the key for an access token.**\n\n```bash\ncurl -s -X POST https://api.nivohub.ai/oauth/token \\\n  -u \"$NIVO_KEY_ID:$NIVO_KEY_SECRET\" \\\n  -d grant_type=client_credentials\n```\n\n```json\n{ \"access_token\": \"eyJhbGciOiJIUzI1NiIs…\", \"token_type\": \"Bearer\", \"expires_in\": 900 }\n```\n\n**3. Call the API with the token.**\n\n```bash\ncurl -s https://api.nivohub.ai/v1/whoami \\\n  -H \"Authorization: Bearer $ACCESS_TOKEN\"\n```\n\n```json\n{ \"providerId\": \"0f8fad5b-d9cb-469f-a165-70867728950e\", \"apiKeyId\": \"7c9e6679-7425-40de-944b-e07fc1f90ae7\" }\n```\n\n## Conventions\n\n- **HTTPS only.** Plain HTTP is not served.\n- **JSON everywhere.** Send `Content-Type: application/json` with a body; responses are\n  UTF-8 JSON. Field names are `camelCase` — except `POST /oauth/token`, whose fields are\n  fixed by the OAuth 2.0 standard.\n- **Identifiers** are UUIDs unless stated otherwise. Treat them as opaque strings.\n- **Timestamps** are ISO 8601 in UTC, e.g. `2026-09-26T09:30:00Z`.\n- **Unknown fields** in responses may appear at any time (see *Versioning*). Ignore what you\n  do not recognise.\n- **Request size**: bodies larger than 1 MiB are rejected with `413 payload_too_large`.\n- **Every response** carries an `X-Correlation-Id` header. Log it; support will ask for it.\n\n# Authentication\n\nThe API uses the **OAuth 2.0 client-credentials grant** ([RFC 6749 §4.4](https://www.rfc-editor.org/rfc/rfc6749#section-4.4)).\nYour API key is the client credential; you exchange it for a short-lived **access\ntoken** and send that token as a `Bearer` token on every `/v1` request.\n\n## API keys\n\n| Part | Format | Example |\n| --- | --- | --- |\n| Key id | `nivo_` + 24 hex characters | `nivo_0123456789abcdef01234567` |\n| Secret | `nsk_` + 43 URL-safe characters | `nsk_Zk3…` (never share this) |\n\n- Keys belong to a **provider** (your organisation). Every key of a provider sees the same data\n  and shares one rate-limit budget.\n- Keys can be created with an expiry of 30, 90 or 365 days, or without one. Expired or revoked\n  keys stop working immediately for new tokens.\n- Use one key per integration or environment, so you can rotate or revoke one without\n  affecting the others.\n\n## Getting a token\n\n`POST /oauth/token` with `grant_type=client_credentials`. Send the credentials **either**\nwith HTTP Basic authentication (recommended) **or** as `client_id` / `client_secret` body\nparameters — not both. The body may be `application/x-www-form-urlencoded` (standard) or\n`application/json`.\n\n```bash\n# HTTP Basic (recommended)\ncurl -X POST https://api.nivohub.ai/oauth/token -u \"$NIVO_KEY_ID:$NIVO_KEY_SECRET\" -d grant_type=client_credentials\n\n# Body parameters\ncurl -X POST https://api.nivohub.ai/oauth/token \\\n  -d grant_type=client_credentials -d client_id=\"$NIVO_KEY_ID\" -d client_secret=\"$NIVO_KEY_SECRET\"\n```\n\nTokens are valid for **15 minutes** (`expires_in` seconds), or until the key itself expires if\nthat is sooner. There are no refresh tokens: request a new access token when the old one is\nabout to expire.\n\n## Using the token\n\n```http\nGET /v1/whoami HTTP/1.1\nHost: api.nivohub.ai\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIs…\n```\n\nIf the token is missing, malformed or expired you get `401` with\n`code: \"invalid_token\"` and a `WWW-Authenticate: Bearer …` header. Get a new token and retry\nonce.\n\n## Cache your token\n\nRequest a token once and reuse it until shortly before it expires — do **not** request a token\nper API call. The token endpoint has its own, much lower rate limit.\n\n```javascript\n// Node.js 18+\nlet cached = { token: null, expiresAt: 0 }\n\nasync function accessToken() {\n  if (cached.token && Date.now() < cached.expiresAt - 60_000) return cached.token\n  const res = await fetch(\"https://api.nivohub.ai/oauth/token\", {\n    method: \"POST\",\n    headers: {\n      Authorization: \"Basic \" + Buffer.from(`${process.env.NIVO_KEY_ID}:${process.env.NIVO_KEY_SECRET}`).toString(\"base64\"),\n      \"Content-Type\": \"application/x-www-form-urlencoded\"\n    },\n    body: \"grant_type=client_credentials\"\n  })\n  if (!res.ok) throw new Error(`token request failed: ${res.status} ${await res.text()}`)\n  const body = await res.json()\n  cached = { token: body.access_token, expiresAt: Date.now() + body.expires_in * 1000 }\n  return cached.token\n}\n```\n\n```python\n# Python 3 + requests\nimport os, time, requests\n\n_cache = {\"token\": None, \"expires_at\": 0.0}\n\ndef access_token() -> str:\n    if _cache[\"token\"] and time.time() < _cache[\"expires_at\"] - 60:\n        return _cache[\"token\"]\n    res = requests.post(\n        \"https://api.nivohub.ai/oauth/token\",\n        auth=(os.environ[\"NIVO_KEY_ID\"], os.environ[\"NIVO_KEY_SECRET\"]),\n        data={\"grant_type\": \"client_credentials\"},\n        timeout=10,\n    )\n    res.raise_for_status()\n    body = res.json()\n    _cache.update(token=body[\"access_token\"], expires_at=time.time() + body[\"expires_in\"])\n    return _cache[\"token\"]\n```\n\n## Rotating and revoking keys\n\n1. Create a new key in the Nivo console.\n2. Deploy it to your integration and confirm `GET /v1/whoami` returns the new `apiKeyId`.\n3. Revoke the old key.\n\nRevoking a key stops it from obtaining new tokens immediately. Tokens it already obtained stay\nvalid until they expire (at most 15 minutes).\n\n## Token endpoint errors\n\n`POST /oauth/token` returns errors in the standard OAuth 2.0 format\n([RFC 6749 §5.2](https://www.rfc-editor.org/rfc/rfc6749#section-5.2)), which OAuth client\nlibraries understand:\n\n```json\n{ \"error\": \"invalid_client\", \"error_description\": \"Client authentication failed\" }\n```\n\n| Status | `error` | Meaning |\n| --- | --- | --- |\n| 400 | `invalid_request` | Missing or repeated parameter, wrong content type, or both Basic and body credentials. |\n| 400 | `unsupported_grant_type` | `grant_type` is not `client_credentials`. |\n| 401 | `invalid_client` | Unknown, revoked, expired or malformed key id / secret. |\n| 429 | `rate_limited` | Too many token requests from your IP address. Honour `Retry-After`. |\n| 503 | `temporarily_unavailable` | Try again after `Retry-After` seconds. |\n\n# Rate limits\n\nLimits protect the platform and keep latency predictable for everyone. They use fixed\n**60-second windows**.\n\n| Budget | Default | Applies to |\n| --- | --- | --- |\n| Per provider | 600 requests / minute | All `/v1` requests from all of your API keys combined. |\n| Per IP address | 30 requests / minute | `POST /oauth/token`. |\n| Per IP address | 60 failed authentications / minute | `/v1` requests with a missing or invalid token. |\n| Per IP address | 60 requests / minute | Everything else: documentation, unknown URLs. |\n\nPer-IP budgets apply to IPv6 networks as a whole (/64), not to single addresses.\n\nNeed more? Ask your Nivo account manager; provider budgets can be raised.\n\n## Headers\n\nEvery rate-limited response carries:\n\n| Header | Meaning |\n| --- | --- |\n| `RateLimit-Limit` | Requests allowed in the current window. |\n| `RateLimit-Remaining` | Requests left in the current window. |\n| `RateLimit-Reset` | Seconds until the window resets. |\n| `RateLimit-Policy` | The policy, e.g. `600;w=60` (600 requests per 60 seconds). |\n| `Retry-After` | Only on `429`: seconds to wait before retrying. |\n\n## When you are limited\n\nYou receive `429 Too Many Requests`:\n\n```json\n{\n  \"type\": \"https://api.nivohub.ai/errors/rate_limited\",\n  \"title\": \"Rate limit exceeded\",\n  \"status\": 429,\n  \"code\": \"rate_limited\",\n  \"detail\": \"Rate limit of 600 requests per minute exceeded; retry in 17s\",\n  \"retryAfter\": 17,\n  \"requestId\": \"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77\"\n}\n```\n\nWait `Retry-After` seconds, then continue. Spread batch work evenly across the minute rather\nthan sending bursts, and watch `RateLimit-Remaining` to slow down before you hit zero.\n\n# Pagination\n\nEvery list endpoint returns one page at a time, in a fixed order that the endpoint states\n(most are newest first):\n\n```json\n{\n  \"data\": [ { \"id\": \"5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d\", \"…\": \"…\" } ],\n  \"nextCursor\": \"eyJ2IjoxLCJrIjpbIjIwMjYtMDkt…\",\n  \"hasMore\": true\n}\n```\n\n- `limit` sets the page size: 1–200, default 50.\n- To get the next page, send the same request with `cursor` set to the previous `nextCursor`.\n  Stop when `hasMore` is `false` (`nextCursor` is then `null`).\n- A cursor is **opaque**: do not parse or build one. It is only valid for the list and\n  filters it came from; changing a filter while keeping the cursor returns\n  `422 validation_failed` with `errors[0].field = \"cursor\"`. Start again without a cursor.\n- Pages are stable. Items created while you page through a newest-first list appear at the\n  start, so they never shift the pages you have not read yet. Nothing is skipped or repeated.\n- Lists do not return a total count.\n\n```bash\ncurl -s \"https://api.nivohub.ai/v1/cases?limit=100\" -H \"Authorization: Bearer $ACCESS_TOKEN\"\ncurl -s \"https://api.nivohub.ai/v1/cases?limit=100&cursor=$NEXT_CURSOR\" -H \"Authorization: Bearer $ACCESS_TOKEN\"\n```\n\n# Creating cases\n\n`POST /v1/cases` opens a case and starts your published workflow on it, exactly as if a first\nmessage had arrived on one of the workflow's triggers. Use it instead of emailing case details to\nyour Nivo AI.\n\n## Before you start\n\n- **Triggers.** `GET /v1/triggers` lists the triggers of your published workflow that can start\n  a case: one per channel address (`email`, `sms` or `console`). Pass `channel`, and\n  `triggerId` when there is more than one trigger for that channel.\n- **Roles.** `GET /v1/roles` lists the roles subjects can have (for example *Lead applicant* or\n  *Broker representative*). Your workflow uses roles to decide who each task is for and who its\n  messages go to, so give each subject the roles it has on the case.\n\n## The request\n\n```bash\ncurl -s -X POST \"https://api.nivohub.ai/v1/cases\" \\\n  -H \"Authorization: Bearer $ACCESS_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  -d '{\n    \"channel\": \"email\",\n    \"name\": \"Ashworth Tree Services – business loan\",\n    \"data\": { \"product\": \"business_loan\", \"loan\": { \"amount\": 50000, \"duration\": \"36 months\" } },\n    \"metadata\": { \"crmCaseId\": \"enquiry-4821\" },\n    \"subjects\": [\n      { \"reference\": \"dominic\", \"type\": \"individual\", \"name\": \"Dominic Ashworth\",\n        \"emailAddresses\": [\"dominic@example.com\"], \"roles\": [\"Lead applicant\"], \"isLeadApplicant\": true },\n      { \"reference\": \"company\", \"type\": \"organisation\", \"name\": \"Ashworth Tree Services Ltd\",\n        \"companyNumber\": \"12345678\" }\n    ],\n    \"documents\": [{ \"id\": \"proof_of_id\", \"label\": \"Photo ID\", \"subject\": \"dominic\" }]\n  }'\n```\n\n| Field | What it is for |\n| --- | --- |\n| `channel`, `triggerId` | Where the case starts. For `email` and `sms`, the Nivo AI contacts the lead applicant (or the first subject with an address on the channel) from the trigger's address. |\n| `data` | Any JSON object (up to 64 KB) with the case's details. It is the case's starting information for the Nivo AI and your workflow. |\n| `metadata` | Up to 4 key/value pairs for your own integration, such as your CRM's id. Returned on the case and on every webhook event of the case; never shown to the Nivo AI. |\n| `subjects` | The people and organisations on the case, 1 to 20. Your `reference` for each comes back with its subject id. |\n| `documents` | The documents the case needs. Accepted and stored, but **not acted on yet**: for now your workflow decides which documents to collect. |\n| `name` | The case's display name. Without one, the Nivo AI names the case. |\n\n## The answer\n\nYou get `202 Accepted` straight away, with the new case's `id`, the id of each subject and a\n`Location` header (`/v1/cases/{caseId}`). The case is created in the background, usually within\na minute; until then `GET /v1/cases/{caseId}` answers `404`. To hear when it exists, subscribe to\nthe `case.created` webhook event (see *Webhooks*) rather than polling. Every webhook event of the\ncase carries your `metadata`, so you can match it to your own record without calling the API.\n\nA request your workflow cannot start is rejected with `422 validation_failed`, naming the field:\na channel without a usable trigger, an ambiguous or unknown `triggerId`, a role that is not one\nof yours, or no subject with an address on the channel.\n\n**Always send an `Idempotency-Key`.** Repeating a request with the same key and body returns\nthe original answer and never creates a second case; reusing a key with a different body returns\n`409 conflict`. Without a key you cannot tell, after a timeout, whether the case was created.\n\n# Asynchronous operations\n\nSome changes take a while to take effect: completing a task can start work on your case that\ndepended on it. Those endpoints answer at once and finish the work in the background. This\nsection covers `POST /v1/cases/{caseId}/tasks/{taskId}/status-changes`; creating a case works\nthe same way but has no operation to poll (see *Creating cases*).\n\n## Starting a change\n\n```bash\ncurl -s -X POST \"https://api.nivohub.ai/v1/cases/$CASE_ID/tasks/$TASK_ID/status-changes\" \\\n  -H \"Authorization: Bearer $ACCESS_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  -d '{\"status\":\"completed\"}'\n```\n\n- **`202 Accepted`**: the change is `pending`. The `Location` header points at it and\n  `Retry-After` says how many seconds to wait before you look.\n- **`200 OK`**: nothing needed doing. The task already had that status (`status: succeeded`,\n  `outcome: unchanged`), or you repeated an `Idempotency-Key` whose change is already final.\n\nBoth answers carry the same `TaskStatusChange` body.\n\n## Following it to the end\n\nPoll the `Location` URL, waiting `Retry-After` seconds between requests, until `status` is\nfinal:\n\n| `status` | Meaning |\n| --- | --- |\n| `pending` | Still being processed, or waiting for the workflow to reach the task (`waitingFor`). Keep polling. |\n| `succeeded` | Done. `outcome` is `changed` or `unchanged`. |\n| `failed` | Did not complete; `error.code` says why and `error.taskStatusChanged` whether the task's status was written. `case_busy` can be retried with a new request. |\n\nMost changes finish within seconds. A change waits while the Nivo AI is busy with the same case,\nfor up to 5 minutes, and then fails with `case_busy`. Only one change per task can be pending at\na time, including one that is waiting for its task; a second one returns `409 conflict`.\n\n## Completing a task the workflow has not reached\n\nYou can complete any listed task at any time, including a `not_started` one: a task the\nworkflow has not reached yet because it waits for earlier tasks.\n\n- If the workflow has already reached the task, it is completed straight away.\n- If the task is `not_started`, the change is accepted (`202`, `status: pending`,\n  `waitingFor: previous_tasks`) and applied automatically when the workflow reaches the task. The\n  Nivo AI then skips that task's work. Tasks that depend on it never start early: the workflow\n  keeps its order.\n- This can take hours or days, so such a change answers with `Retry-After: 60`; poll with backoff.\n- If the workflow never reaches the task (for example, the branch it is on is not taken), the change\n  is never applied and stays `pending`.\n\n## Idempotency\n\nSend an `Idempotency-Key` header (1–255 characters; a UUID is ideal) to make retries safe:\n\n- Keys are scoped to your provider and kept indefinitely: use a new key for every new change.\n- Repeating a request with the same key and the same body returns the original change (`202`\n  while it is pending, `200` once it is final) instead of starting another.\n- Reusing a key with a different task or body returns `409 conflict`.\n\nWithout a key, a retried request that reached us the first time returns `409 conflict` while the\nfirst change is pending, or `200` with `outcome: unchanged` once it has succeeded.\n\n# Errors\n\nErrors use standard HTTP status codes and an\n[RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) *problem details* body with\n`Content-Type: application/problem+json`:\n\n```json\n{\n  \"type\": \"https://api.nivohub.ai/errors/validation_failed\",\n  \"title\": \"Validation failed\",\n  \"status\": 422,\n  \"code\": \"validation_failed\",\n  \"detail\": \"One or more fields are missing or invalid.\",\n  \"errors\": [\n    { \"field\": \"contact.email\", \"code\": \"missing\", \"message\": \"is required\" }\n  ],\n  \"requestId\": \"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77\"\n}\n```\n\n| Field | Description |\n| --- | --- |\n| `type` | URI identifying the problem type. Stable. |\n| `title` | Short summary of the problem type. |\n| `status` | The HTTP status code. |\n| `code` | **Machine-readable error code — switch on this.** Stable. |\n| `detail` | Explanation of this occurrence, for humans. May change; do not parse. |\n| `requestId` | Same as the `X-Correlation-Id` header. Quote it when contacting support. |\n| `errors` | `validation_failed` / `invalid_request` only: one entry per invalid field. |\n| `retryAfter` | `rate_limited` only: seconds to wait. |\n\nNew codes may be added. Handle unknown codes by their HTTP status class. Error bodies never\necho the values you sent.\n\n## Error codes\n\n| Status | Code | When | What to do | Retry? |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request` | The request could not be understood: the body is not valid JSON, a required header is missing, or parameters conflict with each other. | Fix the request using the `detail` message and the endpoint reference, then retry. | No |\n| 401 | `invalid_token` | No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information. | Request a new token from `POST /oauth/token` and retry. Tokens live for 15 minutes; refresh them shortly before `expires_in` elapses. | Yes |\n| 403 | `insufficient_scope` | The access token is valid, but the API key it was issued for is not allowed to perform this operation. | Ask your Nivo administrator to grant the API key access, or use a key that has it. | No |\n| 404 | `not_found` | The URL does not exist, or the resource it names does not exist or is not visible to your API key. | Check the path and identifiers. Resources belonging to other providers are reported as not found. | No |\n| 405 | `method_not_allowed` | The URL exists but does not support this HTTP method. The `Allow` header lists the supported methods. | Use one of the methods listed in the `Allow` header. | No |\n| 409 | `conflict` | The request conflicts with the current state of the resource, e.g. a concurrent update or a duplicate create. | Re-read the resource, reconcile, and retry. | No |\n| 413 | `payload_too_large` | The request body exceeds the maximum size accepted by this endpoint. | Send a smaller body. The limit is stated in `detail`. | No |\n| 415 | `unsupported_media_type` | The request body uses a `Content-Type` this endpoint does not accept. | Send `Content-Type: application/json` unless the endpoint reference says otherwise. | No |\n| 422 | `validation_failed` | The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path. | Correct the fields listed in `errors` and retry. | No |\n| 429 | `rate_limited` | You have used your request budget for the current window. See the `Rate limits` guide. | Wait for the number of seconds in the `Retry-After` header (also `retryAfter`), then retry. | Yes |\n| 500 | `internal_error` | Something went wrong on our side. The failure has been logged. | Retry with exponential backoff. If it persists, contact support with the `requestId`. | Yes |\n| 503 | `service_unavailable` | A dependency is temporarily unavailable, or the service is overloaded. | Retry after the number of seconds in the `Retry-After` header, with exponential backoff. | Yes |\n| 504 | `upstream_timeout` | The request took too long to process and was abandoned. It may or may not have taken effect. | Retry with backoff. For non-idempotent operations, check the resource state first (or use an `Idempotency-Key` where supported). | Yes |\n\n`POST /oauth/token` is the one exception to this format — see *Authentication*.\n\n# Request IDs and support\n\nEvery response has an `X-Correlation-Id` header (and error bodies repeat it as `requestId`).\nIt identifies your request across all Nivo systems.\n\n- **Log it** with every call you make.\n- **Send your own** to trace a request end to end: set `X-Correlation-Id` to a UUID you\n  generate. It is echoed back and used throughout our processing. Values that are not UUIDs\n  are replaced with one we generate.\n- **Quote it** when you contact your Nivo account manager — with it we can find exactly what happened.\n\n# Retries and timeouts\n\nNetworks fail; build your client to cope.\n\n| Situation | Retry? |\n| --- | --- |\n| Connection error, timeout, `500`, `503`, `504` | Yes, with exponential backoff and jitter. |\n| `429` | Yes, after `Retry-After` seconds. |\n| `401 invalid_token` | Once, after getting a new access token. |\n| Other `4xx` | No — fix the request first. |\n\n**Backoff:** wait `min(30s, 0.5s × 2^attempt)` plus random jitter, for up to 5 attempts.\n\n**Timeouts:** set a client timeout of about 30 seconds per request.\n\n**Writes:** a timed-out write may still have taken effect. Before retrying a non-idempotent\nrequest, check whether it succeeded — or send an `Idempotency-Key` header on endpoints that\nsupport it (stated in the endpoint reference).\n\n```javascript\nasync function withRetries(call, attempts = 5) {\n  for (let attempt = 0; ; attempt++) {\n    const res = await call()\n    const retryable = res.status === 429 || res.status >= 500\n    if (!retryable || attempt === attempts - 1) return res\n    const retryAfter = Number(res.headers.get(\"Retry-After\"))\n    const backoff = Math.min(30_000, 500 * 2 ** attempt) + Math.random() * 250\n    await new Promise((r) => setTimeout(r, retryAfter > 0 ? retryAfter * 1000 : backoff))\n  }\n}\n```\n\n# Webhooks\n\nWebhooks tell your systems when something happens on one of your cases, so you do not have\nto poll. When a case is created, a task is reached or changes status, or a message or a\ndocument reaches a case or leaves it, Nivo sends an HTTPS `POST` to a URL you choose. Events\nusually arrive within a few seconds.\n\nWebhook events are **thin**. They say what happened and where to find it, but they carry no\ncontent. To read the case, task, message or document, call the URL in the event with your API\naccess token. This keeps personal data out of the webhook traffic, and every read goes through the\nsame authentication, rate limits and audit trail as the rest of the API.\n\n## How it works\n\n1. A provider administrator adds a **webhook endpoint** in the Nivo console\n   (**Settings › Webhooks**). They give it an HTTPS URL and choose the event types it receives.\n2. When a subscribed event occurs, Nivo adds it to the endpoint's next **delivery**. A\n   delivery is one `POST` that carries up to **50 events**. It is sent when 50 events are\n   waiting or 2 seconds after the first one, whichever comes first. One delivery can hold\n   events from several cases.\n3. Nivo signs the body with the endpoint's **signing secret** and sends it.\n4. Your endpoint checks the signature, stores the events, and answers `2xx` within\n   **10 seconds**.\n5. Your system fetches each item it cares about from the API (`url` in the event).\n\nIf your endpoint does not answer `2xx`, Nivo tries again up to 4 times in total over about an\nhour (see *Retries* below).\n\n## Setting up an endpoint\n\nYou manage webhook endpoints in the Nivo console. The API has no webhook endpoints. Only\nprovider administrators can manage them.\n\n| Setting | Rules |\n| --- | --- |\n| Name | 1–100 characters, for your own reference. |\n| URL | `https://` only, at most 2,048 characters, no user name or password in the URL. It must resolve to public IP addresses. Private, loopback, link-local and cloud-metadata addresses are refused, and the check is repeated before every send. |\n| Event types | One or more types from the catalog below. You only receive the types you choose. |\n| Custom headers | Up to 10 headers, sent with every delivery. Use them, for example, for an extra token your gateway expects. Names may contain letters, digits and `-` (at most 64 characters). Values are at most 1,024 characters. They cannot replace `Content-Type`, `User-Agent`, `Host` or any `Nivo-*` header. Values are stored encrypted and shown masked afterwards. |\n\n- A provider can have up to **4 endpoints**. Each endpoint has its own secret, event types and\n  delivery log.\n- When the endpoint is created, the console shows its **signing secret** (`whsec_…`)\n  **once**. Store it in your secret manager. After that, the console only shows its last 4\n  characters.\n- An endpoint receives only events that occur **after it was created**. It never receives\n  past events.\n- **Send test event** in the console sends one `webhook.test` event straight away and shows\n  your response. Use it to check your URL, TLS setup and signature verification.\n- Changes to the URL or custom headers apply to the next attempt, including retries that are\n  already scheduled. If deliveries fail because of a wrong URL, correct it and the scheduled\n  retries go to the new URL.\n\n## Event types\n\n| Event type | Sent when |\n| --- | --- |\n| `case.created` | A case is created. |\n| `task.updated` | A task on a case is reached by the workflow (`action` `created`), or its status changes (`action` `status_changed`). |\n| `message.received` | A message reaches a case on any channel (email, SMS, mobile app or console). |\n| `message.sent` | A message is sent from a case, by your Nivo AI or by a member of your team. |\n| `document.received` | A document arrives on a case, as an attachment or an upload. |\n| `document.sent` | A document is sent from a case as an attachment. |\n| `webhook.test` | You press **Send test event** in the console. You cannot subscribe to this type, and a failed test is never retried. |\n\nA task counts as **created** when the workflow reaches it, which is when the tasks it depends\non are done. It is not created when the workflow first plans it. Its `status` is then\n`in_progress`. After that, every change of the task's status sends `status_changed` with the\nnew `status`. The status reported can stay the same, for example when a scheduled task\nbecomes due: it is `scheduled` both before and after. Tasks that are replaced or removed, and\nthe workflow's internal tasks, send no events.\n\nInternal AI reasoning is never a message, so it never produces an event. More event types may\nbe added. You only receive types you subscribed to, so a new type never reaches an existing\nendpoint by surprise.\n\n## The request\n\n```http\nPOST /webhooks/nivo HTTP/1.1\nHost: hooks.example.com\nContent-Type: application/json\nUser-Agent: Nivo-Webhooks/1.0\nNivo-Delivery-Id: dlv_01K6G3Z8Q4J7W2N5R9T1V3X6YB\nNivo-Signature: t=1759315829,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd\n\n{\n  \"deliveryId\": \"dlv_01K6G3Z8Q4J7W2N5R9T1V3X6YB\",\n  \"events\": [\n    {\n      \"eventId\": \"evt_01K6G3Z7M2C8D4F6H8K0P2R4SA\",\n      \"type\": \"message\",\n      \"action\": \"received\",\n      \"channel\": \"email\",\n      \"id\": \"3f2e1d0c-9b8a-4c7d-8e6f-5a4b3c2d1e0f\",\n      \"caseId\": \"5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d\",\n      \"metadata\": { \"crmCaseId\": \"enquiry-4821\" },\n      \"occurredAt\": \"2026-10-01T10:50:29.433Z\",\n      \"url\": \"https://api.nivohub.ai/v1/cases/5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d/messages/3f2e1d0c-9b8a-4c7d-8e6f-5a4b3c2d1e0f\"\n    },\n    {\n      \"eventId\": \"evt_01K6G3Z7N5E1G3J5L7N9Q1S3TB\",\n      \"type\": \"document\",\n      \"action\": \"received\",\n      \"channel\": \"email\",\n      \"id\": \"8d7c6b5a-4f3e-4d2c-9b1a-0e9f8d7c6b5a\",\n      \"caseId\": \"5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d\",\n      \"metadata\": { \"crmCaseId\": \"enquiry-4821\" },\n      \"occurredAt\": \"2026-10-01T10:50:29.433Z\",\n      \"url\": \"https://api.nivohub.ai/v1/cases/5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d/documents/8d7c6b5a-4f3e-4d2c-9b1a-0e9f8d7c6b5a\"\n    }\n  ]\n}\n```\n\n### Headers\n\n| Header | Meaning |\n| --- | --- |\n| `Content-Type` | Always `application/json` (UTF-8). |\n| `User-Agent` | `Nivo-Webhooks/1.0`. |\n| `Nivo-Delivery-Id` | The delivery id, also in the body as `deliveryId`. It stays the same on every retry of this delivery. |\n| `Nivo-Signature` | Timestamp and signature(s) of the body. See *Verifying signatures*. |\n| Your custom headers | As configured on the endpoint. |\n\n### Body\n\n| Field | Description |\n| --- | --- |\n| `deliveryId` | `dlv_` followed by 26 characters. Identifies this delivery in the console's delivery log. |\n| `events` | 1–50 events, oldest first (by `occurredAt`). |\n\nEach event:\n\n| Field | Description |\n| --- | --- |\n| `eventId` | `evt_` followed by 26 characters. Unique per event, and the same on every retry and resend. **Use it to remove duplicates.** |\n| `type` | `case`, `task`, `message` or `document` (`webhook` for the test event). |\n| `action` | `created` for a case; `created` or `status_changed` for a task; `received` or `sent` for a message or document (`test` for the test event). `type` and `action` together describe the event, e.g. `message.received`; both task actions belong to the `task.updated` event type. |\n| `status` | Task events only: the task's status after the change. The same values as a task's `status` in the API. New values may be added. |\n| `taskType` | Task events only: what kind of work the task is, e.g. `document_request` or `e_signature`. The same values as a task's `type` in the API, so you can skip kinds of task you do not handle without fetching them. New values may be added. |\n| `channel` | Message and document events only: `email`, `sms`, `mobile_app`, `console` or `other`, how the message or document travelled. The same values as a message's `channel` in the API. New values may be added. |\n| `id` | The case, task, message or document id (UUID). Not present on the test event. |\n| `caseId` | The case the item belongs to (UUID); for a case event, the case itself. Not present on the test event. |\n| `metadata` | The `metadata` you sent when you created the case with `POST /v1/cases`, the same as on `GET /v1/cases/{caseId}`; `{}` for other cases. Not present on the test event. |\n| `occurredAt` | When it happened (ISO 8601, UTC): when the message or document was sent or received, the case was created, or the task changed. |\n| `url` | Where to fetch the item from this API: `GET /v1/cases/{caseId}`, `GET /v1/cases/{caseId}/tasks/{id}`, `GET /v1/cases/{caseId}/messages/{id}` or `GET /v1/cases/{caseId}/documents/{id}`. Download a document's file from that URL plus `/content`. Not present on the test event. |\n\nThe ids of the delivery and its events are prefixed strings, not UUIDs. Treat them as opaque.\nNew fields may be added to the body at any time (see *Versioning*), so ignore fields you do not\nrecognise.\n\nCase and task events look like this:\n\n```json\n{ \"eventId\": \"evt_01K6G3Z7P8F2H4K6M8P0R2T4VC\", \"type\": \"case\", \"action\": \"created\",\n  \"id\": \"5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d\", \"caseId\": \"5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d\",\n  \"metadata\": { \"crmCaseId\": \"enquiry-4821\" }, \"occurredAt\": \"2026-10-06T09:51:21.835Z\",\n  \"url\": \"https://api.nivohub.ai/v1/cases/5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d\" }\n```\n\n```json\n{ \"eventId\": \"evt_01K6G3Z7Q1G5J7L9N1Q3S5V7XD\", \"type\": \"task\", \"action\": \"status_changed\", \"status\": \"completed\",\n  \"taskType\": \"document_request\",\n  \"id\": \"9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d\", \"caseId\": \"5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d\",\n  \"metadata\": { \"crmCaseId\": \"enquiry-4821\" }, \"occurredAt\": \"2026-10-06T10:11:22.678Z\",\n  \"url\": \"https://api.nivohub.ai/v1/cases/5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d/tasks/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d\" }\n```\n\nThe test event looks like this:\n\n```json\n{\n  \"deliveryId\": \"dlv_01K6G4B2X9Y7W5V3T1R9P7N5MC\",\n  \"events\": [\n    { \"eventId\": \"evt_01K6G4B2X9A1C3E5G7J9L1N3QD\", \"type\": \"webhook\", \"action\": \"test\", \"occurredAt\": \"2026-10-01T11:02:14.118Z\" }\n  ]\n}\n```\n\n## Responding\n\n- Answer with any **`2xx`** status within **10 seconds** to acknowledge the delivery. Every\n  other outcome is treated as a failure and retried: any other status, a timeout, a TLS error,\n  or a refused connection.\n- **Redirects are not followed.** A `3xx` answer is a failure. Give the final URL.\n- **Acknowledge first, work later.** Verify the signature, store the events (or put them on a\n  queue), answer `2xx`, and then call the API. Do not call the API before you answer.\n- Nivo sends **one delivery at a time** to each endpoint and waits for the answer before it\n  sends the next one. A slow endpoint therefore delays its own events.\n- The response body is ignored. Nivo stores the status code, the response headers and the\n  first 4 KB of the body in the delivery log, where your administrators can see them. Do not\n  put secrets or personal data in the response.\n\n## Verifying signatures\n\nEvery request is signed, so you can prove it came from Nivo and was not changed. Check the\nsignature before you trust or store anything in the request.\n\n```text\nNivo-Signature: t=1759315829,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd\n```\n\n- `t` is the time of signing, in Unix seconds. Each attempt is signed again, so retries carry\n  a new `t`.\n- `v1` is the hex-encoded **HMAC-SHA256** of the string `<t>.<raw body>`. The key is the\n  endpoint's signing secret, used as UTF-8 text including its `whsec_` prefix.\n- During a secret rotation the header has **two** `v1` values, one for each active secret\n  (see *Rotating the signing secret*).\n\nTo verify:\n\n1. Read the **raw request body** as bytes, before any JSON parsing. Parsing and re-serialising\n   changes the bytes, and the signature no longer matches.\n2. Split the header on `,`, then each part on the first `=`. Take `t` and every `v1`.\n   Ignore other keys: later signature versions may be added.\n3. Reject the request if `t` is more than **5 minutes** away from your clock. This stops an\n   old, captured request from being replayed.\n4. Compute HMAC-SHA256 over `t`, a `.`, then the raw body, with your secret.\n5. Compare the result with each `v1` in **constant time**. Accept the request if any of them\n   matches.\n\nIf the check fails, answer `401` and do not process the body. Nivo treats this as a failure\nand retries, so a secret mistake on your side can be fixed without losing the delivery.\n\n```javascript\n// Node.js 18+ with Express\nimport crypto from \"node:crypto\"\nimport express from \"express\"\n\nconst SECRET = process.env.NIVO_WEBHOOK_SECRET // whsec_…\nconst TOLERANCE_SECONDS = 300\n\nfunction hasValidSignature(rawBody, header) {\n  let timestamp = NaN\n  const signatures = []\n  for (const part of (header ?? \"\").split(\",\")) {\n    const at = part.indexOf(\"=\")\n    const key = part.slice(0, at).trim()\n    const value = part.slice(at + 1).trim()\n    if (key === \"t\") timestamp = Number(value)\n    if (key === \"v1\") signatures.push(value)\n  }\n  if (!Number.isInteger(timestamp) || signatures.length === 0) return false\n  if (Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false\n  const expected = crypto.createHmac(\"sha256\", SECRET).update(`${timestamp}.`).update(rawBody).digest()\n  return signatures.some((signature) => {\n    const given = Buffer.from(signature, \"hex\")\n    return given.length === expected.length && crypto.timingSafeEqual(given, expected)\n  })\n}\n\nconst app = express()\n\n// express.raw keeps the body as a Buffer: the exact bytes that were signed.\napp.post(\"/webhooks/nivo\", express.raw({ type: \"application/json\" }), async (req, res) => {\n  if (!hasValidSignature(req.body, req.get(\"Nivo-Signature\"))) return res.sendStatus(401)\n  const { events } = JSON.parse(req.body.toString(\"utf8\"))\n  await saveForProcessing(events) // e.g. insert into a table keyed by eventId, or enqueue\n  res.sendStatus(204)\n})\n```\n\n```python\n# Python 3.10+ with Flask\nimport hashlib, hmac, json, os, time\nfrom flask import Flask, request\n\nSECRET = os.environ[\"NIVO_WEBHOOK_SECRET\"].encode()  # whsec_…\nTOLERANCE_SECONDS = 300\n\ndef has_valid_signature(raw_body: bytes, header: str | None) -> bool:\n    timestamp, signatures = None, []\n    for part in (header or \"\").split(\",\"):\n        key, _, value = part.strip().partition(\"=\")\n        if key == \"t\" and value.isdigit():\n            timestamp = int(value)\n        elif key == \"v1\":\n            signatures.append(value)\n    if timestamp is None or not signatures:\n        return False\n    if abs(time.time() - timestamp) > TOLERANCE_SECONDS:\n        return False\n    expected = hmac.new(SECRET, f\"{timestamp}.\".encode() + raw_body, hashlib.sha256).hexdigest()\n    return any(hmac.compare_digest(expected, signature) for signature in signatures)\n\napp = Flask(__name__)\n\n@app.post(\"/webhooks/nivo\")\ndef nivo_webhook():\n    raw_body = request.get_data()  # the exact bytes that were signed\n    if not has_valid_signature(raw_body, request.headers.get(\"Nivo-Signature\")):\n        return \"\", 401\n    save_for_processing(json.loads(raw_body)[\"events\"])  # e.g. a table keyed by eventId, or a queue\n    return \"\", 204\n```\n\nKeep your server clock in sync (NTP). A clock that is several minutes off rejects valid\nrequests.\n\n## Rotating the signing secret\n\nRotate the secret on a schedule, and at once if you think it has leaked.\n\n1. In the console, choose **Rotate secret** on the endpoint. The new secret is shown **once**.\n2. For the next **24 hours**, every request is signed with both the new and the previous secret,\n   so `Nivo-Signature` has two `v1` values. Your current code keeps working unchanged.\n3. Deploy the new secret to your receiver within those 24 hours.\n4. When the period ends, only the new secret signs. If you have already deployed the new secret,\n   choose **Expire previous secret now** to end the period early. Do this straight away if the\n   old secret leaked.\n\nYou cannot start another rotation while one is in progress.\n\n## Retries\n\nA delivery is attempted up to **4 times**. The times count from when the delivery was created.\n\n| Attempt | When |\n| --- | --- |\n| 1 | Immediately |\n| 2 | After about 1 minute |\n| 3 | After about 10 minutes |\n| 4 | After about 60 minutes |\n\nEach wait varies by up to ±10%, so deliveries that failed together are not retried together.\nAfter the fourth failure the delivery is marked **failed** and is not retried automatically.\n\nWhile a delivery waits for a retry, newer deliveries to the same endpoint are still sent. A long\noutage on your side therefore does not block events that arrive after you recover.\n\n**Resending.** In the endpoint's delivery log, an administrator can see each delivery with every\nattempt: status code, duration, response headers and the start of your response body. They can\nresend one delivery, or every failed delivery in a time range. A resend is one extra attempt with\nthe same `deliveryId` and events. It does not restart the retry schedule. Deliveries can be\nresent for **30 days**. After that their content is deleted. Delivery summaries stay in the log\nfor 12 months.\n\n## Endpoint status\n\n| Status | Meaning |\n| --- | --- |\n| `active` | Events are recorded and delivered. |\n| `paused` | Set by an administrator. **No events are recorded while paused**: they are not queued and are not sent later. Scheduled retries are marked failed. Resume to start receiving new events again. |\n| `disabled` | Set by Nivo when **every attempt has failed for 24 hours** and the endpoint is still failing. It behaves like `paused`. Fix your endpoint, then resume it in the console. |\n| `deleted` | Permanent. Nothing more is sent. The delivery log stays readable until its retention ends. |\n\n## Duplicates and ordering\n\nDelivery is **at least once**. You will occasionally receive the same event more than once. This\nhappens, for example, when your `2xx` was lost on the network, when an administrator resends a\ndelivery, or when Nivo recovers from a failure in the middle of an attempt.\n\n- **Remove duplicates by `eventId`.** Record the ids you have processed, for example with a\n  unique constraint, and skip an id you have already seen. Keep them for at least 30 days, the\n  resend window.\n- **Do not rely on arrival order.** Events within one delivery are oldest first. Across\n  deliveries, a retried delivery can arrive after newer ones. Events of different types are\n  also not ordered against each other: a task's event can arrive before its case's\n  `case.created`. Use `occurredAt` to order events, and read the current state from the\n  API.\n\n## Missed events\n\nWebhooks reduce polling, but they do not replace the API as the source of truth. You can miss\nevents when:\n\n- your endpoint was down for longer than the retry schedule (about an hour), and the failed\n  deliveries were not resent within 30 days;\n- the endpoint was `paused` or `disabled`, because events are not recorded then;\n- events occurred before the endpoint was created.\n\nTo catch up, read the data from the API. `GET /v1/cases` (filter with `createdFrom` for\nnew cases) lists your cases. `GET /v1/cases/{caseId}/tasks`,\n`GET /v1/cases/{caseId}/messages` and `GET /v1/cases/{caseId}/documents` list a case's\nitems, newest first. Compare them with what\nyou have already processed.\n\n## Checklist\n\n- [ ] HTTPS endpoint with a valid, publicly trusted certificate.\n- [ ] Signature checked against the raw body, with a 5-minute timestamp tolerance and a\n      constant-time comparison. Every `v1` value is accepted.\n- [ ] Signing secret kept in a secret manager, with a rotation plan.\n- [ ] `2xx` answered within 10 seconds, with the work done afterwards.\n- [ ] Duplicates removed by `eventId`.\n- [ ] Unknown fields, and unknown `channel` and `status` values, ignored.\n- [ ] Items fetched through `url` with an API access token, within your rate limit.\n- [ ] A catch-up job that uses the API after an outage.\n- [ ] Tested with **Send test event** in pre-production (`https://api.nivo-test.ai`) first.\n\n# Versioning and deprecation\n\nThe API version is part of the path: `/v1`. Within a version we only make\n**backwards-compatible** changes:\n\n- adding endpoints, optional request fields or parameters;\n- adding response fields, headers, error codes or enum values;\n- changing the wording of `detail` / `title` messages.\n\nBuild your client to tolerate these (ignore unknown fields; handle unknown codes and enum\nvalues gracefully).\n\nBreaking changes ship in a new version (`/v2`). The previous version then keeps working for at\nleast **12 months**. Deprecated endpoints announce themselves with a `Deprecation` header and a\n`Sunset` header giving the removal date ([RFC 9745](https://www.rfc-editor.org/rfc/rfc9745),\n[RFC 8594](https://www.rfc-editor.org/rfc/rfc8594)) — monitor for them.\n\n# Security\n\n- **Keep secrets server-side.** Never put an API key secret or access token in a browser, mobile\n  app, or source control. The API does not allow cross-origin browser calls.\n- **Store secrets in a secret manager** and restrict who can read them.\n- **Rotate keys** periodically and immediately if you suspect exposure (see *Authentication*).\n- **Use TLS 1.2+** and validate certificates — never disable certificate checks.\n- **Least exposure:** use a separate key for each system and environment.\n- Every request is **audited** (time, API key, IP address, endpoint, outcome). Request and\n  response bodies are not recorded. Review your own trail with `GET /v1/request-logs`.\n- **Verify every webhook signature** and keep webhook signing secrets in your secret manager\n  (see *Webhooks*). Webhook events carry no content: read it through the API.\n- Every **document download** is recorded before the file is sent; if that record cannot be\n  written, the download is refused with `503` and can be retried.\n- Every **case you create** is recorded (its shape, never its contents) before it is processed;\n  if that record cannot be written, the request is refused with `503` and can be retried.\n- Every **task status change** is recorded before it is processed; if that record cannot be\n  written, the change is refused with `503` and can be retried.\n- Report a suspected vulnerability or leaked key to your Nivo account manager straight away.\n\n# Changelog\n\n| Date | Change |\n| --- | --- |\n| 2026-09 | Initial release: OAuth 2.0 client-credentials authentication, `GET /v1/whoami`, RFC 9457 error responses, rate-limit headers. |\n| 2026-09 | Read access to cases, their messages, subjects, tasks and documents (including downloads); stages, labels and channels; and your own request logs. Cursor pagination on every list. |\n| 2026-10 | Webhooks: signed, batched notifications for `message.received`, `message.sent`, `document.received` and `document.sent`, set up in the Nivo console. |\n| 2026-10 | Webhook event types `case.created` and `task.updated`. |\n| 2026-10 | Task status changes: mark a task as completed with `POST /v1/cases/{caseId}/tasks/{taskId}/status-changes` and follow the change with `GET …/status-changes/{statusChangeId}` (see *Asynchronous operations*). Supports `Idempotency-Key`. Task lists now include tasks the workflow has not reached yet, with the new status `not_started`; completing one is applied when the workflow reaches it. |\n| 2026-10 | Tasks carry a `type`: what kind of work they are. `GET /v1/cases/{caseId}/tasks/{taskId}` also returns the role that owns the task, its channels, its position in the workflow, the tasks it still waits for and its schedule. `task.updated` webhook events carry `taskType`. |\n| 2026-10 | Case creation: `POST /v1/cases` opens a case and starts your workflow from one of its triggers, with your data, subjects and up to 4 metadata pairs (see *Creating cases*). New `GET /v1/triggers` and `GET /v1/roles`. Cases carry `metadata`. |\n| 2026-10 | Webhook events carry their case's `metadata` (`{}` for cases not created through `POST /v1/cases`). |"},"paths":{"/oauth/token":{"post":{"tags":["Authentication"],"operationId":"createAccessToken","parameters":[{"$ref":"#/components/parameters/CorrelationId"}],"security":[{"apiKeyBasic":[]},{}],"responses":{"200":{"description":"Access token issued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthBadRequest"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"401":{"description":"Client authentication failed: the key id / secret is unknown, revoked, expired or malformed. Carries `WWW-Authenticate: Basic` when the client authenticated with HTTP Basic.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthInvalidClient"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"429":{"description":"Too many token requests from your IP address (30 per minute). Wait `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthRateLimited"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Tokens cannot be issued right now. Retry after `Retry-After` seconds; existing tokens keep working.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthTemporarilyUnavailable"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}}},"description":"Exchanges API key credentials for a short-lived access token (OAuth 2.0 client-credentials grant, RFC 6749 §4.4).\n\nAuthenticate with **HTTP Basic** (`key id` as username, `secret` as password) — recommended — **or** send\n`client_id` and `client_secret` in the body. Using both is rejected.\n\nCache the token and reuse it until shortly before `expires_in` elapses; this endpoint is limited to\n30 requests per minute per IP address. Errors use the OAuth 2.0 format (`error`, `error_description`),\nnot problem details. Responses are never cacheable (`Cache-Control: no-store`).","summary":"Get an access token","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["grant_type"],"properties":{"grant_type":{"type":"string","enum":["client_credentials"],"description":"Must be `client_credentials`."},"client_id":{"type":"string","description":"API key id (`nivo_…`). Omit when using HTTP Basic authentication (recommended).","examples":["nivo_0123456789abcdef01234567"]},"client_secret":{"type":"string","description":"API key secret (`nsk_…`). Omit when using HTTP Basic authentication (recommended)."}},"additionalProperties":false}},"application/json":{"schema":{"type":"object","required":["grant_type"],"properties":{"grant_type":{"type":"string","enum":["client_credentials"],"description":"Must be `client_credentials`."},"client_id":{"type":"string","description":"API key id (`nivo_…`). Omit when using HTTP Basic authentication (recommended).","examples":["nivo_0123456789abcdef01234567"]},"client_secret":{"type":"string","description":"API key secret (`nsk_…`). Omit when using HTTP Basic authentication (recommended)."}},"additionalProperties":false}}},"required":true}}},"/v1/whoami":{"get":{"tags":["Account"],"operationId":"getWhoAmI","parameters":[{"$ref":"#/components/parameters/CorrelationId"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"The provider and API key behind the access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoAmI"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the provider and API key behind the access token. Use it to verify your credentials and configuration — for example after rotating a key.","summary":"Identify the caller"}},"/v1/cases":{"post":{"tags":["Cases"],"operationId":"createCase","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Optional key (1–255 characters, e.g. a UUID) that makes retrying this request safe. See *Asynchronous operations*.","title":"maxLength(255)","minLength":1,"examples":["4c1f8a2e-6b3d-4e9f-a0b1-c2d3e4f5a6b7"],"maxLength":255},"required":false,"description":"Optional key (1–255 characters, e.g. a UUID) that makes retrying this request safe. See *Asynchronous operations*."}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"202":{"description":"The case request was accepted; the case is being created. `Location` is the case.","content":{"application/json":{"schema":{"type":"object","required":["id","channel","triggerId","subjects","metadata","createdAt"],"properties":{"id":{"type":"string","description":"The new case's id. The case can be read with `GET /v1/cases/{caseId}` once it has been created.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"channel":{"type":"string","enum":["email","sms","console"],"description":"The channel the case starts on."},"triggerId":{"type":"string","description":"The trigger the case starts from.","examples":["cbfa7a6b-5975-5a8d-84f2-88f4e3596c85"]},"subjects":{"type":"array","items":{"type":"object","required":["reference","id"],"properties":{"reference":{"type":"string","description":"Your `reference` for the subject.","examples":["dominic"]},"id":{"type":"string","description":"The subject's id on the case (see `GET /v1/cases/{caseId}/subjects`).","examples":["2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"additionalProperties":false},"description":"The id each of your subjects was given."},"metadata":{"type":"object","required":[],"properties":{},"additionalProperties":{"type":"string"},"description":"The `metadata` you sent.","examples":[{"crmCaseId":"enquiry-4821"}]},"createdAt":{"type":"string","description":"When the request was accepted.","examples":["2026-09-26T09:30:00.000Z"]}},"additionalProperties":false,"description":"An accepted case request. The case is created in the background, usually within a minute."}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Location":{"$ref":"#/components/headers/Location"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"409":{"description":"Conflict. The request conflicts with the current state of the resource, e.g. a concurrent update or a duplicate create.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ConflictProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Opens a case and starts your published workflow from one of its triggers, as if a first message had\narrived on `channel`. You get `202` with the new case's id and the ids of its subjects straight away;\nthe case itself is created in the background, usually within a minute. Until then\n`GET /v1/cases/{caseId}` (the `Location` header) answers `404`. Subscribe to the `case.created`\nwebhook event to hear when it exists.\n\n- `channel` must have a trigger in your published workflow that starts at least one task. List them\n  with `GET /v1/triggers`; pass `triggerId` when there is more than one for the channel.\n- For `email` and `sms`, the Nivo AI contacts the lead applicant, or the first subject with an\n  address on the channel. At least one subject needs one.\n- Subject `roles` must be roles of yours (`GET /v1/roles`).\n- `documents` are accepted and stored but not acted on yet.\n\nA request that breaks these rules is rejected with `422 validation_failed`, naming the field.\n\nSupports `Idempotency-Key`: repeating a request with the same key returns the original answer and\nnever creates a second case. Returns `409` if the key was used with a different request. Use a key:\nafter a `504` you cannot otherwise tell whether the case was created.","summary":"Create a case","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseCreateRequest"}}},"required":true}},"get":{"tags":["Cases"],"operationId":"listCases","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"},{"name":"stageId","in":"query","schema":{"$ref":"#/components/schemas/UUID"},"required":false},{"name":"labelId","in":"query","schema":{"$ref":"#/components/schemas/UUID"},"required":false},{"name":"createdFrom","in":"query","schema":{"$ref":"#/components/schemas/DateTimeUtc"},"required":false},{"name":"createdTo","in":"query","schema":{"$ref":"#/components/schemas/DateTimeUtc"},"required":false}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of cases.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CasePage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns your cases, newest first (by `createdAt`).\n\nFilter by stage, label or creation time; filters combine with AND. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).\nA `cursor` only works with the filters it was issued for; changing them returns `422`.","summary":"List cases"}},"/v1/cases/{caseId}":{"get":{"tags":["Cases"],"operationId":"getCase","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"The case.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns one case. Cases of other providers are reported as `404`.","summary":"Retrieve a case"}},"/v1/cases/{caseId}/messages":{"get":{"tags":["Cases"],"operationId":"listCaseMessages","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of messages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagePage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the messages on a case across all channels, newest first (by `sentAt`).\nInternal AI reasoning is never included. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List a case's messages"}},"/v1/cases/{caseId}/messages/{messageId}":{"get":{"tags":["Cases"],"operationId":"getCaseMessage","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"messageId","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"The message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns one message on a case. Internal AI reasoning is not a message and is never returned.","summary":"Retrieve a message"}},"/v1/cases/{caseId}/subjects":{"get":{"tags":["Cases"],"operationId":"listCaseSubjects","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of subjects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectPage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the people and organisations identified on a case, in a stable order. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List a case's subjects"}},"/v1/cases/{caseId}/tasks":{"get":{"tags":["Cases"],"operationId":"listCaseTasks","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of tasks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the tasks on a case, newest first (by `createdAt`), with their type and current status. Retrieve a task for its owner, channels, dependencies and schedule. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List a case's tasks"}},"/v1/cases/{caseId}/tasks/{taskId}":{"get":{"tags":["Cases"],"operationId":"getCaseTask","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"taskId","in":"path","schema":{"type":"string","description":"Task identifier.","examples":["6e5d4c3b-2a1f-4e0d-8c9b-a8f7e6d5c4b3"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Task identifier."}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"The task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDetail"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns one task on a case: the fields of the case's task list, plus the role that owns it, the channels it uses, its position in the workflow, the tasks it still waits for and its schedule. This is the resource the `url` of a `task.updated` webhook event points at. Superseded and deleted tasks, and tasks of other cases or providers, are not found.","summary":"Retrieve a task"}},"/v1/cases/{caseId}/tasks/{taskId}/status-changes":{"post":{"tags":["Cases"],"operationId":"createTaskStatusChange","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"taskId","in":"path","schema":{"type":"string","description":"Task identifier.","examples":["6e5d4c3b-2a1f-4e0d-8c9b-a8f7e6d5c4b3"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Task identifier."},{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Optional key (1–255 characters, e.g. a UUID) that makes retrying this request safe. See *Asynchronous operations*.","title":"maxLength(255)","minLength":1,"examples":["4c1f8a2e-6b3d-4e9f-a0b1-c2d3e4f5a6b7"],"maxLength":255},"required":false,"description":"Optional key (1–255 characters, e.g. a UUID) that makes retrying this request safe. See *Asynchronous operations*."}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"The task already had the requested status, or the change was already final (a repeated `Idempotency-Key`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusChange"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"202":{"description":"The change was accepted and is being processed. Poll `Location`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusChange"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Location":{"$ref":"#/components/headers/Location"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"409":{"description":"Conflict. The request conflicts with the current state of the resource, e.g. a concurrent update or a duplicate create.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ConflictProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Asks for a task's status to be changed. Only `completed` can be set at the moment.\n\n- If the task already has that status, nothing happens and you get `200` with a\n  `succeeded` change (`outcome: unchanged`).\n- Otherwise the change is processed asynchronously: you get `202` with a `pending` change, a\n  `Location` header pointing at it and `Retry-After`. Poll `Location` until the change is\n  `succeeded` or `failed` (see *Asynchronous operations*). Completing a task can start work\n  that depended on it; the change succeeds once that work has been picked up.\n\nSupports `Idempotency-Key`: repeating a request with the same key returns the original change.\nReturns `409` if another change to the same task is still pending, or if the key was used\nwith a different request. Tasks you cannot list are reported as `404`.","summary":"Change a task's status","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusChangeRequest"}}},"required":true}}},"/v1/cases/{caseId}/tasks/{taskId}/status-changes/{statusChangeId}":{"get":{"tags":["Cases"],"operationId":"getTaskStatusChange","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"taskId","in":"path","schema":{"type":"string","description":"Task identifier.","examples":["6e5d4c3b-2a1f-4e0d-8c9b-a8f7e6d5c4b3"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Task identifier."},{"name":"statusChangeId","in":"path","schema":{"type":"string","description":"Status change identifier.","examples":["0f1e2d3c-4b5a-4968-8776-a5b4c3d2e1f0"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Status change identifier."}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"The status change. `Retry-After` is set while it is `pending`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusChange"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns a status change and how far it has got. While it is `pending`, the response carries\n`Retry-After` with the number of seconds to wait before polling again.","summary":"Retrieve a task status change"}},"/v1/cases/{caseId}/documents":{"get":{"tags":["Cases"],"operationId":"listCaseDocuments","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of documents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the files attached to a case, newest first. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List a case's documents"}},"/v1/cases/{caseId}/documents/{documentId}":{"get":{"tags":["Cases"],"operationId":"getCaseDocument","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"The document's metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the metadata of one document on a case.","summary":"Retrieve a document"}},"/v1/cases/{caseId}/documents/{documentId}/content":{"get":{"tags":["Cases"],"operationId":"downloadCaseDocument","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"caseId","in":"path","schema":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"required":true,"description":"Case identifier."},{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"The file.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the file itself. `Content-Type` is the document's media type (or\n`application/octet-stream` when unknown) and `Content-Disposition` is always `attachment`,\nwith the original file name when known. Returns `404` if the file is not available.","summary":"Download a document"}},"/v1/stages":{"get":{"tags":["Configuration"],"operationId":"listStages","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of stages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagePage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the stages configured for your Nivo AI, in display order. Resolves `Case.stageId`. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List stages"}},"/v1/labels":{"get":{"tags":["Configuration"],"operationId":"listLabels","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of labels.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelPage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the case labels configured for your Nivo AI, in display order. Resolves `Case.labelIds`. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List labels"}},"/v1/triggers":{"get":{"tags":["Configuration"],"operationId":"listTriggers","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of triggers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerPage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the triggers of your published workflow that cases can be created through with `POST /v1/cases`, one per channel address. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List triggers"}},"/v1/roles":{"get":{"tags":["Configuration"],"operationId":"listRoles","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of roles.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolePage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the roles subjects can have on your cases, by name. Use them in `subjects[].roles` when you create a case. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List roles"}},"/v1/channels":{"get":{"tags":["Configuration"],"operationId":"listChannels","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of channels.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"404":{"description":"Not found. The URL does not exist, or the resource it names does not exist or is not visible to your API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/NotFoundProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"504":{"description":"Upstream timeout. The request took too long to process and was abandoned. It may or may not have taken effect.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}}},"description":"Returns the channels your Nivo AI can communicate through. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List channels"}},"/v1/request-logs":{"get":{"tags":["Request logs"],"operationId":"listRequestLogs","parameters":[{"$ref":"#/components/parameters/CorrelationId"},{"name":"limit","in":"query","schema":{"type":"string","description":"Maximum number of items to return (1–200, default 50).","title":"between(1, 200)"},"required":false,"description":"Maximum number of items to return (1–200, default 50)."},{"name":"cursor","in":"query","schema":{"type":"string","description":"a string at most 512 character(s) long","title":"maxLength(512)","maxLength":512},"required":false,"description":"a string at most 512 character(s) long"},{"name":"from","in":"query","schema":{"$ref":"#/components/schemas/DateTimeUtc"},"required":false},{"name":"to","in":"query","schema":{"$ref":"#/components/schemas/DateTimeUtc"},"required":false}],"security":[{"oauth2":[]},{"bearer":[]}],"responses":{"200":{"description":"A page of request log entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestLogPage"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"description":"Invalid or missing access token. No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidTokenProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}}},"422":{"description":"Validation failed. The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationFailedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"429":{"description":"Rate limit exceeded. You have used your request budget for the current window. See the `Rate limits` guide.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RateLimitedProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal error. Something went wrong on our side. The failure has been logged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalErrorProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"}}},"503":{"description":"Service unavailable. A dependency is temporarily unavailable, or the service is overloaded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableProblem"}}},"headers":{"X-Correlation-Id":{"$ref":"#/components/headers/X-Correlation-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}}},"description":"Returns the requests made with any of your API keys, newest first, from the Nivo audit trail\n(kept for 12 months). Use it to debug an integration or to check what a key was used for.\nEntries can take a few seconds to appear. Paginated: pass `nextCursor` back as `cursor` until `hasMore` is `false` (see *Pagination*).","summary":"List request logs"}}},"components":{"schemas":{"TokenResponse":{"type":"object","required":["access_token","token_type","expires_in"],"properties":{"access_token":{"type":"string","description":"The bearer token to send as `Authorization: Bearer <access_token>`. Treat it as opaque.","examples":["eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI3YzllNjY3OS…"]},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"number","description":"Seconds until the token expires (900, or less if the API key expires sooner).","examples":[900]}},"additionalProperties":false,"examples":[{"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…","token_type":"Bearer","expires_in":900}]},"OAuthBadRequest":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["invalid_request","unsupported_grant_type"]},"error_description":{"type":"string"}},"additionalProperties":false,"description":"Malformed token request: a missing or repeated parameter, an unsupported content type, credentials sent both via Basic and in the body (`invalid_request`), or a grant type other than `client_credentials` (`unsupported_grant_type`).","examples":[{"error":"invalid_request","error_description":"grant_type is required"}]},"Int":{"type":"integer","description":"an integer","title":"int"},"OAuthInvalidClient":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["invalid_client"]},"error_description":{"type":"string"}},"additionalProperties":false,"description":"Client authentication failed: the key id / secret is unknown, revoked, expired or malformed. Carries `WWW-Authenticate: Basic` when the client authenticated with HTTP Basic.","examples":[{"error":"invalid_client","error_description":"Client authentication failed"}]},"OAuthRateLimited":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["rate_limited"]},"error_description":{"type":"string"}},"additionalProperties":false,"description":"Too many token requests from your IP address (30 per minute). Wait `Retry-After` seconds.","examples":[{"error":"rate_limited","error_description":"Too many token requests; retry in 42s"}]},"OAuthTemporarilyUnavailable":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["temporarily_unavailable"]},"error_description":{"type":"string"}},"additionalProperties":false,"description":"Tokens cannot be issued right now. Retry after `Retry-After` seconds; existing tokens keep working.","examples":[{"error":"temporarily_unavailable","error_description":"The authorization server is temporarily unavailable"}]},"WhoAmI":{"type":"object","required":["providerId","apiKeyId"],"properties":{"providerId":{"type":"string","description":"The provider (organisation) the API key belongs to.","examples":["0f8fad5b-d9cb-469f-a165-70867728950e"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"apiKeyId":{"type":"string","description":"Identifier of the API key the access token was issued for (not the `nivo_…` key id).","examples":["7c9e6679-7425-40de-944b-e07fc1f90ae7"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"additionalProperties":false},"CaseCreateRequest":{"type":"object","required":["channel","subjects"],"properties":{"channel":{"type":"string","enum":["email","sms","console"],"description":"The channel the case starts on. Your published workflow must have a trigger for it (see\n`GET /v1/triggers`). For `email` and `sms` the Nivo AI contacts the lead applicant (or the first\nsubject with an address on the channel) from the trigger's address.","examples":["email"]},"triggerId":{"type":"string","description":"The trigger to start from, from `GET /v1/triggers`. Needed only when your workflow has more than one trigger for the channel. Up to 100 characters.","title":"maxLength(100)","minLength":1,"examples":["cbfa7a6b-5975-5a8d-84f2-88f4e3596c85"],"maxLength":100},"name":{"type":"string","description":"Display name of the case. Without one, the Nivo AI names the case. Up to 200 characters.","title":"maxLength(200)","minLength":1,"examples":["Ashworth"],"maxLength":200},"data":{"type":"object","required":[],"properties":{},"additionalProperties":{"$id":"/schemas/unknown","title":"unknown"},"description":"Any JSON object (up to 64 KB) with the case's details, e.g. the loan and company. The Nivo AI and your workflow use it as the case's starting information.","examples":[{"product":"business_loan","loan":{"amount":50000,"duration":"36 months"}}]},"metadata":{"type":"object","required":[],"properties":{},"additionalProperties":{"type":"string","description":"a string at most 500 character(s) long","title":"maxLength(500)","maxLength":500}},"subjects":{"type":"array","items":{"$ref":"#/components/schemas/SubjectInput"},"description":"The people and organisations on the case: 1 to 20.","title":"maxItems(20)","minItems":1,"maxItems":20},"documents":{"type":"array","items":{"$ref":"#/components/schemas/DocumentRequirementInput"},"description":"Documents the case needs, up to 50. Accepted and stored, but not acted on yet: for now your workflow decides which documents to collect.","title":"maxItems(50)","maxItems":50}},"additionalProperties":false},"SubjectInput":{"type":"object","required":["reference","type"],"properties":{"reference":{"type":"string","description":"Your handle for this subject, unique in the request. Documents point at subjects by it. 1–64 letters, digits, `_`, `.` or `-`.","examples":["dominic"],"pattern":"^[A-Za-z0-9_.-]{1,64}$"},"type":{"type":"string","enum":["individual","organisation"],"description":"Whether the subject is a person or an organisation."},"name":{"type":"string","description":"Full name of the person or organisation. Up to 200 characters.","title":"maxLength(200)","minLength":1,"examples":["Dominic Ashworth"],"maxLength":200},"emailAddresses":{"type":"array","items":{"type":"string","description":"An email address.","title":"maxLength(254)","maxLength":254,"examples":["dominic@example.com"],"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"},"description":"Up to 10 email addresses.","title":"maxItems(10)","maxItems":10},"phoneNumbers":{"type":"array","items":{"type":"string","description":"A phone number in E.164 format.","examples":["+447700900123"],"pattern":"^\\+[1-9][0-9]{6,14}$"},"description":"Up to 10 phone numbers (E.164).","title":"maxItems(10)","maxItems":10},"postalAddresses":{"type":"array","items":{"type":"string","description":"A postal address on one line. Up to 500 characters.","title":"maxLength(500)","minLength":1,"examples":["4 Oak Lane, Leeds, LS2 2BB"],"maxLength":500},"description":"Up to 5 postal addresses.","title":"maxItems(5)","maxItems":5},"dateOfBirth":{"type":"string","description":"Date of birth, `YYYY-MM-DD`.","examples":["1980-04-12"],"pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"companyNumber":{"type":"string","description":"Company registration number. Up to 50 characters.","title":"maxLength(50)","minLength":1,"examples":["12345678"],"maxLength":50},"websiteDomain":{"type":"string","description":"Website domain. Up to 253 characters.","title":"maxLength(253)","minLength":1,"examples":["ashworthtrees.co.uk"],"maxLength":253},"roles":{"type":"array","items":{"type":"string","description":"A role name from `GET /v1/roles` (any letter case). Up to 100 characters.","title":"maxLength(100)","minLength":1,"examples":["Lead applicant"],"maxLength":100},"description":"The subject's roles on the case, from `GET /v1/roles`. Your workflow uses roles to decide who each task is for and who messages go to.","title":"maxItems(10)","maxItems":10},"isLeadApplicant":{"type":"boolean","description":"Whether this subject is the case's lead applicant. At most one subject can be. Default `false`."},"isOrganisationRepresentative":{"type":"boolean","description":"Whether this person represents an organisation on the case. Default `false`."}},"additionalProperties":false,"description":"A person or organisation on the new case. Give at least a name, an email address, a phone number or a company number."},"DocumentRequirementInput":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string","description":"Your identifier for the document, unique in the request. 1–64 letters, digits, `_`, `.` or `-`.","examples":["proof_of_id"],"pattern":"^[A-Za-z0-9_.-]{1,64}$"},"label":{"type":"string","description":"What the document is, as you would ask for it. Up to 200 characters.","title":"maxLength(200)","minLength":1,"examples":["Photo ID"],"maxLength":200},"required":{"type":"boolean","description":"Whether the case needs it (`true`, the default) or it is nice to have."},"subject":{"type":"string","description":"The `reference` of the subject the document is about. 1–64 letters, digits, `_`, `.` or `-`.","examples":["dominic"],"pattern":"^[A-Za-z0-9_.-]{1,64}$"},"notes":{"type":"string","description":"Guidance, such as date ranges or acceptable formats. Up to 1000 characters.","title":"maxLength(1000)","minLength":1,"examples":["Passport or licence"],"maxLength":1000}},"additionalProperties":false,"description":"A document the case needs. Accepted and stored, but not acted on yet."},"FieldIssue":{"type":"object","required":["field","code","message"],"properties":{"field":{"type":"string","description":"Dot-separated path to the offending field.","examples":["contact.email"]},"code":{"type":"string","enum":["missing","invalid_type","invalid_value","unexpected"],"description":"Machine-readable reason. `unexpected`: the field is not part of the schema."},"message":{"type":"string","description":"Explanation. Never echoes the submitted value.","examples":["is required"]}}},"UUID":{"type":"string","description":"a Universally Unique Identifier","format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"DateTimeUtc":{"type":"string","description":"a string to be decoded into a DateTime.Utc"},"CasePage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Case"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Case":{"type":"object","required":["id","name","stageId","labelIds","createdAt","lastMessageAt","metadata"],"properties":{"id":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Display name of the case, if it has one.","examples":["Smith — remortgage"]},"stageId":{"anyOf":[{"type":"string","description":"The case's current stage (see `GET /v1/stages`).","examples":["9e1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"The case's current stage (see `GET /v1/stages`); `null` when it has none."},"labelIds":{"type":"array","items":{"type":"string","description":"A label on the case (see `GET /v1/labels`).","examples":["1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"description":"Labels on the case (see `GET /v1/labels`). Empty when there are none."},"createdAt":{"type":"string","description":"When the case was created.","examples":["2026-09-26T09:30:00.000Z"]},"lastMessageAt":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp in UTC.","examples":["2026-09-26T09:30:00.000Z"]},{"type":"null"}],"description":"When the most recent message on the case was sent or received; `null` if there are none yet."},"metadata":{"type":"object","required":[],"properties":{},"additionalProperties":{"type":"string"},"description":"The `metadata` you sent when you created the case with `POST /v1/cases`. Empty for other cases.","examples":[{"crmCaseId":"enquiry-4821"}]}},"additionalProperties":false,"description":"A case: one customer matter handled by your Nivo AI."},"MessagePage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Message"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Message":{"type":"object","required":["id","caseId","sentAt","channel","direction","from","to","subject","body","documentId"],"properties":{"id":{"type":"string","description":"Message identifier.","examples":["3f2e1d0c-9b8a-4c7d-8e6f-5a4b3c2d1e0f"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"caseId":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"sentAt":{"type":"string","description":"When the message was sent or received.","examples":["2026-09-26T09:30:00.000Z"]},"channel":{"$ref":"#/components/schemas/MessageChannel"},"direction":{"type":"string","enum":["inbound","outbound"],"description":"`inbound`: from your customer or a third party. `outbound`: sent by your Nivo AI or your team."},"from":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sender address or phone number of an inbound email, SMS or app message; otherwise `null`.","examples":["jane.smith@example.com"]},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Recipient address or phone number of an outbound email, SMS or app message; otherwise `null`.","examples":[null]},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Email subject line, if any.","examples":["Re: Documents for your application"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Message text. `null` for a message that only carries a document.","examples":["Hi, please find my payslips attached."]},"documentId":{"anyOf":[{"type":"string","description":"Document attached to this message.","examples":["7d6c5b4a-3f2e-4d1c-9b8a-7f6e5d4c3b2a"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Document attached to this message; fetch it with `GET /v1/cases/{caseId}/documents/{documentId}`. `null` if none."}},"additionalProperties":false,"description":"A message on a case, in any channel."},"MessageChannel":{"type":"string","enum":["email","sms","mobile_app","console","other"],"description":"How the message travelled. `console` is a message written in the Nivo console; `other` covers system messages and channels without a public name yet. New values may be added."},"SubjectPage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Subject"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Subject":{"type":"object","required":["id","caseId","type","name","emailAddresses","phoneNumbers","isLeadApplicant"],"properties":{"id":{"type":"string","description":"Subject identifier.","examples":["2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"caseId":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"type":{"type":"string","enum":["individual","organisation","unknown"],"description":"Whether the subject is a person or an organisation. New values may be added."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The subject's current name as identified on the case.","examples":["Jane Smith"]},"emailAddresses":{"type":"array","items":{"type":"string"},"description":"Email addresses identified for the subject.","examples":[["jane.smith@example.com"]]},"phoneNumbers":{"type":"array","items":{"type":"string"},"description":"Phone numbers identified for the subject.","examples":[["+44 7700 900123"]]},"isLeadApplicant":{"type":"boolean","description":"Whether this subject is the case's lead applicant."}},"additionalProperties":false,"description":"A person or organisation identified on a case."},"TaskPage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Task":{"type":"object","required":["id","caseId","name","type","status","createdAt"],"properties":{"id":{"type":"string","description":"Task identifier.","examples":["6e5d4c3b-2a1f-4e0d-8c9b-a8f7e6d5c4b3"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"caseId":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name of the task, as configured for your Nivo AI.","examples":["Collect latest payslips"]},"type":{"type":"string","enum":["question","document_request","form","document_analysis","message","identity_verification","open_banking","e_signature","credit_check","case_update","ai_agent","research","document_generation","integration","other"],"description":"What kind of work the task is.\n\n- `question`: asks someone a question and records the answer.\n- `document_request`: asks for one or more documents.\n- `form`: asks someone to fill in a form.\n- `document_analysis`: reads and extracts data from documents on the case.\n- `message`: sends a message (email, SMS, app or console).\n- `identity_verification`: identity and anti-money-laundering checks.\n- `open_banking`: open banking or bank account data.\n- `e_signature`: asks someone to sign a document electronically.\n- `credit_check`: credit or affordability reports.\n- `case_update`: changes the case itself, such as its stage or labels.\n- `ai_agent`: an open-ended goal the Nivo AI works towards.\n- `research`: looks up information.\n- `document_generation`: produces a document.\n- `integration`: calls one of your systems or a third-party service.\n- `other`: a kind without a public name yet.\n\nNew values may be added.","examples":["document_request"]},"status":{"type":"string","enum":["not_started","in_progress","awaiting_action","scheduled","completed","unknown"],"description":"- `not_started`: the workflow has not reached it yet; it waits for earlier tasks to finish.\n- `in_progress`: the Nivo AI is working on it, or is about to start.\n- `awaiting_action`: waiting for its owner (your customer or your team) to act.\n- `scheduled`: will resume at a scheduled time.\n- `completed`: done.\n- `unknown`: a state without a public name yet.\n\nNew values may be added."},"createdAt":{"type":"string","description":"When the task was created.","examples":["2026-09-26T09:30:00.000Z"]}},"additionalProperties":false,"description":"A unit of work the Nivo AI carries out on a case. Every task of the case is listed, including the ones the workflow has not reached yet (`not_started`)."},"TaskDetail":{"type":"object","required":["id","caseId","name","type","status","createdAt","ownerRole","channels","position","dependsOn","schedule"],"properties":{"id":{"type":"string","description":"Task identifier.","examples":["6e5d4c3b-2a1f-4e0d-8c9b-a8f7e6d5c4b3"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"caseId":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name of the task, as configured for your Nivo AI.","examples":["Collect latest payslips"]},"type":{"type":"string","enum":["question","document_request","form","document_analysis","message","identity_verification","open_banking","e_signature","credit_check","case_update","ai_agent","research","document_generation","integration","other"],"description":"What kind of work the task is.\n\n- `question`: asks someone a question and records the answer.\n- `document_request`: asks for one or more documents.\n- `form`: asks someone to fill in a form.\n- `document_analysis`: reads and extracts data from documents on the case.\n- `message`: sends a message (email, SMS, app or console).\n- `identity_verification`: identity and anti-money-laundering checks.\n- `open_banking`: open banking or bank account data.\n- `e_signature`: asks someone to sign a document electronically.\n- `credit_check`: credit or affordability reports.\n- `case_update`: changes the case itself, such as its stage or labels.\n- `ai_agent`: an open-ended goal the Nivo AI works towards.\n- `research`: looks up information.\n- `document_generation`: produces a document.\n- `integration`: calls one of your systems or a third-party service.\n- `other`: a kind without a public name yet.\n\nNew values may be added.","examples":["document_request"]},"status":{"type":"string","enum":["not_started","in_progress","awaiting_action","scheduled","completed","unknown"],"description":"- `not_started`: the workflow has not reached it yet; it waits for earlier tasks to finish.\n- `in_progress`: the Nivo AI is working on it, or is about to start.\n- `awaiting_action`: waiting for its owner (your customer or your team) to act.\n- `scheduled`: will resume at a scheduled time.\n- `completed`: done.\n- `unknown`: a state without a public name yet.\n\nNew values may be added."},"createdAt":{"type":"string","description":"When the task was created.","examples":["2026-09-26T09:30:00.000Z"]},"ownerRole":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role responsible for completing the task, as configured for your Nivo AI (for example the applicant or a broker); `null` when the Nivo AI completes it itself.","examples":["Applicant"]},"channels":{"type":"array","items":{"type":"string","enum":["email","sms","mobile_app","console"]},"description":"The channels the task communicates on. Empty when it sends nothing. New values may be added.","examples":[["email","sms"]]},"position":{"anyOf":[{"$ref":"#/components/schemas/Int"},{"type":"null"}],"description":"The task's place in the case's workflow, ascending; `null` when it has none.","examples":[3]},"dependsOn":{"type":"array","items":{"$ref":"#/components/schemas/TaskDependency"},"description":"Tasks this one still waits for, in the configured order. Empty once the workflow has reached it, i.e. whenever `status` is not `not_started`."},"schedule":{"anyOf":[{"$ref":"#/components/schemas/TaskSchedule"},{"type":"null"}],"description":"When the task runs, for a task that runs on a schedule; otherwise `null`."}},"additionalProperties":false,"description":"A task with the details only `GET /v1/cases/{caseId}/tasks/{taskId}` returns."},"TaskDependency":{"type":"object","required":["taskId","name","description"],"properties":{"taskId":{"type":"string","description":"The task this one waits for.","examples":["9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name of that task.","examples":["Verify identity"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The condition, as configured for your Nivo AI; `null` if none.","examples":["Once the applicant's identity is verified"]}},"additionalProperties":false,"description":"A task that must finish before this one starts."},"TaskSchedule":{"type":"object","required":["repeats","nextRunAt"],"properties":{"repeats":{"type":"boolean","description":"Whether the task runs again after each run."},"nextRunAt":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp in UTC.","examples":["2026-09-26T09:30:00.000Z"]},{"type":"null"}],"description":"When the task next runs; `null` when no run is planned (for example, once it is completed)."}},"additionalProperties":false,"description":"When a scheduled task runs."},"TaskStatusChangeRequest":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["completed"],"description":"The status to set. Only `completed` can be set at the moment; more values may be added.","examples":["completed"]}},"additionalProperties":false,"description":"The status you want the task to have."},"TaskStatus":{"type":"string","enum":["not_started","in_progress","awaiting_action","scheduled","completed","unknown"],"description":"- `not_started`: the workflow has not reached it yet; it waits for earlier tasks to finish.\n- `in_progress`: the Nivo AI is working on it, or is about to start.\n- `awaiting_action`: waiting for its owner (your customer or your team) to act.\n- `scheduled`: will resume at a scheduled time.\n- `completed`: done.\n- `unknown`: a state without a public name yet.\n\nNew values may be added."},"TaskStatusChangeError":{"type":"object","required":["code","detail","taskStatusChanged"],"properties":{"code":{"type":"string","enum":["case_busy","case_unavailable","processing_failed"],"description":"- `case_busy`: the case was busy being processed for more than 5 minutes. Safe to retry.\n- `case_unavailable`: processing is blocked on this case, or the case does not support this change.\n- `processing_failed`: the change failed on our side. `taskStatusChanged` says whether the\n  task's status was written before the failure.\n\nNew values may be added.","examples":["case_busy"]},"detail":{"type":"string","description":"Human-readable explanation.","examples":["The case was busy for too long. Retry the change."]},"taskStatusChanged":{"type":"boolean","description":"Whether the task's status was changed before the failure.","examples":[false]}},"additionalProperties":false,"description":"Why a status change failed."},"TaskStatusChange":{"type":"object","required":["id","caseId","taskId","requestedStatus","previousStatus","status","outcome","waitingFor","error","createdAt","completedAt"],"properties":{"id":{"type":"string","description":"Status change identifier.","examples":["0f1e2d3c-4b5a-4968-8776-a5b4c3d2e1f0"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"caseId":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"taskId":{"type":"string","description":"Task identifier.","examples":["6e5d4c3b-2a1f-4e0d-8c9b-a8f7e6d5c4b3"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"requestedStatus":{"type":"string","enum":["completed"],"description":"The status you asked for.","examples":["completed"]},"previousStatus":{"anyOf":[{"$ref":"#/components/schemas/TaskStatus"},{"type":"null"}],"description":"The task's status before the change; `null` until the change has been applied."},"status":{"type":"string","enum":["pending","succeeded","failed"],"description":"- `pending`: accepted and being processed, or waiting for the workflow to reach the task (see\n  `waitingFor`). Poll this resource until it is final.\n- `succeeded`: the task has the requested status and the Nivo AI has picked up any work that\n  depended on it.\n- `failed`: the change did not complete; see `error`.\n\n`succeeded` and `failed` are final.","examples":["pending"]},"outcome":{"anyOf":[{"type":"string","enum":["changed","unchanged"]},{"type":"null"}],"description":"For a `succeeded` change: `changed` when the status was updated, `unchanged` when the task already had it. `null` otherwise.","examples":[null]},"waitingFor":{"anyOf":[{"type":"string","enum":["previous_tasks"]},{"type":"null"}],"description":"Why a `pending` change is not being applied yet; `null` otherwise.\n\n- `previous_tasks`: the task is `not_started`. The change is applied automatically when the workflow\n  reaches the task, so tasks that depend on it never start early and the workflow order is kept. This\n  can take hours or days. If the workflow never reaches the task (for example, that branch is not\n  taken), the change is never applied and stays `pending`.\n\nNew values may be added.","examples":[null]},"error":{"anyOf":[{"$ref":"#/components/schemas/TaskStatusChangeError"},{"type":"null"}],"description":"Why the change failed; `null` unless `status` is `failed`."},"createdAt":{"type":"string","description":"When the change was requested.","examples":["2026-09-26T09:30:00.000Z"]},"completedAt":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp in UTC.","examples":["2026-09-26T09:30:00.000Z"]},{"type":"null"}],"description":"When the change reached a final status; `null` while `pending`."}},"additionalProperties":false,"description":"A request to change a task's status, and how far it has got. Changes are processed asynchronously."},"DocumentPage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Document"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Document":{"type":"object","required":["id","caseId","filename","mimeType","createdAt"],"properties":{"id":{"type":"string","description":"Document identifier.","examples":["7d6c5b4a-3f2e-4d1c-9b8a-7f6e5d4c3b2a"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"caseId":{"type":"string","description":"Case identifier.","examples":["5b3c1f9e-2d4a-4e8b-9c1d-7a6f0e2b3c4d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Original file name, if known.","examples":["payslip-august.pdf"]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Media type of the file, if known.","examples":["application/pdf"]},"createdAt":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp in UTC.","examples":["2026-09-26T09:30:00.000Z"]},{"type":"null"}],"description":"When the document was received, if known."}},"additionalProperties":false,"description":"A file attached to a case."},"StagePage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Stage"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Stage":{"type":"object","required":["id","name","position"],"properties":{"id":{"type":"string","description":"Stage identifier.","examples":["9e1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"type":"string","description":"Stage name.","examples":["Documents requested"]},"position":{"type":"integer","description":"Display order, ascending.","title":"int","examples":[0]}},"additionalProperties":false,"description":"A stage cases move through, as configured in the Nivo console."},"LabelPage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Label":{"type":"object","required":["id","name","position"],"properties":{"id":{"type":"string","description":"Label identifier.","examples":["1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"type":"string","description":"Label name.","examples":["Priority"]},"position":{"type":"integer","description":"Display order, ascending.","title":"int","examples":[0]}},"additionalProperties":false,"description":"A label that can be put on cases, as configured in the Nivo console."},"TriggerPage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Trigger":{"type":"object","required":["id","channel","address"],"properties":{"id":{"type":"string","description":"Trigger identifier; pass it as `triggerId` when you create a case.","examples":["cbfa7a6b-5975-5a8d-84f2-88f4e3596c85"]},"channel":{"type":"string","enum":["email","sms","console"],"description":"The channel the trigger starts cases on."},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Nivo AI's address on the channel (mailbox or phone number); `null` for `console`.","examples":["cases@ai.nivohub.com"]}},"additionalProperties":false,"description":"A starting point of your published workflow that cases can be created through."},"RolePage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Role"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Role":{"type":"object","required":["id","name","description"],"properties":{"id":{"type":"string","description":"Role identifier.","examples":["3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"type":"string","description":"Role name; use it in `SubjectInput.roles`.","examples":["Lead applicant"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the role means, if described.","examples":["The main applicant on the case"]}},"additionalProperties":false,"description":"A role subjects can have on your cases."},"ChannelPage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Channel"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"Channel":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"Channel identifier.","examples":["4b5c6d7e-8f9a-4b0c-9d1e-2f3a4b5c6d7e"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"type":{"type":"string","enum":["email","sms","mobile_app","console"],"description":"The kind of channel. New values may be added."}},"additionalProperties":false,"description":"A channel your Nivo AI can communicate through."},"RequestLogPage":{"type":"object","required":["data","nextCursor","hasMore"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RequestLog"},"description":"The items on this page, in a stable order."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` to fetch the next page; `null` on the last page. Opaque — do not parse."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"additionalProperties":false},"RequestLog":{"type":"object","required":["id","occurredAt","requestId","apiKeyId","method","route","status","errorCode","durationMs","clientIp"],"properties":{"id":{"type":"string","description":"Log entry identifier.","examples":["8a9b0c1d-2e3f-4a5b-8c6d-7e8f9a0b1c2d"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"occurredAt":{"type":"string","description":"When the request arrived.","examples":["2026-09-26T09:30:00.000Z"]},"requestId":{"type":"string","description":"The request's `X-Correlation-Id` (also `requestId` in error responses).","examples":["1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"],"format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"apiKeyId":{"anyOf":[{"$ref":"#/components/schemas/UUID"},{"type":"null"}],"description":"The API key the access token was issued for (see `GET /v1/whoami`)."},"method":{"type":"string","description":"HTTP method.","examples":["GET"]},"route":{"type":"string","description":"The endpoint that served the request, as a path template.","examples":["/v1/cases/:caseId"]},"status":{"type":"integer","description":"HTTP status returned.","title":"int","examples":[200]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error `code` returned, for failed requests (see *Errors*).","examples":[null]},"durationMs":{"type":"integer","description":"Time taken to answer, in milliseconds.","title":"int","examples":[42]},"clientIp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IP address the request came from.","examples":["203.0.113.7"]}},"additionalProperties":false,"description":"One request made with your API keys, as recorded by the Nivo audit trail."},"InternalErrorProblem":{"type":"object","required":["type","title","status","code","detail","requestId"],"properties":{"type":{"type":"string","description":"URI identifying the problem type. Stable; safe to switch on.","examples":["https://api.nivohub.ai/errors/internal_error"]},"title":{"type":"string","description":"Short, human-readable summary of the problem type."},"status":{"type":"integer","enum":[500]},"code":{"type":"string","enum":["internal_error"],"description":"Machine-readable error code. Stable; prefer switching on this."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Wording may change; do not parse it."},"requestId":{"type":"string","description":"Identifier of this request (same as the `X-Correlation-Id` response header). Quote it to support."}},"additionalProperties":false,"description":"Something went wrong on our side. The failure has been logged.","title":"Internal error","examples":[{"type":"https://api.nivohub.ai/errors/internal_error","title":"Internal error","status":500,"code":"internal_error","detail":"An unexpected error occurred.","requestId":"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"}]},"InvalidTokenProblem":{"type":"object","required":["type","title","status","code","detail","requestId"],"properties":{"type":{"type":"string","description":"URI identifying the problem type. Stable; safe to switch on.","examples":["https://api.nivohub.ai/errors/invalid_token"]},"title":{"type":"string","description":"Short, human-readable summary of the problem type."},"status":{"type":"integer","enum":[401]},"code":{"type":"string","enum":["invalid_token"],"description":"Machine-readable error code. Stable; prefer switching on this."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Wording may change; do not parse it."},"requestId":{"type":"string","description":"Identifier of this request (same as the `X-Correlation-Id` response header). Quote it to support."}},"additionalProperties":false,"description":"No bearer token was sent, or the token is malformed, expired, or was not issued by Nivo. The `WWW-Authenticate` header carries the same information.","title":"Invalid or missing access token","examples":[{"type":"https://api.nivohub.ai/errors/invalid_token","title":"Invalid or missing access token","status":401,"code":"invalid_token","detail":"Access token expired. Request a new one from POST /oauth/token.","requestId":"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"}]},"RateLimitedProblem":{"type":"object","required":["type","title","status","code","detail","requestId","retryAfter"],"properties":{"type":{"type":"string","description":"URI identifying the problem type. Stable; safe to switch on.","examples":["https://api.nivohub.ai/errors/rate_limited"]},"title":{"type":"string","description":"Short, human-readable summary of the problem type."},"status":{"type":"integer","enum":[429]},"code":{"type":"string","enum":["rate_limited"],"description":"Machine-readable error code. Stable; prefer switching on this."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Wording may change; do not parse it."},"requestId":{"type":"string","description":"Identifier of this request (same as the `X-Correlation-Id` response header). Quote it to support."},"retryAfter":{"type":"integer","description":"Seconds to wait before retrying (same as the `Retry-After` header).","title":"int"}},"additionalProperties":false,"description":"You have used your request budget for the current window. See the `Rate limits` guide.","title":"Rate limit exceeded","examples":[{"type":"https://api.nivohub.ai/errors/rate_limited","title":"Rate limit exceeded","status":429,"code":"rate_limited","detail":"Rate limit of 600 requests per minute exceeded; retry in 17s","retryAfter":17,"requestId":"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"}]},"NotFoundProblem":{"type":"object","required":["type","title","status","code","detail","requestId"],"properties":{"type":{"type":"string","description":"URI identifying the problem type. Stable; safe to switch on.","examples":["https://api.nivohub.ai/errors/not_found"]},"title":{"type":"string","description":"Short, human-readable summary of the problem type."},"status":{"type":"integer","enum":[404]},"code":{"type":"string","enum":["not_found"],"description":"Machine-readable error code. Stable; prefer switching on this."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Wording may change; do not parse it."},"requestId":{"type":"string","description":"Identifier of this request (same as the `X-Correlation-Id` response header). Quote it to support."}},"additionalProperties":false,"description":"The URL does not exist, or the resource it names does not exist or is not visible to your API key.","title":"Not found","examples":[{"type":"https://api.nivohub.ai/errors/not_found","title":"Not found","status":404,"code":"not_found","detail":"No endpoint exists at this path. See the API reference at /docs.","requestId":"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"}]},"ValidationFailedProblem":{"type":"object","required":["type","title","status","code","detail","requestId","errors"],"properties":{"type":{"type":"string","description":"URI identifying the problem type. Stable; safe to switch on.","examples":["https://api.nivohub.ai/errors/validation_failed"]},"title":{"type":"string","description":"Short, human-readable summary of the problem type."},"status":{"type":"integer","enum":[422]},"code":{"type":"string","enum":["validation_failed"],"description":"Machine-readable error code. Stable; prefer switching on this."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Wording may change; do not parse it."},"requestId":{"type":"string","description":"Identifier of this request (same as the `X-Correlation-Id` response header). Quote it to support."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/FieldIssue"},"description":"One entry per invalid field."}},"additionalProperties":false,"description":"The request is well-formed but one or more fields are missing or invalid. Each problem is listed in `errors` with the field path.","title":"Validation failed","examples":[{"type":"https://api.nivohub.ai/errors/validation_failed","title":"Validation failed","status":422,"code":"validation_failed","detail":"One or more fields are missing or invalid.","errors":[{"field":"contact.email","code":"missing","message":"is required"}],"requestId":"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"}]},"ServiceUnavailableProblem":{"type":"object","required":["type","title","status","code","detail","requestId"],"properties":{"type":{"type":"string","description":"URI identifying the problem type. Stable; safe to switch on.","examples":["https://api.nivohub.ai/errors/service_unavailable"]},"title":{"type":"string","description":"Short, human-readable summary of the problem type."},"status":{"type":"integer","enum":[503]},"code":{"type":"string","enum":["service_unavailable"],"description":"Machine-readable error code. Stable; prefer switching on this."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Wording may change; do not parse it."},"requestId":{"type":"string","description":"Identifier of this request (same as the `X-Correlation-Id` response header). Quote it to support."}},"additionalProperties":false,"description":"A dependency is temporarily unavailable, or the service is overloaded.","title":"Service unavailable","examples":[{"type":"https://api.nivohub.ai/errors/service_unavailable","title":"Service unavailable","status":503,"code":"service_unavailable","detail":"The service is temporarily unavailable.","requestId":"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"}]},"UpstreamTimeoutProblem":{"type":"object","required":["type","title","status","code","detail","requestId"],"properties":{"type":{"type":"string","description":"URI identifying the problem type. Stable; safe to switch on.","examples":["https://api.nivohub.ai/errors/upstream_timeout"]},"title":{"type":"string","description":"Short, human-readable summary of the problem type."},"status":{"type":"integer","enum":[504]},"code":{"type":"string","enum":["upstream_timeout"],"description":"Machine-readable error code. Stable; prefer switching on this."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Wording may change; do not parse it."},"requestId":{"type":"string","description":"Identifier of this request (same as the `X-Correlation-Id` response header). Quote it to support."}},"additionalProperties":false,"description":"The request took too long to process and was abandoned. It may or may not have taken effect.","title":"Upstream timeout","examples":[{"type":"https://api.nivohub.ai/errors/upstream_timeout","title":"Upstream timeout","status":504,"code":"upstream_timeout","detail":"The request took too long to process.","requestId":"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"}]},"ConflictProblem":{"type":"object","required":["type","title","status","code","detail","requestId"],"properties":{"type":{"type":"string","description":"URI identifying the problem type. Stable; safe to switch on.","examples":["https://api.nivohub.ai/errors/conflict"]},"title":{"type":"string","description":"Short, human-readable summary of the problem type."},"status":{"type":"integer","enum":[409]},"code":{"type":"string","enum":["conflict"],"description":"Machine-readable error code. Stable; prefer switching on this."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Wording may change; do not parse it."},"requestId":{"type":"string","description":"Identifier of this request (same as the `X-Correlation-Id` response header). Quote it to support."}},"additionalProperties":false,"description":"The request conflicts with the current state of the resource, e.g. a concurrent update or a duplicate create.","title":"Conflict","examples":[{"type":"https://api.nivohub.ai/errors/conflict","title":"Conflict","status":409,"code":"conflict","detail":"The resource was modified by another request.","requestId":"1d6c5f6e-4a8b-4f0e-9c1b-2b6f1c3f9a77"}]}},"securitySchemes":{"oauth2":{"type":"oauth2","description":"OAuth 2.0 client-credentials grant. Use your API key id as client id and its secret as client secret; the resulting access token is sent as a bearer token.","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{}}}},"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"An access token from `POST /oauth/token`, sent as `Authorization: Bearer <token>`."},"apiKeyBasic":{"type":"http","scheme":"basic","description":"Token endpoint only: API key id as username, API key secret as password."}},"headers":{"X-Correlation-Id":{"description":"Identifier of this request. Echoes a UUID you sent, otherwise generated. Quote it to support.","schema":{"type":"string","format":"uuid"}},"RateLimit-Limit":{"description":"Requests allowed in the current 60-second window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The rate-limit policy, e.g. `600;w=60` (600 requests per 60 seconds).","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"WWW-Authenticate":{"description":"Authentication challenge (RFC 6750 for bearer tokens, RFC 7617 for Basic).","schema":{"type":"string"}},"Location":{"description":"Relative URL of the resource to poll for the outcome.","schema":{"type":"string"}}},"parameters":{"CorrelationId":{"name":"X-Correlation-Id","in":"header","required":false,"description":"Optional UUID identifying this request end to end. Generated when absent or not a UUID.","schema":{"type":"string","format":"uuid"}}}},"security":[],"tags":[{"name":"Authentication","description":"Obtain access tokens. See the *Authentication* guide for key formats, token caching and rotation."},{"name":"Account","description":"Information about the authenticated caller."},{"name":"Cases","description":"Your cases and what is on them: messages, subjects, tasks and documents. You can also create cases and mark a task as completed."},{"name":"Configuration","description":"How your Nivo AI is set up: stages, labels, channels, and the triggers and roles you need to create cases. Read-only."},{"name":"Request logs","description":"The audit trail of your API usage."}],"servers":[{"url":"https://api.nivohub.ai","description":"Production"},{"url":"https://api.nivo-test.ai","description":"Pre-production (integration testing)"}]}