{
  "openapi": "3.1.0",
  "info": {
    "title": "Delpha Data Quality API",
    "version": "2.4.0",
    "description": "\nDelpha finds, validates and enriches business-identity data — emails, phones, websites,\nperson names, legal identifiers, LinkedIn profiles and company pages, ultimate parents — and\nscores every field on accuracy, completeness, consistency and validity. Each verification\nreturns a **label** (the verdict), a **normalized value**, per-dimension **scores** and,\nwhere the record can be improved, ranked **suggestions** with confidence.\n\nThe same operations are exposed as tools by the Delpha **MCP server**\n(`https://mcp.delpha.ai/mcp`, sign in with your Delpha account or use an API key), so an\nagent can call them without writing HTTP.\n\n## Authentication\n\nEvery request carries `Authorization: Bearer <credential>`, with one exception:\n`GET /v1/pricing`, the price list, takes no credential. It is answered to every caller, and a\ncredential sent with it is ignored.\n\n- **API keys** (`dlp_live_…`) are created in the console at\n  **Developer → API keys**. A key can be scoped to individual use cases\n  (`dataquality.<usecase>.single` / `.batch`), given a credit ceiling per day, week or\n  month, and an expiry — **365 days by default, and any value from 1 to 730 days**;\n  a key cannot be made never to expire. Keys are revealed, renamed, re-scoped, rotated\n  and revoked from the same page. A call outside a key's scopes is refused with\n  **403**; `GET /v1/pricing` is the exception, because no scope governs an operation that\n  needs no credential. A key is a secret credential with the same reach as a password: it belongs on a\n  server, and a key placed in client-side code is a disclosed key.\n- **Rotating or revoking a key takes effect at once, with no overlap window.** A\n  rotation issues a new secret on the same key and invalidates the old one in the same\n  step, so deploy the new secret before you rotate rather than after; a revocation\n  invalidates the key outright. In both cases the credential stops being accepted\n  immediately, with one bounded exception: an authorization decision already made for\n  that credential is cached by the gateway for up to **60 seconds**, so a request in\n  flight within that window can still be served. Nothing is cached beyond it.\n- **OAuth 2.0 client credentials** (machine-to-machine) is also accepted; see the `oauth2`\n  security scheme for the token endpoints.\n\n\n### Security schemes\n\n**`apiKey`**\n\n**Type:** `http` · **HTTP scheme:** `bearer` · **Bearer format:** `dlp_`\n\nNative Delpha API key. Send it as an HTTP bearer token (`Authorization: Bearer dlp_...`). Keys are issued from the Delpha app (Developer → API keys) and are billed per team against the team's credit balance.\n\n**`oauth2`**\n\n**Type:** `oauth2` · **Flow:** `clientCredentials` · **Token URL:** `https://secure.delpha.io/oauth2/token` · **Scope:** `api/access` — Access to the public API\n\nOAuth 2.0 client-credentials flow (machine-to-machine). Token URL: https://secure.delpha.io/oauth2/token. The `api/access` scope is all-access: it grants every operation this document publishes. Per-use-case scoping, per-key credit ceilings and expiry are properties of an API key, not of this flow — use an API key when a credential must be restricted.\n\n### API-key scopes\n\nA key with no scopes has full access. A scoped key is restricted to the use cases listed on it, one scope per row below: `single` covers the use case's submit operation, its poll operation and its synchronous route where it has one; `batch` covers the batch submit and batch poll pair. A call outside a key's scopes is refused with **403**.\n\n| Use case | Single scope | Batch scope | State |\n|---|---|---|---|\n| `email` | `dataquality.email.single` | `dataquality.email.batch` | current |\n| `website` | `dataquality.website.single` | `dataquality.website.batch` | current |\n| `phone` | `dataquality.phone.single` | `dataquality.phone.batch` | current |\n| `name` | `dataquality.name.single` | `dataquality.name.batch` | current |\n| `legal-id` | `dataquality.legal-id.single` | `dataquality.legal-id.batch` | current |\n| `linkedin-profile` | `dataquality.linkedin-profile.single` | `dataquality.linkedin-profile.batch` | current |\n| `linkedin-company-page` | `dataquality.linkedin-company-page.single` | `dataquality.linkedin-company-page.batch` | current |\n| `ultimate` | `dataquality.ultimate.single` | `dataquality.ultimate.batch` | current |\n| `company` | `dataquality.company.single` | — | current |\n| `account-match` | `dataquality.account-match.single` | — | current |\n\n`GET /v1/pricing` needs no credential and reserves no credit (`x-credit-free`), so no scope governs it: every caller reaches it, with a key of any scope or with none.\n\nScopes, the credit ceiling and the expiry are chosen when the key is created and can be changed afterwards from [**Developer → API keys**](https://app.delpha.ai/developer/api-keys).\n## Test mode\n\nAn API key is created in one of two modes — **live** or **test mode** — at **Developer → API\nkeys**. A test-mode key calls the same host, the same operations and the same schemas as a\nlive one, and is answered from a published table of canned results. The wire value of the\nmode is `sandbox`: that is what the response header and the webhook marker below carry.\n\n- **The mode is fixed when the key is created.** It cannot be edited afterwards, and\n  rotating a key preserves it. To change mode, create another key.\n- **Nothing in the credential tells you its mode.** The `dlp_live_` / `dlp_test_` prefix\n  records the environment that issued the key, never its mode. The two signals are the\n  **Test mode** badge beside the key in the console and the response header below.\n- **A test-mode call costs nothing.** It reserves no credits and settles none, so it never\n  reaches your balance, your ledger or your usage figures — and it queries no provider, no\n  datalake and no verification backend. The answer is computed from your request alone.\n- **Every response the API renders to a test-mode call carries `X-Delpha-Mode: sandbox`**,\n  success and error alike. A live response carries no such header — absence means live. The\n  exceptions are the responses answered before the API sees the request (**401**, **403**,\n  and the shared per-operation floor's **429**), which carry none of the per-request headers,\n  and `GET /v1/pricing` (below).\n- **`GET /v1/pricing` is the same for every caller.** It takes no credential, so it answers\n  the live price table whatever key the request carries — test-mode, live or none — and its\n  responses never carry `X-Delpha-Mode`.\n- **A test-mode job is complete the moment it is accepted.** The submit is production's:\n  **202** with a `job_id`, a `Location` header, `Retry-After`, and the same idempotency\n  behaviour. The difference is that the first poll answers **200** with the result rather\n  than the transient **202** `job_running`. A production polling loop therefore works\n  unchanged against test mode; it simply ends on its first turn.\n- **Every credentialed operation behaves the same way.** A test-mode key is refused by the **MCP\n  server** alone, with `403 sandbox_key_unsupported` — use a live key there.\n- **Webhooks fire as they do in production**, and a test-mode job's events carry\n  `data.mode: \"sandbox\"` so a subscriber can tell them apart. Absence means live. One\n  operation differs: `POST /v1/ultimate` emits its `sent` event and no completion event,\n  because in production that completion is announced by the resolution engine a test-mode\n  request never reaches. Its batch form is unaffected, and every other operation emits the\n  full `sent` / `done` / `error` lifecycle. Poll the job for the result.\n- **Latency is not representative.** A canned answer comes back immediately, while a live\n  job takes as long as the work takes (each operation publishes its band in\n  `x-typical-latency`). A timeout or poll interval measured against test mode therefore\n  describes nothing about live behaviour.\n- **Test-mode and live jobs are isolated.** A test-mode key polling a live job id — or a\n  live key polling a test-mode one — is answered **404 `not_found`**, the same answer it\n  would get for another team's job id.\n- **Rate limits are the published ones, counted in a window of their own.** A test-mode loop\n  cannot consume the allowance your production traffic is counted against, and it is not\n  exempt from the limits themselves.\n\n**Which answer you get.** One request field per use case decides the verdict. When the value\nof that field contains `invalid`, in any casing, the answer is that use case's **negative**\nverdict; anything else returns the **positive** answer, which describes Delpha's own public\nrecord. `POST /v1/{usecase}/batch` applies the same rule to each item — and every item\nsucceeds, because the marker chooses a verdict rather than a failure, so test mode does not\nreproduce a partially failed batch.\n\n| Operations | Field that decides | Carrying `invalid` | Otherwise |\n|---|---|---|---|\n| `POST /v1/email` | the local part of `email` (an address with no `@` is always negative) | `label: \"No\"`, `email_status: \"Invalid\"`, `email_domain: null`. | `label: \"OK\"`, `email_status: \"Valid\"`, the domain resolved. |\n| `POST /v1/legal-id` | `legal_id` | `label: \"Unknown\"`, `legal_id_type: null`, no suggestions. | `label: \"OK\"`, the published identifier, one suggestion. |\n| `POST /v1/linkedin-profile`, `POST /v1/linkedin-company-page` | `url` | `label: \"No\"`, no recommendations. | `label: \"OK\"`, one recommendation: Delpha's own company page. |\n| `POST /v1/name` | `first_name` (else `last_name`) | `label: \"No\"`, the submitted name echoed, no suggestions. | `label: \"OK\"`, every score filled, one suggestion per part. |\n| `POST /v1/phone` | `phone` | `normalized_value: null` (this result carries no `label`). | `zone: \"FR\"`, normalised to the published number. |\n| `POST /v1/website` | `website` | `label: \"No\"`, no recommendations. | `label: \"OK\"`, the published site, one recommendation. |\n| `POST /v1/ultimate` | `company_name` | the synthetic group with `confidence: 0`, no ownership chain. | the synthetic group with `confidence: 0.95` and a two-step chain. |\n| `GET /v1/company` | `account_name` (else `search_str`) | no companies, `total: 0`, `has_more: false`. | one company carrying its identifier and website. |\n| `GET /v1/phone` | `phone` | `valid: false`, nothing normalised. | `valid: true`, `zone: \"FR\"`, normalised to the published number. |\n\nTwo details the table does not have room for. The ultimate-parent answers name a synthetic\ngroup under the reserved documentation domain rather than a real company. And both LinkedIn\nverifications answer with Delpha's own **company page**, including the profile operation, so\nthat no individual's profile is part of a permanently published fixture; `job_title` is\ntherefore always `null`.\n\n## Code examples\n\nThe examples below call `POST /v1/email` and its batch form from a shell with `curl`, from\nPython and from Node.js. Every operation of this document also publishes its own samples in\n`x-codeSamples` — curl, Python, Node.js and the raw HTTP request — and the request bodies are\nthe examples shown on each operation. Each example sends `dlp_live_your_key_here` where the API\nkey goes. The curl examples run in a POSIX shell and generate each `Idempotency-Key` with\n`uuidgen`, which ships with macOS and many Linux distributions (Debian-based systems carry it\nin `uuid-runtime`); any unique string up to 255 printable ASCII characters is a valid key.\nThe Python examples need the `requests` package (`pip install requests`), and the Node.js\nexamples are CommonJS (save them as `.js` or `.cjs`) and use the built-in `fetch` of Node.js\n18 or later.\n\n\n### Submit and poll\n\nEvery example calls `https://api.delpha.io`. `POST /v1/email` sends the request example published on the operation — `email`, `first_name`, `last_name` and `website` — and answers **202** with a `job_id` in the body and the `Location` and `Retry-After` headers. The loop then sends `GET /v1/email/{job_id}`, the request the poll operation's own sample describes, each time `Retry-After` seconds have passed, and branches on the HTTP status, reading `code` on a **504** only:\n\n- **200** ends the loop with the result.\n- **202** (the job is still running), **429** and **503** are waited out for the `Retry-After` the response carries, and the poll is sent again.\n- **504** is waited out the same way unless its `code` is `job_timeout`, which the `Error` catalog defines as a job that will never complete; that ends the loop.\n- Any other status ends the loop — **404** (no job for this id), **409** (the credit reservation expired before delivery) and **500** among them — and the last body is printed.\n\n{% tabs %}\n{% tab title=\"curl\" %}\n```bash\n# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\nRESPONSE=$(curl -sS -i -X POST \"https://api.delpha.io/v1/email\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"email\":\"jordan.rivera@example.com\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"website\":\"https://delpha.io/\"}')\n# The API's status line is the last one: behind a proxy, curl -i prints the\n# proxy's `200 Connection established` first.\nSTATUS=$(printf '%s\\n' \"$RESPONSE\" | sed -n 's/^HTTP[^ ]* \\([0-9]*\\).*/\\1/p' | tail -n 1)\necho \"$STATUS\"\n\nif [ \"$STATUS\" = 202 ]; then\n  JOB_ID=$(printf '%s\\n' \"$RESPONSE\" | sed -n 's/.*\"job_id\": *\"\\([^\"]*\\)\".*/\\1/p')\n  while :; do\n    RETRY_AFTER=$(printf '%s\\n' \"$RESPONSE\" | tr -d '\\r' | sed -n 's/^[Rr]etry-[Aa]fter: *//p' | tail -n 1)\n    sleep \"${RETRY_AFTER:-1}\"\n    RESPONSE=$(curl -sS -i \"https://api.delpha.io/v1/email/$JOB_ID\" \\\n      -H \"Authorization: Bearer dlp_live_your_key_here\")\n    STATUS=$(printf '%s\\n' \"$RESPONSE\" | sed -n 's/^HTTP[^ ]* \\([0-9]*\\).*/\\1/p' | tail -n 1)\n    case \"$STATUS\" in\n      202 | 429 | 503) ;;\n      504) printf '%s\\n' \"$RESPONSE\" | grep -q '\"code\": *\"job_timeout\"' && break ;;\n      *) break ;;\n    esac\n  done\n  echo \"$STATUS\"\nfi\n\n# The body is the last line of the output.\nprintf '%s\\n' \"$RESPONSE\" | tail -n 1\n```\n{% endtab %}\n{% tab title=\"Python\" %}\n```python\nimport time\nimport uuid\n\nimport requests\n\n# Statuses after which the same poll is sent again once `Retry-After` seconds have\n# passed. A 504 is one of them unless its `code` is `job_timeout`.\nWAIT_STATUSES = {202, 429, 503, 504}\n\n\n# The JSON body, or the raw text when the body is not JSON.\ndef read_body(response):\n    try:\n        return response.json()\n    except ValueError:\n        return response.text\n\n\npayload = {\n    \"email\": \"jordan.rivera@example.com\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"website\": \"https://delpha.io/\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/email\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nbody = read_body(response)\n\nif response.status_code == 202:\n    job_id = body[\"job_id\"]\n    while response.status_code in WAIT_STATUSES:\n        time.sleep(int(response.headers.get(\"Retry-After\", \"1\")))\n        response = requests.get(\n            f\"https://api.delpha.io/v1/email/{job_id}\",\n            headers={\n                \"Authorization\": \"Bearer dlp_live_your_key_here\",\n            },\n            timeout=30,\n        )\n        body = read_body(response)\n        if (\n            response.status_code == 504\n            and isinstance(body, dict)\n            and body.get(\"code\") == \"job_timeout\"\n        ):\n            break\n    print(response.status_code)\n\nprint(body)\n```\n{% endtab %}\n{% tab title=\"Node.js\" %}\n```javascript\nconst { randomUUID } = require(\"node:crypto\");\n\n// Statuses after which the same poll is sent again once `Retry-After` seconds have\n// passed. A 504 is one of them unless its `code` is `job_timeout`.\nconst WAIT_STATUSES = new Set([202, 429, 503, 504]);\n\nfunction sleep(seconds) {\n  return new Promise((resolve) => setTimeout(resolve, seconds * 1000));\n}\n\n// The JSON body, or the raw text when the body is not JSON.\nasync function readBody(response) {\n  const text = await response.text();\n  try {\n    return JSON.parse(text);\n  } catch {\n    return text;\n  }\n}\n\nasync function main() {\n  const payload = {\n    \"email\": \"jordan.rivera@example.com\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"website\": \"https://delpha.io/\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/email\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  let last = response;\n  let body = await readBody(response);\n\n  if (response.status === 202) {\n    const jobId = body.job_id;\n    while (WAIT_STATUSES.has(last.status)) {\n      await sleep(Number(last.headers.get(\"Retry-After\") ?? 1));\n      const response = await fetch(`https://api.delpha.io/v1/email/${jobId}`, {\n        headers: {\n          \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        },\n      });\n      last = response;\n      body = await readBody(response);\n      if (response.status === 504 && body?.code === \"job_timeout\") {\n        break;\n      }\n    }\n    console.log(last.status);\n  }\n\n  console.log(typeof body === \"string\" ? body : JSON.stringify(body, null, 2));\n}\n\nmain();\n```\n{% endtab %}\n{% endtabs %}\n\n### Idempotent submit\n\nThe same `POST /v1/email`, sent twice with one `Idempotency-Key` and the same body. Both answers are **202** with the same `job_id`; the second carries `Idempotent-Replayed: true`, starts no new job and adds no charge. A key is honoured for 24 hours and is scoped to the team; the same key with a different body answers **409** `idempotency_key_reuse` (see **Idempotency**).\n\n{% tabs %}\n{% tab title=\"curl\" %}\n```bash\n# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\n# The second answer carries `Idempotent-Replayed: true` and the first answer's job_id.\nfor ATTEMPT in first second; do\n  echo \"$ATTEMPT request:\"\n  curl -i -X POST \"https://api.delpha.io/v1/email\" \\\n    -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n    -H \"Content-Type: application/json\" \\\n    -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n    --data '{\"email\":\"jordan.rivera@example.com\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"website\":\"https://delpha.io/\"}'\n  echo\ndone\n```\n{% endtab %}\n{% tab title=\"Python\" %}\n```python\nimport uuid\n\nimport requests\n\npayload = {\n    \"email\": \"jordan.rivera@example.com\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"website\": \"https://delpha.io/\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\n# The second answer carries `Idempotent-Replayed: true` and the first answer's job_id.\nfor attempt in (\"first\", \"second\"):\n    response = requests.post(\n        \"https://api.delpha.io/v1/email\",\n        headers={\n            \"Authorization\": \"Bearer dlp_live_your_key_here\",\n            \"Idempotency-Key\": idempotency_key,\n        },\n        json=payload,\n        timeout=30,\n    )\n    print(attempt, response.status_code)\n    print(response.headers.get(\"Idempotent-Replayed\"))\n    print(response.json().get(\"job_id\"))\n```\n{% endtab %}\n{% tab title=\"Node.js\" %}\n```javascript\nconst { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"email\": \"jordan.rivera@example.com\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"website\": \"https://delpha.io/\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  // The second answer carries `Idempotent-Replayed: true` and the first answer's job_id.\n  for (const attempt of [\"first\", \"second\"]) {\n    const response = await fetch(\"https://api.delpha.io/v1/email\", {\n      method: \"POST\",\n      headers: {\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Content-Type\": \"application/json\",\n        \"Idempotency-Key\": idempotencyKey,\n      },\n      body: JSON.stringify(payload),\n    });\n    console.log(attempt, response.status);\n    console.log(response.headers.get(\"Idempotent-Replayed\"));\n    console.log((await response.json()).job_id);\n  }\n}\n\nmain();\n```\n{% endtab %}\n{% endtabs %}\n\n### Batch\n\n`POST /v1/email/batch` sends the batch request example — an `items` list of 1 record — as one job, and the same loop polls `GET /v1/email/batch/{job_id}`. Its **200** carries `counts` (the per-item totals), `result_url` (a presigned link to the result file) and, when that file is 1 MB or smaller, the results inline as `result_data`. Only the items that succeed are charged (see **Batch operations**).\n\n{% tabs %}\n{% tab title=\"curl\" %}\n```bash\n# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\nRESPONSE=$(curl -sS -i -X POST \"https://api.delpha.io/v1/email/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"email\":\"jordan.rivera@example.com\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"website\":\"https://delpha.io/\"}]}')\n# The API's status line is the last one: behind a proxy, curl -i prints the\n# proxy's `200 Connection established` first.\nSTATUS=$(printf '%s\\n' \"$RESPONSE\" | sed -n 's/^HTTP[^ ]* \\([0-9]*\\).*/\\1/p' | tail -n 1)\necho \"$STATUS\"\n\nif [ \"$STATUS\" = 202 ]; then\n  JOB_ID=$(printf '%s\\n' \"$RESPONSE\" | sed -n 's/.*\"job_id\": *\"\\([^\"]*\\)\".*/\\1/p')\n  while :; do\n    RETRY_AFTER=$(printf '%s\\n' \"$RESPONSE\" | tr -d '\\r' | sed -n 's/^[Rr]etry-[Aa]fter: *//p' | tail -n 1)\n    sleep \"${RETRY_AFTER:-1}\"\n    RESPONSE=$(curl -sS -i \"https://api.delpha.io/v1/email/batch/$JOB_ID\" \\\n      -H \"Authorization: Bearer dlp_live_your_key_here\")\n    STATUS=$(printf '%s\\n' \"$RESPONSE\" | sed -n 's/^HTTP[^ ]* \\([0-9]*\\).*/\\1/p' | tail -n 1)\n    case \"$STATUS\" in\n      202 | 429 | 503) ;;\n      504) printf '%s\\n' \"$RESPONSE\" | grep -q '\"code\": *\"job_timeout\"' && break ;;\n      *) break ;;\n    esac\n  done\n  echo \"$STATUS\"\nfi\n\n# The body is the last line of the output.\nprintf '%s\\n' \"$RESPONSE\" | tail -n 1\n```\n{% endtab %}\n{% tab title=\"Python\" %}\n```python\nimport time\nimport uuid\n\nimport requests\n\n# Statuses after which the same poll is sent again once `Retry-After` seconds have\n# passed. A 504 is one of them unless its `code` is `job_timeout`.\nWAIT_STATUSES = {202, 429, 503, 504}\n\n\n# The JSON body, or the raw text when the body is not JSON.\ndef read_body(response):\n    try:\n        return response.json()\n    except ValueError:\n        return response.text\n\n\npayload = {\n    \"items\": [\n        {\n            \"email\": \"jordan.rivera@example.com\",\n            \"first_name\": \"Jordan\",\n            \"last_name\": \"Rivera\",\n            \"website\": \"https://delpha.io/\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/email/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nbody = read_body(response)\n\nif response.status_code == 202:\n    job_id = body[\"job_id\"]\n    while response.status_code in WAIT_STATUSES:\n        time.sleep(int(response.headers.get(\"Retry-After\", \"1\")))\n        response = requests.get(\n            f\"https://api.delpha.io/v1/email/batch/{job_id}\",\n            headers={\n                \"Authorization\": \"Bearer dlp_live_your_key_here\",\n            },\n            timeout=30,\n        )\n        body = read_body(response)\n        if (\n            response.status_code == 504\n            and isinstance(body, dict)\n            and body.get(\"code\") == \"job_timeout\"\n        ):\n            break\n    print(response.status_code)\n\nif response.status_code == 200:\n    print(body[\"counts\"])\n    print(body[\"result_url\"])\n    # Inline only when the result file is 1 MB or smaller.\n    print(body.get(\"result_data\"))\nelse:\n    print(body)\n```\n{% endtab %}\n{% tab title=\"Node.js\" %}\n```javascript\nconst { randomUUID } = require(\"node:crypto\");\n\n// Statuses after which the same poll is sent again once `Retry-After` seconds have\n// passed. A 504 is one of them unless its `code` is `job_timeout`.\nconst WAIT_STATUSES = new Set([202, 429, 503, 504]);\n\nfunction sleep(seconds) {\n  return new Promise((resolve) => setTimeout(resolve, seconds * 1000));\n}\n\n// The JSON body, or the raw text when the body is not JSON.\nasync function readBody(response) {\n  const text = await response.text();\n  try {\n    return JSON.parse(text);\n  } catch {\n    return text;\n  }\n}\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"email\": \"jordan.rivera@example.com\",\n        \"first_name\": \"Jordan\",\n        \"last_name\": \"Rivera\",\n        \"website\": \"https://delpha.io/\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/email/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  let last = response;\n  let body = await readBody(response);\n\n  if (response.status === 202) {\n    const jobId = body.job_id;\n    while (WAIT_STATUSES.has(last.status)) {\n      await sleep(Number(last.headers.get(\"Retry-After\") ?? 1));\n      const response = await fetch(`https://api.delpha.io/v1/email/batch/${jobId}`, {\n        headers: {\n          \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        },\n      });\n      last = response;\n      body = await readBody(response);\n      if (response.status === 504 && body?.code === \"job_timeout\") {\n        break;\n      }\n    }\n    console.log(last.status);\n  }\n\n  if (last.status === 200) {\n    console.log(JSON.stringify(body.counts));\n    console.log(body.result_url);\n    // Inline only when the result file is 1 MB or smaller.\n    console.log(JSON.stringify(body.result_data ?? null, null, 2));\n  } else {\n    console.log(typeof body === \"string\" ? body : JSON.stringify(body, null, 2));\n  }\n}\n\nmain();\n```\n{% endtab %}\n{% endtabs %}\n\n### Calling in test mode\n\nThe submit and one poll, sent with a key created in test mode at **Developer → API keys** in place of the placeholder; nothing in a credential tells its mode. Every response the API renders to a test-mode call carries `X-Delpha-Mode: sandbox`, and a live response carries no such header, so the example prints that header from both answers. As the **Test mode** section states, a test-mode job is complete the moment it is accepted: the first poll answers **200** with the result rather than the transient **202**, the result comes from the published table of canned results, and no credit is reserved.\n\n{% tabs %}\n{% tab title=\"curl\" %}\n```bash\n# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\nRESPONSE=$(curl -sS -i -X POST \"https://api.delpha.io/v1/email\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"email\":\"jordan.rivera@example.com\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"website\":\"https://delpha.io/\"}')\n# The status line, then `X-Delpha-Mode: sandbox` on a test-mode key (absent on a live one).\nprintf '%s\\n' \"$RESPONSE\" | tr -d '\\r' | grep -i -e '^HTTP' -e '^x-delpha-mode:'\n\nJOB_ID=$(printf '%s\\n' \"$RESPONSE\" | sed -n 's/.*\"job_id\": *\"\\([^\"]*\\)\".*/\\1/p')\nRETRY_AFTER=$(printf '%s\\n' \"$RESPONSE\" | tr -d '\\r' | sed -n 's/^[Rr]etry-[Aa]fter: *//p' | tail -n 1)\nsleep \"${RETRY_AFTER:-1}\"\nRESPONSE=$(curl -sS -i \"https://api.delpha.io/v1/email/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\")\nprintf '%s\\n' \"$RESPONSE\" | tr -d '\\r' | grep -i -e '^HTTP' -e '^x-delpha-mode:'\nprintf '%s\\n' \"$RESPONSE\" | tail -n 1\n```\n{% endtab %}\n{% tab title=\"Python\" %}\n```python\nimport time\nimport uuid\n\nimport requests\n\npayload = {\n    \"email\": \"jordan.rivera@example.com\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"website\": \"https://delpha.io/\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/email\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\n# `sandbox` on a test-mode key, `None` on a live one.\nprint(response.status_code, response.headers.get(\"X-Delpha-Mode\"))\njob_id = response.json()[\"job_id\"]\n\ntime.sleep(int(response.headers.get(\"Retry-After\", \"1\")))\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/email/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code, response.headers.get(\"X-Delpha-Mode\"))\nprint(response.json())\n```\n{% endtab %}\n{% tab title=\"Node.js\" %}\n```javascript\nconst { randomUUID } = require(\"node:crypto\");\n\nfunction sleep(seconds) {\n  return new Promise((resolve) => setTimeout(resolve, seconds * 1000));\n}\n\nasync function poll(jobId) {\n  const response = await fetch(`https://api.delpha.io/v1/email/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status, response.headers.get(\"X-Delpha-Mode\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nasync function main() {\n  const payload = {\n    \"email\": \"jordan.rivera@example.com\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"website\": \"https://delpha.io/\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/email\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  // `sandbox` on a test-mode key, `null` on a live one.\n  console.log(response.status, response.headers.get(\"X-Delpha-Mode\"));\n  const jobId = (await response.json()).job_id;\n\n  await sleep(Number(response.headers.get(\"Retry-After\") ?? 1));\n  await poll(jobId);\n}\n\nmain();\n```\n{% endtab %}\n{% endtabs %}\n\n### Errors and webhooks\n\nEvery `code` an error body can carry is defined in the `code` enum of the `Error` schema: its meaning, the status it usually rides on, and whether a later attempt can succeed (see **Errors**). The gateway's own **401**, **403** and shared-floor **429** carry a `GatewayError` body with no `code`, which is why the loops above branch on the status.\n\nA subscriber to the job lifecycle events is notified when a job finishes instead of polling for it, then fetches the result with one GET on the poll URL — events never carry the result. The Python and Node.js snippets that check the `Delpha-Signature` of each delivery are in the **Webhooks** section, under *Verifying a delivery*, and on the [Webhooks](https://help.delpha.io/delpha-api-and-mcp/api/webhooks) page.\n## Request and response model\n\nEvery response is a JSON envelope: `status` (`SUCCESS` or `ERROR`), `status_code` (the HTTP\nstatus, repeated in the body), `message` (human-readable, never echoes your input), `code`\n(a stable machine-readable string — branch on `code`, not on `message`), `request_id`\n(equal to the `x-amzn-RequestId` response header; quote it to support) and, on success,\n`result`. Optional fields may be `null`; a field the response does not have is omitted.\n\n## Asynchronous verifications\n\nMost verifications run asynchronously:\n\n1. `POST /v1/{usecase}` validates the request, reserves credits and returns **202** with a\n   `job_id`, a `Location` header (the poll URL) and `Retry-After` (seconds to wait).\n2. `GET /v1/{usecase}/{job_id}` answers **202** while the job runs (`code: job_running`) and\n   **200** with `result` once it is done. A terminal failure is a 4xx/5xx envelope with a\n   `code` from the error catalog. A never-issued id, or another team's job id, is\n   **404 `not_found`** — job ids are never an oracle for other tenants. Results are\n   retained for 10 days.\n3. `GET /v1/company`, `GET /v1/phone` and `POST /v1/account-match` are synchronous and\n   answer in the request.\n\nA test-mode key reserves nothing at step 1, and its job is already complete when the 202 is\nreturned, so step 2 answers **200** on the first poll — see **Test mode**.\n\nTypical completion times are published per operation in `x-typical-latency`; the\nsubmit/poll pairing in `x-polling`; the four MCP tool annotations in `x-mcp-annotations`.\n\n## Pagination\n\n`GET /v1/company` is the one operation that returns more than one record, and so the one\nthat paginates. It offers two ways through a result set, and a request uses one or the\nother — sending both `page` and `cursor` is **422 `validation_error`**.\n\n- **Random access**: `page` (1-based) with `page_size` (up to 100) — a direct jump to a\n  known page.\n- **Walking every match**: leave `cursor` out of the first call, then repeat *the same\n  search parameters* with `cursor=<the previous response's next_cursor>` until\n  `next_cursor` comes back `null`. `page_size` may change between calls — a cursor is a\n  position in the result set, not a page number, and a cursor page reports `page: null`.\n\nThe walk is the exhaustive form: a cursor resumes immediately after the last record it\nreturned, so companies added to or removed from the datalake mid-walk neither skip nor\nrepeat a record, which offsets cannot promise. A cursor belongs to the query that issued\nit: replaying one against a different search is **422 `validation_error`**, and the\nfirst page is the way back. Cursors are opaque — a cursor is meaningful only to the API\nthat issued it, and one that has been parsed, edited or constructed is not a valid cursor.\n\n`has_more` and `next_cursor` are authoritative; `total` is best-effort (a floor when\n`total_is_lower_bound` is true), so stop on `next_cursor`, never on a count. Every page is\none call and is billed as one.\n\n## Idempotency\n\nSend an `Idempotency-Key` header (any unique string up to 255 printable ASCII characters)\nwith every `POST` submit. For 24 hours, the same key with the same body replays the original\n**202** — same `job_id`, `Idempotent-Replayed: true`, and **no second charge** — so a retry\nafter a timeout is always safe. The same key with a different body is refused with **409\n`idempotency_key_reuse`**; a malformed key with **400 `idempotency_key_invalid`**. Keys are\nscoped to your team.\n\n## Batch operations\n\n`POST /v1/{usecase}/batch` accepts 1-100 items as one job (24-hour ceiling) and charges\n`price` multiplied by the number of items. `GET /v1/{usecase}/batch/{job_id}` returns per-item counts, a presigned\n`result_url` and, when the file is 1 MB or smaller, the results inline as `result_data`. A\nbatch is refused as a whole, **before any credit is reserved**, when one item names a\nregistry Delpha cannot query (**422 `unsupported_registry`**, naming the offending item).\nSettlement is partial: when the job completes, only the items that succeeded are charged\nand the rest of the reservation is refunded.\n\n## Rate limits\n\nYour allowance is counted **per credential owner and per operation** — per team for an API\nkey, per OAuth client for the client-credentials flow — in fixed 60-second windows: **3000\nrequests per minute** on submit and synchronous operations (policy `submit`) and **6000 per\nminute** on poll operations (policy `poll`). Each operation publishes the policy that governs\nit in `x-rate-limit`, and every response the API renders names the one that applied in\n`RateLimit-Policy`. `GET /v1/pricing` has only the shared floor described below: it takes no\ncredential, so there is no owner to count an allowance against, and its `x-rate-limit`\npublishes the floor alone.\n\nEvery response the API renders — success and error alike — reports what is left. The\nexceptions are the two the gateway answers before the API sees the request, **401** and\n**403**, and every response of `GET /v1/pricing`, which counts no allowance; they carry none\nof these headers:\n\n- `X-RateLimit-Limit` — the allowance for this operation in the current window.\n- `X-RateLimit-Remaining` — requests still available in it.\n- `X-RateLimit-Reset` — when the window resets, as **UTC epoch seconds** (not a delay).\n- `RateLimit-Policy` (`\"submit\";q=3000;w=60`) and `RateLimit` (`\"submit\";r=2999;t=37`) — the\n  same figures as the structured fields of `draft-ietf-httpapi-ratelimit-headers`, an\n  Internet-Draft rather than a published standard, so their syntax is provisional; the\n  `X-RateLimit-*` triple carries the same figures and is not subject to that draft.\n\nExceeding your allowance answers **429** with an `Error` body (`code: rate_limited`),\n`Retry-After` set to the seconds left in the window, and the headers above with\n`X-RateLimit-Remaining: 0`. Nothing is charged — the request is refused before it is\nvalidated or admitted.\n\nA second, coarser limit protects the service as a whole: a per-operation floor of **50\nrequests/second with a burst of 100** (**100/second, burst 200** on poll operations) that\nevery caller of that operation shares. Crossing it answers **429** with a `GatewayError`\nbody and `Retry-After: 1`, and carries **no** quota headers — those requests are refused\nbefore the API sees them. Below that floor, one caller's traffic cannot consume another's\nallowance.\n\n`Retry-After` on a **202**, **503** or **504** is a poll or backoff hint and carries no quota\nmeaning; only on a 429 does it mean \"your window resets in N seconds\". Honour it wherever it\nappears, poll at the pace it suggests rather than in a tight loop, and back off exponentially\nwith jitter after a 429.\n\n\n### Published floors\n\n| Sustained rate | Burst | Applies to | Operations |\n|---|---|---|---|\n| 50 requests/second | 100 | submit, synchronous | 20 |\n| 100 requests/second | 200 | poll | 16 |\n\n### What a 429 looks like\n\nYour allowance for this operation is exhausted:\n\n```json\n{\n  \"status\": \"ERROR\",\n  \"status_code\": 429,\n  \"message\": \"Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.\",\n  \"code\": \"rate_limited\"\n}\n```\n\nThe per-operation floor shared by all callers was crossed:\n\n```json\n{\n  \"status\": \"ERROR\",\n  \"status_code\": 429,\n  \"message\": \"Rate limit exceeded. Retry after the interval in the Retry-After header.\"\n}\n```\n\nThe first carries a machine-readable `code` and the quota headers; the second is the gateway's own refusal, which has neither. Back off exponentially with jitter from the `Retry-After` value rather than retrying on a fixed interval.\n\n`GET /v1/pricing` is governed by its floor alone: no allowance is counted per caller, and its responses carry none of the quota headers.\n\nThese floors are **per operation and shared by every caller of it** — they sit above your own allowance, which is counted per credential owner. Above a floor the gateway answers **429** itself, before the API sees the request, and sets `Retry-After`.\n\nThat refusal carries no quota headers: those report what is left of *your* allowance, not of a floor shared with everyone else. Treat the published numbers as the contract, honour `Retry-After`, and back off exponentially.\n## Errors\n\nEvery error body is an `Error` object with a stable `code` (the full catalog is the `code`\nenum of the `Error` schema). The gateway's own **401**, **403** and **429** carry a\n`GatewayError` body instead — `status`, `status_code`, `message` — and no `code`;\ncorrelate them through the `x-amzn-RequestId` header. **402 `payment_required`** means the\nteam's credit balance is exhausted; top up in the console and retry. A `doc_url` field\nlinking to the error documentation is added to error bodies once that documentation is\npublished.\n\n## Webhooks\n\nInstead of polling, subscribe an HTTPS endpoint in the console at **Developer → Webhooks**\nto the lifecycle events `dataquality.<usecase>.sent`, `.done` and `.error` (batch jobs use\nthe `<usecase>-batch` slug). Events are **notify-only** — they carry the `job_id`, the\n`usecase` and the outcome, never the result itself; fetch the result from the poll URL.\nEvery delivery is signed: `Delpha-Signature: t=<unix-seconds>,v1=<hex>` where `v1` is\nHMAC-SHA256 of `\"<t>.<raw request body>\"` under the endpoint's `whsec_…` signing secret.\nVerify the signature, reject stale timestamps, and deduplicate on the event `id` — it is\nderived from the job and the event type, so a redelivery repeats the same id. A timeout,\na 429 or a 5xx from your endpoint is retried up to 3 attempts with exponential backoff\n(0.5 s, then 1 s); any other 4xx is not retried. The full event shape is the\n`WebhookEvent` schema and the three entries under `webhooks`.\n\n\n### Event families\n\nThere are **16 event families** — one per operation that admits work, each publishing the 3 lifecycle events `sent`, `done`, `error`. 16 of them are current. The 0 marked deprecated below belong to the deprecated generic LinkedIn operations: they keep delivering for endpoints already subscribed to them, and a new subscription should use the profile and company-page families instead.\n\n| Use case slug | Events | State |\n|---|---|---|\n| `email` | `dataquality.email.sent`, `dataquality.email.done`, `dataquality.email.error` | current |\n| `website` | `dataquality.website.sent`, `dataquality.website.done`, `dataquality.website.error` | current |\n| `phone` | `dataquality.phone.sent`, `dataquality.phone.done`, `dataquality.phone.error` | current |\n| `name` | `dataquality.name.sent`, `dataquality.name.done`, `dataquality.name.error` | current |\n| `legal-id` | `dataquality.legal-id.sent`, `dataquality.legal-id.done`, `dataquality.legal-id.error` | current |\n| `linkedin-profile` | `dataquality.linkedin-profile.sent`, `dataquality.linkedin-profile.done`, `dataquality.linkedin-profile.error` | current |\n| `linkedin-company-page` | `dataquality.linkedin-company-page.sent`, `dataquality.linkedin-company-page.done`, `dataquality.linkedin-company-page.error` | current |\n| `ultimate` | `dataquality.ultimate.sent`, `dataquality.ultimate.done`, `dataquality.ultimate.error` | current |\n| `email-batch` | `dataquality.email-batch.sent`, `dataquality.email-batch.done`, `dataquality.email-batch.error` | current |\n| `website-batch` | `dataquality.website-batch.sent`, `dataquality.website-batch.done`, `dataquality.website-batch.error` | current |\n| `phone-batch` | `dataquality.phone-batch.sent`, `dataquality.phone-batch.done`, `dataquality.phone-batch.error` | current |\n| `name-batch` | `dataquality.name-batch.sent`, `dataquality.name-batch.done`, `dataquality.name-batch.error` | current |\n| `legal-id-batch` | `dataquality.legal-id-batch.sent`, `dataquality.legal-id-batch.done`, `dataquality.legal-id-batch.error` | current |\n| `linkedin-profile-batch` | `dataquality.linkedin-profile-batch.sent`, `dataquality.linkedin-profile-batch.done`, `dataquality.linkedin-profile-batch.error` | current |\n| `linkedin-company-page-batch` | `dataquality.linkedin-company-page-batch.sent`, `dataquality.linkedin-company-page-batch.done`, `dataquality.linkedin-company-page-batch.error` | current |\n| `ultimate-batch` | `dataquality.ultimate-batch.sent`, `dataquality.ultimate-batch.done`, `dataquality.ultimate-batch.error` | current |\n\n### Event shape\n\nA lifecycle event delivered to a subscribed endpoint. Notify-only: it names the job and its outcome, never the result — fetch that from the job's poll URL. Deduplicate on `id`, which is derived from the job and the event type and therefore repeats on redelivery.\n\n| Field | Type | Always present | Meaning |\n|---|---|---|---|\n| `id` | `string` | yes | Stable event id — identical on every redelivery of the same event. |\n| `type` | `string` | yes | The event scope: `dataquality.<usecase>.<sent\\|done\\|error>`, where `<usecase>` is the route slug (`email`, `legal-id`, `linkedin-profile`, …) or the slug with a `-batch` suffix for batch jobs. |\n| `created` | `integer` | yes | Unix time (seconds) the delivery was signed — the `t` of `Delpha-Signature`. |\n| `data` | `object` | yes | What happened, and to which job. |\n| `metadata` | `object` | no | The free-form metadata configured on the endpoint, echoed verbatim. |\n\nA delivery of `dataquality.{usecase}.sent`:\n\n```json\n{\n  \"id\": \"evt_e704df05-b620-5efb-87c9-a2169e755cbc\",\n  \"type\": \"dataquality.email.sent\",\n  \"created\": 1788870000,\n  \"data\": {\n    \"job_id\": \"0c8f0d6e-5b1a-4d4e-9f0e-1234567890ab\",\n    \"usecase\": \"email\",\n    \"status\": \"sent\"\n  },\n  \"metadata\": {}\n}\n```\n\n### Verifying a delivery\n\nEvery delivery carries `Delpha-Signature`. `t=<unix-seconds>,v1=<hex>` — `v1` is HMAC-SHA256 of `\"<t>.<raw request body>\"` under the endpoint's `whsec_…` signing secret (shown once at creation in the console). Recompute it over the raw bytes, compare in constant time, and reject a `t` older than a few minutes.\n\nEvery delivery also sends `User-Agent: Delpha-Webhooks/1.0`.\n\nBoth snippets below reject a delivery whose `t` is more than five minutes old. That tolerance is a receiver-side choice, not a value Delpha enforces — widen or narrow it to suit your own clock skew.\n\nPython:\n\n```python\nimport hashlib\nimport hmac\nimport time\n\n# 5 minutes - a receiver-side choice, not a value Delpha enforces.\nTOLERANCE_SECONDS = 300\n\n\ndef verify(secret: str, header: str, body: bytes) -> bool:\n    \"\"\"True when `header` is a fresh, valid Delpha-Signature for `body`.\"\"\"\n    parts = dict(piece.split(\"=\", 1) for piece in header.split(\",\") if \"=\" in piece)\n    timestamp, signature = parts.get(\"t\"), parts.get(\"v1\")\n    if not timestamp or not signature:\n        return False\n    try:\n        age = abs(time.time() - int(timestamp))\n    except ValueError:\n        return False\n    if age > TOLERANCE_SECONDS:\n        return False\n    signed = f\"{timestamp}.\".encode() + body\n    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()\n    return hmac.compare_digest(expected, signature)\n```\n\nNode.js:\n\n```javascript\nconst crypto = require(\"node:crypto\");\n\n// 5 minutes - a receiver-side choice, not a value Delpha enforces.\nconst TOLERANCE_SECONDS = 300;\n\n/** True when `header` is a fresh, valid Delpha-Signature for `body` (a Buffer). */\nfunction verify(secret, header, body) {\n  const parts = new Map(\n    header\n      .split(\",\")\n      .filter((piece) => piece.includes(\"=\"))\n      .map((piece) => [piece.slice(0, piece.indexOf(\"=\")), piece.slice(piece.indexOf(\"=\") + 1)]),\n  );\n  const timestamp = parts.get(\"t\");\n  const signature = parts.get(\"v1\");\n  if (!timestamp || !signature) return false;\n  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > TOLERANCE_SECONDS) return false;\n  const expected = crypto\n    .createHmac(\"sha256\", secret)\n    .update(`${timestamp}.`)\n    .update(body)\n    .digest(\"hex\");\n  const a = Buffer.from(expected, \"utf8\");\n  const b = Buffer.from(signature, \"utf8\");\n  return a.length === b.length && crypto.timingSafeEqual(a, b);\n}\n```\n\n### Acknowledging\n\n**Acknowledge with any 2xx within 10 seconds** — that is the delivery timeout, and a slower handler is recorded as a timeout however it ends. Do the work asynchronously and answer first. A redirect is **not** followed: a 3xx counts as a failed delivery. A timeout, a 429 or a 5xx is retried up to 3 attempts in total, with exponential backoff (0.5 s, then 1 s) — so a failing endpoint is given up on within about two seconds, not minutes; any other 4xx is not retried at all. Delivery is therefore **at-least-once with no server-side deduplication**: the same event can arrive more than once and your handler must be idempotent on `id`. Each subscribed endpoint is delivered to independently. Endpoints are managed in the console at https://app.delpha.ai/developer/webhooks.\n\n| Your response | Delpha's behaviour |\n|---|---|\n| `2XX` | Acknowledged — the event is not delivered again. |\n| anything else | Not acknowledged — see the delivery policy above. |\n\nEndpoints, their signing secrets and their delivery history are managed at [**Developer → Webhooks**](https://app.delpha.ai/developer/webhooks).\n## Credits\n\nEach admitted request to an operation that publishes `x-credit-operation` reserves credits\nfor that operation; the reservation is settled when the job completes and released when it\nfails, so a failed job is never billed. Balances, grants and the per-call ledger are in the console under\n**Billing** and **Developer → Logs**. Requests made with a test-mode key are the one\nexception: they reserve nothing, settle nothing and leave no line on the ledger — see\n**Test mode**.\n\n`GET /v1/pricing` returns the credits each use case is charged, read from the same price table\nevery reservation is priced from: per request for a single or synchronous operation, and per\nitem for a batch, which charges only the items that succeed. A repricing reaches reservations\nwithin about a minute and this list within about two. The operation itself is free and takes\nno credential — it publishes `x-credit-free: true` in place of `x-credit-operation`, reserves\nnothing and leaves no line on the ledger — and when the current table cannot be read it\nanswers **503** with `Retry-After` rather than a partial list.\n\n## Data sources and privacy\n\nSeveral operations return information about a person. This section states **where a result\ncomes from**, **what personal data leaves Delpha and to whom**, **how long each store keeps\nit**, **the role Delpha plays**, and **how anyone whose data was checked can reach Delpha**.\n\n**Delpha holds no contact database.** No operation is answered from a stored list of\npeople: Delpha does not build, buy, rent or sell one. Every result is computed at the\nmoment of the request, from the values in that request together with Delpha's own\nreference data and, for some operations, a check with a third-party provider.\n\n**What leaves Delpha.** The table covers every single-record operation: first the ones that\ncan return information about a person, then the ones that concern a company. Each row\napplies to that operation's `/batch` counterpart as well, where one exists, except that the\nbatch phone route contacts no provider at all.\n\n| Operations | Where the result comes from | What leaves Delpha, and to whom |\n|---|---|---|\n| `POST /v1/email` | Delpha's own verification and a Delpha model. No contact database and no third-party database. Candidate addresses are generated from per-domain address patterns, not retrieved from a list of known addresses | The address you supply — or an address formed from the name and company website you supply — reaches the mail infrastructure of that address's own domain. No contact-data provider is queried |\n| `POST /v1/phone`, `GET /v1/phone` | The submitted number, parsed and verified against data from carriers and cross-carrier network enablers, through Delpha's providers. Delpha verifies only the number itself (validity, line type, carrier, connection status) and does not link it to an individual, a name or any other personal data | The number in E.164 form and a two-letter country code, to those providers. Nothing else |\n| `POST /v1/name` | Delpha's own reference data | Nothing. This operation contacts no third party |\n| `POST /v1/linkedin-profile` | Public web search in real time: Google results, retrieved through Google Custom Search API or a SERP provider. No LinkedIn account, session or credential, no contact database and no third-party database | The name, company and country you supply, to that search provider. An email address you supply never leaves Delpha: only its domain is used, as a company website, which is requested directly only when no name is given. A URL you submit for validation is never requested: its format is checked, and it may be searched for through that search provider |\n| `POST /v1/linkedin-company-page` | The company website, and public web search: Google results, retrieved through Google Custom Search API or a SERP provider. No LinkedIn account, session or credential, and no third-party database | The company name and country you supply, to that search provider. The company website you supply — or the domain of an email address you supply, which itself never leaves Delpha — is requested directly. A URL you submit for validation is never requested: its format is checked, and it may be searched for through that search provider |\n| `GET /v1/company` | Delpha's own company datalake | Nothing. This operation contacts no third party |\n| `POST /v1/website` | Public web search and the company's own website | The company name and country you supply, to a web-search provider and to Delpha's AI provider. The website itself is visited |\n| `POST /v1/legal-id` | Delpha's company datalake and public company registries | The name or identifier you supply, to the selected country's registry when needed. A company found there is added to the datalake |\n| `POST /v1/ultimate` | Web search by Delpha's AI providers, and GLEIF's LEI register | The company name, website and country you supply, to Delpha's AI providers; the parent's name, to GLEIF |\n\nDelpha's providers are **named individually, with the role each one plays**, in Delpha's\nsub-processor list: https://delpha.io/delpha-sub-processor-list/. That list is the\nauthoritative record and is kept current; each provider receives only the values its row\nabove names.\n\n**How long each store keeps something.** Every figure below is the one the service applies\ntoday.\n\n| What is kept | Where | For how long |\n|---|---|---|\n| The full job result, so it can be polled | The job record behind `GET /v1/{usecase}/{job_id}` | 10 days |\n| The request input, projected through a per-operation allowlist, and the result that was served, in full | Your team's resolution history | The window your team configures — 30 days on the free tier, up to 180 on a paid plan. Set to 0, neither is stored |\n| Batch item lists, and batch result files | The batch file store behind `result_url` | Item lists 7 days, result files 30 days |\n| Call metadata — the operation, the caller and the timestamp. No request input and no result | Your team's usage log | Retained for the life of the account; it is append-only |\n| Operational logs | The service's log groups | 3 days |\n| Companies a legal-ID lookup adds to the datalake | Delpha's company datalake | No expiry: company reference data |\n\n**Role and legal basis.** For every call, the customer submitting the data is the controller;\nDelpha processes it on the customer's behalf and on the customer's instructions (GDPR Art. 28).\nUnder the CCPA/CPRA, Delpha is the customer's service provider and does not sell or share\npersonal information. The lawful basis for a call is the customer's; for verifying business\ncontact data it is typically legitimate interest (GDPR Art. 6(1)(f)) in keeping records\naccurate (Art. 5(1)(d)).\n\nDelpha is the controller of one store it keeps across customers: its verification cache,\nwhose verdicts are keyed by a hash of the value and kept up to 30 days so the same address or\nnumber is not checked again. Its basis is Delpha's legitimate interest.\n\n**If your data was checked.** Anyone whose email address, phone number, name or LinkedIn URL\nwas submitted to Delpha can write to privacy@delpha.io to ask whether Delpha holds it, and to\nhave it corrected or erased from job records, resolution histories and the verification cache.\nDelpha answers within one month and forwards the request to the customer concerned, so they can\nact on their own records. The rights this covers are set out in Delpha's privacy policy:\nhttps://delpha.io/privacy-policy/\n\n## Versioning and deprecation\n\nThe path version (`/v1`) changes only for incompatible changes to the operations it keeps;\nadditive changes — new fields, new operations, new optional parameters — ship without a path\nchange and bump this document's `info.version`. A deprecated operation is flagged\n`deprecated: true`, answers every request with a `Deprecation` header (RFC 9745, the date\nthe replacement shipped) and a `Link` header pointing at the replacement's documentation,\nand keeps working until a removal date is announced as a `Sunset` header. No operation is\ndeprecated today.\n\nAn operation can also be **withdrawn**: removed from this document and from the API, with\nits removal recorded on the changelog and the document's major version raised. Withdrawal is\nreserved for operations Delpha stops offering altogether, and it does not change the path\nversion, because the operations that remain are unaffected.\n\n## Changelog\n\nEvery version of this document, newest first, with the day it reached production. Additive\nchanges — new fields, new operations, new optional parameters — ship without a path-version\nchange and bump `info.version`; see **Versioning and deprecation** for what each kind of\nchange means for a caller.\n\n### 2.4.0 — released 2026-11-19\n\n- New: `POST /v1/account-match` decides which of your own records is a given company, without Delpha reading your system. Send the entity you are looking for as `reference` and up to 100 of your records as `candidates`; they come back ranked in the same request — no job, no polling. Every signal sent is scored, including one that lowers the score. Pass `ultimate_job_id` to tie the call to an ultimate-parent job, and `related` points back to it.\n- The result carries `match_status` (`confident`, `ambiguous` when the second match is within the ambiguity gap of the first, `no_match`), `candidates_received` and `candidates_scored`, and `settings`: the configuration the run was scored with (each signal's operator, mode and weight, the hierarchy-kind factors, the confidence method, the per-level thresholds, the weak ceiling, the ambiguity gap, the label bands and `top_k`), so every number can be read without the request.\n- Each match carries a `confidence` from 0 to 1 with two decimals, an `evidence_level` saying how much that number is worth, and `signals`: one entry per criterion, always in the order `name`, `website`, `hierarchy`, `legal_id`, `country`, `lei`, with its `score` (`null` when not compared), its `label` (`match`, `partial`, `conflict`, `not_compared`), the two values compared (`reference`, `candidate`, as you sent them) and, when it was not compared, the `reason`. Matches rank by confidence, then evidence level, then record id.\n- A name-only match is scored into a reduced band, because two unrelated companies can share a name. Countries are compared as ISO codes (`NL` and `Netherlands` agree); two legal ids are compared only when both state the same type or neither does; a record that conflicts with the reference on `country`, `legal_id` or `lei` holds a different legal entity and its evidence level is never `strong`; an `is_root` hierarchy is a tie-break and never makes a match `strong` on its own.\n- Requests to the new operation are validated before any credit is reserved, so a rejected request is never billed. More than 100 candidates, a candidate missing `id` or `name`, a reference with no name at all, or an unrecognised field is a 422 with no charge.\n- A finished `GET /v1/ultimate/{job_id}` result returned to an MCP caller carries `crm_lookup`: the domains, names and identifiers to search your own system for, a runnable Salesforce, SQL and HubSpot query with them filled in (each record's direct-child count included), the candidate schema to map rows onto, and a `note` on how those rows become an account-match request. Its identifiers are harvested from the ultimate parent and every link in the ownership chain, so a `lei` or `legal_id` there can belong to a subsidiary and is a search term, never the `reference`'s own identifier; each legal id carries `legal_id_type` where its registry is certain. The queries and the field set are documented in full on the Account match page.\n- Each `GET /v1/pricing` entry can carry two new fields: `name`, the use case's display name, and `description`, one sentence on what it does — the same names and descriptions Delpha shows on its pricing page. Both are absent, never null, when none is set. Prices and the list of use cases are unchanged.\n\n### 2.3.8 — released 2026-11-12\n\n- `GET /v1/ultimate/{job_id}` answers `404 not_found` once the 10-day retention has passed, like every other result.\n\n### 2.3.7 — released 2026-11-04\n\n- LinkedIn profile search guidance now distinguishes required names from optional company and country context, and explains that a supplied website is ignored in name-based searches.\n- Result descriptions clarify that accounting normally completes with the job; a later read can finalize outstanding accounting without starting or charging for a new job.\n\n### 2.3.6 — released 2026-10-21\n\n- `website` no longer declares `format: uri` on any operation that takes one (email, legal ID, LinkedIn profile, LinkedIn company page, website, ultimate parent and company search), and neither does `linkedin` on the website operation. A bare domain such as `delpha.io` is accepted on every one of them, and the annotation allowed strict clients to refuse it before any request was sent. Each description now says so, and the request-body `website` examples on these operations show both forms.\n- The LinkedIn `url` fields keep `format: uri`, and their descriptions now say what the format score checks: a URL without a scheme (`http://` or `https://`) is answered `validity: 0`, with `normalized_value` unaffected.\n- Two descriptions no longer claim a role the service does not perform: the legal-ID `website` (registry selection reads `legal_id_type` and `address.country` only, as documented) and the LinkedIn profile `website`.\n\n### 2.3.5 — released 2026-10-19\n\n- The LinkedIn profile operation now requires a person's first and last name (or a profile url) before it accepts a job: a company name alone is refused before any credit is reserved, and the company-page operation likewise no longer accepts a person's name alone.\n- A request with an absent or empty body is now refused with the same field-level guidance a missing field receives, and a body that is not a JSON object with one plain sentence, instead of an internal parsing message.\n\n### 2.3.4 — released 2026-10-16\n\n- Every operation now publishes `x-codeSamples`: the request in curl, Python (`requests`), Node.js and raw HTTP, built from the operation itself — a placeholder API key where one is needed, an `Idempotency-Key` on every submit that accepts one (generated per request in curl, Python and Node.js, a placeholder in the raw HTTP request), and the status and body of the response printed. Every request body now publishes an example (`examples.default`), and that example is the body the samples send.\n- A new **Code examples** section shows a submit and its polling loop, an idempotent submit, a batch and a test-mode call, each in curl, Python and Node.js.\n\n### 2.3.3 — released 2026-10-12\n\n- `POST /v1/phone` and `POST /v1/name` are retitled \"Validate & normalize phone number\" and \"Validate & normalize person name\", and their descriptions now say what each is for and what it does not do: neither searches — each validates and normalizes the number or name it is given. The phone descriptions, on `POST /v1/phone` and `GET /v1/phone/{job_id}`, now list the scores a phone result carries — `validity`, `completeness` and `consistency`, with a `confidence` rating of the parse; `accuracy` is not assessed for phone numbers — and describe `area` as a place name, which can be a city or region rather than the country. The `phone` and `country_code` descriptions say plainly how a national-format number gets its country, and the name descriptions say exactly what normalization removes. Summaries and descriptions only, including the `phone`, `country_code` and `country` field descriptions — no field added, removed or renamed, and prices are unchanged.\n- `POST /v1/phone` now uses `country` when it is the only country given: a national-format `phone` sent with `country` and no `country_code` is normalized with that country when Delpha recognizes the name (for example `France`). Only some country names are recognized, and a national-format number sent with one that is not is still left unnormalized; `country_code` covers every country. Before this release such a request was accepted, but its number was not normalized whatever the country. Requests that carry `country_code`, or a number in E.164 form, behave as before.\n- New: `GET /v1/pricing` returns the current credit price of every use case — its route segment (`use_case`), the operation it is billed as (`operation`, the `x-credit-operation` value its operations publish) and the credits charged — read from the same price table every reservation is priced from. A price is per request for a single or synchronous operation and per item for a batch. When the current table cannot be read the operation answers 503 with `Retry-After`, never a partial list.\n- `GET /v1/pricing` is free and takes no credential: it publishes `security: []`, so it answers no 401 or 403, reserves no credit, and returns the same list to every caller whatever key the request carries, or none. Its only limit is the shared per-operation floor — its `x-rate-limit` publishes the floor alone — so its responses carry neither the quota headers nor `X-Delpha-Mode`.\n- A new extension, `x-credit-free: true`, marks an operation that is never billed; it is published in place of `x-credit-operation`, which every other operation that admits work keeps publishing. `GET /v1/pricing` is also the first operation whose `x-mcp-annotations` publish `readOnlyHint: true`.\n\n### 2.3.2 — released 2026-09-29\n\n- The MCP hints (`x-mcp-annotations`) now say what each operation does, and no operation is published as read-only. Every operation that reserves credits — the eight job submits, the eight batch submits and the synchronous routes — is `readOnlyHint: false` and `idempotentHint: false`: an accepted call debits credits, creates a job or call record and is kept in the team's resolution history, and a repeat is a new charge. `POST /v1/name` and its batch and `GET /v1/company` are `openWorldHint: false`: they compute from the request and Delpha's own data and reach no external system. The result reads — single and batch — are `readOnlyHint: false` with `idempotentHint: true`: a read adds no charge and a repeat returns the same answer, but the read that observes a finished job settles its charge (or refunds it when the job failed or produced no usable result), and a read past the job's time limit marks the job failed. Each result read now states this in its description and in `x-side-effects`.\n- New `x-mcp-omit` extension on `POST /v1/website`, `POST /v1/linkedin-profile`, `POST /v1/linkedin-company-page` (`email`) and `POST /v1/phone` (`country`): fields the MCP server withholds from its tool input because another field carries the same signal. The REST contract is unchanged and still accepts them.\n- Every job submit now opens with the input it needs, and the descriptions say what leaves Delpha for a website search (a web-search provider and Delpha's AI provider) and for a legal-ID lookup (the selected country's public registry; a company found there is added to Delpha's datalake). `legal_id` and the legal-ID `address` are described as the company's registry number and registered address, never a person's. An email sent to the LinkedIn tools is used only for its domain, and the descriptions now say so.\n- The **Data sources and privacy** table now covers every operation, the company ones included: what `POST /v1/website`, `POST /v1/legal-id` and `POST /v1/ultimate` send outside Delpha and to whom, and that a legal-ID registry result is kept in Delpha's company datalake. `POST /v1/ultimate` states its recipients in its own description too.\n- `POST /v1/linkedin-company-page/batch` items no longer list `first_name` and `last_name`, which the lookup never used; they are still accepted. The company-page batch result example now shows a company page instead of a person's profile.\n- A `GET /v1/linkedin-profile/{job_id}` result now reports an outdated profile URL: `url_changed` is true when the URL you submitted was not found while exactly one other profile matching the person was, and `suggested_url` names that profile. LinkedIn does not redirect a profile whose address was changed, so the old address simply stops working. `scores.validity` still checks the URL's format only, and the URL you submit is no longer requested at all.\n\n### 2.3.1 — released 2026-09-24\n\n- `GET /v1/linkedin-company-page/{job_id}` now has its own result schema. Its candidates no longer list `job_title` or `profile_name`, and the result no longer lists `fallback_used`: on a company page the first was always null, the second was null or repeated the page name, and the third was always false, because the name-only fallback searches for a person. Read the page name from `headline` or `company_name`. `GET /v1/linkedin-profile/{job_id}` is unchanged.\n\n### 2.3.0 — released 2026-09-23\n\n- A new **Data sources and privacy** guide. For every operation that can return information about a person it states what the request supplies, where the result comes from, and which values leave Delpha and to what kind of provider; the providers themselves are named individually in Delpha's sub-processor list. It also publishes what each store keeps and for how long, including the resolution-history window your team sets and the retention that applies when it is set to 0.\n- Every operation that spends credits now states its own side effects in its description: what a call reserves, what is recorded and for how long, what a repeat submission costs, and what a test-mode call does instead.\n- The operations that can return information about a person each carry one sentence naming where their result comes from, and what — if anything — is sent outside Delpha to produce it.\n- The guide also states Delpha's role for each call (processor for the customer under the GDPR, service provider under the CCPA, controller of its cross-customer verification cache) and gives anyone whose data was checked a direct contact for access, correction and erasure requests.\n- Every operation that starts a job now publishes `idempotentHint: false` in `x-mcp-annotations`: without an `Idempotency-Key`, repeating a submit starts a new job and a new charge. Each operation's side-effect note is also published on its own, as `x-side-effects`.\n- The ultimate-parent operations describe the parent they return as the commercial parent — the operating group a company is sold to and routed under — with passive holding entities flagged `is_discarded` and a financial owner returned separately. The `getUltimateParentResult` field list names `source_url`, the field the result actually carries.\n- Descriptions throughout are now statements of what an operation does and returns rather than instructions to the caller, and the tag summaries describe the operations instead of the product.\n- Three corrections. `email_domain_qualification` is documented as the five values the API returns, each defined as a property of the address's domain. The ultimate-parent documentation states that GLEIF metadata is carried when a match is found and is `null` when none is. The name operation no longer claims to return signals it has never computed; its description now lists what it does return, and states that characters outside the Latin script are removed during normalization.\n\n### 2.2.0 — released 2026-09-23\n\n- LinkedIn profile and company-page requests now have separate schemas, including batch items, with operation-specific parameter descriptions and URL examples. The single company-page schema no longer advertises `first_name` or `last_name`; existing callers can still send them.\n- Corrected the email label documentation to list `No`, `OK`, and `OddFormat`. Website documentation now explains when a redirect destination is adopted — same registrable domain, or the evidence ranking it above the original, or a corroborating search candidate — its host-only normalization, and the `Changed` and `Unknown` verdicts: `Changed` reports an adopted move, and `Unknown` means the request named no company, so accuracy had no basis.\n- The LinkedIn result `label` now reads `OK`, the casing every other use case already publishes, instead of `Ok`. Update any comparison against `\"Ok\"`. The API accepts both spellings from the verification backend and will keep doing so, so nothing is lost in transit; only the value the API publishes changes. Batch results are normalized the same way, in both the inline payload and the downloadable file.\n\n### 2.1.0 — released 2026-09-23\n\n- Every legal-ID suggestion and match (`GET /v1/legal-id/{job_id}`) now carries `site_type` — `headquarters`, `branch`, or `unknown` when the register holds no value; an open vocabulary, so treat it as a string — and `vat`, the entity's VAT identifier when one is known. They are the fields `GET /v1/company` already publishes for the same record (spelled `site_type` and `VAT` there).\n- This was more than a documentation gap: the verification backend was already returning both, and `GET /v1/legal-id/batch/{job_id}` already carried them, while the single poller discarded them before the response was written.\n\n### 2.0.0 — released 2026-09-16\n\n- Withdrawn: the address operations (`POST /v1/address`, its poller and its batch pair). The postal-address verification is no longer offered on the public API.\n- Withdrawn: the LinkedIn import operations (`POST /v1/linkedin-import` and its poller) and the LinkedIn scraper operations (`POST /v1/linkedin-scraper` and its poller).\n- Withdrawn: the combined LinkedIn operations (`POST /v1/linkedin`, its poller and its batch pair), deprecated since 1.2.0 in favour of `/v1/linkedin-profile` and `/v1/linkedin-company-page`, which are unchanged and take the same body.\n- Withdrawn: `POST /v1/email-insights`.\n- Results now name fields the verification backends were already returning and this document did not describe: `email_address_qualification` on an email result (`Spam Trap` / `Role-based`, which takes precedence over the domain qualification), `confidence` in a phone result's scores, `activity_score` and `is_prepaid` on both phone operations, `type` on a LinkedIn result, and `headquarters_site` on every legal-ID suggestion and match.\n- One of those was more than a documentation gap: a phone result's `scores.confidence` was being discarded before the response was written, so `POST /v1/phone` and `GET /v1/phone/{job_id}` never carried it while `POST /v1/phone/batch` did. Both now return it.\n\n### 1.5.0 — released 2026-09-15\n\n- Test mode: an API key can now be created in test mode, and calls made with one are answered from a published table of canned results — no credits reserved or settled, no verification backend or data provider queried, and the same operations, schemas, validation, idempotency and polling contract as a live key. The mode is chosen when the key is created and cannot be edited afterwards.\n- Every response the API renders to a test-mode call carries `X-Delpha-Mode: sandbox`; a live response carries no such header. The 401, 403 and shared-floor 429 the gateway answers itself carry none of the per-request headers.\n- A test-mode job is complete when it is accepted, so its first poll answers 200 rather than the transient 202 — the submit, its `Location` and `Retry-After` and its idempotency behaviour are unchanged.\n- Webhook events for a test-mode job carry `data.mode`, and the `WebhookEvent` schema now declares it. Test-mode and live jobs are isolated: polling one with the other mode's key answers 404.\n- `POST /v1/email-insights` is served by a different service and has no test-mode implementation, so a test-mode key is refused there instead of being served a live, billable answer.\n\n### 1.4.0 — released 2026-09-15\n\n- Every response the API renders now reports what is left of your allowance: `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`, plus the `RateLimit` and `RateLimit-Policy` structured fields. The gateway's own 401 and 403 are answered before the API sees the request and carry none of them.\n- Rate limits are counted per credential owner and per operation — per team for an API key, per OAuth client for the client-credentials flow — in fixed 60-second windows, so one caller's burst no longer consumes another's headroom below the shared floor.\n- A 429 now takes one of two documented shapes: your own allowance answers with the standard error envelope (`code: rate_limited`), the quota headers and a `Retry-After` of the seconds left in the window; the per-operation floor shared by all callers answers earlier, with `Retry-After: 1`.\n- Each operation's `x-rate-limit` extension now publishes the policy that governs it, its quota and window, and the headers it returns.\n\n### 1.3.1 — released 2026-09-14\n\n- Every value of the error `code` enum now carries its own published meaning, the status it usually rides on and what to do about it — in the document, on the error reference page, and on every endpoint page that references the error envelope.\n- The OAuth `api/access` scope is documented as all-access: per-use-case scoping, per-key credit ceilings and expiry are properties of an API key.\n- Batch settlement is documented as partial — only the items that succeed are charged.\n- Each published document now describes only the environment it is published for: the production document lists the production server alone, and every example names production. A client generated from it offers one base URL instead of two.\n- These guide and reference pages are generated from the document itself, so they change in the release that changes the API.\n\n### 1.3.0 — released 2026-09-10\n\n- Cursor pagination on `GET /v1/company`: the `cursor` query parameter, `next_cursor` on the result, a nullable `page` on a cursor page, and the 422 that says a cursor was refused.\n\n### 1.2.0 — released 2026-09-10\n\n- The agent integration guide in the document's own description — the source these pages are generated from.\n- Signed webhook lifecycle events (`sent`, `done`, `error`) published as a `webhooks` section, with the event schema.\n- `Deprecation` and `Link` response headers on every response of a deprecated operation.\n\n### 1.1.0 — released 2026-09-10\n\n- A typed error envelope: a stable machine-readable `code`, a `request_id` for support correlation, and a `doc_url` once the error reference is published.\n- The gateway's 401, 403 and 429 documented on every operation.\n- Per-operation idempotency and rate-limit extensions (`x-idempotency`, `x-rate-limit`), plus typical latency, submit/poll pairing and credit operation.\n\n### 1.0.0 — released 2025-07-21\n\n- First published OpenAPI document for the public API.\n",
    "contact": {
      "name": "Delpha Support",
      "url": "https://delpha.io",
      "email": "support.api@delpha.io"
    }
  },
  "externalDocs": {
    "description": "Delpha API documentation — guides, per-endpoint pages and the MCP server.",
    "url": "https://help.delpha.io/delpha-api-and-mcp/api"
  },
  "servers": [
    {
      "url": "https://api.delpha.io",
      "description": "Production API server"
    }
  ],
  "security": [
    {
      "oauth2": [
        "api/access"
      ]
    },
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "Email",
      "description": "The email operations validate an address and, when only a name and a company website are supplied, look for one. Validation checks an address that is supplied; the search derives candidate addresses from the supplied name and website domain.\n\nFour dimensions are scored:\n- **Completeness:** whether an address is present, and whether one could be found from the name and website.\n- **Validity:** whether the address is syntactically well formed, its domain resolves, and the mailbox accepts mail.\n- **Accuracy:** whether the address corresponds to the person named in the request.\n- **Consistency:** the input value compared with its normalized version (not cross-source).\n\nThe result also carries two qualifications. `email_domain_qualification` reports whether the address's domain is a public/personal mail domain or a company domain, and whether it accepts mail at any address. `email_address_qualification` flags an address that is role-based (a shared functional mailbox such as `contact@`) or a known spam trap. Candidate addresses are returned ranked, each with a confidence score."
    },
    {
      "name": "Website",
      "description": "The website operations validate a URL and, from entity signals such as a company name, country, email domain or LinkedIn URL, look for the company's official site.\n\nFour dimensions are scored:\n- **Completeness:** whether a website is present, and whether one could be found from the signals supplied.\n- **Validity:** whether the site is reachable.\n- **Consistency:** the input URL compared with its normalized version.\n- **Accuracy:** whether the site matches contextual data such as the company name or legal ID.\n\nThe API returns a **normalized URL** along with quality scores. A redirect destination is adopted when it shares the input's registrable domain, when the evidence ranks it above the original, or when a scored search candidate corroborates it; otherwise the normalized input is kept — which is what happens to a same-name different-TLD landing the evidence does not prefer. Adopted URLs are reduced to `scheme://host/`, possibly using a corroborated host, and the `Changed` label reports exactly that move. When side fields such as a company name or legal ID are supplied, candidate URLs are returned ranked, each with a confidence score."
    },
    {
      "name": "Phone",
      "description": "The phone operations normalize a submitted number to E.164 and report its line type, carrier, country and timezone. The number is normalized, then verified to confirm that the line exists and to classify it — never to identify whose number it is.\n\nThree dimensions are scored:\n- **Completeness:** whether a phone number is present and structurally complete.\n- **Validity:** whether the number follows the national or international format and is neither blacklisted nor clearly invalid.\n- **Consistency:** the original input compared with its normalized international form.\n\nA `country_code`, or a `country` name Delpha recognizes, supplies the numbering plan for a national-format number; a number in E.164 form carries its own. These operations validate and normalize only — they do not search for a number."
    },
    {
      "name": "Name",
      "description": "The name operation validates and normalizes a person's first and last name. It does not search: everything it returns is derived from the two names supplied and Delpha's own reference data, and nothing leaves Delpha for this operation.\n\nFive dimensions are scored:\n- **Completeness:** whether both *first name* and *last name* are present, scored individually.\n- **Validity:** whether each half is a well-formed person name.\n- **Consistency:** the original input compared with its normalized form (capitalization, spacing, hyphenation).\n- **Misspelled:** the likelihood of a typo, with the closest alternatives.\n- **Reversed:** the likelihood that *first name* and *last name* are swapped.\n\nThe API returns the **normalized name** with those scores and ranked alternative spellings for each half. Normalization fixes capitalization and spacing. In the last name it also drops a recognized title or suffix (e.g. `Smith PhD` becomes `SMITH`) and anything in parentheses or after a comma; the first name keeps its words. Characters outside the Latin script are removed — a name written entirely in another script normalizes to an empty string."
    },
    {
      "name": "Legal ID",
      "description": "The legal-ID operations validate a company registration number (SIRET, SIREN, NZBN, ABN, CIK, ...) and, from a company name or website, look one up. A request names the registry through `legal_id_type`, or the registry is inferred from `address.country`.\n\nFour dimensions are scored:\n- **Completeness:** whether an identifier is present, and whether the registry can be inferred from the country supplied.\n- **Validity:** whether the identifier follows the registry's structure and exists in the registry data Delpha holds for the supported countries.\n- **Consistency:** the input compared with its normalized version, applying the registry's format, padding and length rules.\n- **Accuracy:** whether the identifier matches contextual data such as the company name or address.\n\nA validated identifier comes back as a **normalized and enriched record** carrying the company name, address, website and industry. When side fields are supplied, alternative registered entities are returned ranked, each with a confidence score. Coverage is exactly the `legal_id_type` enum; any other registry, or a country with no registry in that list, is refused with **422 `unsupported_registry`** before any credit is reserved."
    },
    {
      "name": "LinkedIn Profile",
      "description": "These operations validate the LinkedIn URL of a *person* and, from a name plus company context, look one up. The route decides the kind of page rather than the request body: this tag covers personal profiles (`.../in/`) only. A search is answered from public web search over the names, company and country supplied; no LinkedIn account, session or credential is used.\n\nFour dimensions are scored:\n- **Completeness:** whether a LinkedIn profile URL is present.\n- **Validity:** whether the URL follows LinkedIn's accepted format (no existence check).\n- **Consistency:** whether the input equals the normalized canonical person form (`.../in/`).\n- **Accuracy:** whether the URL matches the context supplied (first and last name, optionally company name and website).\n\nThe result carries a **normalized LinkedIn profile URL** and those scores. When the context suggests a mismatch or uncertainty, candidate profiles are returned ranked, each with a confidence score and the details read from the search result. **LinkedIn Company Page** covers organizations; the two are priced and permissioned separately."
    },
    {
      "name": "LinkedIn Company Page",
      "description": "These operations validate the LinkedIn URL of a *company* and, from a company name plus optional website, look one up. The route decides the kind of page rather than the request body: this tag covers company pages (`.../company/`, `.../school/`, `.../showcase/`) only. A search is answered from public web search over the company name and country supplied; no LinkedIn account, session or credential is used.\n\nFour dimensions are scored:\n- **Completeness:** whether a LinkedIn company page URL is present.\n- **Validity:** whether the URL follows LinkedIn's accepted format (no existence check).\n- **Consistency:** whether the input equals the normalized canonical company form (`.../company/`).\n- **Accuracy:** whether the URL matches the context supplied (company name, optionally website).\n\nThe result carries a **normalized LinkedIn company page URL** and those scores. When the context suggests a mismatch or uncertainty, candidate pages are returned ranked, each with a confidence score and the details read from the search result; a company website supplied in the request is used as a further signal. **LinkedIn Profile** covers people; the two are priced and permissioned separately."
    },
    {
      "name": "Ultimate Parent",
      "description": "Resolve the commercial parent of a company: the operating group it is sold to and routed under. Submit a company (name + website, optional country) — the website anchors the resolution — and the API returns a job_id you poll until the result is ready. The response includes the commercial parent, the full ownership chain with passive holding entities flagged `is_discarded`, the ultimate financial parent when a financial owner such as a fund sits above the operating group, GLEIF Legal Entity Identifier (LEI) data for each entity where a match is found, and the resolver's reasoning with its cited source URL."
    },
    {
      "name": "Company",
      "description": "Search Delpha's company datalake to power account creation and CRM enrichment.\n\nA single **synchronous** `GET /v1/company` call — pass at least one identifier (**account name**, **legal ID**, or a unified **search string**) as a query parameter and receive matching company records inline, with no job_id polling.\n\n- **Disambiguation:** Optional context such as website, city, country, and known aliases sharpens matching when several companies share a similar name.\n- **Control:** Tune results with fuzzy matching, a configurable result count, and a minimum score threshold.\n- **Output:** Ranked, typed company records (legal ids, address, firmographics, parent hierarchy) ready to seed new CRM accounts or enrich existing ones.\n\nIdeal for account creation flows, lead-to-account matching, and keeping your account base clean and de-duplicated."
    },
    {
      "name": "Account match",
      "description": "Decide which of **your own** records is a given company — without giving Delpha access to your system.\n\nA single **synchronous** `POST /v1/account-match` call — send the entity you are looking for as `reference`, up to 100 of your records as `candidates`, and receive them ranked inline, with no job_id polling.\n\n- **You own the data:** you run the query and format the rows, so the same call works against Salesforce, HubSpot, a warehouse or a spreadsheet. The candidate list is not archived; the records returned as matches are kept in your team's resolution history for the retention it configured.\n- **Evidence, not just a number:** every match lists each signal with its 0-1 score, a label (`match`, `partial`, `conflict`, `not_compared`) and the two values compared, plus an `evidence_level` that says how much the confidence is worth — a name-only match is a lead, not an answer. The response carries the `settings` it was scored with, so nothing needs the request to be read.\n- **It improves as you feed it:** add a website, a registration id or an account-hierarchy size to your rows and the next call scores better. A signal's `reason: candidate_missing` tells you which.\n\nPairs with **Ultimate Parent**: a finished ultimate result carries a `crm_lookup` block — returned to MCP callers; the same queries are documented below — with the identifiers to search for and a runnable query per dialect, so finding the corporate parent in your CRM is two calls.\n\n- **Attribution:** a record is a Delpha match only when this route returned it. Delpha never reads your system, so a record selected any other way is the caller's own conclusion and carries none of the evidence reported here.\n\n### Finding the candidates yourself\n\nThe `crm_lookup` block is returned to MCP callers, so these are the same queries written out for anyone calling the REST API directly. Substitute the ultimate result's own identifiers for the bracketed terms, and send the rows as `candidates` with the ultimate parent as `reference`.\n\nSalesforce (SOQL) — the child-relationship subquery returns each record's direct-child count in the SAME round trip, which is the strongest matching signal and costs nothing extra:\n\n```sql\nSELECT Id, Name, Website, BillingCountry, (SELECT Id FROM ChildAccounts)\nFROM Account\nWHERE Website LIKE '%[domain]%' OR Name LIKE '%[name]%'\nLIMIT 100\n```\n\nA warehouse (SQL) — the same shape, with a correlated count:\n\n```sql\nSELECT a.id, a.name, a.website, a.country,\n       (SELECT COUNT(*) FROM accounts c WHERE c.parent_id = a.id) AS child_count\nFROM accounts a\nWHERE a.website ILIKE '%[domain]%' OR a.name ILIKE '%[name]%'\nLIMIT 100\n```\n\nHubSpot has no query language: use a CRM search body whose `filterGroups` are one group per domain and per name token, requesting `hs_object_id`, `name`, `domain` and `country`.\n\nMap each row onto the candidate fields: `id` and `name` are required; `website`, `country`, `legal_id`, `legal_id_type`, `lei` and `hierarchy` are optional. `hierarchy` is `{value, kind}` — the count above with `kind: \"direct_children\"`. Send the count you measured, a zero included — a record with no children is honest data, and a zero is never scored against a record. Omit the field only when you could not count at all."
    },
    {
      "name": "Pricing",
      "description": "The current credit price of every use case the API bills, read from the same price table every reservation is priced from.\n\nA single **synchronous** `GET /v1/pricing` call — free, and answered with no credential — returns one entry per use case, in the order this document lists them.\n\n- **Two spellings, one row:** `use_case` is the route segment and the middle of the use case's API-key scopes; `operation` is the value its operations publish as `x-credit-operation`. Join the list to this document on either.\n- **Per request or per item:** `credits` is charged per request for a single or synchronous operation, and per item for a batch, which charges only the items that succeed.\n- **Complete or nothing:** when the current table cannot be read the call answers **503** with `Retry-After` — never a partial list, never a missing price.\n\nA repricing shows here within about two minutes. The list costs nothing and is the same for every caller, whatever key the request carries, or none."
    }
  ],
  "paths": {
    "/v1/email": {
      "post": {
        "tags": [
          "Email"
        ],
        "summary": "Find, validate & qualify email",
        "description": "Find, validate, and qualify a person's email address: send `email` to verify it, or `first_name`, `last_name` and `website` together to search for it. Submit an asynchronous job; the returned `job_id` goes to `getEmailResult`, which yields the validated email, the `email_status` (Valid / ...), `email_domain_qualification` (whether the address's domain is a public/personal mail domain or a company domain, and whether it accepts mail at any address; see `getEmailResult`), the qualified domain, the scores (validity / completeness / accuracy / consistency), and ranked suggestions (both inferred from the input and from the company website).\n\nTwo modes — at least one must be fully satisfied:\n  - Validation mode: provide `email` alone to verify deliverability and qualify the domain.\n  - Recommendation mode: provide `first_name`, `last_name`, AND `website` together (all three required) to search for the address. Partial recommendation inputs are rejected with 400.\nSupplying both an email and the recommendation triple runs both paths in the same job.\n\nThis result comes from Delpha's own verification and a Delpha model; no contact database and no third-party database is used. Candidate addresses are generated from per-domain address patterns, not retrieved from a list of known addresses. The address you supply — or an address formed from the name and company website you supply — reaches the mail infrastructure of that address's own domain.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "findAndValidateEmail",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "message": "Job submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "email": "jordan.rivera@example.com",
                    "first_name": "Jordan",
                    "last_name": "Rivera",
                    "website": "https://delpha.io/"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getEmailResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "email",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~5 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/email\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"email\":\"jordan.rivera@example.com\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"website\":\"https://delpha.io/\"}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"email\": \"jordan.rivera@example.com\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"website\": \"https://delpha.io/\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/email\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"email\": \"jordan.rivera@example.com\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"website\": \"https://delpha.io/\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/email\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/email HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 111\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"email\":\"jordan.rivera@example.com\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"website\":\"https://delpha.io/\"}"
          }
        ]
      }
    },
    "/v1/email/{job_id}": {
      "get": {
        "tags": [
          "Email"
        ],
        "summary": "Get email validation result",
        "description": "Fetch the result of a previously submitted `findAndValidateEmail` job by `job_id`. On success, the `result` payload contains: the validated email (`normalized_value`); `email_status` (closed enum: `\"Valid\"`, `\"Invalid\"`, `\"Unknown\"`); `email_domain_qualification`, which reports two properties of the address's domain — whether it is a public/personal mail domain or a company domain, and whether it accepts mail at any address (closed enum: `\"nominative@perso\"` = a public/personal mail domain that rejects unknown addresses; `\"catchall@perso\"` = a public/personal mail domain that accepts any address; `\"nominative@pro\"` = a company domain that rejects unknown addresses; `\"catchall@pro\"` = a company domain that accepts any address, so acceptance is not evidence the mailbox exists; `\"Unknown\"` = the domain could not be classified, for instance because it greylisted the probe or its server failed temporarily); a top-level `label` summarising the outcome (closed enum: `\"OK\"`, `\"No\"`, `\"OddFormat\"`); the qualified domain; the four `scores` (validity, completeness, accuracy, consistency); and ranked `suggestions` (alternative addresses scored by likelihood) when no exact match is found.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getEmailResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job succeeded.",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "label": "OK",
                        "normalized_value": "jordan.rivera@example.com",
                        "provider": "Orange",
                        "email_domain": "example.com",
                        "email_domain_qualification": "nominative@perso",
                        "email_status": "Valid",
                        "email_address_qualification": "Role-based",
                        "suggestions": [
                          {
                            "value": "jordan.rivera@delpha.io",
                            "score": 0.7260620227245627
                          }
                        ],
                        "website_domain": "delpha.io",
                        "website_domain_qualification": "nominative@pro",
                        "suggestions_from_website": [
                          {
                            "value": "jordan.rivera@delpha.io",
                            "score": 0.7260620227245627
                          }
                        ],
                        "data_type": "email",
                        "scores": {
                          "validity": 1,
                          "completeness": 1,
                          "accuracy": 0.7116992363593002,
                          "consistency": 0
                        }
                      },
                      "process_time": 0.123
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "result": null,
                      "process_time": 5
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "findAndValidateEmail",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~5 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Opaque job identifier returned by `findAndValidateEmail`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/email/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/email/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/email/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/email/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/website": {
      "post": {
        "tags": [
          "Website"
        ],
        "summary": "Find & validate website",
        "description": "Submit an asynchronous job to find and validate a company's website: send `website` to validate one, or `name` with `country` (or `linkedin`) to search for one. Returns a `job_id` — pass it to `getWebsiteResult` to retrieve the canonical URL plus accuracy, validity, completeness, and consistency scores.\n\nTwo modes:\n  - Validate an existing URL — supply `website`. The tool checks reachability and matches the site against the other entity signals. A redirect destination is adopted when it shares the input's registrable domain, when the evidence ranks it above the original, or when a scored search candidate corroborates it; otherwise the normalized input is kept.\n  - Search — supply entity signals (`name` + `country`, or `linkedin`; a bare domain sent as `website` is validated instead) and the tool finds the most likely website. `country` materially improves accuracy and disambiguates same-named companies across regions. Optional.\n\nThe name and country you supply are sent to a web-search provider and to Delpha's AI provider. A website you supply, or one found by search, is visited to check it.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "findAndValidateWebsite",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "message": "Job submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebsiteSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "website": "https://delpha.io/",
                    "name": "Delpha",
                    "linkedin": "https://www.linkedin.com/company/delphainc/",
                    "email": "jordan.rivera@delpha.io",
                    "country": "France"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getWebsiteResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "website",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~10 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-mcp-omit": [
          "email"
        ],
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/website\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"website\":\"https://delpha.io/\",\"name\":\"Delpha\",\"linkedin\":\"https://www.linkedin.com/company/delphainc/\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"website\": \"https://delpha.io/\",\n    \"name\": \"Delpha\",\n    \"linkedin\": \"https://www.linkedin.com/company/delphainc/\",\n    \"email\": \"jordan.rivera@delpha.io\",\n    \"country\": \"France\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/website\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"website\": \"https://delpha.io/\",\n    \"name\": \"Delpha\",\n    \"linkedin\": \"https://www.linkedin.com/company/delphainc/\",\n    \"email\": \"jordan.rivera@delpha.io\",\n    \"country\": \"France\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/website\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/website HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 158\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"website\":\"https://delpha.io/\",\"name\":\"Delpha\",\"linkedin\":\"https://www.linkedin.com/company/delphainc/\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}"
          }
        ]
      }
    },
    "/v1/website/{job_id}": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Get website validation result",
        "description": "Fetch the result of a previously submitted `findAndValidateWebsite` job by `job_id`. On success, the `result` payload contains the `normalized_value` URL, a `label` (e.g. `OK`), the four `scores` (validity, completeness, accuracy, consistency), and a `recommendations` array of alternative URLs each ranked by confidence. A redirect destination is adopted when it shares the input's registrable domain, when the evidence ranks it above the original, or when a scored search candidate corroborates it; otherwise the normalized input is kept. An adopted URL is reduced to `scheme://host/`, and a corroborated host may replace its host. `Changed` reports exactly that adopted move; `Unknown` means the request named no company, so accuracy had no basis, and is not a negative verdict on the URL.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getWebsiteResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsitePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job succeeded.",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "data_type": "website",
                        "normalized_value": "https://delpha.io/",
                        "label": "OK",
                        "scores": {
                          "validity": 1,
                          "completeness": 1,
                          "accuracy": 1,
                          "consistency": 1
                        },
                        "recommendations": [
                          {
                            "url": "https://delpha.io/",
                            "score": 0.996,
                            "metadata": {
                              "url": "https://delpha.io/",
                              "name": "Delpha",
                              "title": "Delpha — data quality for Salesforce",
                              "summary": "Delpha detects and resolves data issues across Salesforce accounts, contacts and leads.",
                              "rank": 1
                            },
                            "source_path": [
                              {
                                "name": "Name"
                              }
                            ]
                          }
                        ]
                      },
                      "process_time": 0.123
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsitePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "result": null,
                      "process_time": 5
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "findAndValidateWebsite",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~10 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Opaque job identifier returned by `findAndValidateWebsite`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/website/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/website/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/website/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/website/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/phone": {
      "post": {
        "tags": [
          "Phone"
        ],
        "summary": "Validate & normalize phone number",
        "description": "Submit an asynchronous job to validate and normalize a phone number you supply: send `phone`, with `country_code` when it is not in E.164 form. Returns a `job_id` — pass it to `getPhoneResult` to retrieve the E.164-formatted number, its line type, carrier, time zone and country, validity / completeness / consistency scores, and a `confidence` rating of the parse.\n\n`phone` is required. A number in E.164 form (e.g. `+33672557378`) carries its own country. A national-format number (e.g. `0672557378`) is normalized only when its country is supplied — `country_code` (ISO 3166-1 alpha-2); one sent without a country is rejected with 400.\n\nIt is meant for a number already held in a record — to check it before the record is used or stored, or to bring numbers into one format. It does not search: it finds no phone number for a person or a company, and everything it returns describes the number supplied.\n\nThis result is obtained by parsing the submitted number and verifying it against data from carriers and cross-carrier network enablers, through Delpha's providers. Delpha verifies only the number itself (validity, line type, carrier, connection status) and does not link it to an individual, a name or any other personal data. Those providers receive the number in E.164 form and a two-letter country code, and nothing else.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "findAndValidatePhone",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhoneSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "message": "Job submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "phone": "+33672557378",
                    "country": "France",
                    "country_code": "FR"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getPhoneResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "phone",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~5 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-mcp-omit": [
          "country"
        ],
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/phone\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"phone\":\"+33672557378\",\"country\":\"France\",\"country_code\":\"FR\"}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"phone\": \"+33672557378\",\n    \"country\": \"France\",\n    \"country_code\": \"FR\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/phone\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"phone\": \"+33672557378\",\n    \"country\": \"France\",\n    \"country_code\": \"FR\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/phone\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/phone HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 63\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"phone\":\"+33672557378\",\"country\":\"France\",\"country_code\":\"FR\"}"
          }
        ]
      },
      "get": {
        "tags": [
          "Phone"
        ],
        "summary": "Validate and normalize a phone number",
        "description": "Synchronous phone validation: normalize a phone number and receive its type, carrier, timezone, zone, area and validity in a single request (no job_id polling). Provide the number with an international (+) prefix, or pass `country` (a name or ISO code) for national-format numbers.\n\nThis result is obtained by parsing the submitted number and verifying it against data from carriers and cross-carrier network enablers, through Delpha's providers. Delpha verifies only the number itself (validity, line type, carrier, connection status) and does not link it to an individual, a name or any other personal data. Those providers receive the number in E.164 form and a two-letter country code, and nothing else.\n\nA live-mode call reserves credits; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Repeating the same request is a new call and a new charge. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "validatePhone",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhoneSyncOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Phone assessment succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "normalized_value": "+33672557378",
                        "phone_type": "MOBILE",
                        "carrier": "Orange France",
                        "timezone": "Europe/Paris",
                        "zone": "FR",
                        "area": "France",
                        "valid": true,
                        "activity_score": 85,
                        "is_prepaid": false
                      },
                      "process_time": 0.42
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-credit-operation": {
          "operation": "phone",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "sub-second (synchronous)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "parameters": [
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "description": "The phone number. Include the international code (e.g. `+33672557378`) for automatic country detection, otherwise provide `country`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "+33672557378"
              }
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "The country of the phone number — a country name (`France`) OR a 2-letter ISO code (`FR`). Required when the phone has no international (+) prefix.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "FR"
              }
            }
          }
        ],
        "x-side-effects": "A live-mode call reserves credits; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Repeating the same request is a new call and a new charge. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl -i -G \"https://api.delpha.io/v1/phone\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  --data-urlencode 'phone=+33672557378' \\\n  --data-urlencode 'country=FR'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nresponse = requests.get(\n    \"https://api.delpha.io/v1/phone\",\n    params={\"phone\": \"+33672557378\", \"country\": \"FR\"},\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const params = new URLSearchParams({ \"phone\": \"+33672557378\", \"country\": \"FR\" });\n  const response = await fetch(`https://api.delpha.io/v1/phone?${params}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/phone?phone=%2B33672557378&country=FR HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/phone/{job_id}": {
      "get": {
        "tags": [
          "Phone"
        ],
        "summary": "Get phone validation result",
        "description": "Fetch the result of a previously submitted `findAndValidatePhone` job by `job_id`. On success, the `result` payload contains the E.164-formatted `normalized_value`, the `phone_type` (one of `FIXED_LINE`, `MOBILE`, `FIXED_LINE_OR_MOBILE`, `TOLL_FREE`, `PREMIUM_RATE`, `SHARED_COST`, `VOIP`, `PERSONAL_NUMBER`, `PAGER`, `UAN`, `VOICEMAIL`), the `carrier` name, the `timezone`, the `zone` (ISO 3166-1 alpha-2 country code), the `area` (an English place name for the number — a city or region for many fixed lines, otherwise usually the country; empty when no place is known), and the `validity`, `completeness` and `consistency` scores with a `confidence` rating of the parse. `accuracy` is not assessed for phone numbers and is always `-1`.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getPhoneResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhonePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job succeeded.",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "data_type": "phone",
                        "normalized_value": "+33672557378",
                        "phone_type": "MOBILE",
                        "carrier": "Orange France",
                        "timezone": "Europe/Paris",
                        "zone": "FR",
                        "area": "France",
                        "activity_score": 85,
                        "is_prepaid": false,
                        "scores": {
                          "confidence": 1,
                          "validity": 1,
                          "completeness": 1,
                          "consistency": 1,
                          "accuracy": -1
                        }
                      },
                      "process_time": 0.123
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhonePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "result": null,
                      "process_time": 5
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "findAndValidatePhone",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~5 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Opaque job identifier returned by `findAndValidatePhone`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/phone/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/phone/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/phone/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/phone/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/name": {
      "post": {
        "tags": [
          "Name"
        ],
        "summary": "Validate & normalize person name",
        "description": "Submit an asynchronous job to validate and normalize a person's name: send `first_name` and `last_name`, both required. Returns a `job_id` — pass it to `getNameResult` to retrieve the normalized first / last name, the validity / completeness / consistency scores, the misspelled and reversed scores, and ranked alternative spellings.\n\nNormalization fixes capitalization and spacing. In the last name it also drops a recognized title or suffix (e.g. `Smith PhD` becomes `SMITH`) and anything in parentheses or after a comma; the first name keeps its words. Characters outside the Latin script are removed — a name written entirely in another script normalizes to an empty string.\n\nIt is meant for a name already held in a record — to clean it up before the record is used or stored, or to catch a typo or a first and last name entered the wrong way round. It does not search: it does not look a person up or return anything about them beyond the name itself, and everything it returns is derived from the two names supplied and Delpha's own reference data. Both `first_name` and `last_name` are required.\n\nThis result is computed inside Delpha's own infrastructure, from the name you supply and Delpha's own reference data. Nothing leaves Delpha for this operation, and the submitted name is retained in your account's resolution history for its configured retention period.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "findAndValidateName",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NameSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "message": "Job submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NameSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "first_name": "Jordan",
                    "last_name": "Rivera"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getNameResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "name",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~5 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/name\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"first_name\":\"Jordan\",\"last_name\":\"Rivera\"}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/name\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/name\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/name HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 44\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"first_name\":\"Jordan\",\"last_name\":\"Rivera\"}"
          }
        ]
      }
    },
    "/v1/name/{job_id}": {
      "get": {
        "tags": [
          "Name"
        ],
        "summary": "Get name validation result",
        "description": "Fetch the result of a previously submitted `findAndValidateName` job by `job_id`. On success, the `result` payload contains the normalized first / last name, a `label` (e.g. `OK`), per-field scores (`validity`, `completeness`, `consistency`, `misspelled` — each broken down into `{first_name, last_name}` objects — plus scalar `accuracy` and `reversed` (likelihood the first/last name are swapped)), and ranked `suggestions` for both `first_name` and `last_name` carrying alternative spellings with confidence scores.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getNameResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NamePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job succeeded.",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "data_type": "name",
                        "normalized_value": {
                          "first_name": "Jordan",
                          "last_name": "Rivera"
                        },
                        "label": "OK",
                        "scores": {
                          "accuracy": 0,
                          "reversed": 0.192,
                          "misspelled": {
                            "first_name": 0,
                            "last_name": 1
                          },
                          "consistency": {
                            "first_name": 1,
                            "last_name": 0
                          },
                          "validity": {
                            "first_name": 1,
                            "last_name": 1
                          },
                          "completeness": {
                            "first_name": 1,
                            "last_name": 1
                          }
                        },
                        "suggestions": {
                          "first_name": [
                            {
                              "value": "Jordan",
                              "score": 1
                            }
                          ],
                          "last_name": [
                            {
                              "value": "GOBET",
                              "score": 0.91
                            },
                            {
                              "value": "GABET",
                              "score": 0.73
                            }
                          ]
                        }
                      },
                      "process_time": 0.123
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NamePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "result": null,
                      "process_time": 5
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "findAndValidateName",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~5 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Opaque job identifier returned by `findAndValidateName`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/name/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/name/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/name/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/name/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/legal-id": {
      "post": {
        "tags": [
          "Legal ID"
        ],
        "summary": "Find & validate legal ID",
        "description": "Submit an asynchronous job to find and validate a company's legal identifier (SIRET, SIREN, NZBN, ABN, CIK, ...): send `legal_id` to validate one or `name` to search for one, plus `legal_id_type` or `address.country` to select the registry. The identifier is a business registry number, never a personal identifier. Returns a `job_id` — pass it to `getLegalIDResult` to retrieve the normalized identifier, the resolved `legal_id_type`, and validity / accuracy scores.\n\n**Registry selection:** the job targets one registry, resolved from either of two fields:\n  - `legal_id_type` — the registry directly (e.g. `FRA - SIRET`, `GBR - COMPANY REGISTRATION NUMBER`), or\n  - `address.country` — the entity's country, from which the registry is inferred.\n\nA call that provides neither is rejected with 400 (`Either 'legal_id_type' or 'address.country' must be provided`) — e.g. `{name, website}` alone fails. The remaining fields select the mode: `legal_id` runs validation and `name` runs search — a call with neither is rejected with 400; `website` is an optional search signal and does not select the registry.\n\n**Coverage:** only the registries in the `legal_id_type` enum can be queried. A request naming any other registry, or a country that has no registry in that list, is refused with **422 `unsupported_registry`** *before any credit is reserved*; the message lists the supported countries. That refusal depends only on the registry or country requested, so the same country returns it again whatever `name` or `legal_id` carries. An explicit `legal_id_type` takes precedence over `address.country`, so a supported registry with an unsupported country still runs.\n\nThe name or identifier you supply is matched against Delpha's company datalake and, when needed, the public registry of the selected country. A company found in a registry is added to the datalake.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "findAndValidateLegalID",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalIDSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "message": "Job submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "Unsupported registry: Legal ID lookup is not currently supported for Saudi Arabia. No credits were consumed. Supported countries: ...",
                      "code": "unsupported_registry"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalIDSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "name": "Delpha",
                    "legal_id": "88052440000012",
                    "legal_id_type": "FRA - SIRET",
                    "address": {
                      "city": "Paris",
                      "country": "France",
                      "postal_code": "75006",
                      "state": "Ile de France",
                      "street": "3 AVENUE VAVIN"
                    },
                    "website": "https://delpha.io/"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getLegalIDResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "legal_id",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~5-10 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/legal-id\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"name\":\"Delpha\",\"legal_id\":\"88052440000012\",\"legal_id_type\":\"FRA - SIRET\",\"address\":{\"city\":\"Paris\",\"country\":\"France\",\"postal_code\":\"75006\",\"state\":\"Ile de France\",\"street\":\"3 AVENUE VAVIN\"},\"website\":\"https://delpha.io/\"}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"name\": \"Delpha\",\n    \"legal_id\": \"88052440000012\",\n    \"legal_id_type\": \"FRA - SIRET\",\n    \"address\": {\n        \"city\": \"Paris\",\n        \"country\": \"France\",\n        \"postal_code\": \"75006\",\n        \"state\": \"Ile de France\",\n        \"street\": \"3 AVENUE VAVIN\",\n    },\n    \"website\": \"https://delpha.io/\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/legal-id\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"name\": \"Delpha\",\n    \"legal_id\": \"88052440000012\",\n    \"legal_id_type\": \"FRA - SIRET\",\n    \"address\": {\n      \"city\": \"Paris\",\n      \"country\": \"France\",\n      \"postal_code\": \"75006\",\n      \"state\": \"Ile de France\",\n      \"street\": \"3 AVENUE VAVIN\"\n    },\n    \"website\": \"https://delpha.io/\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/legal-id\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/legal-id HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 224\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"name\":\"Delpha\",\"legal_id\":\"88052440000012\",\"legal_id_type\":\"FRA - SIRET\",\"address\":{\"city\":\"Paris\",\"country\":\"France\",\"postal_code\":\"75006\",\"state\":\"Ile de France\",\"street\":\"3 AVENUE VAVIN\"},\"website\":\"https://delpha.io/\"}"
          }
        ]
      }
    },
    "/v1/legal-id/{job_id}": {
      "get": {
        "tags": [
          "Legal ID"
        ],
        "summary": "Get legal ID validation result",
        "description": "Fetch the result of a previously submitted `findAndValidateLegalID` job by `job_id`. On success, the `result` payload contains the normalized legal identifier, the resolved `legal_id_type` (which registry it belongs to), the validity / accuracy scores, a `match` object with the enriched company record (account name, address, annual revenue, employee count, industry, formation date, company type, website) when a confident match is found, and a `suggestions` array of alternative company records each ranked by confidence.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getLegalIDResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalIDPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job succeeded.",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "data_type": "legal_id",
                        "normalized_value": "88052440000012",
                        "label": "OK",
                        "legal_id_type": "FRA - SIRET",
                        "scores": {
                          "validity": 1,
                          "completeness": 1,
                          "accuracy": 1.0,
                          "consistency": 1
                        },
                        "match": {
                          "score": 1,
                          "account_name": "DELPHA",
                          "industry": {
                            "value": "5112",
                            "description": "Software Publishers",
                            "type": null
                          },
                          "website": {
                            "url": "https://delpha.io/"
                          },
                          "address": {
                            "place_name": "Wojo",
                            "street_number": "3",
                            "street": "AV VAVIN",
                            "full_street": "3 AV VAVIN",
                            "city": "PARIS 6",
                            "state": "",
                            "postal_code": "75006",
                            "country": "FRANCE",
                            "country_code": "FR",
                            "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE"
                          },
                          "financials": {
                            "revenue": 62429000.0,
                            "operating_profit": -5490000.0,
                            "net_income": 20422000.0,
                            "equity": 752996000.0,
                            "currency": "NOK",
                            "fiscal_period": {
                              "start_date": "2025-01-01",
                              "end_date": "2025-12-31"
                            },
                            "revenue_range": "50-100"
                          },
                          "employees_nb": {
                            "value": null,
                            "min": 6,
                            "max": 9,
                            "range": "1-10"
                          },
                          "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                          "company_type": {
                            "value": "PME",
                            "legal_type": "SAS, société par actions simplifiée",
                            "legal_id_type_label": null,
                            "legal_type_code": "5710"
                          },
                          "date": {
                            "creation_date": "2020-03-11",
                            "closing_date": null,
                            "birth_date": null
                          },
                          "legal_id_type": "FRA - SIRET",
                          "legal_id": "88052440000012",
                          "headquarters_site": {
                            "company_name": "L'OREAL",
                            "legal_id": {
                              "value": "63201210000012",
                              "type": "FRA - SIRET"
                            }
                          },
                          "site_type": "headquarters",
                          "vat": "FR40632012100"
                        },
                        "suggestions": [
                          {
                            "score": 1,
                            "account_name": "DELPHA",
                            "industry": {
                              "value": "5112",
                              "description": "Software Publishers",
                              "type": null
                            },
                            "website": {
                              "url": "https://delpha.io/"
                            },
                            "address": {
                              "place_name": "Wojo",
                              "street_number": "3",
                              "street": "AV VAVIN",
                              "full_street": "3 AV VAVIN",
                              "city": "PARIS 6",
                              "state": "",
                              "postal_code": "75006",
                              "country": "FRANCE",
                              "country_code": "FR",
                              "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE"
                            },
                            "financials": {
                              "revenue": 62429000.0,
                              "operating_profit": -5490000.0,
                              "net_income": 20422000.0,
                              "equity": 752996000.0,
                              "currency": "NOK",
                              "fiscal_period": {
                                "start_date": "2025-01-01",
                                "end_date": "2025-12-31"
                              },
                              "revenue_range": "50-100"
                            },
                            "employees_nb": {
                              "value": null,
                              "min": 6,
                              "max": 9,
                              "range": "1-10"
                            },
                            "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                            "company_type": {
                              "value": "PME",
                              "legal_type": "SAS, société par actions simplifiée",
                              "legal_id_type_label": null,
                              "legal_type_code": "5710"
                            },
                            "date": {
                              "creation_date": "2020-03-11",
                              "closing_date": null,
                              "birth_date": null
                            },
                            "legal_id_type": "FRA - SIRET",
                            "legal_id": "88052440000012",
                            "headquarters_site": {
                              "company_name": "L'OREAL",
                              "legal_id": {
                                "value": "63201210000012",
                                "type": "FRA - SIRET"
                              }
                            },
                            "site_type": "headquarters",
                            "vat": "FR40632012100"
                          }
                        ]
                      },
                      "process_time": 0.123
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalIDPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "result": null,
                      "process_time": 5
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "findAndValidateLegalID",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~5-10 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Opaque job identifier returned by `findAndValidateLegalID`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/legal-id/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/legal-id/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/legal-id/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/legal-id/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/linkedin-profile": {
      "post": {
        "tags": [
          "LinkedIn Profile"
        ],
        "summary": "Find & validate a person's LinkedIn profile",
        "description": "Submit an asynchronous job to find and validate the LinkedIn profile of a PERSON: send `url` to validate one, or `first_name` and `last_name` to search for one. Returns a `job_id` — pass it to `getLinkedInProfileResult` to retrieve the canonical profile URL plus accuracy and validity scores.\n\nTwo modes:\n  - Validate an existing profile — supply `url`.\n  - Search — supply `first_name` + `last_name`. `company_name` and `country` are optional context that can narrow the search among people who share a name. A namesake can still rank first. `website` and an `email` domain are ignored when either name is supplied.\n\n`findAndValidateLinkedInCompanyPage` covers a COMPANY's page — this operation looks for `/in/` profiles only.\n\nThe search is built only from the fields in this request; nothing carries over from a previous job.\n\nThese results are processed in real time from public web search: Google results, retrieved through Google Custom Search API or a SERP provider. No LinkedIn account, session or credential is used, and no contact database or third-party database is consulted. The name, company and country you supply are sent to that search provider. An email address you supply never leaves Delpha: its domain supplies a company website when none is given. That website is ignored when either first or last name is supplied; otherwise it may be requested directly. A URL you submit for validation is never requested: its format is checked, and it may be searched for through that search provider.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "findAndValidateLinkedInProfile",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "message": "Job submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkedInProfileSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "url": "https://www.linkedin.com/in/jordan-rivera-000000000/",
                    "website": "https://delpha.io/",
                    "company_name": "Delpha",
                    "first_name": "Jordan",
                    "last_name": "Rivera",
                    "email": "jordan.rivera@delpha.io",
                    "country": "France"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getLinkedInProfileResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "linkedin_profile",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~10 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-mcp-omit": [
          "email"
        ],
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/linkedin-profile\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"url\":\"https://www.linkedin.com/in/jordan-rivera-000000000/\",\"website\":\"https://delpha.io/\",\"company_name\":\"Delpha\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"url\": \"https://www.linkedin.com/in/jordan-rivera-000000000/\",\n    \"website\": \"https://delpha.io/\",\n    \"company_name\": \"Delpha\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"email\": \"jordan.rivera@delpha.io\",\n    \"country\": \"France\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/linkedin-profile\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"url\": \"https://www.linkedin.com/in/jordan-rivera-000000000/\",\n    \"website\": \"https://delpha.io/\",\n    \"company_name\": \"Delpha\",\n    \"first_name\": \"Jordan\",\n    \"last_name\": \"Rivera\",\n    \"email\": \"jordan.rivera@delpha.io\",\n    \"country\": \"France\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/linkedin-profile\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/linkedin-profile HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 213\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"url\":\"https://www.linkedin.com/in/jordan-rivera-000000000/\",\"website\":\"https://delpha.io/\",\"company_name\":\"Delpha\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}"
          }
        ]
      }
    },
    "/v1/linkedin-profile/{job_id}": {
      "get": {
        "tags": [
          "LinkedIn Profile"
        ],
        "summary": "Get LinkedIn profile result",
        "description": "Fetch the result of a previously submitted `findAndValidateLinkedInProfile` job by `job_id`. On success, the `result` payload contains the canonical profile URL, accuracy and validity scores, and a `recommendations` array of candidate profiles (each carrying `url`, `headline`, `desc`, `company_name`, `location`, `profile_name`, and a confidence `score`) when the match is uncertain. In search mode the top-level `label` and scores are often `\"No\"` and 0 while `recommendations` still holds the candidates. A namesake can outrank the intended person even when company context was supplied, so `recommendations[0]` is a ranked candidate rather than a confirmed match; each candidate's `company_name` and `desc` are what distinguish one from another.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getLinkedInProfileResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job succeeded.",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "data_type": "social_network",
                        "normalized_value": "https://www.linkedin.com/in/jordan-rivera-000000000/",
                        "label": "OK",
                        "scores": {
                          "accuracy": 0.8711710601954503,
                          "completeness": 1,
                          "consistency": 1,
                          "validity": 1
                        },
                        "recommendations": [
                          {
                            "url": "https://www.linkedin.com/in/jordan-rivera-000000000/",
                            "score": 0.8711710601954503,
                            "headline": "Jordan Rivera - Delpha",
                            "rank": 1,
                            "desc": "Data Engineer & Cloud specialist - AWS · Experience: Delpha · Education: ESILV - Ecole Supérieure d'Ingénieurs Léonard de Vinci · Location: Paris · 500+ ...",
                            "company_name": "Delpha",
                            "location": "Paris",
                            "profile_name": "Jordan Rivera",
                            "job_title": "Data Engineer & Cloud specialist",
                            "match_score": 0.8711710601954503,
                            "ambiguity_n": 1
                          }
                        ],
                        "recommendation_status": "confident",
                        "fallback_used": false,
                        "url_changed": false,
                        "suggested_url": null,
                        "type": "linkedin"
                      },
                      "process_time": 0.123
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "result": null,
                      "process_time": 5
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "findAndValidateLinkedInProfile",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~10 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Opaque job identifier returned by `findAndValidateLinkedInProfile`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/linkedin-profile/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/linkedin-profile/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/linkedin-profile/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/linkedin-profile/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/linkedin-company-page": {
      "post": {
        "tags": [
          "LinkedIn Company Page"
        ],
        "summary": "Find & validate a company's LinkedIn page",
        "description": "Submit an asynchronous job to find and validate the LinkedIn page of a COMPANY: send `url` to validate one, or `company_name` (with `website` for precision) to search for one. Returns a `job_id` — pass it to `getLinkedInCompanyPageResult` to retrieve the canonical page URL plus accuracy and validity scores.\n\nTwo modes:\n  - Validate an existing page — supply `url`.\n  - Search — supply `company_name`, adding `website` for precision.\n\n`findAndValidateLinkedInProfile` covers a PERSON — this operation looks for `/company/`, `/school/` and `/showcase/` pages only.\n\nThese results are processed from the company website and from public web search: Google results, retrieved through Google Custom Search API or a SERP provider. No LinkedIn account, session or credential is used, and no third-party database is consulted. The company name and country you supply are sent to that search provider, and the company website you supply — or the domain of an email address you supply, which itself never leaves Delpha — is requested directly. A URL you submit for validation is never requested: its format is checked, and it may be searched for through that search provider.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "findAndValidateLinkedInCompanyPage",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "message": "Job submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkedInCompanyPageSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "url": "https://www.linkedin.com/company/delphainc/",
                    "website": "https://delpha.io/",
                    "company_name": "Delpha",
                    "email": "jordan.rivera@delpha.io",
                    "country": "France"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getLinkedInCompanyPageResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "linkedin_company_page",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~10 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-mcp-omit": [
          "email"
        ],
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/linkedin-company-page\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"url\":\"https://www.linkedin.com/company/delphainc/\",\"website\":\"https://delpha.io/\",\"company_name\":\"Delpha\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"url\": \"https://www.linkedin.com/company/delphainc/\",\n    \"website\": \"https://delpha.io/\",\n    \"company_name\": \"Delpha\",\n    \"email\": \"jordan.rivera@delpha.io\",\n    \"country\": \"France\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/linkedin-company-page\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"url\": \"https://www.linkedin.com/company/delphainc/\",\n    \"website\": \"https://delpha.io/\",\n    \"company_name\": \"Delpha\",\n    \"email\": \"jordan.rivera@delpha.io\",\n    \"country\": \"France\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/linkedin-company-page\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/linkedin-company-page HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 161\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"url\":\"https://www.linkedin.com/company/delphainc/\",\"website\":\"https://delpha.io/\",\"company_name\":\"Delpha\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}"
          }
        ]
      }
    },
    "/v1/linkedin-company-page/{job_id}": {
      "get": {
        "tags": [
          "LinkedIn Company Page"
        ],
        "summary": "Get LinkedIn company page result",
        "description": "Fetch the result of a previously submitted `findAndValidateLinkedInCompanyPage` job by `job_id`. On success, the `result` payload contains the canonical company page URL, accuracy and validity scores, and a `recommendations` array of candidate pages (each carrying `url`, `headline`, `desc`, `company_name`, `location`, and a confidence `score`) when the match is uncertain. In search mode the top-level `label` and scores are often `\"No\"` and 0 while `recommendations` still holds the candidates. Each candidate carries a `desc` and a `headline`; unrelated companies can share a name across countries, so those two fields are what tell them apart.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getLinkedInCompanyPageResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInCompanyPagePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job succeeded.",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "data_type": "social_network",
                        "normalized_value": "https://www.linkedin.com/company/delphainc/",
                        "label": "OK",
                        "scores": {
                          "accuracy": 0.8711710601954503,
                          "completeness": 1,
                          "consistency": 1,
                          "validity": 1
                        },
                        "recommendations": [
                          {
                            "url": "https://www.linkedin.com/company/delphainc/",
                            "score": 0.8711710601954503,
                            "headline": "Delpha",
                            "rank": 1,
                            "desc": "Delpha · Software Development · Paris, France",
                            "company_name": "Delpha",
                            "location": "Paris",
                            "match_score": 0.8711710601954503,
                            "ambiguity_n": 1
                          }
                        ],
                        "recommendation_status": "confident",
                        "type": "linkedin"
                      },
                      "process_time": 0.123
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInCompanyPagePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "result": null,
                      "process_time": 5
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "findAndValidateLinkedInCompanyPage",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "~10 seconds"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Opaque job identifier returned by `findAndValidateLinkedInCompanyPage`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/linkedin-company-page/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/linkedin-company-page/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/linkedin-company-page/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/linkedin-company-page/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/ultimate": {
      "post": {
        "tags": [
          "Ultimate Parent"
        ],
        "summary": "Find & validate ultimate parent",
        "description": "Resolve a company's ultimate parent from one of its subsidiaries, brands or divisions: send `company_name` and `website`, both required. The parent returned is the **commercial parent**: the operating group the company is sold to and routed under. Passive holding entities set aside on the way up are flagged `is_discarded` in the ownership chain, and when a financial owner such as a fund sits above the operating group it is returned separately as `ultimate_financial_parent`. The result also carries the full ownership chain, the relationship type and a confidence score; each entity carries GLEIF metadata in `lei_data` when a match is found, `null` when none is.\n\nThe resolution is anchored on the company's website, not on its name alone: the website binds the name to one specific entity and seeds the search. Ownership is resolved from a live web search plus GLEIF/LEI lookups, not from a static database.\n\nAsync: poll `getUltimateParentResult` with the returned `job_id`.\n\nThe company name, website and country you supply are sent to Delpha's AI providers, which search the web; the parent found is checked against GLEIF's public LEI register.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitUltimateParent",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UltimateSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "4e8a7b3c-1234-5678-90ab-cdef12345678",
                      "message": "Job submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UltimateSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "company_name": "Sephora Brasil",
                    "website": "https://www.sephora.com.br/",
                    "country": "Brazil"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getUltimateParentResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "ultimate",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "30 seconds to a few minutes"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/ultimate\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"company_name\":\"Sephora Brasil\",\"website\":\"https://www.sephora.com.br/\",\"country\":\"Brazil\"}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"company_name\": \"Sephora Brasil\",\n    \"website\": \"https://www.sephora.com.br/\",\n    \"country\": \"Brazil\",\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/ultimate\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"company_name\": \"Sephora Brasil\",\n    \"website\": \"https://www.sephora.com.br/\",\n    \"country\": \"Brazil\"\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/ultimate\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/ultimate HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 92\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"company_name\":\"Sephora Brasil\",\"website\":\"https://www.sephora.com.br/\",\"country\":\"Brazil\"}"
          }
        ]
      }
    },
    "/v1/ultimate/{job_id}": {
      "get": {
        "tags": [
          "Ultimate Parent"
        ],
        "summary": "Get ultimate-parent result",
        "description": "Fetch the result of a previously submitted `submitUltimateParent` job by `job_id`. The resolver walks ownership upward from the queried company and returns as `ultimate_parent` the **commercial parent** — the operating group the company is sold to and routed under, not necessarily the top legal owner. Passive holding entities set aside on the way up stay in `ownership_chain` flagged `is_discarded`; when a financial owner such as a fund sits above the operating group, it is returned separately as `ultimate_financial_parent`.\n\nTop-level `result` fields: `ultimate_parent` (`CompanyEntity`), `relationship_type` (`Wholly Owned` / `Joint Venture` / `Member Firm/Franchise` / `Portfolio Company` / `Brand/Division` / `Independent`), `confidence` (a number in `[0, 1]` reported by the resolver), `comment`, `source_url` (cited URL, may be `null`), `ownership_chain` (**bottom-up** array; index 0 is the queried company), and `ultimate_financial_parent` (`CompanyEntity` or `null`). Each `CompanyEntity` carries `legal_name`, `commercial_name`, `country`, `website`, `website_validated`, `is_ultimate_financial_parent`, `is_discarded` and `lei_data` (GLEIF metadata or `null`).\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getUltimateParentResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UltimatePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "4e8a7b3c-1234-5678-90ab-cdef12345678",
                      "message": "Job succeeded.",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "ultimate_parent": {
                          "legal_name": "LVMH MOET HENNESSY LOUIS VUITTON SE",
                          "commercial_name": "LVMH",
                          "country": "France",
                          "website": "https://www.lvmh.com/",
                          "entity_type": "Corporation",
                          "ownership_status": "Unknown",
                          "comment": "Target operating entity"
                        },
                        "confidence": 0.95,
                        "comment": "Per LVMH 2024 annual report, Christian Dior SE holds 41.4% ...",
                        "source_url": "https://www.lvmh.com/group/governance/",
                        "subsidiary_commercial_name": "Sephora Brasil",
                        "ultimate_parent_source_level": "Securities Filing",
                        "evidence_summary": "Identity: Sephora SAS verified | Chain: Sephora SAS -> LVMH ... | Protocol: 6 | Discard Check: ... | GTM Selection: LVMH selected as the active Operating Conglomerate"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UltimatePullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "4e8a7b3c-1234-5678-90ab-cdef12345678",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "result": null
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitUltimateParent",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "30 seconds to a few minutes"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Opaque job identifier returned by `submitUltimateParent`.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "4e8a7b3c-1234-5678-90ab-cdef12345678",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/ultimate/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/ultimate/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/ultimate/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/ultimate/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/email/batch": {
      "post": {
        "tags": [
          "Email"
        ],
        "summary": "Submit a batch of email items",
        "description": "Submit 1..100 email items for asynchronous batch processing as ONE job (never a per-item fan-out). Returns a `job_id` immediately (202); poll `GET /v1/email/batch/{job_id}` for status and results. Each item follows `EmailSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/email`. A payload with 0 items or more than 100 is rejected with 422.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitEmailBatch",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "item_count": 100,
                      "message": "Batch submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailBatchSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "items": [
                      {
                        "email": "jordan.rivera@example.com",
                        "first_name": "Jordan",
                        "last_name": "Rivera",
                        "website": "https://delpha.io/"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getEmailBatchResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "email",
          "quantityUnit": "item",
          "quantityRange": [
            1,
            100
          ],
          "note": "Charged as price x number of items in the batch (1..100)."
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/email/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"email\":\"jordan.rivera@example.com\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"website\":\"https://delpha.io/\"}]}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"items\": [\n        {\n            \"email\": \"jordan.rivera@example.com\",\n            \"first_name\": \"Jordan\",\n            \"last_name\": \"Rivera\",\n            \"website\": \"https://delpha.io/\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/email/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"email\": \"jordan.rivera@example.com\",\n        \"first_name\": \"Jordan\",\n        \"last_name\": \"Rivera\",\n        \"website\": \"https://delpha.io/\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/email/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/email/batch HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 123\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"items\":[{\"email\":\"jordan.rivera@example.com\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"website\":\"https://delpha.io/\"}]}"
          }
        ]
      }
    },
    "/v1/website/batch": {
      "post": {
        "tags": [
          "Website"
        ],
        "summary": "Submit a batch of website items",
        "description": "Submit 1..100 website items for asynchronous batch processing as ONE job (never a per-item fan-out). Returns a `job_id` immediately (202); poll `GET /v1/website/batch/{job_id}` for status and results. Each item follows `WebsiteSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/website`. A payload with 0 items or more than 100 is rejected with 422.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitWebsiteBatch",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "item_count": 100,
                      "message": "Batch submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebsiteBatchSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "items": [
                      {
                        "website": "https://delpha.io/",
                        "name": "Delpha",
                        "linkedin": "https://www.linkedin.com/company/delphainc/",
                        "email": "jordan.rivera@delpha.io",
                        "country": "France"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getWebsiteBatchResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "website",
          "quantityUnit": "item",
          "quantityRange": [
            1,
            100
          ],
          "note": "Charged as price x number of items in the batch (1..100)."
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/website/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"website\":\"https://delpha.io/\",\"name\":\"Delpha\",\"linkedin\":\"https://www.linkedin.com/company/delphainc/\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}]}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"items\": [\n        {\n            \"website\": \"https://delpha.io/\",\n            \"name\": \"Delpha\",\n            \"linkedin\": \"https://www.linkedin.com/company/delphainc/\",\n            \"email\": \"jordan.rivera@delpha.io\",\n            \"country\": \"France\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/website/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"website\": \"https://delpha.io/\",\n        \"name\": \"Delpha\",\n        \"linkedin\": \"https://www.linkedin.com/company/delphainc/\",\n        \"email\": \"jordan.rivera@delpha.io\",\n        \"country\": \"France\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/website/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/website/batch HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 170\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"items\":[{\"website\":\"https://delpha.io/\",\"name\":\"Delpha\",\"linkedin\":\"https://www.linkedin.com/company/delphainc/\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}]}"
          }
        ]
      }
    },
    "/v1/phone/batch": {
      "post": {
        "tags": [
          "Phone"
        ],
        "summary": "Submit a batch of phone items",
        "description": "Submit 1..100 phone items for asynchronous batch processing as ONE job (never a per-item fan-out). Returns a `job_id` immediately (202); poll `GET /v1/phone/batch/{job_id}` for status and results. Each item follows `PhoneSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/phone`. A payload with 0 items or more than 100 is rejected with 422.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitPhoneBatch",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "item_count": 100,
                      "message": "Batch submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneBatchSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "items": [
                      {
                        "phone": "+33672557378",
                        "country": "France",
                        "country_code": "FR"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getPhoneBatchResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "phone",
          "quantityUnit": "item",
          "quantityRange": [
            1,
            100
          ],
          "note": "Charged as price x number of items in the batch (1..100)."
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/phone/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"phone\":\"+33672557378\",\"country\":\"France\",\"country_code\":\"FR\"}]}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"items\": [\n        {\n            \"phone\": \"+33672557378\",\n            \"country\": \"France\",\n            \"country_code\": \"FR\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/phone/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"phone\": \"+33672557378\",\n        \"country\": \"France\",\n        \"country_code\": \"FR\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/phone/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/phone/batch HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 75\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"items\":[{\"phone\":\"+33672557378\",\"country\":\"France\",\"country_code\":\"FR\"}]}"
          }
        ]
      }
    },
    "/v1/name/batch": {
      "post": {
        "tags": [
          "Name"
        ],
        "summary": "Submit a batch of name items",
        "description": "Submit 1..100 name items for asynchronous batch processing as ONE job (never a per-item fan-out). Returns a `job_id` immediately (202); poll `GET /v1/name/batch/{job_id}` for status and results. Each item follows `NameSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/name`. A payload with 0 items or more than 100 is rejected with 422.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitNameBatch",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "item_count": 100,
                      "message": "Batch submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NameBatchSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "items": [
                      {
                        "first_name": "Jordan",
                        "last_name": "Rivera"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getNameBatchResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "name",
          "quantityUnit": "item",
          "quantityRange": [
            1,
            100
          ],
          "note": "Charged as price x number of items in the batch (1..100)."
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/name/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"first_name\":\"Jordan\",\"last_name\":\"Rivera\"}]}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"items\": [\n        {\n            \"first_name\": \"Jordan\",\n            \"last_name\": \"Rivera\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/name/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"first_name\": \"Jordan\",\n        \"last_name\": \"Rivera\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/name/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/name/batch HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 56\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"items\":[{\"first_name\":\"Jordan\",\"last_name\":\"Rivera\"}]}"
          }
        ]
      }
    },
    "/v1/legal-id/batch": {
      "post": {
        "tags": [
          "Legal ID"
        ],
        "summary": "Submit a batch of legal ID items",
        "description": "Submit 1..100 legal ID items for asynchronous batch processing as ONE job (never a per-item fan-out). Returns a `job_id` immediately (202); poll `GET /v1/legal-id/batch/{job_id}` for status and results. Each item follows `LegalIDSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/legal-id`. A payload with 0 items or more than 100 is rejected with 422. A batch in which ANY item names a registry (or a country with no registry) outside the `legal_id_type` enum is refused as a whole with 422 `unsupported_registry` before any credit is reserved; the message lists the offending item positions and the supported countries.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitLegalIDBatch",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "item_count": 100,
                      "message": "Batch submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalIDBatchSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "items": [
                      {
                        "name": "Delpha",
                        "legal_id": "88052440000012",
                        "legal_id_type": "FRA - SIRET",
                        "address": {
                          "city": "Paris",
                          "country": "France",
                          "postal_code": "75006",
                          "state": "Ile de France",
                          "street": "3 AVENUE VAVIN"
                        },
                        "website": "https://delpha.io/"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getLegalIDBatchResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "legal_id",
          "quantityUnit": "item",
          "quantityRange": [
            1,
            100
          ],
          "note": "Charged as price x number of items in the batch (1..100)."
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/legal-id/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"name\":\"Delpha\",\"legal_id\":\"88052440000012\",\"legal_id_type\":\"FRA - SIRET\",\"address\":{\"city\":\"Paris\",\"country\":\"France\",\"postal_code\":\"75006\",\"state\":\"Ile de France\",\"street\":\"3 AVENUE VAVIN\"},\"website\":\"https://delpha.io/\"}]}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"items\": [\n        {\n            \"name\": \"Delpha\",\n            \"legal_id\": \"88052440000012\",\n            \"legal_id_type\": \"FRA - SIRET\",\n            \"address\": {\n                \"city\": \"Paris\",\n                \"country\": \"France\",\n                \"postal_code\": \"75006\",\n                \"state\": \"Ile de France\",\n                \"street\": \"3 AVENUE VAVIN\",\n            },\n            \"website\": \"https://delpha.io/\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/legal-id/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"name\": \"Delpha\",\n        \"legal_id\": \"88052440000012\",\n        \"legal_id_type\": \"FRA - SIRET\",\n        \"address\": {\n          \"city\": \"Paris\",\n          \"country\": \"France\",\n          \"postal_code\": \"75006\",\n          \"state\": \"Ile de France\",\n          \"street\": \"3 AVENUE VAVIN\"\n        },\n        \"website\": \"https://delpha.io/\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/legal-id/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/legal-id/batch HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 236\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"items\":[{\"name\":\"Delpha\",\"legal_id\":\"88052440000012\",\"legal_id_type\":\"FRA - SIRET\",\"address\":{\"city\":\"Paris\",\"country\":\"France\",\"postal_code\":\"75006\",\"state\":\"Ile de France\",\"street\":\"3 AVENUE VAVIN\"},\"website\":\"https://delpha.io/\"}]}"
          }
        ]
      }
    },
    "/v1/linkedin-profile/batch": {
      "post": {
        "tags": [
          "LinkedIn Profile"
        ],
        "summary": "Submit a batch of LinkedIn profile items",
        "description": "Submit 1..100 LinkedIn profile items for asynchronous batch processing as ONE job (never a per-item fan-out). Returns a `job_id` immediately (202); poll `GET /v1/linkedin-profile/batch/{job_id}` for status and results. Each item follows `LinkedInProfileSubmitInputBatchItem`; see that component for its fields. It uses the runtime validation of `POST /v1/linkedin-profile`. A payload with 0 items or more than 100 is rejected with 422.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitLinkedInProfileBatch",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "item_count": 100,
                      "message": "Batch submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkedInProfileBatchSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "items": [
                      {
                        "url": "https://www.linkedin.com/in/jordan-rivera-000000000/",
                        "website": "https://delpha.io/",
                        "company_name": "Delpha",
                        "first_name": "Jordan",
                        "last_name": "Rivera",
                        "email": "jordan.rivera@delpha.io",
                        "country": "France"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getLinkedInProfileBatchResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "linkedin_profile",
          "quantityUnit": "item",
          "quantityRange": [
            1,
            100
          ],
          "note": "Charged as price x number of items in the batch (1..100)."
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/linkedin-profile/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"url\":\"https://www.linkedin.com/in/jordan-rivera-000000000/\",\"website\":\"https://delpha.io/\",\"company_name\":\"Delpha\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}]}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"items\": [\n        {\n            \"url\": \"https://www.linkedin.com/in/jordan-rivera-000000000/\",\n            \"website\": \"https://delpha.io/\",\n            \"company_name\": \"Delpha\",\n            \"first_name\": \"Jordan\",\n            \"last_name\": \"Rivera\",\n            \"email\": \"jordan.rivera@delpha.io\",\n            \"country\": \"France\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/linkedin-profile/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"url\": \"https://www.linkedin.com/in/jordan-rivera-000000000/\",\n        \"website\": \"https://delpha.io/\",\n        \"company_name\": \"Delpha\",\n        \"first_name\": \"Jordan\",\n        \"last_name\": \"Rivera\",\n        \"email\": \"jordan.rivera@delpha.io\",\n        \"country\": \"France\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/linkedin-profile/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/linkedin-profile/batch HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 225\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"items\":[{\"url\":\"https://www.linkedin.com/in/jordan-rivera-000000000/\",\"website\":\"https://delpha.io/\",\"company_name\":\"Delpha\",\"first_name\":\"Jordan\",\"last_name\":\"Rivera\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}]}"
          }
        ]
      }
    },
    "/v1/linkedin-company-page/batch": {
      "post": {
        "tags": [
          "LinkedIn Company Page"
        ],
        "summary": "Submit a batch of LinkedIn company page items",
        "description": "Submit 1..100 LinkedIn company page items for asynchronous batch processing as ONE job (never a per-item fan-out). Returns a `job_id` immediately (202); poll `GET /v1/linkedin-company-page/batch/{job_id}` for status and results. Each item follows `LinkedInCompanyPageSubmitInputBatchItem`; see that component for its fields. It uses the runtime validation of `POST /v1/linkedin-company-page`. A payload with 0 items or more than 100 is rejected with 422.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitLinkedInCompanyPageBatch",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "item_count": 100,
                      "message": "Batch submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkedInCompanyPageBatchSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "items": [
                      {
                        "url": "https://www.linkedin.com/company/delphainc/",
                        "website": "https://delpha.io/",
                        "company_name": "Delpha",
                        "email": "jordan.rivera@delpha.io",
                        "country": "France"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getLinkedInCompanyPageBatchResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "linkedin_company_page",
          "quantityUnit": "item",
          "quantityRange": [
            1,
            100
          ],
          "note": "Charged as price x number of items in the batch (1..100)."
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/linkedin-company-page/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"url\":\"https://www.linkedin.com/company/delphainc/\",\"website\":\"https://delpha.io/\",\"company_name\":\"Delpha\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}]}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"items\": [\n        {\n            \"url\": \"https://www.linkedin.com/company/delphainc/\",\n            \"website\": \"https://delpha.io/\",\n            \"company_name\": \"Delpha\",\n            \"email\": \"jordan.rivera@delpha.io\",\n            \"country\": \"France\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/linkedin-company-page/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"url\": \"https://www.linkedin.com/company/delphainc/\",\n        \"website\": \"https://delpha.io/\",\n        \"company_name\": \"Delpha\",\n        \"email\": \"jordan.rivera@delpha.io\",\n        \"country\": \"France\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/linkedin-company-page/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/linkedin-company-page/batch HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 173\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"items\":[{\"url\":\"https://www.linkedin.com/company/delphainc/\",\"website\":\"https://delpha.io/\",\"company_name\":\"Delpha\",\"email\":\"jordan.rivera@delpha.io\",\"country\":\"France\"}]}"
          }
        ]
      }
    },
    "/v1/ultimate/batch": {
      "post": {
        "tags": [
          "Ultimate Parent"
        ],
        "summary": "Submit a batch of ultimate-parent resolution items",
        "description": "Submit 1..100 ultimate-parent resolution items for asynchronous batch processing as ONE job (never a per-item fan-out). Returns a `job_id` immediately (202); poll `GET /v1/ultimate/batch/{job_id}` for status and results. Each item follows `UltimateSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/ultimate`. A payload with 0 items or more than 100 is rejected with 422.\n\nA live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "submitUltimateBatch",
        "responses": {
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSubmitOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                      "item_count": 100,
                      "message": "Batch submitted",
                      "status": "SUCCESS",
                      "status_code": 202
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "description": "Set to 'true' when this 202 replays a previously accepted request with the same Idempotency-Key (no new job, no additional charge).",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the `Idempotency-Key` was already used with a different request body (`idempotency_key_reuse`: a new key admits the new body, the original body replays the original job), or the original request with this key is still being processed (`idempotency_in_progress`: the same request answers with the original job once that one is admitted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "This Idempotency-Key was already used with a different request body.",
                      "code": "idempotency_key_reuse"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the request is well-formed but cannot be processed: a documented size/shape bound was violated (`validation_error`), or a legal-ID request names a registry / country Delpha cannot query (`unsupported_registry` — refused before any credit is reserved; the message lists the supported countries).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UltimateBatchSubmitInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "items": [
                      {
                        "company_name": "Sephora Brasil",
                        "website": "https://www.sephora.com.br/",
                        "country": "Brazil"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "submit",
          "pollOperationId": "getUltimateBatchResult",
          "runningStatusCode": 202
        },
        "x-idempotency": {
          "header": "Idempotency-Key",
          "ttlSeconds": 86400,
          "scope": "team",
          "replayHeader": "Idempotent-Replayed"
        },
        "x-credit-operation": {
          "operation": "ultimate",
          "quantityUnit": "item",
          "quantityRange": [
            1,
            100
          ],
          "note": "Charged as price x number of items in the batch (1..100)."
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": true
        },
        "x-side-effects": "A live-mode call reserves credits and creates a job record retained for 10 days; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Re-submitting the same input starts a new job and a new charge, unless the request carries an `Idempotency-Key` already used with the same body within the last 24 hours — that returns the original `job_id` and reserves nothing. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "# The same key with the same body replays the first 202, with no second charge.\nIDEMPOTENCY_KEY=$(uuidgen)\n\ncurl -i -X POST \"https://api.delpha.io/v1/ultimate/batch\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $IDEMPOTENCY_KEY\" \\\n  --data '{\"items\":[{\"company_name\":\"Sephora Brasil\",\"website\":\"https://www.sephora.com.br/\",\"country\":\"Brazil\"}]}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import uuid\n\nimport requests\n\npayload = {\n    \"items\": [\n        {\n            \"company_name\": \"Sephora Brasil\",\n            \"website\": \"https://www.sephora.com.br/\",\n            \"country\": \"Brazil\",\n        },\n    ],\n}\n# The same key with the same body replays the first 202, with no second charge.\nidempotency_key = str(uuid.uuid4())\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/ultimate/batch\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n        \"Idempotency-Key\": idempotency_key,\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.headers.get(\"Location\"))\nprint(response.headers.get(\"Retry-After\"))\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "const { randomUUID } = require(\"node:crypto\");\n\nasync function main() {\n  const payload = {\n    \"items\": [\n      {\n        \"company_name\": \"Sephora Brasil\",\n        \"website\": \"https://www.sephora.com.br/\",\n        \"country\": \"Brazil\"\n      }\n    ]\n  };\n  // The same key with the same body replays the first 202, with no second charge.\n  const idempotencyKey = randomUUID();\n  const response = await fetch(\"https://api.delpha.io/v1/ultimate/batch\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n      \"Idempotency-Key\": idempotencyKey,\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(response.headers.get(\"Location\"));\n  console.log(response.headers.get(\"Retry-After\"));\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/ultimate/batch HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 104\nIdempotency-Key: a_new_unique_key_per_request\n\n{\"items\":[{\"company_name\":\"Sephora Brasil\",\"website\":\"https://www.sephora.com.br/\",\"country\":\"Brazil\"}]}"
          }
        ]
      }
    },
    "/v1/email/batch/{job_id}": {
      "get": {
        "tags": [
          "Email"
        ],
        "summary": "Get email batch job status",
        "description": "Poll a batch of email items submitted via `POST /v1/email/batch`. 202 while running (with `item_count`/`processed_count` progress); 200 once SUCCEEDED (with `counts`, a presigned `result_url`, and `result_data` inlined when <=1MB); 409 if the credit reservation expired before delivery (resubmit); 500 if the job failed; 504 past the 24h ceiling.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getEmailBatchResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "97/100 items succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "counts": {
                        "total": 100,
                        "succeeded": 97,
                        "failed": 3
                      },
                      "result_url": "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
                      "result_data": {
                        "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                        "usecase": "email",
                        "counts": {
                          "total": 2,
                          "succeeded": 1,
                          "failed": 1
                        },
                        "items": [
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                            },
                            "result": {
                              "label": "OK",
                              "normalized_value": "jordan.rivera@example.com",
                              "provider": "Orange",
                              "email_domain": "example.com",
                              "email_domain_qualification": "nominative@perso",
                              "email_status": "Valid",
                              "email_address_qualification": "Role-based",
                              "suggestions": [
                                {
                                  "value": "jordan.rivera@delpha.io",
                                  "score": 0.7260620227245627
                                }
                              ],
                              "website_domain": "delpha.io",
                              "website_domain_qualification": "nominative@pro",
                              "suggestions_from_website": [
                                {
                                  "value": "jordan.rivera@delpha.io",
                                  "score": 0.7260620227245627
                                }
                              ],
                              "data_type": "email",
                              "scores": {
                                "validity": 1,
                                "completeness": 1,
                                "accuracy": 0.7116992363593002,
                                "consistency": 0
                              }
                            }
                          },
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                            },
                            "error": "Processing failed for this item."
                          }
                        ]
                      },
                      "item_count": null,
                      "processed_count": null,
                      "process_time": 12.3
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "counts": null,
                      "result_url": null,
                      "result_data": null,
                      "item_count": 100,
                      "processed_count": 42,
                      "process_time": 5.0
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitEmailBatch",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the email batch job.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/email/batch/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/email/batch/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/email/batch/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/email/batch/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/website/batch/{job_id}": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Get website batch job status",
        "description": "Poll a batch of website items submitted via `POST /v1/website/batch`. 202 while running (with `item_count`/`processed_count` progress); 200 once SUCCEEDED (with `counts`, a presigned `result_url`, and `result_data` inlined when <=1MB); 409 if the credit reservation expired before delivery (resubmit); 500 if the job failed; 504 past the 24h ceiling.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getWebsiteBatchResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "97/100 items succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "counts": {
                        "total": 100,
                        "succeeded": 97,
                        "failed": 3
                      },
                      "result_url": "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
                      "result_data": {
                        "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                        "usecase": "website",
                        "counts": {
                          "total": 2,
                          "succeeded": 1,
                          "failed": 1
                        },
                        "items": [
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                            },
                            "result": {
                              "data_type": "website",
                              "normalized_value": "https://delpha.io/",
                              "label": "OK",
                              "scores": {
                                "validity": 1,
                                "completeness": 1,
                                "accuracy": 1,
                                "consistency": 1
                              },
                              "recommendations": [
                                {
                                  "url": "https://delpha.io/",
                                  "score": 0.996,
                                  "metadata": {
                                    "url": "https://delpha.io/",
                                    "name": "Delpha",
                                    "title": "Delpha — data quality for Salesforce",
                                    "summary": "Delpha detects and resolves data issues across Salesforce accounts, contacts and leads.",
                                    "rank": 1
                                  },
                                  "source_path": [
                                    {
                                      "name": "Name"
                                    }
                                  ]
                                }
                              ]
                            }
                          },
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                            },
                            "error": "Processing failed for this item."
                          }
                        ]
                      },
                      "item_count": null,
                      "processed_count": null,
                      "process_time": 12.3
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "counts": null,
                      "result_url": null,
                      "result_data": null,
                      "item_count": 100,
                      "processed_count": 42,
                      "process_time": 5.0
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitWebsiteBatch",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the website batch job.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/website/batch/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/website/batch/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/website/batch/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/website/batch/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/phone/batch/{job_id}": {
      "get": {
        "tags": [
          "Phone"
        ],
        "summary": "Get phone batch job status",
        "description": "Poll a batch of phone items submitted via `POST /v1/phone/batch`. 202 while running (with `item_count`/`processed_count` progress); 200 once SUCCEEDED (with `counts`, a presigned `result_url`, and `result_data` inlined when <=1MB); 409 if the credit reservation expired before delivery (resubmit); 500 if the job failed; 504 past the 24h ceiling.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getPhoneBatchResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhoneBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "97/100 items succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "counts": {
                        "total": 100,
                        "succeeded": 97,
                        "failed": 3
                      },
                      "result_url": "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
                      "result_data": {
                        "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                        "usecase": "phone",
                        "counts": {
                          "total": 2,
                          "succeeded": 1,
                          "failed": 1
                        },
                        "items": [
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                            },
                            "result": {
                              "data_type": "phone",
                              "normalized_value": "+33672557378",
                              "phone_type": "MOBILE",
                              "carrier": "Orange France",
                              "timezone": "Europe/Paris",
                              "zone": "FR",
                              "area": "France",
                              "activity_score": 85,
                              "is_prepaid": false,
                              "scores": {
                                "confidence": 1,
                                "validity": 1,
                                "completeness": 1,
                                "consistency": 1,
                                "accuracy": -1
                              }
                            }
                          },
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                            },
                            "error": "Processing failed for this item."
                          }
                        ]
                      },
                      "item_count": null,
                      "processed_count": null,
                      "process_time": 12.3
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhoneBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "counts": null,
                      "result_url": null,
                      "result_data": null,
                      "item_count": 100,
                      "processed_count": 42,
                      "process_time": 5.0
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitPhoneBatch",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the phone batch job.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/phone/batch/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/phone/batch/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/phone/batch/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/phone/batch/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/name/batch/{job_id}": {
      "get": {
        "tags": [
          "Name"
        ],
        "summary": "Get name batch job status",
        "description": "Poll a batch of name items submitted via `POST /v1/name/batch`. 202 while running (with `item_count`/`processed_count` progress); 200 once SUCCEEDED (with `counts`, a presigned `result_url`, and `result_data` inlined when <=1MB); 409 if the credit reservation expired before delivery (resubmit); 500 if the job failed; 504 past the 24h ceiling.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getNameBatchResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NameBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "97/100 items succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "counts": {
                        "total": 100,
                        "succeeded": 97,
                        "failed": 3
                      },
                      "result_url": "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
                      "result_data": {
                        "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                        "usecase": "name",
                        "counts": {
                          "total": 2,
                          "succeeded": 1,
                          "failed": 1
                        },
                        "items": [
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                            },
                            "result": {
                              "data_type": "name",
                              "normalized_value": {
                                "first_name": "Jordan",
                                "last_name": "Rivera"
                              },
                              "label": "OK",
                              "scores": {
                                "accuracy": 0,
                                "reversed": 0.192,
                                "misspelled": {
                                  "first_name": 0,
                                  "last_name": 1
                                },
                                "consistency": {
                                  "first_name": 1,
                                  "last_name": 0
                                },
                                "validity": {
                                  "first_name": 1,
                                  "last_name": 1
                                },
                                "completeness": {
                                  "first_name": 1,
                                  "last_name": 1
                                }
                              },
                              "suggestions": {
                                "first_name": [
                                  {
                                    "value": "Jordan",
                                    "score": 1
                                  }
                                ],
                                "last_name": [
                                  {
                                    "value": "GOBET",
                                    "score": 0.91
                                  },
                                  {
                                    "value": "GABET",
                                    "score": 0.73
                                  }
                                ]
                              }
                            }
                          },
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                            },
                            "error": "Processing failed for this item."
                          }
                        ]
                      },
                      "item_count": null,
                      "processed_count": null,
                      "process_time": 12.3
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NameBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "counts": null,
                      "result_url": null,
                      "result_data": null,
                      "item_count": 100,
                      "processed_count": 42,
                      "process_time": 5.0
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitNameBatch",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the name batch job.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/name/batch/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/name/batch/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/name/batch/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/name/batch/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/legal-id/batch/{job_id}": {
      "get": {
        "tags": [
          "Legal ID"
        ],
        "summary": "Get legal ID batch job status",
        "description": "Poll a batch of legal ID items submitted via `POST /v1/legal-id/batch`. 202 while running (with `item_count`/`processed_count` progress); 200 once SUCCEEDED (with `counts`, a presigned `result_url`, and `result_data` inlined when <=1MB); 409 if the credit reservation expired before delivery (resubmit); 500 if the job failed; 504 past the 24h ceiling.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getLegalIDBatchResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalIDBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "97/100 items succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "counts": {
                        "total": 100,
                        "succeeded": 97,
                        "failed": 3
                      },
                      "result_url": "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
                      "result_data": {
                        "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                        "usecase": "legal-id",
                        "counts": {
                          "total": 2,
                          "succeeded": 1,
                          "failed": 1
                        },
                        "items": [
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                            },
                            "result": {
                              "data_type": "legal_id",
                              "normalized_value": "88052440000012",
                              "label": "OK",
                              "legal_id_type": "FRA - SIRET",
                              "scores": {
                                "validity": 1,
                                "completeness": 1,
                                "accuracy": 1.0,
                                "consistency": 1
                              },
                              "match": {
                                "score": 1,
                                "account_name": "DELPHA",
                                "industry": {
                                  "value": "5112",
                                  "description": "Software Publishers",
                                  "type": null
                                },
                                "website": {
                                  "url": "https://delpha.io/"
                                },
                                "address": {
                                  "place_name": "Wojo",
                                  "street_number": "3",
                                  "street": "AV VAVIN",
                                  "full_street": "3 AV VAVIN",
                                  "city": "PARIS 6",
                                  "state": "",
                                  "postal_code": "75006",
                                  "country": "FRANCE",
                                  "country_code": "FR",
                                  "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE"
                                },
                                "financials": {
                                  "revenue": 62429000.0,
                                  "operating_profit": -5490000.0,
                                  "net_income": 20422000.0,
                                  "equity": 752996000.0,
                                  "currency": "NOK",
                                  "fiscal_period": {
                                    "start_date": "2025-01-01",
                                    "end_date": "2025-12-31"
                                  },
                                  "revenue_range": "50-100"
                                },
                                "employees_nb": {
                                  "value": null,
                                  "min": 6,
                                  "max": 9,
                                  "range": "1-10"
                                },
                                "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                                "company_type": {
                                  "value": "PME",
                                  "legal_type": "SAS, société par actions simplifiée",
                                  "legal_id_type_label": null,
                                  "legal_type_code": "5710"
                                },
                                "date": {
                                  "creation_date": "2020-03-11",
                                  "closing_date": null,
                                  "birth_date": null
                                },
                                "legal_id_type": "FRA - SIRET",
                                "legal_id": "88052440000012",
                                "headquarters_site": {
                                  "company_name": "L'OREAL",
                                  "legal_id": {
                                    "value": "63201210000012",
                                    "type": "FRA - SIRET"
                                  }
                                },
                                "site_type": "headquarters",
                                "vat": "FR40632012100"
                              },
                              "suggestions": [
                                {
                                  "score": 1,
                                  "account_name": "DELPHA",
                                  "industry": {
                                    "value": "5112",
                                    "description": "Software Publishers",
                                    "type": null
                                  },
                                  "website": {
                                    "url": "https://delpha.io/"
                                  },
                                  "address": {
                                    "place_name": "Wojo",
                                    "street_number": "3",
                                    "street": "AV VAVIN",
                                    "full_street": "3 AV VAVIN",
                                    "city": "PARIS 6",
                                    "state": "",
                                    "postal_code": "75006",
                                    "country": "FRANCE",
                                    "country_code": "FR",
                                    "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE"
                                  },
                                  "financials": {
                                    "revenue": 62429000.0,
                                    "operating_profit": -5490000.0,
                                    "net_income": 20422000.0,
                                    "equity": 752996000.0,
                                    "currency": "NOK",
                                    "fiscal_period": {
                                      "start_date": "2025-01-01",
                                      "end_date": "2025-12-31"
                                    },
                                    "revenue_range": "50-100"
                                  },
                                  "employees_nb": {
                                    "value": null,
                                    "min": 6,
                                    "max": 9,
                                    "range": "1-10"
                                  },
                                  "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                                  "company_type": {
                                    "value": "PME",
                                    "legal_type": "SAS, société par actions simplifiée",
                                    "legal_id_type_label": null,
                                    "legal_type_code": "5710"
                                  },
                                  "date": {
                                    "creation_date": "2020-03-11",
                                    "closing_date": null,
                                    "birth_date": null
                                  },
                                  "legal_id_type": "FRA - SIRET",
                                  "legal_id": "88052440000012",
                                  "headquarters_site": {
                                    "company_name": "L'OREAL",
                                    "legal_id": {
                                      "value": "63201210000012",
                                      "type": "FRA - SIRET"
                                    }
                                  },
                                  "site_type": "headquarters",
                                  "vat": "FR40632012100"
                                }
                              ]
                            }
                          },
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                            },
                            "error": "Processing failed for this item."
                          }
                        ]
                      },
                      "item_count": null,
                      "processed_count": null,
                      "process_time": 12.3
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalIDBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "counts": null,
                      "result_url": null,
                      "result_data": null,
                      "item_count": 100,
                      "processed_count": 42,
                      "process_time": 5.0
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitLegalIDBatch",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the legal ID batch job.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/legal-id/batch/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/legal-id/batch/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/legal-id/batch/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/legal-id/batch/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/linkedin-profile/batch/{job_id}": {
      "get": {
        "tags": [
          "LinkedIn Profile"
        ],
        "summary": "Get LinkedIn profile batch job status",
        "description": "Poll a batch of LinkedIn profile items submitted via `POST /v1/linkedin-profile/batch`. 202 while running (with `item_count`/`processed_count` progress); 200 once SUCCEEDED (with `counts`, a presigned `result_url`, and `result_data` inlined when <=1MB); 409 if the credit reservation expired before delivery (resubmit); 500 if the job failed; 504 past the 24h ceiling.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getLinkedInProfileBatchResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInProfileBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "97/100 items succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "counts": {
                        "total": 100,
                        "succeeded": 97,
                        "failed": 3
                      },
                      "result_url": "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
                      "result_data": {
                        "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                        "usecase": "linkedin-profile",
                        "counts": {
                          "total": 2,
                          "succeeded": 1,
                          "failed": 1
                        },
                        "items": [
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                            },
                            "result": {
                              "data_type": "social_network",
                              "normalized_value": "https://www.linkedin.com/in/jordan-rivera-000000000/",
                              "label": "OK",
                              "scores": {
                                "accuracy": 0.8711710601954503,
                                "completeness": 1,
                                "consistency": 1,
                                "validity": 1
                              },
                              "recommendations": [
                                {
                                  "url": "https://www.linkedin.com/in/jordan-rivera-000000000/",
                                  "score": 0.8711710601954503,
                                  "headline": "Jordan Rivera - Delpha",
                                  "rank": 1,
                                  "desc": "Data Engineer & Cloud specialist - AWS · Experience: Delpha · Education: ESILV - Ecole Supérieure d'Ingénieurs Léonard de Vinci · Location: Paris · 500+ ...",
                                  "company_name": "Delpha",
                                  "location": "Paris",
                                  "profile_name": "Jordan Rivera",
                                  "job_title": "Data Engineer & Cloud specialist",
                                  "match_score": 0.8711710601954503,
                                  "ambiguity_n": 1
                                }
                              ],
                              "recommendation_status": "confident",
                              "fallback_used": false,
                              "url_changed": false,
                              "suggested_url": null,
                              "type": "linkedin"
                            }
                          },
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                            },
                            "error": "Processing failed for this item."
                          }
                        ]
                      },
                      "item_count": null,
                      "processed_count": null,
                      "process_time": 12.3
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInProfileBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "counts": null,
                      "result_url": null,
                      "result_data": null,
                      "item_count": 100,
                      "processed_count": 42,
                      "process_time": 5.0
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitLinkedInProfileBatch",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the LinkedIn profile batch job.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/linkedin-profile/batch/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/linkedin-profile/batch/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/linkedin-profile/batch/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/linkedin-profile/batch/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/linkedin-company-page/batch/{job_id}": {
      "get": {
        "tags": [
          "LinkedIn Company Page"
        ],
        "summary": "Get LinkedIn company page batch job status",
        "description": "Poll a batch of LinkedIn company page items submitted via `POST /v1/linkedin-company-page/batch`. 202 while running (with `item_count`/`processed_count` progress); 200 once SUCCEEDED (with `counts`, a presigned `result_url`, and `result_data` inlined when <=1MB); 409 if the credit reservation expired before delivery (resubmit); 500 if the job failed; 504 past the 24h ceiling.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getLinkedInCompanyPageBatchResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInCompanyPageBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "97/100 items succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "counts": {
                        "total": 100,
                        "succeeded": 97,
                        "failed": 3
                      },
                      "result_url": "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
                      "result_data": {
                        "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                        "usecase": "linkedin-company-page",
                        "counts": {
                          "total": 2,
                          "succeeded": 1,
                          "failed": 1
                        },
                        "items": [
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                            },
                            "result": {
                              "data_type": "social_network",
                              "normalized_value": "https://www.linkedin.com/company/delphainc/",
                              "label": "OK",
                              "scores": {
                                "accuracy": 0.8711710601954503,
                                "completeness": 1,
                                "consistency": 1,
                                "validity": 1
                              },
                              "recommendations": [
                                {
                                  "url": "https://www.linkedin.com/company/delphainc/",
                                  "score": 0.8711710601954503,
                                  "headline": "Delpha",
                                  "rank": 1,
                                  "desc": "Delpha · Software Development · Paris, France",
                                  "company_name": "Delpha",
                                  "location": "Paris",
                                  "match_score": 0.8711710601954503,
                                  "ambiguity_n": 1
                                }
                              ],
                              "recommendation_status": "confident",
                              "type": "linkedin"
                            }
                          },
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                            },
                            "error": "Processing failed for this item."
                          }
                        ]
                      },
                      "item_count": null,
                      "processed_count": null,
                      "process_time": 12.3
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInCompanyPageBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "counts": null,
                      "result_url": null,
                      "result_data": null,
                      "item_count": 100,
                      "processed_count": 42,
                      "process_time": 5.0
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitLinkedInCompanyPageBatch",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the LinkedIn company page batch job.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/linkedin-company-page/batch/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/linkedin-company-page/batch/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/linkedin-company-page/batch/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/linkedin-company-page/batch/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/ultimate/batch/{job_id}": {
      "get": {
        "tags": [
          "Ultimate Parent"
        ],
        "summary": "Get ultimate-parent resolution batch job status",
        "description": "Poll a batch of ultimate-parent resolution items submitted via `POST /v1/ultimate/batch`. 202 while running (with `item_count`/`processed_count` progress); 200 once SUCCEEDED (with `counts`, a presigned `result_url`, and `result_data` inlined when <=1MB); 409 if the credit reservation expired before delivery (resubmit); 500 if the job failed; 504 past the 24h ceiling.\n\nReading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "operationId": "getUltimateBatchResult",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UltimateBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "97/100 items succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "counts": {
                        "total": 100,
                        "succeeded": 97,
                        "failed": 3
                      },
                      "result_url": "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
                      "result_data": {
                        "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                        "usecase": "ultimate",
                        "counts": {
                          "total": 2,
                          "succeeded": 1,
                          "failed": 1
                        },
                        "items": [
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                            },
                            "result": {
                              "ultimate_parent": {
                                "legal_name": "LVMH MOET HENNESSY LOUIS VUITTON SE",
                                "commercial_name": "LVMH",
                                "country": "France",
                                "website": "https://www.lvmh.com/",
                                "entity_type": "Corporation",
                                "ownership_status": "Unknown",
                                "comment": "Target operating entity"
                              },
                              "confidence": 0.95,
                              "comment": "Per LVMH 2024 annual report, Christian Dior SE holds 41.4% ...",
                              "source_url": "https://www.lvmh.com/group/governance/",
                              "subsidiary_commercial_name": "Sephora Brasil",
                              "ultimate_parent_source_level": "Securities Filing",
                              "evidence_summary": "Identity: Sephora SAS verified | Chain: Sephora SAS -> LVMH ... | Protocol: 6 | Discard Check: ... | GTM Selection: LVMH selected as the active Operating Conglomerate",
                              "relationship_type": "Wholly Owned",
                              "ownership_chain": [],
                              "ultimate_financial_parent": null,
                              "is_self_ultimate": false
                            }
                          },
                          {
                            "dispatch_key": {
                              "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                            },
                            "error": "Processing failed for this item."
                          }
                        ]
                      },
                      "item_count": null,
                      "processed_count": null,
                      "process_time": 12.3
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "202": {
            "description": "Accepted / still running — poll the result route with the returned job_id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UltimateBatchPullOutput"
                },
                "examples": {
                  "default": {
                    "summary": "202 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Job is still running.",
                      "status": "SUCCESS",
                      "status_code": 202,
                      "counts": null,
                      "result_url": null,
                      "result_data": null,
                      "item_count": 100,
                      "processed_count": 42,
                      "process_time": 5.0
                    }
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Poll URL for this job (present when the response carries a job_id).",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "404": {
            "description": "Not found — no job exists for this id, or it belongs to another team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "404 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 404,
                      "message": "No job found for this id.",
                      "code": "not_found"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (poll: 6000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "500": {
            "description": "Internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "500 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 500,
                      "message": "Internal error.",
                      "code": "internal_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-polling": {
          "role": "poll",
          "submitOperationId": "submitUltimateBatch",
          "runningStatusCode": 202,
          "successStatusCode": 200
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 100,
          "burstLimit": 200,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "poll",
          "limit": 6000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "minutes to hours (batch timescales)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the ultimate-parent resolution batch job.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "21014abc65004d2781d2e0ef4c9fbb46",
                "summary": "Sample job ID"
              }
            }
          }
        ],
        "x-side-effects": "Reading a result starts no work and adds no charge. The job's accounting is normally finalized when it completes. Reading a result can finalize outstanding accounting or refund the charge if the job failed, exceeded its time limit or produced no usable result, and may mark a timed-out job failed. Repeating the call never starts another job or charges again.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "JOB_ID=job_id_from_the_202\n\ncurl -i \"https://api.delpha.io/v1/ultimate/batch/$JOB_ID\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\njob_id = \"job_id_from_the_202\"\n\nresponse = requests.get(\n    f\"https://api.delpha.io/v1/ultimate/batch/{job_id}\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const jobId = \"job_id_from_the_202\";\n  const response = await fetch(`https://api.delpha.io/v1/ultimate/batch/${jobId}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/ultimate/batch/job_id_from_the_202 HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/company": {
      "get": {
        "tags": [
          "Company"
        ],
        "summary": "Search Delpha's datalake for company records",
        "description": "Synchronous company search: query Delpha's company datalake and receive matching records in a single request (no job_id polling). At least one of `account_name`, `legal_id`, or `search_str` must be provided; optional parameters (website, city, country, aliases, fuzzy/scoring) refine and disambiguate the results.\n\nRecords come from Delpha's own company datalake; this operation contacts no third party.\n\nA live-mode call reserves credits; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Repeating the same request is a new call and a new charge. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "operationId": "searchCompany",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Company search succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "companies": [
                          {
                            "delpha_id": "a9faabec809841a9a4a5b19904754193",
                            "account_name": "L'OREAL",
                            "aliases": [
                              "L'OREAL"
                            ],
                            "input_names": [
                              "loreal"
                            ],
                            "legal_id": "63201210000012",
                            "legal_id_type": "FRA - SIRET",
                            "SIREN": "632012100",
                            "SIRET": "63201210000012",
                            "NAF": "2042Z",
                            "VAT": "FR40632012100",
                            "website": "https://www.loreal.com",
                            "location": "Clichy, France",
                            "address": {
                              "street": "14 RUE ROYALE",
                              "postal_code": "75008",
                              "city": "PARIS",
                              "country": "France",
                              "country_code": "FR",
                              "coordinates": {
                                "latitude": 48.868137,
                                "longitude": 2.323306
                              }
                            },
                            "status": "active",
                            "site_type": "headquarters",
                            "is_golden": false,
                            "description": "Cosmetics manufacturer.",
                            "company_type": {
                              "value": "SAI",
                              "legal_type": "SA à conseil d'administration",
                              "legal_type_code": "5599"
                            },
                            "industry_division": {
                              "value": "4649",
                              "type": "SBI",
                              "desc": "Software Development"
                            },
                            "financials": {
                              "revenue": 62429000.0,
                              "operating_profit": -5490000.0,
                              "net_income": 20422000.0,
                              "equity": 752996000.0,
                              "currency": "NOK",
                              "fiscal_period": {
                                "start_date": "2024-05-01",
                                "end_date": "2025-04-30"
                              },
                              "revenue_range": "50-100"
                            },
                            "employees_nb": {
                              "value": 9999,
                              "min": 5000,
                              "max": 9999,
                              "range": "5001-10000",
                              "time": 2021
                            },
                            "group_size": 1,
                            "creation_date": [
                              "1963-01-01"
                            ],
                            "parent": {
                              "value": "8fdd1f132e0844cca31451de152cec34",
                              "name": "L'OREAL",
                              "confidence": 100,
                              "wikidata_id": "Q160289"
                            },
                            "ultimate_parent": {
                              "value": "8fdd1f132e0844cca31451de152cec34",
                              "name": "L'OREAL",
                              "confidence": 100,
                              "wikidata_id": "Q160289"
                            },
                            "headquarters_site": {
                              "company_name": "L'OREAL",
                              "legal_id": {
                                "value": "63201210000012",
                                "type": "FRA - SIRET"
                              }
                            },
                            "matching_score": 94.78202056884766,
                            "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/63201210000012",
                            "last_update": "2026-01-29T16:20:03.935879+00:00"
                          }
                        ],
                        "count": 10,
                        "total": 137,
                        "total_is_lower_bound": false,
                        "filtered_total": 12,
                        "filtered_total_is_lower_bound": false,
                        "page": 1,
                        "page_size": 10,
                        "has_more": true,
                        "next_cursor": "eyJjIjoiZXlKaElqb2lVVEJHUWxVd2JGSlRWazVKVVZoa1RpSXNJbXdpT25SeWRXVXNJbTRpT2pFd01Dd2lkaUk2TVgwIiwicSI6IjZiOWNlMDAwNDY3ZTY0MzAiLCJ2IjoxfQ"
                      },
                      "process_time": 0.42
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "400": {
            "description": "Validation error — the request body or query parameters were rejected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "400 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 400,
                      "message": "Input validation failed.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation expired before delivery; resubmit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the query is well-formed but the `cursor` cannot be honoured (`validation_error`): `page` and `cursor` were sent together, the cursor is not a cursor this API issued, it belongs to a different query, or the search itself would not accept it. Restart from the first page — the first three are refused before any credit is reserved, and the fourth releases its reservation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "502": {
            "description": "Bad gateway — the upstream service returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "502 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 502,
                      "message": "The upstream service returned an error.",
                      "code": "backend_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-credit-operation": {
          "operation": "company",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "sub-second (synchronous)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "parameters": [
          {
            "name": "account_name",
            "in": "query",
            "required": false,
            "description": "The company name to search for.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "Tesla"
              }
            }
          },
          {
            "name": "legal_id",
            "in": "query",
            "required": false,
            "description": "A legal identifier to look up (exact match).",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "632012100"
              }
            }
          },
          {
            "name": "legal_id_type",
            "in": "query",
            "required": false,
            "description": "The type of the provided legal identifier.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "FRA - SIRET"
              }
            }
          },
          {
            "name": "search_str",
            "in": "query",
            "required": false,
            "description": "Unified single-field search: a company name OR a legal id.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "Tesla"
              }
            }
          },
          {
            "name": "website",
            "in": "query",
            "required": false,
            "description": "The company website, as a URL or a bare domain; its registrable domain sharpens disambiguation.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "https://www.tesla.com"
              }
            }
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "A city. Strict filter: only companies in this city are returned; companies with no city on record are still returned, last.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "Paris"
              }
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "A country name. Strict filter: only companies in this country are returned; companies with no country on record are still returned, last.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "France"
              }
            }
          },
          {
            "name": "country_code",
            "in": "query",
            "required": false,
            "description": "An ISO 3166-1 alpha-2 country code. Strict filter: only companies in this country are returned; companies with no country on record are still returned, last.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            },
            "examples": {
              "sample": {
                "value": "FR"
              }
            }
          },
          {
            "name": "aliases",
            "in": "query",
            "required": false,
            "description": "Post-filter on aliases; repeatable (?aliases=a&aliases=b).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "examples": {
              "sample": {
                "value": "Tesla Motors"
              }
            }
          },
          {
            "name": "input_names",
            "in": "query",
            "required": false,
            "description": "Post-filter on input names; repeatable.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "examples": {
              "sample": {
                "value": "tesla"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "1-based page number to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            },
            "examples": {
              "sample": {
                "value": 1
              }
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "description": "Number of companies per page, max 100.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            },
            "examples": {
              "sample": {
                "value": 10
              }
            }
          },
          {
            "name": "top_k",
            "in": "query",
            "required": false,
            "description": "Deprecated — use page_size. Used as the page size when page_size is omitted.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "examples": {
              "sample": {
                "value": 20
              }
            },
            "deprecated": true
          },
          {
            "name": "fuzzy",
            "in": "query",
            "required": false,
            "description": "Whether to enable fuzzy (typo-tolerant) matching.",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "examples": {
              "sample": {
                "value": true
              }
            }
          },
          {
            "name": "score_threshold",
            "in": "query",
            "required": false,
            "description": "Minimum match score for a result to be returned.",
            "schema": {
              "type": "number"
            },
            "examples": {
              "sample": {
                "value": 0.8
              }
            }
          },
          {
            "name": "creation_date_from",
            "in": "query",
            "required": false,
            "description": "Founding-date lower bound (ISO date or a year). Strict filter: companies founded before it are excluded; companies with no founding date on record are still returned, last.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "1990"
              }
            }
          },
          {
            "name": "creation_date_to",
            "in": "query",
            "required": false,
            "description": "Founding-date upper bound (ISO date or a year). Strict filter: companies founded after it are excluded; companies with no founding date on record are still returned, last.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "sample": {
                "value": "2010"
              }
            }
          },
          {
            "name": "industry_division",
            "in": "query",
            "required": false,
            "description": "Industry classification code(s), e.g. ISIC 8510 or NACE 84.11; repeatable. Dot and dot-less spellings are matched across code systems. Strict filter: only companies matching any supplied code are returned; companies with no industry code on record are still returned, last.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "examples": {
              "sample": {
                "value": "8510"
              }
            }
          },
          {
            "name": "employee_range",
            "in": "query",
            "required": false,
            "description": "Headcount band(s) from the fixed set. Repeatable. Strict filter: only companies whose headcount band equals any supplied band are returned; companies with no headcount band on record are still returned, last. Labels outside the set are ignored.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "0",
                  "1-10",
                  "11-50",
                  "51-200",
                  "201-500",
                  "501-1000",
                  "1001-5000",
                  "5001-10000",
                  ">10000"
                ]
              }
            },
            "examples": {
              "sample": {
                "value": "51-200"
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor, taken verbatim from a previous response's next_cursor. Repeat the same search parameters with it to get the next page, and keep going until next_cursor is null. Mutually exclusive with page (sending both is 422); page_size may change mid-walk. A cursor belongs to the query that issued it.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "examples": {
              "sample": {
                "value": "eyJjIjoiZXlKaElqb2lVVEJHUWxVd2JGSlRWazVKVVZoa1RpSXNJbXdpT25SeWRXVXNJbTRpT2pFd01Dd2lkaUk2TVgwIiwicSI6IjZiOWNlMDAwNDY3ZTY0MzAiLCJ2IjoxfQ"
              }
            }
          }
        ],
        "x-side-effects": "A live-mode call reserves credits; unless your team has set resolution retention to 0, the call and its result are also recorded in your team's resolution history for the window your team configured (up to 30 days on the free tier, 180 on a paid plan). Repeating the same request is a new call and a new charge. Test-mode calls are answered from the published fixture table and reserve nothing — see the API documentation's **Test mode** section.",
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl -i -G \"https://api.delpha.io/v1/company\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  --data-urlencode 'account_name=Tesla' \\\n  --data-urlencode 'country=France'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nresponse = requests.get(\n    \"https://api.delpha.io/v1/company\",\n    params={\"account_name\": \"Tesla\", \"country\": \"France\"},\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const params = new URLSearchParams({ \"account_name\": \"Tesla\", \"country\": \"France\" });\n  const response = await fetch(`https://api.delpha.io/v1/company?${params}`, {\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/company?account_name=Tesla&country=France HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here"
          }
        ]
      }
    },
    "/v1/account-match": {
      "post": {
        "tags": [
          "Account match"
        ],
        "summary": "Match a company against your own account records",
        "description": "Synchronous account matching: send the entity you are looking for as `reference` and up to 100 of your own records as `candidates`, and receive them ranked by confidence in a single request (no job_id polling). Delpha never reads your CRM — you gather and format the records, so the same call serves a Salesforce org, a warehouse or a CSV. Each match reports every signal with its score, its label and the two values compared, and the response carries the settings it was scored with, so a thin result is explained rather than merely low. A record is a Delpha match only when `matchAccounts` returned it, with the confidence and evidence reported here; a record picked out any other way is the caller's own conclusion, and Delpha makes no claim about it. Each record needs an `id` and a `name`; its website, country, legal id and its type, LEI and hierarchy size are optional signals. Every signal sent is scored, a conflicting one included, and lowers the confidence when it disagrees; a signal not sent is reported as `not_compared`, so the confidence then rests on fewer signals.",
        "operationId": "matchAccounts",
        "responses": {
          "200": {
            "description": "Job succeeded — the result payload is populated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountMatchOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Account match succeeded",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "settings": {
                          "signals": [
                            {
                              "signal": "name",
                              "operator": "fuzzy",
                              "mode": "optional",
                              "weight": 5,
                              "kind_multipliers": null
                            },
                            {
                              "signal": "website",
                              "operator": "equals",
                              "mode": "mandatory_if_present",
                              "weight": 3,
                              "kind_multipliers": null
                            },
                            {
                              "signal": "hierarchy",
                              "operator": "highest_value",
                              "mode": "optional",
                              "weight": 10,
                              "kind_multipliers": {
                                "descendants": 1.0,
                                "descendants_depth5": 1.0,
                                "direct_children": 0.5,
                                "is_root": 0.1,
                                "other": 0.5
                              }
                            },
                            {
                              "signal": "legal_id",
                              "operator": "equals",
                              "mode": "optional",
                              "weight": 4,
                              "kind_multipliers": null
                            },
                            {
                              "signal": "country",
                              "operator": "equals",
                              "mode": "optional",
                              "weight": 2,
                              "kind_multipliers": null
                            },
                            {
                              "signal": "lei",
                              "operator": "equals",
                              "mode": "optional",
                              "weight": 4,
                              "kind_multipliers": null
                            }
                          ],
                          "confidence": {
                            "method": "weighted_average",
                            "thresholds": {
                              "strong": 0.6,
                              "normal": 0.6,
                              "weak": 0.6
                            },
                            "weak_ceiling": 0.75,
                            "ambiguity_gap": 0.1
                          },
                          "labels": {
                            "match": 0.9,
                            "partial": 0.5
                          },
                          "top_k": 5
                        },
                        "candidates_received": 9,
                        "candidates_scored": 6,
                        "match_status": "confident",
                        "matches": [
                          {
                            "id": "0015w00002Q7duWAAR",
                            "name": "Stellantis",
                            "confidence": 0.9,
                            "evidence_level": "normal",
                            "signals": [
                              {
                                "signal": "name",
                                "label": "match",
                                "score": 1.0,
                                "reference": "Stellantis",
                                "candidate": "Stellantis",
                                "reason": null,
                                "kind": null
                              },
                              {
                                "signal": "website",
                                "label": "match",
                                "score": 1.0,
                                "reference": "https://www.stellantis.com/en/",
                                "candidate": "stellantis.com",
                                "reason": null,
                                "kind": null
                              },
                              {
                                "signal": "hierarchy",
                                "label": "match",
                                "score": 1.0,
                                "reference": null,
                                "candidate": 11,
                                "reason": null,
                                "kind": "descendants_depth5"
                              },
                              {
                                "signal": "legal_id",
                                "label": "not_compared",
                                "score": null,
                                "reference": "60372958",
                                "candidate": "879786085",
                                "reason": "incomparable",
                                "kind": null
                              },
                              {
                                "signal": "country",
                                "label": "conflict",
                                "score": 0.0,
                                "reference": "NL",
                                "candidate": "France",
                                "reason": null,
                                "kind": null
                              },
                              {
                                "signal": "lei",
                                "label": "not_compared",
                                "score": null,
                                "reference": "549300LKT9PW7ZIBDF31",
                                "candidate": null,
                                "reason": "candidate_missing",
                                "kind": null
                              }
                            ]
                          }
                        ],
                        "related": null
                      },
                      "process_time": 0.04
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "401": {
            "description": "Authentication failed — invalid or missing OAuth 2.0 token or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "401 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "402": {
            "description": "Payment required — the team has insufficient credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "402 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 402,
                      "message": "Insufficient credits for this request.",
                      "code": "payment_required"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "403": {
            "description": "Forbidden — the credential is valid but not allowed here: the API key's scopes do not cover this operation, or the operation is not routed in this environment (API Gateway then answers `Missing Authentication Token`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "403 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 403,
                      "message": "User is not authorized to access this resource with an explicit deny"
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "409": {
            "description": "Conflict — the credit reservation for this call expired before the result could be delivered. Resubmit the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "409 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 409,
                      "message": "The credit reservation for this job expired before delivery; please resubmit.",
                      "code": "conflict"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "422": {
            "description": "Unprocessable entity — the body is well-formed JSON that cannot be matched (`validation_error`): more than 100 candidates or none at all, a candidate missing `id` or `name`, a `reference` carrying neither `legal_name` nor `commercial_name`, a `hierarchy` without both `value` and `kind`, or an unrecognised field. Every one of these is refused **before any credit is reserved**, so a rejected request is never billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "422 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 422,
                      "message": "The request is well-formed but cannot be processed as submitted.",
                      "code": "validation_error"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — one of two limits was exceeded. Your allowance for this operation in the current 60-second window: an `Error` body with `code: rate_limited`, `Retry-After` set to the seconds left in the window, and the quota headers with `X-RateLimit-Remaining: 0`; nothing is charged. Or the per-operation floor every caller of that operation shares: a `GatewayError` body with `Retry-After: 1` and no quota headers, refused before the API sees the request.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    }
                  ]
                },
                "examples": {
                  "team_allowance": {
                    "summary": "Your allowance for this operation is exhausted",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded for this operation's allowance (submit: 3000 requests per 60 s). Retry after the interval in the Retry-After header.",
                      "code": "rate_limited"
                    }
                  },
                  "shared_floor": {
                    "summary": "The per-operation floor shared by all callers was crossed",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying: the time left in your current window on the allowance refusal, and `1` on the shared per-operation floor.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no quota headers."
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode",
                "description": "Present on the allowance refusal only. The shared per-operation floor is refused by the gateway, whose responses carry no per-request headers."
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — a downstream dependency was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Service temporarily unavailable.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "504": {
            "description": "Gateway timeout — the job exceeded its processing ceiling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "504 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 504,
                      "message": "The request timed out.",
                      "code": "backend_timeout"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "X-Delpha-Mode": {
                "$ref": "#/components/headers/DelphaMode"
              },
              "X-Delpha-Job-Id": {
                "description": "The reservation's job id for this call (present once admission succeeded, including on post-admission errors). The same call is addressed by this id in the Delpha AI console's history (Logs / Resolutions).",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountMatchInput"
              },
              "examples": {
                "default": {
                  "value": {
                    "reference": {
                      "legal_name": "CMA CGM S.A.",
                      "commercial_name": "CMA CGM",
                      "website": "https://www.cma-cgm.com",
                      "country": "France",
                      "legal_id": "562024422",
                      "legal_id_type": "FRA - SIREN",
                      "lei": "969500FB8M2VLPYCBM94"
                    },
                    "candidates": [
                      {
                        "id": "0011t00000XyZaBAAV",
                        "name": "CMA CGM",
                        "website": "https://www.cma-cgm.com",
                        "country": "France",
                        "legal_id": "562024422",
                        "legal_id_type": "FRA - SIREN",
                        "lei": "969500FB8M2VLPYCBM94",
                        "hierarchy": {
                          "value": 42,
                          "kind": "descendants_depth5"
                        }
                      }
                    ],
                    "ultimate_job_id": "4e8a7b3c-1234-5678-90ab-cdef12345678",
                    "top_k": 5
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "api/access"
            ]
          },
          {
            "apiKey": []
          }
        ],
        "x-credit-operation": {
          "operation": "account_match",
          "quantity": 1
        },
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After",
          "scope": "caller-per-operation",
          "policy": "submit",
          "limit": 3000,
          "window": 60,
          "headers": [
            "X-RateLimit-Limit",
            "X-RateLimit-Remaining",
            "X-RateLimit-Reset",
            "RateLimit",
            "RateLimit-Policy"
          ]
        },
        "x-typical-latency": {
          "band": "sub-second (synchronous)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": false,
          "idempotentHint": false,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl -i -X POST \"https://api.delpha.io/v1/account-match\" \\\n  -H \"Authorization: Bearer dlp_live_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  --data '{\"reference\":{\"legal_name\":\"CMA CGM S.A.\",\"commercial_name\":\"CMA CGM\",\"website\":\"https://www.cma-cgm.com\",\"country\":\"France\",\"legal_id\":\"562024422\",\"legal_id_type\":\"FRA - SIREN\",\"lei\":\"969500FB8M2VLPYCBM94\"},\"candidates\":[{\"id\":\"0011t00000XyZaBAAV\",\"name\":\"CMA CGM\",\"website\":\"https://www.cma-cgm.com\",\"country\":\"France\",\"legal_id\":\"562024422\",\"legal_id_type\":\"FRA - SIREN\",\"lei\":\"969500FB8M2VLPYCBM94\",\"hierarchy\":{\"value\":42,\"kind\":\"descendants_depth5\"}}],\"ultimate_job_id\":\"4e8a7b3c-1234-5678-90ab-cdef12345678\",\"top_k\":5}'"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\npayload = {\n    \"reference\": {\n        \"legal_name\": \"CMA CGM S.A.\",\n        \"commercial_name\": \"CMA CGM\",\n        \"website\": \"https://www.cma-cgm.com\",\n        \"country\": \"France\",\n        \"legal_id\": \"562024422\",\n        \"legal_id_type\": \"FRA - SIREN\",\n        \"lei\": \"969500FB8M2VLPYCBM94\",\n    },\n    \"candidates\": [\n        {\n            \"id\": \"0011t00000XyZaBAAV\",\n            \"name\": \"CMA CGM\",\n            \"website\": \"https://www.cma-cgm.com\",\n            \"country\": \"France\",\n            \"legal_id\": \"562024422\",\n            \"legal_id_type\": \"FRA - SIREN\",\n            \"lei\": \"969500FB8M2VLPYCBM94\",\n            \"hierarchy\": {\n                \"value\": 42,\n                \"kind\": \"descendants_depth5\",\n            },\n        },\n    ],\n    \"ultimate_job_id\": \"4e8a7b3c-1234-5678-90ab-cdef12345678\",\n    \"top_k\": 5,\n}\n\nresponse = requests.post(\n    \"https://api.delpha.io/v1/account-match\",\n    headers={\n        \"Authorization\": \"Bearer dlp_live_your_key_here\",\n    },\n    json=payload,\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const payload = {\n    \"reference\": {\n      \"legal_name\": \"CMA CGM S.A.\",\n      \"commercial_name\": \"CMA CGM\",\n      \"website\": \"https://www.cma-cgm.com\",\n      \"country\": \"France\",\n      \"legal_id\": \"562024422\",\n      \"legal_id_type\": \"FRA - SIREN\",\n      \"lei\": \"969500FB8M2VLPYCBM94\"\n    },\n    \"candidates\": [\n      {\n        \"id\": \"0011t00000XyZaBAAV\",\n        \"name\": \"CMA CGM\",\n        \"website\": \"https://www.cma-cgm.com\",\n        \"country\": \"France\",\n        \"legal_id\": \"562024422\",\n        \"legal_id_type\": \"FRA - SIREN\",\n        \"lei\": \"969500FB8M2VLPYCBM94\",\n        \"hierarchy\": {\n          \"value\": 42,\n          \"kind\": \"descendants_depth5\"\n        }\n      }\n    ],\n    \"ultimate_job_id\": \"4e8a7b3c-1234-5678-90ab-cdef12345678\",\n    \"top_k\": 5\n  };\n  const response = await fetch(\"https://api.delpha.io/v1/account-match\", {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": \"Bearer dlp_live_your_key_here\",\n      \"Content-Type\": \"application/json\",\n    },\n    body: JSON.stringify(payload),\n  });\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "POST /v1/account-match HTTP/1.1\nHost: api.delpha.io\nAuthorization: Bearer dlp_live_your_key_here\nContent-Type: application/json\nContent-Length: 525\n\n{\"reference\":{\"legal_name\":\"CMA CGM S.A.\",\"commercial_name\":\"CMA CGM\",\"website\":\"https://www.cma-cgm.com\",\"country\":\"France\",\"legal_id\":\"562024422\",\"legal_id_type\":\"FRA - SIREN\",\"lei\":\"969500FB8M2VLPYCBM94\"},\"candidates\":[{\"id\":\"0011t00000XyZaBAAV\",\"name\":\"CMA CGM\",\"website\":\"https://www.cma-cgm.com\",\"country\":\"France\",\"legal_id\":\"562024422\",\"legal_id_type\":\"FRA - SIREN\",\"lei\":\"969500FB8M2VLPYCBM94\",\"hierarchy\":{\"value\":42,\"kind\":\"descendants_depth5\"}}],\"ultimate_job_id\":\"4e8a7b3c-1234-5678-90ab-cdef12345678\",\"top_k\":5}"
          }
        ]
      }
    },
    "/v1/pricing": {
      "get": {
        "tags": [
          "Pricing"
        ],
        "summary": "List the credit price of every use case",
        "description": "Return the current credit price of every use case: one entry per use case, with its route segment (`use_case`), the operation it is billed as (`operation`, the `x-credit-operation` value its operations publish) and the credits charged (`credits`) — per request for a single or synchronous operation, per item for a batch, which charges only the items that succeed. The list is read from the same price table every reservation is priced from, so it is the price a request is charged now; a repricing shows here within about two minutes.\n\nThis operation takes no credential and costs nothing: it reserves no credit, records nothing, and answers every caller the same list, with any key or none. When the current price table cannot be read it answers 503 with `Retry-After`, never a partial list.",
        "operationId": "getPricing",
        "responses": {
          "200": {
            "description": "The price list — one entry per use case, every one present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricingOutput"
                },
                "examples": {
                  "default": {
                    "summary": "200 response",
                    "value": {
                      "code": "ok",
                      "request_id": "c1a2b3d4-0000-4a5b-8c9d-ef0123456789",
                      "message": "Pricing retrieved",
                      "status": "SUCCESS",
                      "status_code": 200,
                      "result": {
                        "unit": "credits",
                        "use_cases": [
                          {
                            "use_case": "email",
                            "operation": "email",
                            "credits": 1
                          },
                          {
                            "use_case": "website",
                            "operation": "website",
                            "credits": 1
                          },
                          {
                            "use_case": "phone",
                            "operation": "phone",
                            "credits": 1
                          },
                          {
                            "use_case": "name",
                            "operation": "name",
                            "credits": 1
                          },
                          {
                            "use_case": "legal-id",
                            "operation": "legal_id",
                            "credits": 1
                          },
                          {
                            "use_case": "linkedin-profile",
                            "operation": "linkedin_profile",
                            "credits": 1
                          },
                          {
                            "use_case": "linkedin-company-page",
                            "operation": "linkedin_company_page",
                            "credits": 1
                          },
                          {
                            "use_case": "ultimate",
                            "operation": "ultimate",
                            "credits": 2
                          },
                          {
                            "use_case": "company",
                            "operation": "company",
                            "credits": 1
                          },
                          {
                            "use_case": "account-match",
                            "operation": "account_match",
                            "credits": 1
                          }
                        ]
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "429": {
            "description": "Too many requests — the per-operation floor shared by every caller of this operation was crossed. API Gateway answers it directly with a `GatewayError` body and `Retry-After: 1`, and the response carries no quota headers.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "default": {
                    "summary": "429 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 429,
                      "message": "Rate limit exceeded. Retry after the interval in the Retry-After header."
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying — always `1`, the static value the shared per-operation floor's refusal carries.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          },
          "503": {
            "description": "Service unavailable — the current price table could not be read, or could not be confirmed as the one reservations are priced from. No partial list is ever returned; the same request can succeed after the `Retry-After` interval.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "default": {
                    "summary": "503 response",
                    "value": {
                      "status": "ERROR",
                      "status_code": 503,
                      "message": "Pricing is temporarily unavailable. Retry after the interval in the Retry-After header.",
                      "code": "service_unavailable"
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-amzn-RequestId": {
                "$ref": "#/components/headers/RequestId"
              }
            }
          }
        },
        "security": [],
        "x-credit-free": true,
        "x-rate-limit": {
          "rateLimitPerSecond": 50,
          "burstLimit": 100,
          "statusCode": 429,
          "retryAfterHeader": "Retry-After"
        },
        "x-typical-latency": {
          "band": "sub-second (synchronous)"
        },
        "x-mcp-annotations": {
          "readOnlyHint": true,
          "idempotentHint": true,
          "destructiveHint": false,
          "openWorldHint": false
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl -i \"https://api.delpha.io/v1/pricing\""
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nresponse = requests.get(\n    \"https://api.delpha.io/v1/pricing\",\n    timeout=30,\n)\nprint(response.status_code)\nprint(response.json())"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "async function main() {\n  const response = await fetch(\"https://api.delpha.io/v1/pricing\");\n  console.log(response.status);\n  console.log(JSON.stringify(await response.json(), null, 2));\n}\n\nmain();"
          },
          {
            "lang": "http",
            "label": "HTTP",
            "source": "GET /v1/pricing HTTP/1.1\nHost: api.delpha.io"
          }
        ]
      }
    }
  },
  "webhooks": {
    "dataquality.{usecase}.sent": {
      "post": {
        "summary": "A verification job was admitted",
        "description": "Sent when a submit request is accepted (the same moment the API answers 202). **Acknowledge with any 2xx within 10 seconds** — that is the delivery timeout, and a slower handler is recorded as a timeout however it ends. Do the work asynchronously and answer first. A redirect is **not** followed: a 3xx counts as a failed delivery. A timeout, a 429 or a 5xx is retried up to 3 attempts in total, with exponential backoff (0.5 s, then 1 s) — so a failing endpoint is given up on within about two seconds, not minutes; any other 4xx is not retried at all. Delivery is therefore **at-least-once with no server-side deduplication**: the same event can arrive more than once and your handler must be idempotent on `id`. Each subscribed endpoint is delivered to independently. Endpoints are managed in the console at https://app.delpha.ai/developer/webhooks.",
        "parameters": [
          {
            "name": "Delpha-Signature",
            "in": "header",
            "required": true,
            "description": "`t=<unix-seconds>,v1=<hex>` — `v1` is HMAC-SHA256 of `\"<t>.<raw request body>\"` under the endpoint's `whsec_…` signing secret (shown once at creation in the console). Recompute it over the raw bytes, compare in constant time, and reject a `t` older than a few minutes.",
            "schema": {
              "type": "string",
              "examples": [
                "t=1788870000,v1=5f1c…"
              ]
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "Delpha-Webhooks/1.0"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "id": "evt_e704df05-b620-5efb-87c9-a2169e755cbc",
                "type": "dataquality.email.sent",
                "created": 1788870000,
                "data": {
                  "job_id": "0c8f0d6e-5b1a-4d4e-9f0e-1234567890ab",
                  "usecase": "email",
                  "status": "sent"
                },
                "metadata": {}
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged — the event is not delivered again."
          },
          "default": {
            "description": "Not acknowledged — see the delivery policy above."
          }
        }
      }
    },
    "dataquality.{usecase}.done": {
      "post": {
        "summary": "A verification job completed",
        "description": "Sent when the job reaches its terminal success state; the result is available at the poll URL. **Acknowledge with any 2xx within 10 seconds** — that is the delivery timeout, and a slower handler is recorded as a timeout however it ends. Do the work asynchronously and answer first. A redirect is **not** followed: a 3xx counts as a failed delivery. A timeout, a 429 or a 5xx is retried up to 3 attempts in total, with exponential backoff (0.5 s, then 1 s) — so a failing endpoint is given up on within about two seconds, not minutes; any other 4xx is not retried at all. Delivery is therefore **at-least-once with no server-side deduplication**: the same event can arrive more than once and your handler must be idempotent on `id`. Each subscribed endpoint is delivered to independently. Endpoints are managed in the console at https://app.delpha.ai/developer/webhooks.",
        "parameters": [
          {
            "name": "Delpha-Signature",
            "in": "header",
            "required": true,
            "description": "`t=<unix-seconds>,v1=<hex>` — `v1` is HMAC-SHA256 of `\"<t>.<raw request body>\"` under the endpoint's `whsec_…` signing secret (shown once at creation in the console). Recompute it over the raw bytes, compare in constant time, and reject a `t` older than a few minutes.",
            "schema": {
              "type": "string",
              "examples": [
                "t=1788870000,v1=5f1c…"
              ]
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "Delpha-Webhooks/1.0"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "id": "evt_d67888bc-b23f-5ea9-916c-faad29708d7d",
                "type": "dataquality.email.done",
                "created": 1788870000,
                "data": {
                  "job_id": "0c8f0d6e-5b1a-4d4e-9f0e-1234567890ab",
                  "usecase": "email",
                  "status": "succeeded",
                  "mode": "sandbox"
                },
                "metadata": {}
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged — the event is not delivered again."
          },
          "default": {
            "description": "Not acknowledged — see the delivery policy above."
          }
        }
      }
    },
    "dataquality.{usecase}.error": {
      "post": {
        "summary": "A verification job failed",
        "description": "Sent when the job reaches a terminal failure; `data.error` carries the sanitized reason and no credit is charged. **Acknowledge with any 2xx within 10 seconds** — that is the delivery timeout, and a slower handler is recorded as a timeout however it ends. Do the work asynchronously and answer first. A redirect is **not** followed: a 3xx counts as a failed delivery. A timeout, a 429 or a 5xx is retried up to 3 attempts in total, with exponential backoff (0.5 s, then 1 s) — so a failing endpoint is given up on within about two seconds, not minutes; any other 4xx is not retried at all. Delivery is therefore **at-least-once with no server-side deduplication**: the same event can arrive more than once and your handler must be idempotent on `id`. Each subscribed endpoint is delivered to independently. Endpoints are managed in the console at https://app.delpha.ai/developer/webhooks.",
        "parameters": [
          {
            "name": "Delpha-Signature",
            "in": "header",
            "required": true,
            "description": "`t=<unix-seconds>,v1=<hex>` — `v1` is HMAC-SHA256 of `\"<t>.<raw request body>\"` under the endpoint's `whsec_…` signing secret (shown once at creation in the console). Recompute it over the raw bytes, compare in constant time, and reject a `t` older than a few minutes.",
            "schema": {
              "type": "string",
              "examples": [
                "t=1788870000,v1=5f1c…"
              ]
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "Delpha-Webhooks/1.0"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              },
              "example": {
                "id": "evt_38e17cba-d6ff-59d2-9703-0c01c49d8bb2",
                "type": "dataquality.email.error",
                "created": 1788870000,
                "data": {
                  "job_id": "0c8f0d6e-5b1a-4d4e-9f0e-1234567890ab",
                  "usecase": "email",
                  "status": "failed",
                  "error": "The job failed to complete. Please resubmit."
                },
                "metadata": {}
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Acknowledged — the event is not delivered again."
          },
          "default": {
            "description": "Not acknowledged — see the delivery policy above."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EmailSubmitInput": {
        "description": "Payload to submit a new email quality job.",
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "RFC 5321 mailbox to validate (e.g. `jordan.rivera@delpha.io`). When provided, the tool verifies deliverability rather than searching. Optional; without it, `first_name`, `last_name` and `website` must all be set.",
            "examples": [
              "jordan.rivera@example.com"
            ],
            "title": "Email"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Person's given name (e.g. `Jordan`). Combined with `last_name` and a company signal (`website`) to search for the address.",
            "examples": [
              "Jordan"
            ],
            "title": "First Name"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Person's family name (e.g. `Rivera`). Pair with `first_name`.",
            "examples": [
              "Rivera"
            ],
            "title": "Last Name"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company website associated with the person, as a URL or a bare domain (e.g. `https://delpha.io/` or `delpha.io`). Used as the company signal when searching by name; the tool extracts and qualifies the domain.",
            "examples": [
              "https://delpha.io/",
              "delpha.io"
            ],
            "title": "Website"
          }
        },
        "title": "EmailSubmitInput",
        "type": "object"
      },
      "EmailSubmitOutput": {
        "additionalProperties": true,
        "description": "Response after submitting a new email quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job ID. Required if status <= 300.",
            "examples": [
              "21014abc65004d2781d2e0ef4c9fbb46",
              null,
              null,
              null,
              null
            ],
            "title": "Job Id"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Job submitted",
              "Invalid email format or missing required fields",
              "Internal server error",
              "Service unavailable",
              "Payment Required"
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              202,
              400,
              500,
              502,
              402
            ],
            "title": "Status Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "EmailSubmitOutput",
        "type": "object"
      },
      "DataType": {
        "enum": [
          "email",
          "social_network",
          "name",
          "legal_id",
          "phone",
          "address",
          "website"
        ],
        "title": "DataType",
        "type": "string"
      },
      "DomainQualification": {
        "description": "Enum representing the possible qualifications for an email or website domain.\n\n- nominative@pro: domain is professional and returns invalid for fake emails\n- catchall@pro: domain is professional and returns valid for fake emails\n- nominative@perso: domain is personal and returns invalid for fake emails\n- catchall@perso: domain is personal and returns valid for fake emails\n- Unknown: grey listed or temporary issue with the server",
        "enum": [
          "nominative@pro",
          "catchall@pro",
          "nominative@perso",
          "catchall@perso",
          "Unknown"
        ],
        "title": "DomainQualification",
        "type": "string"
      },
      "EmailModel": {
        "additionalProperties": true,
        "description": "Model representing the details of an email field.",
        "properties": {
          "label": {
            "description": "Label for the email.",
            "enum": [
              "No",
              "OK",
              "OddFormat"
            ],
            "examples": [
              "OK"
            ],
            "title": "Label",
            "type": "string"
          },
          "normalized_value": {
            "description": "Normalized email value.",
            "examples": [
              "jordan.rivera@example.com"
            ],
            "title": "Normalized Value",
            "type": "string"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Provider of the email, if any.",
            "examples": [
              "Orange"
            ],
            "title": "Provider"
          },
          "email_domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Domain of the email. `null` when the address carries no parseable domain (a syntactically invalid address, which returns `label: \"No\"`).",
            "examples": [
              "example.com"
            ],
            "title": "Email Domain"
          },
          "email_domain_qualification": {
            "$ref": "#/components/schemas/DomainQualification",
            "description": "Qualification of the email domain.",
            "examples": [
              "nominative@perso"
            ]
          },
          "email_status": {
            "description": "Status of the email. Possible values: 'Invalid', 'Unknown', 'Valid'.",
            "enum": [
              "Invalid",
              "Unknown",
              "Valid"
            ],
            "examples": [
              "Valid"
            ],
            "title": "Email Status",
            "type": "string"
          },
          "email_address_qualification": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Address-level qualification of the mailbox, when one applies: `Spam Trap` (an address Delpha holds on a list of addresses used to detect unsolicited mail rather than read by a person) or `Role-based` (a shared functional mailbox such as `contact@`/`support@`, not a person). `null` means neither applies. ⚠️ This takes precedence over `email_domain_qualification`, which describes the DOMAIN rather than this address: a `Role-based` mailbox on a nominative professional domain is still role-based. The vocabulary may grow, so an unrecognised value is informational rather than an error.",
            "examples": [
              "Role-based"
            ],
            "title": "Email Address Qualification"
          },
          "suggestions": {
            "description": "Suggestions for the email.",
            "examples": [
              [
                {
                  "score": 0.7260620227245627,
                  "value": "jordan.rivera@delpha.io"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/EmailSuggestion"
            },
            "title": "Suggestions",
            "type": "array"
          },
          "website_domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Website domain associated.",
            "examples": [
              "delpha.io"
            ],
            "title": "Website Domain"
          },
          "website_domain_qualification": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DomainQualification"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Qualification of the website domain.",
            "examples": [
              "nominative@pro"
            ]
          },
          "suggestions_from_website": {
            "description": "Suggestions from the website.",
            "examples": [
              [
                {
                  "score": 0.7260620227245627,
                  "value": "jordan.rivera@delpha.io"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/EmailSuggestion"
            },
            "title": "Suggestions From Website",
            "type": "array"
          },
          "data_type": {
            "$ref": "#/components/schemas/DataType",
            "description": "The type of data for this field",
            "examples": [
              "email"
            ]
          },
          "scores": {
            "$ref": "#/components/schemas/ScoresModel",
            "description": "Scores for the field",
            "examples": [
              {
                "accuracy": 0.7116992363593002,
                "completeness": 1,
                "consistency": 0,
                "validity": 1
              }
            ]
          }
        },
        "required": [
          "label",
          "normalized_value",
          "email_domain_qualification",
          "email_status",
          "data_type",
          "scores"
        ],
        "title": "EmailModel",
        "type": "object"
      },
      "EmailSuggestion": {
        "additionalProperties": true,
        "description": "Model representing a suggestion for an email.",
        "properties": {
          "value": {
            "description": "Suggested email value.",
            "examples": [
              "jordan.rivera@delpha.io"
            ],
            "title": "Value",
            "type": "string"
          },
          "score": {
            "description": "Confidence score for the suggestion.",
            "examples": [
              0.7260620227245627
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Score",
            "type": "number"
          }
        },
        "required": [
          "value",
          "score"
        ],
        "title": "EmailSuggestion",
        "type": "object"
      },
      "ScoresModel": {
        "description": "Model representing the scores for an email field.",
        "properties": {
          "accuracy": {
            "default": -1,
            "description": "Accuracy score",
            "examples": [
              0.7
            ],
            "maximum": 1,
            "minimum": -1,
            "title": "Accuracy",
            "type": "number"
          },
          "validity": {
            "default": -1,
            "description": "Validity score",
            "examples": [
              0
            ],
            "maximum": 1,
            "minimum": -1,
            "title": "Validity",
            "type": "integer"
          },
          "completeness": {
            "default": 0,
            "description": "Completeness score",
            "examples": [
              1
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Completeness",
            "type": "number"
          },
          "consistency": {
            "default": 0,
            "description": "Consistency score",
            "examples": [
              0
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Consistency",
            "type": "integer"
          }
        },
        "title": "ScoresModel",
        "type": "object"
      },
      "EmailPullOutput": {
        "additionalProperties": true,
        "description": "Response after retrieving the status and result of an email quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "Job succeeded.",
              "Job is still running.",
              "Input validation failed.",
              "Failed to retrieve job.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The result of the email quality job",
            "examples": [
              {
                "data_type": "email",
                "email_address_qualification": "Role-based",
                "email_domain": "example.com",
                "email_domain_qualification": "nominative@perso",
                "email_status": "Valid",
                "label": "OK",
                "normalized_value": "jordan.rivera@example.com",
                "provider": "Orange",
                "scores": {
                  "accuracy": 0.7116992363593002,
                  "completeness": 1,
                  "consistency": 0,
                  "validity": 1
                },
                "suggestions": [
                  {
                    "score": 0.7260620227245627,
                    "value": "jordan.rivera@delpha.io"
                  }
                ],
                "suggestions_from_website": [
                  {
                    "score": 0.7260620227245627,
                    "value": "jordan.rivera@delpha.io"
                  }
                ],
                "website_domain": "delpha.io",
                "website_domain_qualification": "nominative@pro"
              },
              null,
              null,
              null,
              null
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              0.123,
              5,
              10,
              15,
              200
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "EmailPullOutput",
        "type": "object"
      },
      "WebsiteSubmitInput": {
        "description": "Payload to submit a new website quality job.",
        "properties": {
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Website to validate, as a URL or a bare domain (e.g. `https://delpha.io/` or `delpha.io`; a bare domain is checked as `https://delpha.io/`). When set, the tool runs in validation mode.",
            "examples": [
              "https://delpha.io/",
              "delpha.io"
            ],
            "title": "Website"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Entity name to search for (e.g. `Bolt`). Paired with `country` it separates same-named companies in different regions.",
            "examples": [
              "Delpha"
            ],
            "title": "Name"
          },
          "linkedin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LinkedIn entity URL (e.g. `https://www.linkedin.com/company/delphainc/`), with or without the scheme. Strong company signal.",
            "examples": [
              "https://www.linkedin.com/company/delphainc/"
            ],
            "title": "Linkedin"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Email associated with the entity (e.g. `jordan.rivera@delpha.io`). The domain is a strong website signal.",
            "examples": [
              "jordan.rivera@delpha.io"
            ],
            "title": "Email"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Country of the entity as a display name (e.g. `Estonia`). Materially improves accuracy and disambiguates same-named companies across regions — `Bolt` in Estonia and `Bolt` in the United States are different companies. Optional.",
            "examples": [
              "France"
            ],
            "title": "Country"
          }
        },
        "title": "WebsiteSubmitInput",
        "type": "object"
      },
      "WebsiteSubmitOutput": {
        "additionalProperties": true,
        "description": "Response after submitting a new website quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job ID. Required if status <= 300.",
            "examples": [
              "21014abc65004d2781d2e0ef4c9fbb46",
              null,
              null,
              null,
              null
            ],
            "title": "Job Id"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Job submitted",
              "Invalid website format or missing required fields",
              "Internal server error",
              "Service unavailable",
              "Payment Required"
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              202,
              400,
              500,
              502,
              402
            ],
            "title": "Status Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "WebsiteSubmitOutput",
        "type": "object"
      },
      "WebsiteMetadata": {
        "additionalProperties": true,
        "description": "Google-search context for a recommended website. Populated when the\nDataQuality engine resolved the candidate via the name-block path\n(Google query → ranked organic results); null for candidates that\ncame from email-domain inference, social-network extraction, or\ndirect website validation, where there is no Google snippet to\nsurface.",
        "properties": {
          "url": {
            "description": "The URL of the website, as Google indexed it.",
            "examples": [
              "https://delpha.io/"
            ],
            "title": "Url",
            "type": "string"
          },
          "name": {
            "description": "The name extracted from the Google search result for the website.",
            "examples": [
              "Delpha"
            ],
            "title": "Name",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The title of the website, as shown on the Google search result.",
            "examples": [
              "Delpha — data quality for Salesforce"
            ],
            "title": "Title"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A summary or description of the website, as shown on the Google search result.",
            "examples": [
              "Delpha detects and resolves data issues across Salesforce accounts, contacts and leads."
            ],
            "title": "Summary"
          },
          "rank": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The rank (1-based) of the website in the Google search result.",
            "examples": [
              1
            ],
            "title": "Rank"
          }
        },
        "required": [
          "url",
          "name"
        ],
        "title": "WebsiteMetadata",
        "type": "object"
      },
      "WebsiteModel": {
        "additionalProperties": true,
        "description": "Model representing the details of an website field.",
        "properties": {
          "data_type": {
            "$ref": "#/components/schemas/DataType",
            "description": "The type of data for this field",
            "examples": [
              "website"
            ]
          },
          "normalized_value": {
            "description": "Normalized website value.",
            "examples": [
              "https://delpha.io/"
            ],
            "title": "Normalized Value",
            "type": "string"
          },
          "label": {
            "description": "Accuracy verdict for the submitted website. `OK` — the search confirmed it. `Changed` — the site has moved: a redirect landed on a different registrable domain and the evidence ranked that destination above the original, so it was adopted. `No` — a request that named a company found nothing supporting this website. `Unknown` — the request named no company, so accuracy had no basis (`-1`); this is not a negative verdict on the URL.\n\nA redirect destination is adopted when it shares the input's registrable domain, or when the evidence ranks it above the original, or when a scored search candidate corroborates it — otherwise the normalized input is kept, which is what happens to a same-name different-TLD landing the evidence does not prefer. An adopted URL is reduced to `scheme://host/`, possibly using a corroborated host.",
            "enum": [
              "No",
              "OK",
              "Changed",
              "Unknown"
            ],
            "examples": [
              "OK"
            ],
            "title": "Label",
            "type": "string"
          },
          "scores": {
            "$ref": "#/components/schemas/ScoresModel",
            "description": "Scores for the field",
            "examples": [
              {
                "accuracy": 1,
                "completeness": 1,
                "consistency": 1,
                "validity": 1
              }
            ]
          },
          "recommendations": {
            "description": "Recommendations for the website.",
            "examples": [
              [
                {
                  "metadata": {
                    "name": "Delpha",
                    "rank": 1,
                    "summary": "Delpha detects and resolves data issues across Salesforce accounts, contacts and leads.",
                    "title": "Delpha — data quality for Salesforce",
                    "url": "https://delpha.io/"
                  },
                  "score": 0.996,
                  "source_path": [
                    {
                      "name": "Name"
                    }
                  ],
                  "url": "https://delpha.io/"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/WebsiteRecommendation"
            },
            "title": "Recommendations",
            "type": "array"
          }
        },
        "required": [
          "data_type",
          "normalized_value",
          "label",
          "scores",
          "recommendations"
        ],
        "title": "WebsiteModel",
        "type": "object"
      },
      "WebsiteRecommendation": {
        "additionalProperties": true,
        "description": "Model representing a recommendation for an website.",
        "properties": {
          "url": {
            "description": "Recommended website value.",
            "examples": [
              "https://delpha.io/"
            ],
            "title": "Url",
            "type": "string"
          },
          "score": {
            "description": "Confidence score for the recommendation.",
            "examples": [
              0.996
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Score",
            "type": "number"
          },
          "metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WebsiteMetadata"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Google-search metadata (name, title, summary, rank) for the recommended website. Null when the recommendation comes from a path that does not produce search metadata (email-domain, social-network, or direct-website validation).",
            "examples": [
              {
                "name": "Delpha",
                "rank": 1,
                "summary": "Delpha detects and resolves data issues across Salesforce accounts, contacts and leads.",
                "title": "Delpha — data quality for Salesforce",
                "url": "https://delpha.io/"
              },
              null
            ]
          },
          "source_path": {
            "description": "Ordered list of upstream blocks that produced this recommendation, each tagged with a `name`. Allows downstream consumers to attribute a recommendation to the engine path it came from (e.g. `[{\"name\": \"Name\"}]` for Google search by company name).",
            "examples": [
              [
                {
                  "name": "Name"
                }
              ],
              []
            ],
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Source Path",
            "type": "array"
          }
        },
        "required": [
          "url",
          "score"
        ],
        "title": "WebsiteRecommendation",
        "type": "object"
      },
      "WebsitePullOutput": {
        "additionalProperties": true,
        "description": "Response after retrieving the status and result of an website quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "Job succeeded.",
              "Job is still running.",
              "Input validation failed.",
              "Failed to retrieve job.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WebsiteModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The result of the website quality job",
            "examples": [
              {
                "data_type": "website",
                "label": "OK",
                "normalized_value": "https://delpha.io/",
                "recommendations": [
                  {
                    "metadata": {
                      "name": "Delpha",
                      "rank": 1,
                      "summary": "Delpha detects and resolves data issues across Salesforce accounts, contacts and leads.",
                      "title": "Delpha — data quality for Salesforce",
                      "url": "https://delpha.io/"
                    },
                    "score": 0.996,
                    "source_path": [
                      {
                        "name": "Name"
                      }
                    ],
                    "url": "https://delpha.io/"
                  }
                ],
                "scores": {
                  "accuracy": 1,
                  "completeness": 1,
                  "consistency": 1,
                  "validity": 1
                }
              },
              null,
              null,
              null,
              null
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              0.123,
              5,
              10,
              15,
              200
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "WebsitePullOutput",
        "type": "object"
      },
      "PhoneSubmitInput": {
        "description": "Payload to submit a new phone quality job.\n\n**Important**: For proper normalization and country detection, either:\n- Provide a phone number with international code (e.g., \"+33672557378\"), OR\n- Provide the phone number along with `country` or `country_code`\n\nIf none of these conditions are met, the system may not be able to properly\ndetect the country and apply the related normalization.",
        "properties": {
          "phone": {
            "description": "Phone number to validate and normalize. E.164 form (e.g. `+33672557378`) is preferred and carries its own country; a national-form number (e.g. `0672557378`) is read only together with its country — see `country_code`. Required.",
            "examples": [
              "+33672557378",
              "0672557378"
            ],
            "title": "Phone",
            "type": "string"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Country display name in English (e.g. `France`). Supplies the numbering plan when `phone` is not in E.164 form and no `country_code` is set; `country_code` wins when both are set. Only some country names are recognized, and a national-format number sent with one that is not is left unnormalized — `country_code` covers every country.",
            "examples": [
              "France"
            ],
            "title": "Country"
          },
          "country_code": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ISO 3166-1 alpha-2 country code (e.g. `FR`, `US`, `GB`). Supplies the numbering plan that a `phone` not in E.164 form needs; a number in E.164 form carries its own.",
            "examples": [
              "FR"
            ],
            "title": "Country Code"
          }
        },
        "required": [
          "phone"
        ],
        "title": "PhoneSubmitInput",
        "type": "object"
      },
      "PhoneSubmitOutput": {
        "additionalProperties": true,
        "description": "Response after submitting a new phone quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job ID. Required if status <= 300.",
            "examples": [
              "21014abc65004d2781d2e0ef4c9fbb46",
              null,
              null,
              null,
              null
            ],
            "title": "Job Id"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Job submitted",
              "Invalid phone format or missing required fields",
              "Internal server error",
              "Service unavailable",
              "Payment Required"
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              202,
              400,
              500,
              502,
              402
            ],
            "title": "Status Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "PhoneSubmitOutput",
        "type": "object"
      },
      "PhoneModel": {
        "additionalProperties": true,
        "description": "Model representing the details of an phone field.",
        "properties": {
          "data_type": {
            "$ref": "#/components/schemas/DataType",
            "description": "The type of data for this field",
            "examples": [
              "phone"
            ]
          },
          "normalized_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Normalized phone value.",
            "examples": [
              "+33672557378"
            ],
            "title": "Normalized Value"
          },
          "phone_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PhoneType"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The type of phone number",
            "examples": [
              "MOBILE"
            ]
          },
          "carrier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The carrier of the phone number",
            "examples": [
              "Orange France"
            ],
            "title": "Carrier"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The timezone of the phone number",
            "examples": [
              "Europe/Paris"
            ],
            "title": "Timezone"
          },
          "zone": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Zone"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The zone of the phone number",
            "examples": [
              "FR"
            ]
          },
          "area": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The area of the phone number",
            "examples": [
              "France"
            ],
            "title": "Area"
          },
          "activity_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How recently the line has shown activity, on the second-tier line-type provider's own 0-100 scale. `null` whenever that provider was not consulted — which is the common case, since it is called only to resolve an ambiguous line type.",
            "examples": [
              85
            ],
            "title": "Activity Score"
          },
          "is_prepaid": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether the number is a prepaid line, from the second-tier line-type provider. `null` whenever that provider was not consulted — see `activity_score`.",
            "examples": [
              false
            ],
            "title": "Is Prepaid"
          },
          "scores": {
            "$ref": "#/components/schemas/PhoneScoresModel",
            "description": "Scores for the field",
            "examples": [
              {
                "accuracy": -1,
                "completeness": 1,
                "confidence": 1,
                "consistency": 1,
                "validity": 1
              }
            ]
          }
        },
        "required": [
          "data_type",
          "scores"
        ],
        "title": "PhoneModel",
        "type": "object"
      },
      "PhoneScoresModel": {
        "description": "The four shared score dimensions plus the one only phone produces.\n\n``accuracy`` is inherited and is always ``-1`` (\"not assessed\") on this use\ncase: the phone backend emits no accuracy dimension.",
        "properties": {
          "accuracy": {
            "default": -1,
            "description": "Accuracy score",
            "examples": [
              0.7
            ],
            "maximum": 1,
            "minimum": -1,
            "title": "Accuracy",
            "type": "number"
          },
          "validity": {
            "default": -1,
            "description": "Validity score",
            "examples": [
              0
            ],
            "maximum": 1,
            "minimum": -1,
            "title": "Validity",
            "type": "integer"
          },
          "completeness": {
            "default": 0,
            "description": "Completeness score",
            "examples": [
              1
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Completeness",
            "type": "number"
          },
          "consistency": {
            "default": 0,
            "description": "Consistency score",
            "examples": [
              0
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Consistency",
            "type": "integer"
          },
          "confidence": {
            "default": 0,
            "description": "How much to trust the normalization, from the phone library's own reliability verdict: `1` (high), `0.5` (medium) or `0` (low, or not reported). It rates the PARSE, not whether the line is reachable — that is `validity`.",
            "examples": [
              1
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "type": "number"
          }
        },
        "title": "PhoneScoresModel",
        "type": "object"
      },
      "PhoneType": {
        "description": "Enum representing the possible phone number types.",
        "enum": [
          "FIXED_LINE",
          "MOBILE",
          "FIXED_LINE_OR_MOBILE",
          "TOLL_FREE",
          "PREMIUM_RATE",
          "SHARED_COST",
          "VOIP",
          "PERSONAL_NUMBER",
          "PAGER",
          "UAN",
          "VOICEMAIL"
        ],
        "title": "PhoneType",
        "type": "string"
      },
      "Zone": {
        "description": "Enum representing the possible country/zone codes for phone numbers\n(ISO 3166-1 alpha-2).",
        "enum": [
          "AC",
          "AD",
          "AE",
          "AF",
          "AG",
          "AI",
          "AL",
          "AM",
          "AO",
          "AR",
          "AS",
          "AT",
          "AU",
          "AW",
          "AX",
          "AZ",
          "BA",
          "BB",
          "BD",
          "BE",
          "BF",
          "BG",
          "BH",
          "BI",
          "BJ",
          "BL",
          "BM",
          "BN",
          "BO",
          "BQ",
          "BR",
          "BS",
          "BT",
          "BW",
          "BY",
          "BZ",
          "CA",
          "CC",
          "CD",
          "CF",
          "CG",
          "CH",
          "CI",
          "CK",
          "CL",
          "CM",
          "CN",
          "CO",
          "CR",
          "CU",
          "CV",
          "CW",
          "CX",
          "CY",
          "CZ",
          "DE",
          "DJ",
          "DK",
          "DM",
          "DO",
          "DZ",
          "EC",
          "EE",
          "EG",
          "EH",
          "ER",
          "ES",
          "ET",
          "FI",
          "FJ",
          "FK",
          "FM",
          "FO",
          "FR",
          "GA",
          "GB",
          "GD",
          "GE",
          "GF",
          "GG",
          "GH",
          "GI",
          "GL",
          "GM",
          "GN",
          "GP",
          "GQ",
          "GR",
          "GT",
          "GU",
          "GW",
          "GY",
          "HK",
          "HN",
          "HR",
          "HT",
          "HU",
          "ID",
          "IE",
          "IL",
          "IM",
          "IN",
          "IO",
          "IQ",
          "IR",
          "IS",
          "IT",
          "JE",
          "JM",
          "JO",
          "JP",
          "KE",
          "KG",
          "KH",
          "KI",
          "KM",
          "KN",
          "KP",
          "KR",
          "KW",
          "KY",
          "KZ",
          "LA",
          "LB",
          "LC",
          "LI",
          "LK",
          "LR",
          "LS",
          "LT",
          "LU",
          "LV",
          "LY",
          "MA",
          "MC",
          "MD",
          "ME",
          "MF",
          "MG",
          "MH",
          "MK",
          "ML",
          "MM",
          "MN",
          "MO",
          "MP",
          "MQ",
          "MR",
          "MS",
          "MT",
          "MU",
          "MV",
          "MW",
          "MX",
          "MY",
          "MZ",
          "NA",
          "NC",
          "NE",
          "NF",
          "NG",
          "NI",
          "NL",
          "NO",
          "NP",
          "NR",
          "NU",
          "NZ",
          "OM",
          "PA",
          "PE",
          "PF",
          "PG",
          "PH",
          "PK",
          "PL",
          "PM",
          "PR",
          "PS",
          "PT",
          "PW",
          "PY",
          "QA",
          "RE",
          "RO",
          "RS",
          "RU",
          "RW",
          "SA",
          "SB",
          "SC",
          "SD",
          "SE",
          "SG",
          "SH",
          "SI",
          "SJ",
          "SK",
          "SL",
          "SM",
          "SN",
          "SO",
          "SR",
          "SS",
          "ST",
          "SV",
          "SX",
          "SY",
          "SZ",
          "TA",
          "TC",
          "TD",
          "TG",
          "TH",
          "TJ",
          "TK",
          "TL",
          "TM",
          "TN",
          "TO",
          "TR",
          "TT",
          "TV",
          "TW",
          "TZ",
          "UA",
          "UG",
          "US",
          "UY",
          "UZ",
          "VA",
          "VC",
          "VE",
          "VG",
          "VI",
          "VN",
          "VU",
          "WF",
          "WS",
          "XK",
          "YE",
          "YT",
          "ZA",
          "ZM",
          "ZW"
        ],
        "title": "Zone",
        "type": "string"
      },
      "PhonePullOutput": {
        "additionalProperties": true,
        "description": "Response after retrieving the status and result of an phone quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "Job succeeded.",
              "Job is still running.",
              "Input validation failed.",
              "Failed to retrieve job.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PhoneModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The result of the phone quality job",
            "examples": [
              {
                "activity_score": 85,
                "area": "France",
                "carrier": "Orange France",
                "data_type": "phone",
                "is_prepaid": false,
                "normalized_value": "+33672557378",
                "phone_type": "MOBILE",
                "scores": {
                  "accuracy": -1,
                  "completeness": 1,
                  "confidence": 1,
                  "consistency": 1,
                  "validity": 1
                },
                "timezone": "Europe/Paris",
                "zone": "FR"
              },
              null,
              null,
              null,
              null
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              0.123,
              5,
              10,
              15,
              200
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "PhonePullOutput",
        "type": "object"
      },
      "NameSubmitInput": {
        "description": "Payload to submit a new name quality job.",
        "properties": {
          "first_name": {
            "description": "Person's given name (e.g. `Jordan`). Required.",
            "examples": [
              "Jordan"
            ],
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "description": "Person's family name (e.g. `Rivera`). Required.",
            "examples": [
              "Rivera"
            ],
            "title": "Last Name",
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "last_name"
        ],
        "title": "NameSubmitInput",
        "type": "object"
      },
      "NameSubmitOutput": {
        "additionalProperties": true,
        "description": "Response after submitting a new name quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job ID. Required if status <= 300.",
            "examples": [
              "21014abc65004d2781d2e0ef4c9fbb46",
              null,
              null,
              null,
              null
            ],
            "title": "Job Id"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Job submitted",
              "Invalid name format or missing required fields",
              "Internal server error",
              "Service unavailable",
              "Payment Required"
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              202,
              400,
              500,
              502,
              402
            ],
            "title": "Status Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "NameSubmitOutput",
        "type": "object"
      },
      "DoubleScoresModel": {
        "description": "Model representing the scores of an double name.",
        "properties": {
          "first_name": {
            "description": "The scores of the first name",
            "examples": [
              1
            ],
            "title": "First Name",
            "type": "number"
          },
          "last_name": {
            "description": "The scores of the last name",
            "examples": [
              1
            ],
            "title": "Last Name",
            "type": "number"
          }
        },
        "required": [
          "first_name",
          "last_name"
        ],
        "title": "DoubleScoresModel",
        "type": "object"
      },
      "NameModel": {
        "additionalProperties": true,
        "description": "Model representing the details of an name field.",
        "properties": {
          "data_type": {
            "$ref": "#/components/schemas/DataType",
            "description": "The type of data for this field",
            "examples": [
              "name"
            ]
          },
          "normalized_value": {
            "$ref": "#/components/schemas/NormalizedNameModel",
            "description": "Normalized name value.",
            "examples": [
              {
                "first_name": "Jordan",
                "last_name": "Rivera"
              }
            ]
          },
          "label": {
            "description": "Label for the name.",
            "enum": [
              "No",
              "OK",
              "Misspelled",
              "Reversed"
            ],
            "examples": [
              "OK"
            ],
            "title": "Label",
            "type": "string"
          },
          "scores": {
            "$ref": "#/components/schemas/NameScoresModel",
            "description": "Scores for the field",
            "examples": [
              {
                "accuracy": 0,
                "completeness": {
                  "first_name": 1,
                  "last_name": 1
                },
                "consistency": {
                  "first_name": 1,
                  "last_name": 0
                },
                "misspelled": {
                  "first_name": 0,
                  "last_name": 1
                },
                "reversed": 0.192,
                "validity": {
                  "first_name": 1,
                  "last_name": 1
                }
              }
            ]
          },
          "suggestions": {
            "$ref": "#/components/schemas/NameRecommendation",
            "description": "Recommendations for the name.",
            "examples": [
              {
                "first_name": [
                  {
                    "score": 1,
                    "value": "Jordan"
                  }
                ],
                "last_name": [
                  {
                    "score": 0.91,
                    "value": "GOBET"
                  },
                  {
                    "score": 0.73,
                    "value": "GABET"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "data_type",
          "normalized_value",
          "label",
          "scores",
          "suggestions"
        ],
        "title": "NameModel",
        "type": "object"
      },
      "NameRecommendation": {
        "description": "Model representing a recommendation for an name.",
        "properties": {
          "first_name": {
            "description": "The first name of the entity",
            "examples": [
              [
                {
                  "score": 1,
                  "value": "Jordan"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/SingleNameRecommendation"
            },
            "title": "First Name",
            "type": "array"
          },
          "last_name": {
            "description": "The last name of the entity",
            "examples": [
              [
                {
                  "score": 0.91,
                  "value": "GOBET"
                },
                {
                  "score": 0.73,
                  "value": "GABET"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/SingleNameRecommendation"
            },
            "title": "Last Name",
            "type": "array"
          }
        },
        "required": [
          "first_name",
          "last_name"
        ],
        "title": "NameRecommendation",
        "type": "object"
      },
      "NameScoresModel": {
        "description": "Model representing the scores of an name.",
        "properties": {
          "accuracy": {
            "description": "The accuracy of the name",
            "examples": [
              1
            ],
            "title": "Accuracy",
            "type": "number"
          },
          "reversed": {
            "description": "The reversed of the name",
            "examples": [
              1
            ],
            "title": "Reversed",
            "type": "number"
          },
          "misspelled": {
            "$ref": "#/components/schemas/DoubleScoresModel",
            "description": "The misspelled of the names",
            "examples": [
              {
                "first_name": 1,
                "last_name": 1
              }
            ]
          },
          "consistency": {
            "$ref": "#/components/schemas/DoubleScoresModel",
            "description": "The consistency of the names",
            "examples": [
              {
                "first_name": 1,
                "last_name": 1
              }
            ]
          },
          "validity": {
            "$ref": "#/components/schemas/DoubleScoresModel",
            "description": "The validity of the names",
            "examples": [
              {
                "first_name": 1,
                "last_name": 1
              }
            ]
          },
          "completeness": {
            "$ref": "#/components/schemas/DoubleScoresModel",
            "description": "The completeness of the names",
            "examples": [
              {
                "first_name": 1,
                "last_name": 1
              }
            ]
          }
        },
        "required": [
          "accuracy",
          "reversed",
          "misspelled",
          "consistency",
          "validity",
          "completeness"
        ],
        "title": "NameScoresModel",
        "type": "object"
      },
      "NormalizedNameModel": {
        "description": "Model representing the normalized name.",
        "properties": {
          "first_name": {
            "description": "The first name of the entity",
            "examples": [
              "Jordan"
            ],
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "description": "The last name of the entity",
            "examples": [
              "Rivera"
            ],
            "title": "Last Name",
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "last_name"
        ],
        "title": "NormalizedNameModel",
        "type": "object"
      },
      "SingleNameRecommendation": {
        "additionalProperties": true,
        "description": "Model representing a recommendation for a single name.",
        "properties": {
          "value": {
            "description": "The value of the name",
            "examples": [
              "Jordan"
            ],
            "title": "Value",
            "type": "string"
          },
          "score": {
            "description": "The score of the name",
            "examples": [
              0.996
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Score",
            "type": "number"
          }
        },
        "required": [
          "value",
          "score"
        ],
        "title": "SingleNameRecommendation",
        "type": "object"
      },
      "NamePullOutput": {
        "additionalProperties": true,
        "description": "Response after retrieving the status and result of an name quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "Job succeeded.",
              "Job is still running.",
              "Input validation failed.",
              "Failed to retrieve job.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NameModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The result of the name quality job",
            "examples": [
              {
                "data_type": "name",
                "label": "OK",
                "normalized_value": {
                  "first_name": "Jordan",
                  "last_name": "Rivera"
                },
                "scores": {
                  "accuracy": 0,
                  "completeness": {
                    "first_name": 1,
                    "last_name": 1
                  },
                  "consistency": {
                    "first_name": 1,
                    "last_name": 0
                  },
                  "misspelled": {
                    "first_name": 0,
                    "last_name": 1
                  },
                  "reversed": 0.192,
                  "validity": {
                    "first_name": 1,
                    "last_name": 1
                  }
                },
                "suggestions": {
                  "first_name": [
                    {
                      "score": 1,
                      "value": "Jordan"
                    }
                  ],
                  "last_name": [
                    {
                      "score": 0.91,
                      "value": "GOBET"
                    },
                    {
                      "score": 0.73,
                      "value": "GABET"
                    }
                  ]
                }
              },
              null,
              null,
              null,
              null
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              0.123,
              5,
              10,
              15,
              200
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "NamePullOutput",
        "type": "object"
      },
      "AddressInput": {
        "description": "Registered address of the company whose identifier is looked up — never a\nperson's location. `country` alone selects the registry; the other fields\nseparate registrations that share a name.",
        "properties": {
          "street": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The street",
            "examples": [
              "3 AVENUE VAVIN"
            ],
            "title": "Street"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The city",
            "examples": [
              "Paris"
            ],
            "title": "City"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The state",
            "examples": [
              "Ile de France"
            ],
            "title": "State"
          },
          "postal_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The zip code",
            "examples": [
              "75006"
            ],
            "title": "Postal Code"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The country",
            "examples": [
              "France"
            ],
            "title": "Country"
          }
        },
        "title": "AddressInput",
        "type": "object"
      },
      "LegalIDType": {
        "description": "The legal ID registries Delpha can currently query.\n\nA request naming a registry outside this list is refused before any credits are\nconsumed.",
        "enum": [
          "FRA - SIRET",
          "FRA - SIREN",
          "NZL - NZBN",
          "AUS - ABN",
          "NOR - ORGANISASJONSNUMMER",
          "CHE - UID",
          "GBR - COMPANY REGISTRATION NUMBER",
          "BEL - ENTERPRISE NUMBER",
          "DEU - HANDELSREGISTERNUMMER",
          "EST - COMMERCIAL REGISTER CODE",
          "IRL - CRO NUMBER",
          "ESP - NIF",
          "NLD - KVK-NUMMER",
          "CAN - CORPORATION-NUMBER",
          "FIN - Y-TUNNUS",
          "SWE - ORGANISATIONSNUMMER",
          "USA - CIK"
        ],
        "title": "LegalIDType",
        "type": "string"
      },
      "LegalIDSubmitInput": {
        "description": "Payload to submit a new legal ID quality job.",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Legal or trade name of the entity (e.g. `Delpha`).",
            "examples": [
              "Delpha"
            ],
            "title": "Name"
          },
          "legal_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Existing business registry number to validate (e.g. SIRET `88052440000012`) — never a personal identifier. Format is registry-specific; supply `legal_id_type` when the format is ambiguous.",
            "examples": [
              "88052440000012"
            ],
            "title": "Legal Id"
          },
          "legal_id_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalIDType"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Registry the `legal_id` belongs to. Closed enum of the registries Delpha can query today (e.g. `FRA - SIRET`, `USA - CIK`); any other value is refused with 422 `unsupported_registry` before any credit is reserved. Required only when the same numeric format exists in multiple registries.",
            "examples": [
              "FRA - SIRET"
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressInput"
              },
              {
                "type": "null"
              }
            ],
            "description": "Registered address of the company whose identifier is looked up — never a person's location. `country` alone selects the registry; the other fields separate registrations that share a name.",
            "examples": [
              {
                "city": "Paris",
                "country": "France",
                "postal_code": "75006",
                "state": "Ile de France",
                "street": "3 AVENUE VAVIN"
              }
            ]
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Entity website, as a URL or a bare domain (e.g. `https://delpha.io/` or `delpha.io`).",
            "examples": [
              "https://delpha.io/",
              "delpha.io"
            ],
            "title": "Website"
          }
        },
        "title": "LegalIDSubmitInput",
        "type": "object"
      },
      "LegalIDSubmitOutput": {
        "additionalProperties": true,
        "description": "Response after submitting a new legal ID quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job ID. Required if status <= 300.",
            "examples": [
              "21014abc65004d2781d2e0ef4c9fbb46",
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Job Id"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Job submitted",
              "Invalid legal ID format or missing required fields",
              "Internal server error",
              "Service unavailable",
              "Payment Required",
              "Unsupported registry: Legal ID lookup is not currently supported for Saudi Arabia. No credits were consumed. Supported countries: ..."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              202,
              400,
              500,
              502,
              402,
              422
            ],
            "title": "Status Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "LegalIDSubmitOutput",
        "type": "object"
      },
      "CompanyTypeModel": {
        "description": "Model representing company type information.",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The company type value",
            "examples": [
              "PME"
            ],
            "title": "Value"
          },
          "legal_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The legal type",
            "examples": [
              "SAS, société par actions simplifiée"
            ],
            "title": "Legal Type"
          },
          "legal_id_type_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The legal ID type label",
            "examples": [
              null
            ],
            "title": "Legal Id Type Label"
          },
          "legal_type_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The legal type code",
            "examples": [
              "5710"
            ],
            "title": "Legal Type Code"
          }
        },
        "title": "CompanyTypeModel",
        "type": "object"
      },
      "DateModel": {
        "description": "Model representing date information.",
        "properties": {
          "creation_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The creation date",
            "examples": [
              "2020-03-11"
            ],
            "title": "Creation Date"
          },
          "closing_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The closing date",
            "examples": [
              null
            ],
            "title": "Closing Date"
          },
          "birth_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The birth date",
            "examples": [
              null
            ],
            "title": "Birth Date"
          }
        },
        "title": "DateModel",
        "type": "object"
      },
      "EmployeesNbModel": {
        "description": "Model representing employee number information.",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The employee number value",
            "examples": [
              null
            ],
            "title": "Value"
          },
          "min": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The minimum number of employees",
            "examples": [
              6
            ],
            "title": "Min"
          },
          "max": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The maximum number of employees",
            "examples": [
              9
            ],
            "title": "Max"
          },
          "range": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The employee range",
            "examples": [
              "1-10"
            ],
            "title": "Range"
          }
        },
        "title": "EmployeesNbModel",
        "type": "object"
      },
      "Financials": {
        "additionalProperties": true,
        "description": "Filed financial figures for one fiscal period.\n\nAmounts are exactly as filed, in `currency` -- nothing is converted. Which\nfigures are present depends on what the national register publishes: some\nfile a full profit-and-loss, others only a balance sheet.",
        "properties": {
          "revenue": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Revenue / total operating income for the period, in `currency`.",
            "examples": [
              62429000.0
            ],
            "title": "Revenue"
          },
          "operating_profit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Operating profit (EBIT-level result) for the period, in `currency`. Only some national registers publish it.",
            "examples": [
              -5490000.0
            ],
            "title": "Operating Profit"
          },
          "net_income": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Net result for the period, after tax, in `currency`.",
            "examples": [
              20422000.0
            ],
            "title": "Net Income"
          },
          "equity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total equity at the end of the period, in `currency`. Only some national registers publish it.",
            "examples": [
              752996000.0
            ],
            "title": "Equity"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ISO 4217 currency every amount here is filed in.",
            "examples": [
              "NOK"
            ],
            "title": "Currency"
          },
          "fiscal_period": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FiscalPeriod"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The period the figures cover.",
            "examples": [
              {
                "end_date": "2025-12-31",
                "start_date": "2025-01-01"
              }
            ]
          },
          "revenue_range": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Bucketed revenue, in millions of `currency`. No currency conversion is applied, so read it together with `currency`.",
            "examples": [
              "50-100"
            ],
            "title": "Revenue Range"
          }
        },
        "title": "Financials",
        "type": "object"
      },
      "FiscalPeriod": {
        "additionalProperties": true,
        "description": "The period a set of filed figures covers.",
        "properties": {
          "start_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "First day of the fiscal period (ISO 8601 date). Not every national register publishes it.",
            "examples": [
              "2025-01-01"
            ],
            "title": "Start Date"
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Last day of the fiscal period (ISO 8601 date).",
            "examples": [
              "2025-12-31"
            ],
            "title": "End Date"
          }
        },
        "title": "FiscalPeriod",
        "type": "object"
      },
      "HeadquartersLegalId": {
        "description": "The headquarters site's legal identifier.",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The legal identifier value.",
            "examples": [
              "63201210000012"
            ],
            "title": "Value"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The type of the legal identifier.",
            "examples": [
              "FRA - SIRET"
            ],
            "title": "Type"
          }
        },
        "title": "HeadquartersLegalId",
        "type": "object"
      },
      "HeadquartersSite": {
        "additionalProperties": true,
        "description": "The company's headquarters site, resolved from the datalake parent link.",
        "properties": {
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The headquarters site's company name.",
            "examples": [
              "L'OREAL"
            ],
            "title": "Company Name"
          },
          "legal_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadquartersLegalId"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The headquarters site's legal identifier. Absent when the parent record could not be resolved in the datalake.",
            "examples": [
              {
                "type": "FRA - SIRET",
                "value": "63201210000012"
              }
            ]
          }
        },
        "title": "HeadquartersSite",
        "type": "object"
      },
      "IndustryModel": {
        "description": "Model representing industry information.",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The industry value",
            "examples": [
              "5112"
            ],
            "title": "Value"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The industry description",
            "examples": [
              "Software Publishers"
            ],
            "title": "Description"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The industry type",
            "examples": [
              null
            ],
            "title": "Type"
          }
        },
        "title": "IndustryModel",
        "type": "object"
      },
      "LegalIDAddress": {
        "description": "Model representing address information.",
        "properties": {
          "place_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The place name",
            "examples": [
              "Wojo"
            ],
            "title": "Place Name"
          },
          "street_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The street number",
            "examples": [
              "3"
            ],
            "title": "Street Number"
          },
          "street": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The street name",
            "examples": [
              "AV VAVIN"
            ],
            "title": "Street"
          },
          "full_street": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full street address",
            "examples": [
              "3 AV VAVIN"
            ],
            "title": "Full Street"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The city",
            "examples": [
              "PARIS 6"
            ],
            "title": "City"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The state",
            "examples": [
              ""
            ],
            "title": "State"
          },
          "postal_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The postal code",
            "examples": [
              "75006"
            ],
            "title": "Postal Code"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The country",
            "examples": [
              "FRANCE"
            ],
            "title": "Country"
          },
          "country_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The country code",
            "examples": [
              "FR"
            ],
            "title": "Country Code"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full location string",
            "examples": [
              "3 AV VAVIN, PARIS 6, 75006, FRANCE"
            ],
            "title": "Location"
          }
        },
        "title": "LegalIDAddress",
        "type": "object"
      },
      "LegalIDModel": {
        "additionalProperties": true,
        "description": "Model representing the details of a legal ID field.",
        "properties": {
          "data_type": {
            "$ref": "#/components/schemas/DataType",
            "description": "The type of data for this field",
            "examples": [
              "legal_id"
            ]
          },
          "normalized_value": {
            "description": "Normalized legal ID value.",
            "examples": [
              "88052440000012"
            ],
            "title": "Normalized Value",
            "type": "string"
          },
          "label": {
            "description": "Label for the legal ID.",
            "enum": [
              "No",
              "OK",
              "Unknown"
            ],
            "examples": [
              "OK"
            ],
            "title": "Label",
            "type": "string"
          },
          "legal_id_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The type of legal ID. Free-form: it normally matches one of the types accepted on submission. Null when no registry could be determined.",
            "examples": [
              "FRA - SIRET"
            ],
            "title": "Legal Id Type"
          },
          "scores": {
            "$ref": "#/components/schemas/ScoresModel",
            "description": "Scores for the field",
            "examples": [
              {
                "accuracy": 1.0,
                "completeness": 1,
                "consistency": 1,
                "validity": 1
              }
            ]
          },
          "match": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalIDSuggestion"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The match information",
            "examples": [
              {
                "account_name": "DELPHA",
                "address": {
                  "city": "PARIS 6",
                  "country": "FRANCE",
                  "country_code": "FR",
                  "full_street": "3 AV VAVIN",
                  "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE",
                  "place_name": "Wojo",
                  "postal_code": "75006",
                  "state": "",
                  "street": "AV VAVIN",
                  "street_number": "3"
                },
                "company_type": {
                  "legal_id_type_label": null,
                  "legal_type": "SAS, société par actions simplifiée",
                  "legal_type_code": "5710",
                  "value": "PME"
                },
                "date": {
                  "birth_date": null,
                  "closing_date": null,
                  "creation_date": "2020-03-11"
                },
                "employees_nb": {
                  "max": 9,
                  "min": 6,
                  "range": "1-10",
                  "value": null
                },
                "financials": {
                  "currency": "NOK",
                  "equity": 752996000.0,
                  "fiscal_period": {
                    "end_date": "2025-12-31",
                    "start_date": "2025-01-01"
                  },
                  "net_income": 20422000.0,
                  "operating_profit": -5490000.0,
                  "revenue": 62429000.0,
                  "revenue_range": "50-100"
                },
                "headquarters_site": {
                  "company_name": "L'OREAL",
                  "legal_id": {
                    "type": "FRA - SIRET",
                    "value": "63201210000012"
                  }
                },
                "industry": {
                  "description": "Software Publishers",
                  "type": null,
                  "value": "5112"
                },
                "legal_id": "88052440000012",
                "legal_id_type": "FRA - SIRET",
                "score": 1,
                "site_type": "headquarters",
                "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                "vat": "FR40632012100",
                "website": {
                  "url": "https://delpha.io/"
                }
              }
            ]
          },
          "suggestions": {
            "description": "Suggestions for the legal ID.",
            "examples": [
              [
                {
                  "account_name": "DELPHA",
                  "address": {
                    "city": "PARIS 6",
                    "country": "FRANCE",
                    "country_code": "FR",
                    "full_street": "3 AV VAVIN",
                    "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE",
                    "place_name": "Wojo",
                    "postal_code": "75006",
                    "state": "",
                    "street": "AV VAVIN",
                    "street_number": "3"
                  },
                  "company_type": {
                    "legal_id_type_label": null,
                    "legal_type": "SAS, société par actions simplifiée",
                    "legal_type_code": "5710",
                    "value": "PME"
                  },
                  "date": {
                    "birth_date": null,
                    "closing_date": null,
                    "creation_date": "2020-03-11"
                  },
                  "employees_nb": {
                    "max": 9,
                    "min": 6,
                    "range": "1-10",
                    "value": null
                  },
                  "financials": {
                    "currency": "NOK",
                    "equity": 752996000.0,
                    "fiscal_period": {
                      "end_date": "2025-12-31",
                      "start_date": "2025-01-01"
                    },
                    "net_income": 20422000.0,
                    "operating_profit": -5490000.0,
                    "revenue": 62429000.0,
                    "revenue_range": "50-100"
                  },
                  "headquarters_site": {
                    "company_name": "L'OREAL",
                    "legal_id": {
                      "type": "FRA - SIRET",
                      "value": "63201210000012"
                    }
                  },
                  "industry": {
                    "description": "Software Publishers",
                    "type": null,
                    "value": "5112"
                  },
                  "legal_id": "88052440000012",
                  "legal_id_type": "FRA - SIRET",
                  "score": 1,
                  "site_type": "headquarters",
                  "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                  "vat": "FR40632012100",
                  "website": {
                    "url": "https://delpha.io/"
                  }
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/LegalIDSuggestion"
            },
            "title": "Suggestions",
            "type": "array"
          }
        },
        "required": [
          "data_type",
          "normalized_value",
          "label",
          "legal_id_type",
          "scores",
          "suggestions"
        ],
        "title": "LegalIDModel",
        "type": "object"
      },
      "LegalIDSuggestion": {
        "description": "Model representing a suggestion for a legal ID.",
        "properties": {
          "score": {
            "description": "Confidence score for the suggestion.",
            "examples": [
              1
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Score",
            "type": "number"
          },
          "account_name": {
            "description": "The account name",
            "examples": [
              "DELPHA"
            ],
            "title": "Account Name",
            "type": "string"
          },
          "industry": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IndustryModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The industry information",
            "examples": [
              {
                "description": "Software Publishers",
                "type": null,
                "value": "5112"
              }
            ]
          },
          "website": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Website"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The website",
            "examples": [
              {
                "url": "https://delpha.io/"
              }
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalIDAddress"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The address information",
            "examples": [
              {
                "city": "PARIS 6",
                "country": "FRANCE",
                "country_code": "FR",
                "full_street": "3 AV VAVIN",
                "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE",
                "place_name": "Wojo",
                "postal_code": "75006",
                "state": "",
                "street": "AV VAVIN",
                "street_number": "3"
              }
            ]
          },
          "financials": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Financials"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Filed financial figures for the company's most recent fiscal period, as published by its national register. Replaces the former `annual_revenue` field, which is no longer returned.",
            "examples": [
              {
                "currency": "NOK",
                "equity": 752996000.0,
                "fiscal_period": {
                  "end_date": "2025-12-31",
                  "start_date": "2025-01-01"
                },
                "net_income": 20422000.0,
                "operating_profit": -5490000.0,
                "revenue": 62429000.0,
                "revenue_range": "50-100"
              }
            ]
          },
          "employees_nb": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmployeesNbModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The employee number information",
            "examples": [
              {
                "max": 9,
                "min": 6,
                "range": "1-10",
                "value": null
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The source URL",
            "examples": [
              "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/"
            ],
            "title": "Source"
          },
          "company_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyTypeModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The company type information",
            "examples": [
              {
                "legal_id_type_label": null,
                "legal_type": "SAS, société par actions simplifiée",
                "legal_type_code": "5710",
                "value": "PME"
              }
            ]
          },
          "date": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The date information",
            "examples": [
              {
                "birth_date": null,
                "closing_date": null,
                "creation_date": "2020-03-11"
              }
            ]
          },
          "legal_id_type": {
            "description": "The legal ID type. Free-form: it normally matches one of the types accepted on submission, but a record sourced from the datalake may carry a historical type.",
            "examples": [
              "FRA - SIRET"
            ],
            "title": "Legal Id Type",
            "type": "string"
          },
          "legal_id": {
            "description": "The legal ID",
            "examples": [
              "88052440000012"
            ],
            "title": "Legal Id",
            "type": "string"
          },
          "headquarters_site": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadquartersSite"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The suggested entity's headquarters site, with its legal identifier — resolved from the datalake's parent link, never from the top of the ownership group. `null` when the record names no parent; the `legal_id` alone is absent when the parent record could not be resolved, and the name then falls back to the one stored inline on the link.",
            "examples": [
              {
                "company_name": "L'OREAL",
                "legal_id": {
                  "type": "FRA - SIRET",
                  "value": "63201210000012"
                }
              }
            ]
          },
          "site_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether this record is the company's headquarters: 'headquarters', 'branch', or 'unknown' when the datalake holds no value. Open vocabulary -- new values may be added, so treat this as a string, not a closed enum.",
            "examples": [
              "headquarters"
            ],
            "title": "Site Type"
          },
          "vat": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The VAT identifier of the suggested entity, when the datalake has one.",
            "examples": [
              "FR40632012100"
            ],
            "title": "Vat"
          }
        },
        "required": [
          "score",
          "account_name",
          "legal_id_type",
          "legal_id"
        ],
        "title": "LegalIDSuggestion",
        "type": "object"
      },
      "Website": {
        "description": "Model representing a website containing a URL.",
        "properties": {
          "url": {
            "description": "The URL of the website.",
            "examples": [
              "https://delpha.io/"
            ],
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "Website",
        "type": "object"
      },
      "LegalIDPullOutput": {
        "additionalProperties": true,
        "description": "Response after retrieving the status and result of an legal ID quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "Job succeeded.",
              "Job is still running.",
              "Input validation failed.",
              "Failed to retrieve job.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalIDModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The result of the legal ID quality job",
            "examples": [
              {
                "data_type": "legal_id",
                "label": "OK",
                "legal_id_type": "FRA - SIRET",
                "match": {
                  "account_name": "DELPHA",
                  "address": {
                    "city": "PARIS 6",
                    "country": "FRANCE",
                    "country_code": "FR",
                    "full_street": "3 AV VAVIN",
                    "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE",
                    "place_name": "Wojo",
                    "postal_code": "75006",
                    "state": "",
                    "street": "AV VAVIN",
                    "street_number": "3"
                  },
                  "company_type": {
                    "legal_id_type_label": null,
                    "legal_type": "SAS, société par actions simplifiée",
                    "legal_type_code": "5710",
                    "value": "PME"
                  },
                  "date": {
                    "birth_date": null,
                    "closing_date": null,
                    "creation_date": "2020-03-11"
                  },
                  "employees_nb": {
                    "max": 9,
                    "min": 6,
                    "range": "1-10",
                    "value": null
                  },
                  "financials": {
                    "currency": "NOK",
                    "equity": 752996000.0,
                    "fiscal_period": {
                      "end_date": "2025-12-31",
                      "start_date": "2025-01-01"
                    },
                    "net_income": 20422000.0,
                    "operating_profit": -5490000.0,
                    "revenue": 62429000.0,
                    "revenue_range": "50-100"
                  },
                  "headquarters_site": {
                    "company_name": "L'OREAL",
                    "legal_id": {
                      "type": "FRA - SIRET",
                      "value": "63201210000012"
                    }
                  },
                  "industry": {
                    "description": "Software Publishers",
                    "type": null,
                    "value": "5112"
                  },
                  "legal_id": "88052440000012",
                  "legal_id_type": "FRA - SIRET",
                  "score": 1,
                  "site_type": "headquarters",
                  "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                  "vat": "FR40632012100",
                  "website": {
                    "url": "https://delpha.io/"
                  }
                },
                "normalized_value": "88052440000012",
                "scores": {
                  "accuracy": 1.0,
                  "completeness": 1,
                  "consistency": 1,
                  "validity": 1
                },
                "suggestions": [
                  {
                    "account_name": "DELPHA",
                    "address": {
                      "city": "PARIS 6",
                      "country": "FRANCE",
                      "country_code": "FR",
                      "full_street": "3 AV VAVIN",
                      "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE",
                      "place_name": "Wojo",
                      "postal_code": "75006",
                      "state": "",
                      "street": "AV VAVIN",
                      "street_number": "3"
                    },
                    "company_type": {
                      "legal_id_type_label": null,
                      "legal_type": "SAS, société par actions simplifiée",
                      "legal_type_code": "5710",
                      "value": "PME"
                    },
                    "date": {
                      "birth_date": null,
                      "closing_date": null,
                      "creation_date": "2020-03-11"
                    },
                    "employees_nb": {
                      "max": 9,
                      "min": 6,
                      "range": "1-10",
                      "value": null
                    },
                    "financials": {
                      "currency": "NOK",
                      "equity": 752996000.0,
                      "fiscal_period": {
                        "end_date": "2025-12-31",
                        "start_date": "2025-01-01"
                      },
                      "net_income": 20422000.0,
                      "operating_profit": -5490000.0,
                      "revenue": 62429000.0,
                      "revenue_range": "50-100"
                    },
                    "headquarters_site": {
                      "company_name": "L'OREAL",
                      "legal_id": {
                        "type": "FRA - SIRET",
                        "value": "63201210000012"
                      }
                    },
                    "industry": {
                      "description": "Software Publishers",
                      "type": null,
                      "value": "5112"
                    },
                    "legal_id": "88052440000012",
                    "legal_id_type": "FRA - SIRET",
                    "score": 1,
                    "site_type": "headquarters",
                    "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                    "vat": "FR40632012100",
                    "website": {
                      "url": "https://delpha.io/"
                    }
                  }
                ]
              },
              null,
              null,
              null,
              null
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              0.123,
              5,
              10,
              15,
              200
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "LegalIDPullOutput",
        "type": "object"
      },
      "LinkedInProfileSubmitInput": {
        "description": "Payload to submit a new LinkedIn quality job.",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LinkedIn profile URL to validate (e.g. `https://www.linkedin.com/in/jordan-rivera-000000000/`). When set, the operation runs in validation mode. `validity` is a format score: a URL without a scheme (`http://` or `https://`) is answered `validity: 0`, with `normalized_value` unaffected.",
            "examples": [
              "https://www.linkedin.com/in/jordan-rivera-000000000/"
            ],
            "title": "Url"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Employer website, as a URL or a bare domain (e.g. `https://delpha.io/` or `delpha.io`). Ignored when either `first_name` or `last_name` is supplied. Optional.",
            "examples": [
              "https://delpha.io/",
              "delpha.io"
            ],
            "title": "Website"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company the person works at (e.g. `Delpha`). Company affiliation can narrow a name search among people who share a name. Optional.",
            "examples": [
              "Delpha"
            ],
            "title": "Company Name"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Person's given name (e.g. `Jordan`). Required when `url` is not supplied.",
            "examples": [
              "Jordan"
            ],
            "title": "First Name"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Person's family name (e.g. `Rivera`). Pair with `first_name`.",
            "examples": [
              "Rivera"
            ],
            "title": "Last Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "An email at the person's employer domain (e.g. `jordan.rivera@delpha.io`). Its domain supplies `website` when `website` is absent; that website is ignored when either name is supplied. The address itself never leaves Delpha. Optional.",
            "examples": [
              "jordan.rivera@delpha.io"
            ],
            "title": "Email"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The person's country, used to disambiguate the match (e.g. `France` or `FR`). Accepts an ISO 3166-1 alpha-2 code or a plain English country name. Optional.",
            "examples": [
              "France",
              "FR"
            ],
            "title": "Country"
          }
        },
        "title": "LinkedInProfileSubmitInput",
        "type": "object"
      },
      "LinkedInSubmitOutput": {
        "additionalProperties": true,
        "description": "Response after submitting a new LinkedIn quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job ID. Required if status <= 300.",
            "examples": [
              "21014abc65004d2781d2e0ef4c9fbb46",
              null,
              null,
              null,
              null
            ],
            "title": "Job Id"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Job submitted",
              "Invalid linkedin format or missing required fields",
              "Internal server error",
              "Service unavailable",
              "Payment Required"
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              202,
              400,
              500,
              502,
              402
            ],
            "title": "Status Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "LinkedInSubmitOutput",
        "type": "object"
      },
      "LinkedInModel": {
        "additionalProperties": true,
        "description": "The result of a LinkedIn profile assessment (a person).",
        "properties": {
          "data_type": {
            "$ref": "#/components/schemas/DataType",
            "description": "The type of data for this field.",
            "examples": [
              "social_network"
            ]
          },
          "normalized_value": {
            "description": "Normalized LinkedIn profile URL.",
            "examples": [
              "https://www.linkedin.com/in/jordan-rivera-000000000/"
            ],
            "title": "Normalized Value",
            "type": "string"
          },
          "label": {
            "description": "Label for the LinkedIn value.",
            "enum": [
              "No",
              "OK",
              "Unknown"
            ],
            "examples": [
              "OK"
            ],
            "title": "Label",
            "type": "string"
          },
          "scores": {
            "$ref": "#/components/schemas/ScoresModel",
            "description": "Scores for the field.",
            "examples": [
              {
                "accuracy": 0.8711710601954503,
                "completeness": 1,
                "consistency": 1,
                "validity": 1
              }
            ]
          },
          "recommendations": {
            "description": "Candidate profiles, best first.",
            "examples": [
              [
                {
                  "ambiguity_n": 1,
                  "company_name": "Delpha",
                  "desc": "Data Engineer & Cloud specialist - AWS · Experience: Delpha · Education: ESILV - Ecole Supérieure d'Ingénieurs Léonard de Vinci · Location: Paris · 500+ ...",
                  "headline": "Jordan Rivera - Delpha",
                  "job_title": "Data Engineer & Cloud specialist",
                  "location": "Paris",
                  "match_score": 0.8711710601954503,
                  "profile_name": "Jordan Rivera",
                  "rank": 1,
                  "score": 0.8711710601954503,
                  "url": "https://www.linkedin.com/in/jordan-rivera-000000000/"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/LinkedInRecommendation"
            },
            "title": "Recommendations",
            "type": "array"
          },
          "recommendation_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reading of the recommendation situation: 'confident' (one clear winner), 'ambiguous' (several candidates match comparably well — see each candidate's ambiguity_n), or 'no_match' (no credible profile found). Vocabulary may grow; treat unknown values as informational.",
            "examples": [
              "confident"
            ],
            "title": "Recommendation Status"
          },
          "fallback_used": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "True when the emitted recommendations come from the name-only fallback search: no credible profile was found at the queried company, but same-name profiles exist elsewhere (a possible job-change signal).",
            "examples": [
              false
            ],
            "title": "Fallback Used"
          },
          "url_changed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "True when the submitted profile URL is probably outdated: it was not found, while exactly one other profile matching the person was found with confidence. LinkedIn does not redirect a profile whose address was changed, so the old address stops working. The replacement is in `suggested_url`.",
            "examples": [
              false
            ],
            "title": "Url Changed"
          },
          "suggested_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The profile that probably replaces an outdated submitted URL, set only when `url_changed` is true. It is also the first recommendation.",
            "examples": [
              null
            ],
            "title": "Suggested Url"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The social network the assessed value belongs to. Always `linkedin` on these operations — Delpha assesses no other network today — it is provenance, not a discriminator.",
            "examples": [
              "linkedin"
            ],
            "title": "Type"
          }
        },
        "required": [
          "data_type",
          "normalized_value",
          "label",
          "scores",
          "recommendations"
        ],
        "title": "LinkedInModel",
        "type": "object"
      },
      "LinkedInRecommendation": {
        "description": "A candidate LinkedIn profile for the person in the request.",
        "properties": {
          "url": {
            "description": "Recommended LinkedIn profile URL.",
            "examples": [
              "https://www.linkedin.com/in/jordan-rivera-000000000/"
            ],
            "title": "Url",
            "type": "string"
          },
          "score": {
            "description": "Confidence score for the recommendation.",
            "examples": [
              0.8711710601954503
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Score",
            "type": "number"
          },
          "headline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The search result's headline — the title line Google renders for this profile, usually 'Name - job title - company'. ⚠️ This is NOT LinkedIn's 'headline' profile field — that is `job_title`.",
            "examples": [
              "Jordan Rivera - Delpha"
            ],
            "title": "Headline"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Rank of the recommendation.",
            "examples": [
              1
            ],
            "title": "Rank"
          },
          "desc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Description of the recommended profile, as the search result renders it.",
            "examples": [
              "Data Engineer & Cloud specialist - AWS · Experience: Delpha · Education: ESILV - Ecole Supérieure d'Ingénieurs Léonard de Vinci · Location: Paris · 500+ ..."
            ],
            "title": "Desc"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company the person works at, as the recommended profile shows it.",
            "examples": [
              "Delpha"
            ],
            "title": "Company Name"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Location shown on the recommended profile.",
            "examples": [
              "Paris"
            ],
            "title": "Location"
          },
          "profile_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The person's name on the recommended profile.",
            "examples": [
              "Jordan Rivera"
            ],
            "title": "Profile Name"
          },
          "job_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Job title of the recommended profile, as LinkedIn shows it. Usually taken from the structured job-title slot of the search result; when that is absent it falls back to the profile's LinkedIn headline, so it can read as free text ('Fortune 100 Executive | P&L Leader') rather than a clean role, and Google sometimes clips it with an ellipsis. Null when the search result carried no job title.",
            "examples": [
              "Data Engineer & Cloud specialist"
            ],
            "title": "Job Title"
          },
          "match_score": {
            "anyOf": [
              {
                "maximum": 1,
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pure match quality of this candidate against the person in the request, before the ambiguity division. `score` = `match_score / ambiguity_n`.",
            "examples": [
              0.8711710601954503
            ],
            "title": "Match Score"
          },
          "ambiguity_n": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How many candidates scored within 10% of the best match. Greater than 1 means several profiles match comparably well and the divided `score` reflects that ambiguity, not a poor match.",
            "examples": [
              1
            ],
            "title": "Ambiguity N"
          }
        },
        "required": [
          "url",
          "score"
        ],
        "title": "LinkedInRecommendation",
        "type": "object"
      },
      "LinkedInPullOutput": {
        "additionalProperties": true,
        "description": "Response after retrieving the status and result of a LinkedIn profile job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "Job succeeded.",
              "Job is still running.",
              "Input validation failed.",
              "Failed to retrieve job.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkedInModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The result of the LinkedIn profile job.",
            "examples": [
              {
                "data_type": "social_network",
                "fallback_used": false,
                "label": "OK",
                "normalized_value": "https://www.linkedin.com/in/jordan-rivera-000000000/",
                "recommendation_status": "confident",
                "recommendations": [
                  {
                    "ambiguity_n": 1,
                    "company_name": "Delpha",
                    "desc": "Data Engineer & Cloud specialist - AWS · Experience: Delpha · Education: ESILV - Ecole Supérieure d'Ingénieurs Léonard de Vinci · Location: Paris · 500+ ...",
                    "headline": "Jordan Rivera - Delpha",
                    "job_title": "Data Engineer & Cloud specialist",
                    "location": "Paris",
                    "match_score": 0.8711710601954503,
                    "profile_name": "Jordan Rivera",
                    "rank": 1,
                    "score": 0.8711710601954503,
                    "url": "https://www.linkedin.com/in/jordan-rivera-000000000/"
                  }
                ],
                "scores": {
                  "accuracy": 0.8711710601954503,
                  "completeness": 1,
                  "consistency": 1,
                  "validity": 1
                },
                "suggested_url": null,
                "type": "linkedin",
                "url_changed": false
              },
              null,
              null,
              null,
              null
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              0.123,
              5,
              10,
              15,
              200
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "LinkedInPullOutput",
        "type": "object"
      },
      "LinkedInCompanyPageSubmitInput": {
        "description": "Payload to submit a new LinkedIn quality job.",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LinkedIn company page URL to validate (e.g. `https://www.linkedin.com/company/delphainc/`). When set, the operation runs in validation mode. `validity` is a format score: a URL without a scheme (`http://` or `https://`) is answered `validity: 0`, with `normalized_value` unaffected.",
            "examples": [
              "https://www.linkedin.com/company/delphainc/"
            ],
            "title": "Url"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company website, as a URL or a bare domain (e.g. `https://delpha.io/` or `delpha.io`). The strongest signal after the name. Optional.",
            "examples": [
              "https://delpha.io/",
              "delpha.io"
            ],
            "title": "Website"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company whose LinkedIn page is being looked up (e.g. `Delpha`). Required when `url` is not supplied. Paired with `website` it narrows the search further.",
            "examples": [
              "Delpha"
            ],
            "title": "Company Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "An email at the company's domain, used only for its domain as a website signal (e.g. `jordan.rivera@delpha.io`); the address itself never leaves Delpha. Optional; an address at an unrelated domain points the search at that domain instead.",
            "examples": [
              "jordan.rivera@delpha.io"
            ],
            "title": "Email"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Country of the company, used to disambiguate the match (e.g. `France` or `FR`). Accepts an ISO 3166-1 alpha-2 code or a plain English country name. Optional.",
            "examples": [
              "France",
              "FR"
            ],
            "title": "Country"
          }
        },
        "title": "LinkedInCompanyPageSubmitInput",
        "type": "object"
      },
      "LinkedInCompanyPageModel": {
        "additionalProperties": true,
        "description": "The result of a LinkedIn company page assessment (a company).",
        "properties": {
          "data_type": {
            "$ref": "#/components/schemas/DataType",
            "description": "The type of data for this field.",
            "examples": [
              "social_network"
            ]
          },
          "normalized_value": {
            "description": "Normalized LinkedIn company page URL.",
            "examples": [
              "https://www.linkedin.com/company/delphainc/"
            ],
            "title": "Normalized Value",
            "type": "string"
          },
          "label": {
            "description": "Label for the LinkedIn value.",
            "enum": [
              "No",
              "OK",
              "Unknown"
            ],
            "examples": [
              "OK"
            ],
            "title": "Label",
            "type": "string"
          },
          "scores": {
            "$ref": "#/components/schemas/ScoresModel",
            "description": "Scores for the field.",
            "examples": [
              {
                "accuracy": 0.8711710601954503,
                "completeness": 1,
                "consistency": 1,
                "validity": 1
              }
            ]
          },
          "recommendations": {
            "description": "Candidate company pages, best first.",
            "examples": [
              [
                {
                  "ambiguity_n": 1,
                  "company_name": "Delpha",
                  "desc": "Delpha · Software Development · Paris, France",
                  "headline": "Delpha",
                  "location": "Paris",
                  "match_score": 0.8711710601954503,
                  "rank": 1,
                  "score": 0.8711710601954503,
                  "url": "https://www.linkedin.com/company/delphainc/"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/LinkedInCompanyPageRecommendation"
            },
            "title": "Recommendations",
            "type": "array"
          },
          "recommendation_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reading of the recommendation situation: 'confident' (one clear winner), 'ambiguous' (several candidates match comparably well — see each candidate's ambiguity_n), or 'no_match' (no credible page found). Vocabulary may grow; treat unknown values as informational.",
            "examples": [
              "confident"
            ],
            "title": "Recommendation Status"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The social network the assessed value belongs to. Always `linkedin` on these operations — Delpha assesses no other network today — it is provenance, not a discriminator.",
            "examples": [
              "linkedin"
            ],
            "title": "Type"
          }
        },
        "required": [
          "data_type",
          "normalized_value",
          "label",
          "scores",
          "recommendations"
        ],
        "title": "LinkedInCompanyPageModel",
        "type": "object"
      },
      "LinkedInCompanyPageRecommendation": {
        "description": "A candidate LinkedIn company page for the company in the request.",
        "properties": {
          "url": {
            "description": "Recommended LinkedIn company page URL (a `/company/`, `/school/` or `/showcase/` page).",
            "examples": [
              "https://www.linkedin.com/company/delphainc/"
            ],
            "title": "Url",
            "type": "string"
          },
          "score": {
            "description": "Confidence score for the recommendation.",
            "examples": [
              0.8711710601954503
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Score",
            "type": "number"
          },
          "headline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The search result's headline — the title line Google renders for this page, usually the page name.",
            "examples": [
              "Delpha"
            ],
            "title": "Headline"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Rank of the recommendation.",
            "examples": [
              1
            ],
            "title": "Rank"
          },
          "desc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Description of the recommended page, as the search result renders it.",
            "examples": [
              "Delpha · Software Development · Paris, France"
            ],
            "title": "Desc"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company name shown on the recommended page.",
            "examples": [
              "Delpha"
            ],
            "title": "Company Name"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Location shown on the recommended page.",
            "examples": [
              "Paris"
            ],
            "title": "Location"
          },
          "match_score": {
            "anyOf": [
              {
                "maximum": 1,
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pure match quality of this candidate against the company in the request, before the ambiguity division. `score` = `match_score / ambiguity_n`.",
            "examples": [
              0.8711710601954503
            ],
            "title": "Match Score"
          },
          "ambiguity_n": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How many candidates scored within 10% of the best match. Greater than 1 means several pages match comparably well and the divided `score` reflects that ambiguity, not a poor match.",
            "examples": [
              1
            ],
            "title": "Ambiguity N"
          }
        },
        "required": [
          "url",
          "score"
        ],
        "title": "LinkedInCompanyPageRecommendation",
        "type": "object"
      },
      "LinkedInCompanyPagePullOutput": {
        "additionalProperties": true,
        "description": "Response after retrieving the status and result of a LinkedIn company page job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "Job succeeded.",
              "Job is still running.",
              "Input validation failed.",
              "Failed to retrieve job.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkedInCompanyPageModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The result of the LinkedIn company page job.",
            "examples": [
              {
                "data_type": "social_network",
                "label": "OK",
                "normalized_value": "https://www.linkedin.com/company/delphainc/",
                "recommendation_status": "confident",
                "recommendations": [
                  {
                    "ambiguity_n": 1,
                    "company_name": "Delpha",
                    "desc": "Delpha · Software Development · Paris, France",
                    "headline": "Delpha",
                    "location": "Paris",
                    "match_score": 0.8711710601954503,
                    "rank": 1,
                    "score": 0.8711710601954503,
                    "url": "https://www.linkedin.com/company/delphainc/"
                  }
                ],
                "scores": {
                  "accuracy": 0.8711710601954503,
                  "completeness": 1,
                  "consistency": 1,
                  "validity": 1
                },
                "type": "linkedin"
              },
              null,
              null,
              null,
              null
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              0.123,
              5,
              10,
              15,
              200
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "LinkedInCompanyPagePullOutput",
        "type": "object"
      },
      "UltimateSubmitInput": {
        "additionalProperties": false,
        "description": "Payload to submit a new ultimate-parent resolution job.",
        "properties": {
          "company_name": {
            "description": "Free-form company name as it appears commercially or legally (e.g. `Sephora Brasil`, `Waymo`, `Acme Corp`). Required.",
            "examples": [
              "Sephora Brasil",
              "Waymo",
              "Acme Corp"
            ],
            "minLength": 1,
            "title": "Company Name",
            "type": "string"
          },
          "website": {
            "description": "Company's primary website, as a URL or a bare domain (e.g. `https://www.sephora.com.br/` or `waymo.com`). Required — the anchor of the resolution: it binds the name to a specific entity and seeds the web search.",
            "examples": [
              "https://www.sephora.com.br/",
              "waymo.com",
              "acme.com"
            ],
            "minLength": 1,
            "title": "Website",
            "type": "string"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional country to disambiguate when the website's jurisdiction is unclear (e.g. `France`, `United States`, `Germany`). Free-form name; not constrained to ISO codes.",
            "examples": [
              "Brazil",
              "United States",
              "Germany"
            ],
            "title": "Country"
          }
        },
        "required": [
          "company_name",
          "website"
        ],
        "title": "UltimateSubmitInput",
        "type": "object"
      },
      "UltimateSubmitOutput": {
        "additionalProperties": true,
        "description": "Response after submitting an ultimate-parent resolution job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job ID. Required if status_code <= 300.",
            "examples": [
              "4e8a7b3c-1234-5678-90ab-cdef12345678",
              null,
              null,
              null,
              null
            ],
            "title": "Job Id"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Job submitted",
              "company_name: Field required",
              "client_id or user_pool_id missing for client name lookup.",
              "Payment Required",
              "Failed to enqueue job: ..."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code to return",
            "examples": [
              202,
              400,
              401,
              402,
              502
            ],
            "title": "Status Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "UltimateSubmitOutput",
        "type": "object"
      },
      "CompanyEntity": {
        "additionalProperties": true,
        "description": "A single entity in the corporate hierarchy — used for the ultimate parent and each link of the ownership chain.",
        "properties": {
          "legal_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The official legal name of the entity.",
            "examples": [
              "LVMH MOET HENNESSY LOUIS VUITTON SE"
            ],
            "title": "Legal Name"
          },
          "commercial_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The commonly-used commercial / trade name.",
            "examples": [
              "LVMH"
            ],
            "title": "Commercial Name"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The country where the entity is headquartered or registered.",
            "examples": [
              "France"
            ],
            "title": "Country"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The entity's primary website URL.",
            "examples": [
              "https://www.lvmh.com/"
            ],
            "title": "Website"
          },
          "website_validated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "True if the website was reachable and resolved cleanly during normalization.",
            "title": "Website Validated"
          },
          "lei_data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LeiData"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "GLEIF Legal Entity Identifier metadata. Null if no match was found at >=80 fuzzy-match score."
          },
          "is_ultimate_financial_parent": {
            "default": false,
            "description": "True for the chain entity that the resolver identified as the ultimate financial parent (when it differs from the commercial parent returned as `ultimate_parent`).",
            "title": "Is Ultimate Financial Parent",
            "type": "boolean"
          },
          "entity_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The entity's legal form / classification as identified by the resolver (e.g., 'Corporation', 'Holding Shell/Foundation', 'Trust').",
            "examples": [
              "Corporation",
              "Holding Shell/Foundation"
            ],
            "title": "Entity Type"
          },
          "ownership_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Free-form ownership status of the entity as reported by the resolver (e.g., 'Unknown', 'Active').",
            "examples": [
              "Unknown"
            ],
            "title": "Ownership Status"
          },
          "is_discarded": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "True when the resolver excluded this entity from the strategic operating chain (e.g., passive holding companies above an operating conglomerate). Lets callers distinguish operating links from holding overlays.",
            "title": "Is Discarded"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Per-entity annotation from the resolver (e.g., 'Target operating entity', 'Passive holding for control purposes').",
            "examples": [
              "Target operating entity"
            ],
            "title": "Comment"
          }
        },
        "title": "CompanyEntity",
        "type": "object"
      },
      "CrmLookup": {
        "additionalProperties": true,
        "description": "What finding this company in your own system takes: the identifiers, a query\nper common dialect with those identifiers already substituted, and the fields\naccount matching scores.",
        "properties": {
          "identifiers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CrmLookupIdentifiers"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Search terms for your own system, harvested from the ultimate parent and every link in the ownership chain. They are not the reference: `matchAccounts`'s `reference` is the ultimate parent alone. A `lei` or `legal_id` here may belong to a subsidiary, and one sent as the reference's own identifier scores a confidently wrong match."
          },
          "candidate_fields": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The fields `matchAccounts` scores, and what each one means — so rows can be formatted without guessing.",
            "title": "Candidate Fields"
          },
          "templates": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CrmLookupTemplates"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A query per dialect, pre-filled with the identifiers above, over the standard columns each platform names."
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the rows a template returns become an account-match request.",
            "examples": [
              "Each template returns at most 100 rows of the customer's own system; mapped onto the candidate fields above, they are the `candidates` of `matchAccounts` (the MCP tool of that name, or `POST /v1/account-match` over REST), with the ultimate parent as `reference`."
            ],
            "title": "Note"
          }
        },
        "title": "CrmLookup",
        "type": "object"
      },
      "CrmLookupIdentifiers": {
        "additionalProperties": true,
        "description": "What to search your own system for — the whole chain, not the reference.\n\nHarvested from the ultimate parent AND every link in the ownership chain,\nbecause a subsidiary is often filed in a CRM under its own name, domain or\nregistration number rather than the parent's. That breadth is the point\nwhen searching, and a trap when building the match request: the\n`reference` you send to `matchAccounts` is the **ultimate parent alone**.",
        "properties": {
          "domains": {
            "description": "Root domains of the ultimate parent and every chain link, deduped. The sharpest single filter: a website match is the one signal the matcher treats as decisive.",
            "examples": [
              [
                "cma-cgm.com",
                "cevalogistics.com"
              ]
            ],
            "items": {
              "type": "string"
            },
            "title": "Domains",
            "type": "array"
          },
          "name_tokens": {
            "description": "Legal and commercial names of the parent and every chain link — a subsidiary is often filed in a CRM under a name the parent never uses.",
            "examples": [
              [
                "CMA CGM S.A.",
                "CMA CGM",
                "CEVA Logistics AG"
              ]
            ],
            "items": {
              "type": "string"
            },
            "title": "Name Tokens",
            "type": "array"
          },
          "legal_ids": {
            "description": "National registration identifiers found for these entities.",
            "items": {
              "$ref": "#/components/schemas/CrmLookupLegalId"
            },
            "title": "Legal Ids",
            "type": "array"
          },
          "lei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The first Legal Entity Identifier found on the chain.",
            "examples": [
              "969500FB8M2VLPYCBM94"
            ],
            "title": "Lei"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The ultimate parent's country.",
            "examples": [
              "France"
            ],
            "title": "Country"
          }
        },
        "title": "CrmLookupIdentifiers",
        "type": "object"
      },
      "CrmLookupLegalId": {
        "additionalProperties": true,
        "description": "One national registration identifier, with the jurisdiction that issued it.",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The identifier itself.",
            "examples": [
              "562024422"
            ],
            "title": "Value"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The issuing jurisdiction, ISO 3166-1 alpha-2 where known.",
            "examples": [
              "FR"
            ],
            "title": "Type"
          },
          "legal_id_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The registry this identifier belongs to, in the form the account matcher compares (`FRA - SIREN`). Present only where the registry is certain; send it unchanged as the reference's `legal_id_type`.",
            "examples": [
              "FRA - SIREN"
            ],
            "title": "Legal Id Type"
          }
        },
        "title": "CrmLookupLegalId",
        "type": "object"
      },
      "CrmLookupTemplates": {
        "additionalProperties": true,
        "description": "One runnable query per common dialect, already filled in.",
        "properties": {
          "soql": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Salesforce SOQL over the standard Account object.",
            "examples": [
              "SELECT Id, Name, Website, BillingCountry FROM Account WHERE Website LIKE '%cma-cgm.com%' OR Name LIKE '%CMA CGM%' LIMIT 100"
            ],
            "title": "Soql"
          },
          "sql": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ANSI-ish SQL over a warehouse `accounts` table.",
            "examples": [
              "SELECT id, name, website, country FROM accounts WHERE website ILIKE '%cma-cgm.com%' LIMIT 100"
            ],
            "title": "Sql"
          },
          "hubspot_search": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Body for HubSpot's CRM search API, which has no query language. Filter groups are OR'd, filters within a group are AND'd.",
            "title": "Hubspot Search"
          }
        },
        "title": "CrmLookupTemplates",
        "type": "object"
      },
      "LeiData": {
        "additionalProperties": true,
        "description": "GLEIF Legal Entity Identifier metadata, populated by a follow-up GLEIF lookup.",
        "properties": {
          "lei_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The 20-character LEI identifier.",
            "examples": [
              "549300J5GHZRZ7BCMZ09"
            ],
            "title": "Lei Number"
          },
          "lei_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The source of the LEI lookup (typically 'GLEIF').",
            "examples": [
              "GLEIF"
            ],
            "title": "Lei Source"
          },
          "legal_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The official legal name as registered with the LEI authority.",
            "examples": [
              "LVMH MOET HENNESSY LOUIS VUITTON SE"
            ],
            "title": "Legal Name"
          },
          "headquarters_address": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Headquarters postal address from the LEI registry. May be a structured dict or a formatted string.",
            "examples": [
              "22 AVENUE MONTAIGNE, 75008 PARIS, FRANCE"
            ],
            "title": "Headquarters Address"
          },
          "legal_jurisdiction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Legal jurisdiction (ISO 3166-1 alpha-2 country code).",
            "examples": [
              "FR"
            ],
            "title": "Legal Jurisdiction"
          },
          "legal_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "National legal identifier (e.g., SIREN in France).",
            "examples": [
              "775670417"
            ],
            "title": "Legal Id"
          },
          "registered_at": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Registration authority data from the LEI registry. May be a structured dict with code/jurisdictions or an ISO date string.",
            "examples": [
              "2012-09-25"
            ],
            "title": "Registered At"
          }
        },
        "title": "LeiData",
        "type": "object"
      },
      "RelationshipType": {
        "description": "How the requested company relates to its ultimate parent.",
        "enum": [
          "Wholly Owned",
          "Member Firm/Franchise",
          "Portfolio Company",
          "Brand/Division",
          "Independent",
          "Joint Venture"
        ],
        "title": "RelationshipType",
        "type": "string"
      },
      "UltimateResult": {
        "additionalProperties": true,
        "description": "The corporate hierarchy resolution: ultimate parent, ownership chain, and supporting evidence.",
        "properties": {
          "ultimate_parent": {
            "$ref": "#/components/schemas/CompanyEntity",
            "description": "The commercial parent of the requested company: the operating group it is sold to and routed under.",
            "examples": [
              {
                "comment": "Target operating entity",
                "commercial_name": "LVMH",
                "country": "France",
                "entity_type": "Corporation",
                "legal_name": "LVMH MOET HENNESSY LOUIS VUITTON SE",
                "ownership_status": "Unknown",
                "website": "https://www.lvmh.com/"
              }
            ]
          },
          "relationship_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RelationshipType"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the requested company relates to the ultimate parent."
          },
          "confidence": {
            "description": "Resolver-reported confidence score in the resolved ultimate parent, from 0 to 1.",
            "examples": [
              0.95
            ],
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "type": "number"
          },
          "ownership_chain": {
            "description": "Ordered chain from the requested company up to the ultimate parent. Empty if the requested company IS the ultimate parent. May contain intermediate holding entities; the entity with `is_ultimate_financial_parent=True` (if any) is also exposed at top level as `ultimate_financial_parent` for convenience.",
            "items": {
              "$ref": "#/components/schemas/CompanyEntity"
            },
            "title": "Ownership Chain",
            "type": "array"
          },
          "ultimate_financial_parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyEntity"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Populated only when the ultimate financial parent differs from the commercial parent returned as `ultimate_parent` (e.g., a fund above the operating group is the actual financial owner). When populated, this is the same object as the chain entity whose `is_ultimate_financial_parent` is True."
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The resolver's reasoning for the resolved hierarchy, as text. Useful for verification / auditability.",
            "examples": [
              "Per LVMH 2024 annual report, Christian Dior SE holds 41.4% ..."
            ],
            "title": "Comment"
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A URL the resolver cited as the basis for its conclusion (typically the parent's IR page or annual report).",
            "examples": [
              "https://www.lvmh.com/group/governance/"
            ],
            "title": "Source Url"
          },
          "subsidiary_commercial_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The resolver's normalized commercial name for the queried (input) company. Useful when callers pass a fuzzy or legal name and want to see how it was resolved.",
            "examples": [
              "Sephora Brasil"
            ],
            "title": "Subsidiary Commercial Name"
          },
          "ultimate_parent_source_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The authority level of the evidence the resolver relied on for the ultimate-parent conclusion (e.g., 'Securities Filing', 'Annual Report', 'Press Release').",
            "examples": [
              "Securities Filing"
            ],
            "title": "Ultimate Parent Source Level"
          },
          "evidence_summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "One-line trace summarizing the resolver's reasoning steps (identity verification, chain traversal, discard logic, GTM selection). Useful for audit and debugging.",
            "examples": [
              "Identity: Sephora SAS verified | Chain: Sephora SAS -> LVMH ... | Protocol: 6 | Discard Check: ... | GTM Selection: LVMH selected as the active Operating Conglomerate"
            ],
            "title": "Evidence Summary"
          },
          "is_self_ultimate": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "True when the queried company is its own ultimate parent (no further hierarchy above it).",
            "title": "Is Self Ultimate"
          },
          "crm_lookup": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CrmLookup"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Everything needed to find this company in your own system: the identifiers to search for, a runnable query for each common dialect, the candidate schema, and what to do with the rows. Present on a finished result retrieved through the Delpha MCP server; the same queries and candidate fields are documented in full on the Account match page."
          }
        },
        "required": [
          "ultimate_parent",
          "confidence"
        ],
        "title": "UltimateResult",
        "type": "object"
      },
      "UltimatePullOutput": {
        "additionalProperties": true,
        "description": "Response after retrieving the status and result of an ultimate-parent job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "description": "The job ID echoed back from the request.",
            "examples": [
              "4e8a7b3c-1234-5678-90ab-cdef12345678"
            ],
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "Job succeeded.",
              "Job is still running.",
              "Missing job_id in path parameters",
              "client_id or user_pool_id missing for client name lookup.",
              "No job found for job_id: 4e8a7b3c-1234-5678-90ab-cdef12345678",
              "Lambda crashed or failed after retries before writing result",
              "UPSTREAM_SCHEMA_DRIFT: row contains no ultimate_parent_legal_name ..."
            ],
            "title": "Message"
          },
          "status": {
            "description": "The status of the process. Note: SUCCESS at status_code=202 means 'still running'.",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state. 404 means the job id was never issued.",
            "examples": [
              200,
              202,
              400,
              401,
              404,
              500,
              502
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UltimateResult"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The corporate hierarchy resolution. Present only when status_code == 200.",
            "examples": [
              {
                "comment": "Per LVMH 2024 annual report, Christian Dior SE holds 41.4% ...",
                "confidence": 0.95,
                "evidence_summary": "Identity: Sephora SAS verified | Chain: Sephora SAS -> LVMH ... | Protocol: 6 | Discard Check: ... | GTM Selection: LVMH selected as the active Operating Conglomerate",
                "source_url": "https://www.lvmh.com/group/governance/",
                "subsidiary_commercial_name": "Sephora Brasil",
                "ultimate_parent": {
                  "comment": "Target operating entity",
                  "commercial_name": "LVMH",
                  "country": "France",
                  "entity_type": "Corporation",
                  "legal_name": "LVMH MOET HENNESSY LOUIS VUITTON SE",
                  "ownership_status": "Unknown",
                  "website": "https://www.lvmh.com/"
                },
                "ultimate_parent_source_level": "Securities Filing"
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          }
        },
        "required": [
          "job_id",
          "status",
          "status_code"
        ],
        "title": "UltimatePullOutput",
        "type": "object"
      },
      "PhoneSyncResult": {
        "additionalProperties": true,
        "description": "The trimmed result payload for a successful synchronous phone assessment.",
        "properties": {
          "normalized_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The normalized E.164 phone value.",
            "examples": [
              "+33672557378"
            ],
            "title": "Normalized Value"
          },
          "phone_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PhoneType"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The type of phone number.",
            "examples": [
              "MOBILE"
            ]
          },
          "carrier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The carrier of the phone number.",
            "examples": [
              "Orange France"
            ],
            "title": "Carrier"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The timezone of the phone number.",
            "examples": [
              "Europe/Paris"
            ],
            "title": "Timezone"
          },
          "zone": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Zone"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The country/zone (ISO code) of the phone number.",
            "examples": [
              "FR"
            ]
          },
          "area": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The geographic area of the phone number.",
            "examples": [
              "France"
            ],
            "title": "Area"
          },
          "valid": {
            "description": "Whether the phone number is valid (carrier-confirmed where available).",
            "examples": [
              true
            ],
            "title": "Valid",
            "type": "boolean"
          },
          "activity_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How recently the line has shown activity, on the second-tier line-type provider's own 0-100 scale. `null` whenever that provider was not consulted — which is the common case, since it is called only to resolve an ambiguous line type.",
            "examples": [
              85
            ],
            "title": "Activity Score"
          },
          "is_prepaid": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether the number is a prepaid line, from the second-tier line-type provider. `null` whenever that provider was not consulted — see `activity_score`.",
            "examples": [
              false
            ],
            "title": "Is Prepaid"
          }
        },
        "required": [
          "valid"
        ],
        "title": "PhoneSyncResult",
        "type": "object"
      },
      "PhoneSyncOutput": {
        "additionalProperties": true,
        "description": "Public response for the synchronous phone validation.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Phone assessment succeeded",
              "Either the phone number must include an international code, or 'country' must be provided",
              "Payment Required",
              "The upstream service returned an unexpected error.",
              "The upstream service is temporarily unavailable. Please retry.",
              "The upstream service timed out. Please retry."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              200,
              400,
              402,
              502,
              503,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PhoneSyncResult"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The phone assessment result. Present when status == 'SUCCESS'.",
            "examples": [
              {
                "activity_score": 85,
                "area": "France",
                "carrier": "Orange France",
                "is_prepaid": false,
                "normalized_value": "+33672557378",
                "phone_type": "MOBILE",
                "timezone": "Europe/Paris",
                "valid": true,
                "zone": "FR"
              }
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The processing time of the request, in seconds.",
            "examples": [
              0.42
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "PhoneSyncOutput",
        "type": "object"
      },
      "EmailBatchSubmitInput": {
        "description": "Batch envelope for `POST /v1/email/batch`: `{\"items\": [...]}` (1..100 items, 422 beyond). Each item follows `EmailSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/email`.",
        "properties": {
          "items": {
            "description": "The batch items (1..100), each a single-route input payload.",
            "items": {
              "$ref": "#/components/schemas/EmailSubmitInput"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "EmailBatchSubmitInput",
        "type": "object"
      },
      "BatchSubmitOutput": {
        "additionalProperties": true,
        "description": "Response after submitting a batch quality job.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job ID. Required if status <= 300.",
            "examples": [
              "21014abc65004d2781d2e0ef4c9fbb46",
              null,
              null,
              null,
              null
            ],
            "title": "Job Id"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items accepted in the batch (present on success).",
            "examples": [
              100,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Batch submitted",
              "Invalid batch payload or size (1..100)",
              "Internal server error",
              "Service unavailable",
              "Payment Required"
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              202,
              422,
              500,
              502,
              402
            ],
            "title": "Status Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "BatchSubmitOutput",
        "type": "object"
      },
      "WebsiteBatchSubmitInput": {
        "description": "Batch envelope for `POST /v1/website/batch`: `{\"items\": [...]}` (1..100 items, 422 beyond). Each item follows `WebsiteSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/website`.",
        "properties": {
          "items": {
            "description": "The batch items (1..100), each a single-route input payload.",
            "items": {
              "$ref": "#/components/schemas/WebsiteSubmitInput"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "WebsiteBatchSubmitInput",
        "type": "object"
      },
      "PhoneBatchSubmitInput": {
        "description": "Batch envelope for `POST /v1/phone/batch`: `{\"items\": [...]}` (1..100 items, 422 beyond). Each item follows `PhoneSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/phone`.",
        "properties": {
          "items": {
            "description": "The batch items (1..100), each a single-route input payload.",
            "items": {
              "$ref": "#/components/schemas/PhoneSubmitInput"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PhoneBatchSubmitInput",
        "type": "object"
      },
      "NameBatchSubmitInput": {
        "description": "Batch envelope for `POST /v1/name/batch`: `{\"items\": [...]}` (1..100 items, 422 beyond). Each item follows `NameSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/name`.",
        "properties": {
          "items": {
            "description": "The batch items (1..100), each a single-route input payload.",
            "items": {
              "$ref": "#/components/schemas/NameSubmitInput"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "NameBatchSubmitInput",
        "type": "object"
      },
      "LegalIDBatchSubmitInput": {
        "description": "Batch envelope for `POST /v1/legal-id/batch`: `{\"items\": [...]}` (1..100 items, 422 beyond). Each item follows `LegalIDSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/legal-id`.",
        "properties": {
          "items": {
            "description": "The batch items (1..100), each a single-route input payload.",
            "items": {
              "$ref": "#/components/schemas/LegalIDSubmitInput"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "LegalIDBatchSubmitInput",
        "type": "object"
      },
      "LinkedInProfileSubmitInputBatchItem": {
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LinkedIn profile URL to validate (e.g. `https://www.linkedin.com/in/jordan-rivera-000000000/`). When set, the operation runs in validation mode. `validity` is a format score: a URL without a scheme (`http://` or `https://`) is answered `validity: 0`, with `normalized_value` unaffected.",
            "examples": [
              "https://www.linkedin.com/in/jordan-rivera-000000000/"
            ],
            "title": "Url"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Employer website, as a URL or a bare domain (e.g. `https://delpha.io/` or `delpha.io`). Ignored when either `first_name` or `last_name` is supplied. Optional.",
            "examples": [
              "https://delpha.io/",
              "delpha.io"
            ],
            "title": "Website"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company the person works at (e.g. `Delpha`). Company affiliation can narrow a name search among people who share a name. Optional.",
            "examples": [
              "Delpha"
            ],
            "title": "Company Name"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Person's given name (e.g. `Jordan`). Required when `url` is not supplied.",
            "examples": [
              "Jordan"
            ],
            "title": "First Name"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Person's family name (e.g. `Rivera`). Pair with `first_name`.",
            "examples": [
              "Rivera"
            ],
            "title": "Last Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "An email at the person's employer domain (e.g. `jordan.rivera@delpha.io`). Its domain supplies `website` when `website` is absent; that website is ignored when either name is supplied. The address itself never leaves Delpha. Optional.",
            "examples": [
              "jordan.rivera@delpha.io"
            ],
            "title": "Email"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The person's country, used to disambiguate the match (e.g. `France` or `FR`). Accepts an ISO 3166-1 alpha-2 code or a plain English country name. Optional.",
            "examples": [
              "France",
              "FR"
            ],
            "title": "Country"
          }
        },
        "title": "LinkedInProfileSubmitInputBatchItem",
        "type": "object"
      },
      "LinkedInProfileBatchSubmitInput": {
        "description": "Batch envelope for `POST /v1/linkedin-profile/batch`: `{\"items\": [...]}` (1..100 items, 422 beyond). Each item follows `LinkedInProfileSubmitInputBatchItem`; see that component for its fields. It uses the runtime validation of `POST /v1/linkedin-profile`.",
        "properties": {
          "items": {
            "description": "The batch items (1..100), each a single-route input payload.",
            "items": {
              "$ref": "#/components/schemas/LinkedInProfileSubmitInputBatchItem"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "LinkedInProfileBatchSubmitInput",
        "type": "object"
      },
      "LinkedInCompanyPageSubmitInputBatchItem": {
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LinkedIn company page URL to validate (e.g. `https://www.linkedin.com/company/delphainc/`). When set, the operation runs in validation mode. `validity` is a format score: a URL without a scheme (`http://` or `https://`) is answered `validity: 0`, with `normalized_value` unaffected.",
            "examples": [
              "https://www.linkedin.com/company/delphainc/"
            ],
            "title": "Url"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company website, as a URL or a bare domain (e.g. `https://delpha.io/` or `delpha.io`). The strongest signal after the name. Optional.",
            "examples": [
              "https://delpha.io/",
              "delpha.io"
            ],
            "title": "Website"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company whose LinkedIn page is being looked up (e.g. `Delpha`). Required when `url` is not supplied. Paired with `website` it narrows the search further.",
            "examples": [
              "Delpha"
            ],
            "title": "Company Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "An email at the company's domain, used only for its domain as a website signal (e.g. `jordan.rivera@delpha.io`); the address itself never leaves Delpha. Optional; an address at an unrelated domain points the search at that domain instead.",
            "examples": [
              "jordan.rivera@delpha.io"
            ],
            "title": "Email"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Country of the company, used to disambiguate the match (e.g. `France` or `FR`). Accepts an ISO 3166-1 alpha-2 code or a plain English country name. Optional.",
            "examples": [
              "France",
              "FR"
            ],
            "title": "Country"
          }
        },
        "title": "LinkedInCompanyPageSubmitInputBatchItem",
        "type": "object"
      },
      "LinkedInCompanyPageBatchSubmitInput": {
        "description": "Batch envelope for `POST /v1/linkedin-company-page/batch`: `{\"items\": [...]}` (1..100 items, 422 beyond). Each item follows `LinkedInCompanyPageSubmitInputBatchItem`; see that component for its fields. It uses the runtime validation of `POST /v1/linkedin-company-page`.",
        "properties": {
          "items": {
            "description": "The batch items (1..100), each a single-route input payload.",
            "items": {
              "$ref": "#/components/schemas/LinkedInCompanyPageSubmitInputBatchItem"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "LinkedInCompanyPageBatchSubmitInput",
        "type": "object"
      },
      "UltimateBatchSubmitInput": {
        "description": "Batch envelope for `POST /v1/ultimate/batch`: `{\"items\": [...]}` (1..100 items, 422 beyond). Each item follows `UltimateSubmitInput`; see that component for its fields. It uses the runtime validation of `POST /v1/ultimate`.",
        "properties": {
          "items": {
            "description": "The batch items (1..100), each a single-route input payload.",
            "items": {
              "$ref": "#/components/schemas/UltimateSubmitInput"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "UltimateBatchSubmitInput",
        "type": "object"
      },
      "CountsModel": {
        "description": "Item-level outcome counts for a completed batch job.",
        "properties": {
          "total": {
            "description": "Total number of items submitted.",
            "examples": [
              100
            ],
            "title": "Total",
            "type": "integer"
          },
          "succeeded": {
            "description": "Number of items that succeeded.",
            "examples": [
              97
            ],
            "title": "Succeeded",
            "type": "integer"
          },
          "failed": {
            "description": "Number of items that failed.",
            "examples": [
              3
            ],
            "title": "Failed",
            "type": "integer"
          }
        },
        "required": [
          "total",
          "succeeded",
          "failed"
        ],
        "title": "CountsModel",
        "type": "object"
      },
      "EmailBatchPullOutput": {
        "additionalProperties": true,
        "description": "Response for `GET /v1/email/batch/{job_id}`. Each `result_data.items[]` entry is keyed to its request item by `dispatch_key` (`{\"record_id\": \"<job_id>#<index>\"}`). On success its `result` is the SAME object `GET /v1/email/{job_id}` returns for a single item. On failure it carries an `error` string instead of `result`.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "97/100 items succeeded",
              "Job is still running.",
              "Missing job_id in path parameters",
              "No job found for job_id: ...",
              "Reservation expired; please resubmit the job.",
              "Job failed.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              404,
              409,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item-level outcome counts (present only once the job has completed).",
            "examples": [
              {
                "failed": 3,
                "succeeded": 97,
                "total": 100
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          },
          "result_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL (1h expiry) to download the full batch result JSON from S3.",
            "examples": [
              "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
              null,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Result Url"
          },
          "result_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full batch result JSON, inlined (opaque). Present only when status_code == 200 and the result file is <=1MB; otherwise omitted (fetch `result_url` instead). Shape: `{job_id, usecase, counts, items: [...]}`; its `result` is the SAME object `GET /v1/email/{job_id}` returns for a single item.",
            "examples": [
              {
                "counts": {
                  "failed": 1,
                  "succeeded": 1,
                  "total": 2
                },
                "items": [
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                    },
                    "result": {
                      "data_type": "email",
                      "email_address_qualification": "Role-based",
                      "email_domain": "example.com",
                      "email_domain_qualification": "nominative@perso",
                      "email_status": "Valid",
                      "label": "OK",
                      "normalized_value": "jordan.rivera@example.com",
                      "provider": "Orange",
                      "scores": {
                        "accuracy": 0.7116992363593002,
                        "completeness": 1,
                        "consistency": 0,
                        "validity": 1
                      },
                      "suggestions": [
                        {
                          "score": 0.7260620227245627,
                          "value": "jordan.rivera@delpha.io"
                        }
                      ],
                      "suggestions_from_website": [
                        {
                          "score": 0.7260620227245627,
                          "value": "jordan.rivera@delpha.io"
                        }
                      ],
                      "website_domain": "delpha.io",
                      "website_domain_qualification": "nominative@pro"
                    }
                  },
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                    },
                    "error": "Processing failed for this item."
                  }
                ],
                "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                "usecase": "email"
              },
              null
            ],
            "title": "Result Data"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total number of items in the batch (present while the job is running).",
            "examples": [
              null,
              100,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "processed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items processed so far (present while the job is running; may be absent early in the job's lifecycle).",
            "examples": [
              null,
              42,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Processed Count"
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              12.3,
              5.0,
              null,
              null,
              null,
              15.0,
              200.0
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "EmailBatchPullOutput",
        "type": "object"
      },
      "WebsiteBatchPullOutput": {
        "additionalProperties": true,
        "description": "Response for `GET /v1/website/batch/{job_id}`. Each `result_data.items[]` entry is keyed to its request item by `dispatch_key` (`{\"record_id\": \"<job_id>#<index>\"}`). On success its `result` is the SAME object `GET /v1/website/{job_id}` returns for a single item. On failure it carries an `error` string instead of `result`.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "97/100 items succeeded",
              "Job is still running.",
              "Missing job_id in path parameters",
              "No job found for job_id: ...",
              "Reservation expired; please resubmit the job.",
              "Job failed.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              404,
              409,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item-level outcome counts (present only once the job has completed).",
            "examples": [
              {
                "failed": 3,
                "succeeded": 97,
                "total": 100
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          },
          "result_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL (1h expiry) to download the full batch result JSON from S3.",
            "examples": [
              "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
              null,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Result Url"
          },
          "result_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full batch result JSON, inlined (opaque). Present only when status_code == 200 and the result file is <=1MB; otherwise omitted (fetch `result_url` instead). Shape: `{job_id, usecase, counts, items: [...]}`; its `result` is the SAME object `GET /v1/website/{job_id}` returns for a single item.",
            "examples": [
              {
                "counts": {
                  "failed": 1,
                  "succeeded": 1,
                  "total": 2
                },
                "items": [
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                    },
                    "result": {
                      "data_type": "website",
                      "label": "OK",
                      "normalized_value": "https://delpha.io/",
                      "recommendations": [
                        {
                          "metadata": {
                            "name": "Delpha",
                            "rank": 1,
                            "summary": "Delpha detects and resolves data issues across Salesforce accounts, contacts and leads.",
                            "title": "Delpha — data quality for Salesforce",
                            "url": "https://delpha.io/"
                          },
                          "score": 0.996,
                          "source_path": [
                            {
                              "name": "Name"
                            }
                          ],
                          "url": "https://delpha.io/"
                        }
                      ],
                      "scores": {
                        "accuracy": 1,
                        "completeness": 1,
                        "consistency": 1,
                        "validity": 1
                      }
                    }
                  },
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                    },
                    "error": "Processing failed for this item."
                  }
                ],
                "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                "usecase": "website"
              },
              null
            ],
            "title": "Result Data"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total number of items in the batch (present while the job is running).",
            "examples": [
              null,
              100,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "processed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items processed so far (present while the job is running; may be absent early in the job's lifecycle).",
            "examples": [
              null,
              42,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Processed Count"
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              12.3,
              5.0,
              null,
              null,
              null,
              15.0,
              200.0
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "WebsiteBatchPullOutput",
        "type": "object"
      },
      "PhoneBatchPullOutput": {
        "additionalProperties": true,
        "description": "Response for `GET /v1/phone/batch/{job_id}`. Each `result_data.items[]` entry is keyed to its request item by `dispatch_key` (`{\"record_id\": \"<job_id>#<index>\"}`). On success its `result` is the SAME object `GET /v1/phone/{job_id}` returns for a single item. On failure it carries an `error` string instead of `result`.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "97/100 items succeeded",
              "Job is still running.",
              "Missing job_id in path parameters",
              "No job found for job_id: ...",
              "Reservation expired; please resubmit the job.",
              "Job failed.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              404,
              409,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item-level outcome counts (present only once the job has completed).",
            "examples": [
              {
                "failed": 3,
                "succeeded": 97,
                "total": 100
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          },
          "result_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL (1h expiry) to download the full batch result JSON from S3.",
            "examples": [
              "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
              null,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Result Url"
          },
          "result_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full batch result JSON, inlined (opaque). Present only when status_code == 200 and the result file is <=1MB; otherwise omitted (fetch `result_url` instead). Shape: `{job_id, usecase, counts, items: [...]}`; its `result` is the SAME object `GET /v1/phone/{job_id}` returns for a single item.",
            "examples": [
              {
                "counts": {
                  "failed": 1,
                  "succeeded": 1,
                  "total": 2
                },
                "items": [
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                    },
                    "result": {
                      "activity_score": 85,
                      "area": "France",
                      "carrier": "Orange France",
                      "data_type": "phone",
                      "is_prepaid": false,
                      "normalized_value": "+33672557378",
                      "phone_type": "MOBILE",
                      "scores": {
                        "accuracy": -1,
                        "completeness": 1,
                        "confidence": 1,
                        "consistency": 1,
                        "validity": 1
                      },
                      "timezone": "Europe/Paris",
                      "zone": "FR"
                    }
                  },
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                    },
                    "error": "Processing failed for this item."
                  }
                ],
                "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                "usecase": "phone"
              },
              null
            ],
            "title": "Result Data"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total number of items in the batch (present while the job is running).",
            "examples": [
              null,
              100,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "processed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items processed so far (present while the job is running; may be absent early in the job's lifecycle).",
            "examples": [
              null,
              42,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Processed Count"
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              12.3,
              5.0,
              null,
              null,
              null,
              15.0,
              200.0
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "PhoneBatchPullOutput",
        "type": "object"
      },
      "NameBatchPullOutput": {
        "additionalProperties": true,
        "description": "Response for `GET /v1/name/batch/{job_id}`. Each `result_data.items[]` entry is keyed to its request item by `dispatch_key` (`{\"record_id\": \"<job_id>#<index>\"}`). On success its `result` is the SAME object `GET /v1/name/{job_id}` returns for a single item. On failure it carries an `error` string instead of `result`.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "97/100 items succeeded",
              "Job is still running.",
              "Missing job_id in path parameters",
              "No job found for job_id: ...",
              "Reservation expired; please resubmit the job.",
              "Job failed.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              404,
              409,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item-level outcome counts (present only once the job has completed).",
            "examples": [
              {
                "failed": 3,
                "succeeded": 97,
                "total": 100
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          },
          "result_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL (1h expiry) to download the full batch result JSON from S3.",
            "examples": [
              "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
              null,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Result Url"
          },
          "result_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full batch result JSON, inlined (opaque). Present only when status_code == 200 and the result file is <=1MB; otherwise omitted (fetch `result_url` instead). Shape: `{job_id, usecase, counts, items: [...]}`; its `result` is the SAME object `GET /v1/name/{job_id}` returns for a single item.",
            "examples": [
              {
                "counts": {
                  "failed": 1,
                  "succeeded": 1,
                  "total": 2
                },
                "items": [
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                    },
                    "result": {
                      "data_type": "name",
                      "label": "OK",
                      "normalized_value": {
                        "first_name": "Jordan",
                        "last_name": "Rivera"
                      },
                      "scores": {
                        "accuracy": 0,
                        "completeness": {
                          "first_name": 1,
                          "last_name": 1
                        },
                        "consistency": {
                          "first_name": 1,
                          "last_name": 0
                        },
                        "misspelled": {
                          "first_name": 0,
                          "last_name": 1
                        },
                        "reversed": 0.192,
                        "validity": {
                          "first_name": 1,
                          "last_name": 1
                        }
                      },
                      "suggestions": {
                        "first_name": [
                          {
                            "score": 1,
                            "value": "Jordan"
                          }
                        ],
                        "last_name": [
                          {
                            "score": 0.91,
                            "value": "GOBET"
                          },
                          {
                            "score": 0.73,
                            "value": "GABET"
                          }
                        ]
                      }
                    }
                  },
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                    },
                    "error": "Processing failed for this item."
                  }
                ],
                "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                "usecase": "name"
              },
              null
            ],
            "title": "Result Data"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total number of items in the batch (present while the job is running).",
            "examples": [
              null,
              100,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "processed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items processed so far (present while the job is running; may be absent early in the job's lifecycle).",
            "examples": [
              null,
              42,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Processed Count"
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              12.3,
              5.0,
              null,
              null,
              null,
              15.0,
              200.0
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "NameBatchPullOutput",
        "type": "object"
      },
      "LegalIDBatchPullOutput": {
        "additionalProperties": true,
        "description": "Response for `GET /v1/legal-id/batch/{job_id}`. Each `result_data.items[]` entry is keyed to its request item by `dispatch_key` (`{\"record_id\": \"<job_id>#<index>\"}`). On success its `result` is the SAME object `GET /v1/legal-id/{job_id}` returns for a single item. On failure it carries an `error` string instead of `result`.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "97/100 items succeeded",
              "Job is still running.",
              "Missing job_id in path parameters",
              "No job found for job_id: ...",
              "Reservation expired; please resubmit the job.",
              "Job failed.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              404,
              409,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item-level outcome counts (present only once the job has completed).",
            "examples": [
              {
                "failed": 3,
                "succeeded": 97,
                "total": 100
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          },
          "result_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL (1h expiry) to download the full batch result JSON from S3.",
            "examples": [
              "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
              null,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Result Url"
          },
          "result_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full batch result JSON, inlined (opaque). Present only when status_code == 200 and the result file is <=1MB; otherwise omitted (fetch `result_url` instead). Shape: `{job_id, usecase, counts, items: [...]}`; its `result` is the SAME object `GET /v1/legal-id/{job_id}` returns for a single item.",
            "examples": [
              {
                "counts": {
                  "failed": 1,
                  "succeeded": 1,
                  "total": 2
                },
                "items": [
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                    },
                    "result": {
                      "data_type": "legal_id",
                      "label": "OK",
                      "legal_id_type": "FRA - SIRET",
                      "match": {
                        "account_name": "DELPHA",
                        "address": {
                          "city": "PARIS 6",
                          "country": "FRANCE",
                          "country_code": "FR",
                          "full_street": "3 AV VAVIN",
                          "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE",
                          "place_name": "Wojo",
                          "postal_code": "75006",
                          "state": "",
                          "street": "AV VAVIN",
                          "street_number": "3"
                        },
                        "company_type": {
                          "legal_id_type_label": null,
                          "legal_type": "SAS, société par actions simplifiée",
                          "legal_type_code": "5710",
                          "value": "PME"
                        },
                        "date": {
                          "birth_date": null,
                          "closing_date": null,
                          "creation_date": "2020-03-11"
                        },
                        "employees_nb": {
                          "max": 9,
                          "min": 6,
                          "range": "1-10",
                          "value": null
                        },
                        "financials": {
                          "currency": "NOK",
                          "equity": 752996000.0,
                          "fiscal_period": {
                            "end_date": "2025-12-31",
                            "start_date": "2025-01-01"
                          },
                          "net_income": 20422000.0,
                          "operating_profit": -5490000.0,
                          "revenue": 62429000.0,
                          "revenue_range": "50-100"
                        },
                        "headquarters_site": {
                          "company_name": "L'OREAL",
                          "legal_id": {
                            "type": "FRA - SIRET",
                            "value": "63201210000012"
                          }
                        },
                        "industry": {
                          "description": "Software Publishers",
                          "type": null,
                          "value": "5112"
                        },
                        "legal_id": "88052440000012",
                        "legal_id_type": "FRA - SIRET",
                        "score": 1,
                        "site_type": "headquarters",
                        "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                        "vat": "FR40632012100",
                        "website": {
                          "url": "https://delpha.io/"
                        }
                      },
                      "normalized_value": "88052440000012",
                      "scores": {
                        "accuracy": 1.0,
                        "completeness": 1,
                        "consistency": 1,
                        "validity": 1
                      },
                      "suggestions": [
                        {
                          "account_name": "DELPHA",
                          "address": {
                            "city": "PARIS 6",
                            "country": "FRANCE",
                            "country_code": "FR",
                            "full_street": "3 AV VAVIN",
                            "location": "3 AV VAVIN, PARIS 6, 75006, FRANCE",
                            "place_name": "Wojo",
                            "postal_code": "75006",
                            "state": "",
                            "street": "AV VAVIN",
                            "street_number": "3"
                          },
                          "company_type": {
                            "legal_id_type_label": null,
                            "legal_type": "SAS, société par actions simplifiée",
                            "legal_type_code": "5710",
                            "value": "PME"
                          },
                          "date": {
                            "birth_date": null,
                            "closing_date": null,
                            "creation_date": "2020-03-11"
                          },
                          "employees_nb": {
                            "max": 9,
                            "min": 6,
                            "range": "1-10",
                            "value": null
                          },
                          "financials": {
                            "currency": "NOK",
                            "equity": 752996000.0,
                            "fiscal_period": {
                              "end_date": "2025-12-31",
                              "start_date": "2025-01-01"
                            },
                            "net_income": 20422000.0,
                            "operating_profit": -5490000.0,
                            "revenue": 62429000.0,
                            "revenue_range": "50-100"
                          },
                          "headquarters_site": {
                            "company_name": "L'OREAL",
                            "legal_id": {
                              "type": "FRA - SIRET",
                              "value": "63201210000012"
                            }
                          },
                          "industry": {
                            "description": "Software Publishers",
                            "type": null,
                            "value": "5112"
                          },
                          "legal_id": "88052440000012",
                          "legal_id_type": "FRA - SIRET",
                          "score": 1,
                          "site_type": "headquarters",
                          "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/88052440000012/",
                          "vat": "FR40632012100",
                          "website": {
                            "url": "https://delpha.io/"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                    },
                    "error": "Processing failed for this item."
                  }
                ],
                "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                "usecase": "legal-id"
              },
              null
            ],
            "title": "Result Data"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total number of items in the batch (present while the job is running).",
            "examples": [
              null,
              100,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "processed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items processed so far (present while the job is running; may be absent early in the job's lifecycle).",
            "examples": [
              null,
              42,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Processed Count"
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              12.3,
              5.0,
              null,
              null,
              null,
              15.0,
              200.0
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "LegalIDBatchPullOutput",
        "type": "object"
      },
      "LinkedInProfileBatchPullOutput": {
        "additionalProperties": true,
        "description": "Response for `GET /v1/linkedin-profile/batch/{job_id}`. Each `result_data.items[]` entry is keyed to its request item by `dispatch_key` (`{\"record_id\": \"<job_id>#<index>\"}`). On success its `result` is the SAME object `GET /v1/linkedin-profile/{job_id}` returns for a single item. On failure it carries an `error` string instead of `result`.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "97/100 items succeeded",
              "Job is still running.",
              "Missing job_id in path parameters",
              "No job found for job_id: ...",
              "Reservation expired; please resubmit the job.",
              "Job failed.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              404,
              409,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item-level outcome counts (present only once the job has completed).",
            "examples": [
              {
                "failed": 3,
                "succeeded": 97,
                "total": 100
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          },
          "result_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL (1h expiry) to download the full batch result JSON from S3.",
            "examples": [
              "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
              null,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Result Url"
          },
          "result_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full batch result JSON, inlined (opaque). Present only when status_code == 200 and the result file is <=1MB; otherwise omitted (fetch `result_url` instead). Shape: `{job_id, usecase, counts, items: [...]}`; its `result` is the SAME object `GET /v1/linkedin-profile/{job_id}` returns for a single item.",
            "examples": [
              {
                "counts": {
                  "failed": 1,
                  "succeeded": 1,
                  "total": 2
                },
                "items": [
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                    },
                    "result": {
                      "data_type": "social_network",
                      "fallback_used": false,
                      "label": "OK",
                      "normalized_value": "https://www.linkedin.com/in/jordan-rivera-000000000/",
                      "recommendation_status": "confident",
                      "recommendations": [
                        {
                          "ambiguity_n": 1,
                          "company_name": "Delpha",
                          "desc": "Data Engineer & Cloud specialist - AWS · Experience: Delpha · Education: ESILV - Ecole Supérieure d'Ingénieurs Léonard de Vinci · Location: Paris · 500+ ...",
                          "headline": "Jordan Rivera - Delpha",
                          "job_title": "Data Engineer & Cloud specialist",
                          "location": "Paris",
                          "match_score": 0.8711710601954503,
                          "profile_name": "Jordan Rivera",
                          "rank": 1,
                          "score": 0.8711710601954503,
                          "url": "https://www.linkedin.com/in/jordan-rivera-000000000/"
                        }
                      ],
                      "scores": {
                        "accuracy": 0.8711710601954503,
                        "completeness": 1,
                        "consistency": 1,
                        "validity": 1
                      },
                      "suggested_url": null,
                      "type": "linkedin",
                      "url_changed": false
                    }
                  },
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                    },
                    "error": "Processing failed for this item."
                  }
                ],
                "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                "usecase": "linkedin-profile"
              },
              null
            ],
            "title": "Result Data"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total number of items in the batch (present while the job is running).",
            "examples": [
              null,
              100,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "processed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items processed so far (present while the job is running; may be absent early in the job's lifecycle).",
            "examples": [
              null,
              42,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Processed Count"
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              12.3,
              5.0,
              null,
              null,
              null,
              15.0,
              200.0
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "LinkedInProfileBatchPullOutput",
        "type": "object"
      },
      "LinkedInCompanyPageBatchPullOutput": {
        "additionalProperties": true,
        "description": "Response for `GET /v1/linkedin-company-page/batch/{job_id}`. Each `result_data.items[]` entry is keyed to its request item by `dispatch_key` (`{\"record_id\": \"<job_id>#<index>\"}`). On success its `result` is the SAME object `GET /v1/linkedin-company-page/{job_id}` returns for a single item. On failure it carries an `error` string instead of `result`.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "97/100 items succeeded",
              "Job is still running.",
              "Missing job_id in path parameters",
              "No job found for job_id: ...",
              "Reservation expired; please resubmit the job.",
              "Job failed.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              404,
              409,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item-level outcome counts (present only once the job has completed).",
            "examples": [
              {
                "failed": 3,
                "succeeded": 97,
                "total": 100
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          },
          "result_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL (1h expiry) to download the full batch result JSON from S3.",
            "examples": [
              "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
              null,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Result Url"
          },
          "result_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full batch result JSON, inlined (opaque). Present only when status_code == 200 and the result file is <=1MB; otherwise omitted (fetch `result_url` instead). Shape: `{job_id, usecase, counts, items: [...]}`; its `result` is the SAME object `GET /v1/linkedin-company-page/{job_id}` returns for a single item.",
            "examples": [
              {
                "counts": {
                  "failed": 1,
                  "succeeded": 1,
                  "total": 2
                },
                "items": [
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                    },
                    "result": {
                      "data_type": "social_network",
                      "label": "OK",
                      "normalized_value": "https://www.linkedin.com/company/delphainc/",
                      "recommendation_status": "confident",
                      "recommendations": [
                        {
                          "ambiguity_n": 1,
                          "company_name": "Delpha",
                          "desc": "Delpha · Software Development · Paris, France",
                          "headline": "Delpha",
                          "location": "Paris",
                          "match_score": 0.8711710601954503,
                          "rank": 1,
                          "score": 0.8711710601954503,
                          "url": "https://www.linkedin.com/company/delphainc/"
                        }
                      ],
                      "scores": {
                        "accuracy": 0.8711710601954503,
                        "completeness": 1,
                        "consistency": 1,
                        "validity": 1
                      },
                      "type": "linkedin"
                    }
                  },
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                    },
                    "error": "Processing failed for this item."
                  }
                ],
                "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                "usecase": "linkedin-company-page"
              },
              null
            ],
            "title": "Result Data"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total number of items in the batch (present while the job is running).",
            "examples": [
              null,
              100,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "processed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items processed so far (present while the job is running; may be absent early in the job's lifecycle).",
            "examples": [
              null,
              42,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Processed Count"
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              12.3,
              5.0,
              null,
              null,
              null,
              15.0,
              200.0
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "LinkedInCompanyPageBatchPullOutput",
        "type": "object"
      },
      "UltimateBatchPullOutput": {
        "additionalProperties": true,
        "description": "Response for `GET /v1/ultimate/batch/{job_id}`. Each `result_data.items[]` entry is keyed to its request item by `dispatch_key` (`{\"record_id\": \"<job_id>#<index>\"}`). On success its `result` is the SAME object `GET /v1/ultimate/{job_id}` returns for a single item (see `UltimateResult`), EXCEPT `relationship_type` here is a **nullable string** rather than the strict enum. On failure it carries an `error` string instead of `result`.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable message describing the current state or outcome of the job.",
            "examples": [
              "97/100 items succeeded",
              "Job is still running.",
              "Missing job_id in path parameters",
              "No job found for job_id: ...",
              "Reservation expired; please resubmit the job.",
              "Job failed.",
              "Job timed out."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code representing the job's current state.",
            "examples": [
              200,
              202,
              400,
              404,
              409,
              500,
              504
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item-level outcome counts (present only once the job has completed).",
            "examples": [
              {
                "failed": 3,
                "succeeded": 97,
                "total": 100
              },
              null,
              null,
              null,
              null,
              null,
              null
            ]
          },
          "result_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL (1h expiry) to download the full batch result JSON from S3.",
            "examples": [
              "https://delpha-api-batch.s3.amazonaws.com/batch-results/<job_id>.json?...",
              null,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Result Url"
          },
          "result_data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The full batch result JSON, inlined (opaque). Present only when status_code == 200 and the result file is <=1MB; otherwise omitted (fetch `result_url` instead). Shape: `{job_id, usecase, counts, items: [...]}`; its `result` is the SAME object `GET /v1/ultimate/{job_id}` returns for a single item (see `UltimateResult`), EXCEPT `relationship_type` here is a **nullable string** rather than the strict enum.",
            "examples": [
              {
                "counts": {
                  "failed": 1,
                  "succeeded": 1,
                  "total": 2
                },
                "items": [
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#0"
                    },
                    "result": {
                      "comment": "Per LVMH 2024 annual report, Christian Dior SE holds 41.4% ...",
                      "confidence": 0.95,
                      "evidence_summary": "Identity: Sephora SAS verified | Chain: Sephora SAS -> LVMH ... | Protocol: 6 | Discard Check: ... | GTM Selection: LVMH selected as the active Operating Conglomerate",
                      "is_self_ultimate": false,
                      "ownership_chain": [],
                      "relationship_type": "Wholly Owned",
                      "source_url": "https://www.lvmh.com/group/governance/",
                      "subsidiary_commercial_name": "Sephora Brasil",
                      "ultimate_financial_parent": null,
                      "ultimate_parent": {
                        "comment": "Target operating entity",
                        "commercial_name": "LVMH",
                        "country": "France",
                        "entity_type": "Corporation",
                        "legal_name": "LVMH MOET HENNESSY LOUIS VUITTON SE",
                        "ownership_status": "Unknown",
                        "website": "https://www.lvmh.com/"
                      },
                      "ultimate_parent_source_level": "Securities Filing"
                    }
                  },
                  {
                    "dispatch_key": {
                      "record_id": "21014abc65004d2781d2e0ef4c9fbb46#1"
                    },
                    "error": "Processing failed for this item."
                  }
                ],
                "job_id": "21014abc65004d2781d2e0ef4c9fbb46",
                "usecase": "ultimate"
              },
              null
            ],
            "title": "Result Data"
          },
          "item_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total number of items in the batch (present while the job is running).",
            "examples": [
              null,
              100,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Item Count"
          },
          "processed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of items processed so far (present while the job is running; may be absent early in the job's lifecycle).",
            "examples": [
              null,
              42,
              null,
              null,
              null,
              null,
              null
            ],
            "title": "Processed Count"
          },
          "process_time": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The total time taken to process the job, in seconds.",
            "examples": [
              12.3,
              5.0,
              null,
              null,
              null,
              15.0,
              200.0
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "UltimateBatchPullOutput",
        "type": "object"
      },
      "Address": {
        "additionalProperties": true,
        "description": "Structured postal address of the company.",
        "properties": {
          "street": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Street address.",
            "examples": [
              "14 RUE ROYALE"
            ],
            "title": "Street"
          },
          "postal_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Postal code.",
            "examples": [
              "75008"
            ],
            "title": "Postal Code"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "City.",
            "examples": [
              "PARIS"
            ],
            "title": "City"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Country name.",
            "examples": [
              "France"
            ],
            "title": "Country"
          },
          "country_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ISO country code.",
            "examples": [
              "FR"
            ],
            "title": "Country Code"
          },
          "coordinates": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Coordinates"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Geographic coordinates.",
            "examples": [
              {
                "latitude": 48.868137,
                "longitude": 2.323306
              }
            ]
          }
        },
        "title": "Address",
        "type": "object"
      },
      "Company": {
        "additionalProperties": true,
        "description": "A single company result from the datalake search.\n\nDelpha's datalake is heterogeneous across source datasets, so this model\npresents a stable, typed public contract: list-or-scalar fields are\nnormalized to lists, ``last_update`` to an ISO-8601 string, and structured\nfields (``address``, ``company_type``, ``parent`` …) into typed sub-models.\nThe long tail of optional enrichment fields (alternate ids, social handles,\nmarket data …) is forwarded untyped via ``extra=\"allow\"``. Validated against\n120 live records (French, foreign, public and SME).",
        "properties": {
          "delpha_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The Delpha internal identifier of the company.",
            "examples": [
              "a9faabec809841a9a4a5b19904754193"
            ],
            "title": "Delpha Id"
          },
          "account_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The name of the company.",
            "examples": [
              "L'OREAL"
            ],
            "title": "Account Name"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Alternative names the company is known by.",
            "examples": [
              [
                "L'OREAL"
              ]
            ],
            "title": "Aliases"
          },
          "input_names": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Raw input names matched against this company.",
            "examples": [
              [
                "loreal"
              ]
            ],
            "title": "Input Names"
          },
          "legal_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The normalized legal identifier.",
            "examples": [
              "63201210000012"
            ],
            "title": "Legal Id"
          },
          "legal_id_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The type of the legal identifier.",
            "examples": [
              "FRA - SIRET"
            ],
            "title": "Legal Id Type"
          },
          "SIREN": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The French SIREN identifier.",
            "examples": [
              "632012100"
            ],
            "title": "Siren"
          },
          "SIRET": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The French SIRET identifier.",
            "examples": [
              "63201210000012"
            ],
            "title": "Siret"
          },
          "NAF": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The NAF/APE activity code.",
            "examples": [
              "2042Z"
            ],
            "title": "Naf"
          },
          "VAT": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The VAT identifier.",
            "examples": [
              "FR40632012100"
            ],
            "title": "Vat"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The website of the company.",
            "examples": [
              "https://www.loreal.com"
            ],
            "title": "Website"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The location label of the company.",
            "examples": [
              "Clichy, France"
            ],
            "title": "Location"
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The structured postal address.",
            "examples": [
              {
                "city": "PARIS",
                "coordinates": {
                  "latitude": 48.868137,
                  "longitude": 2.323306
                },
                "country": "France",
                "country_code": "FR",
                "postal_code": "75008",
                "street": "14 RUE ROYALE"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The status of the company.",
            "examples": [
              "active"
            ],
            "title": "Status"
          },
          "site_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether this record is the company's headquarters: 'headquarters', 'branch', or 'unknown' when the datalake holds no value. Replaces the former boolean 'main_company'. Open vocabulary -- new values may be added, so treat this as a string, not a closed enum.",
            "examples": [
              "headquarters"
            ],
            "title": "Site Type"
          },
          "is_golden": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether this is a golden (master) record.",
            "examples": [
              false
            ],
            "title": "Is Golden"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A free-text description of the company.",
            "examples": [
              "Cosmetics manufacturer."
            ],
            "title": "Description"
          },
          "company_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyType"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The legal / company-type details.",
            "examples": [
              {
                "legal_type": "SA à conseil d'administration",
                "legal_type_code": "5599",
                "value": "SAI"
              }
            ]
          },
          "industry_division": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IndustryDivision"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The industry division / activity.",
            "examples": [
              {
                "desc": "Software Development",
                "type": "SBI",
                "value": "4649"
              }
            ]
          },
          "financials": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Financials"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Filed financial figures for the company's most recent fiscal period, as published by its national register. Replaces the former `annual_revenue` field, which is no longer returned.",
            "examples": [
              {
                "currency": "NOK",
                "equity": 752996000.0,
                "fiscal_period": {
                  "end_date": "2025-04-30",
                  "start_date": "2024-05-01"
                },
                "net_income": 20422000.0,
                "operating_profit": -5490000.0,
                "revenue": 62429000.0,
                "revenue_range": "50-100"
              }
            ]
          },
          "employees_nb": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmployeeCount"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The employee-count details.",
            "examples": [
              {
                "max": 9999,
                "min": 5000,
                "range": "5001-10000",
                "time": 2021,
                "value": 9999
              }
            ]
          },
          "group_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The number of entities in the company's group.",
            "examples": [
              1
            ],
            "title": "Group Size"
          },
          "creation_date": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The creation date(s) of the company.",
            "examples": [
              [
                "1963-01-01"
              ]
            ],
            "title": "Creation Date"
          },
          "parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyRef"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The direct parent company.",
            "examples": [
              {
                "confidence": 100,
                "name": "L'OREAL",
                "value": "8fdd1f132e0844cca31451de152cec34",
                "wikidata_id": "Q160289"
              }
            ]
          },
          "ultimate_parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyRef"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The ultimate parent company.",
            "examples": [
              {
                "confidence": 100,
                "name": "L'OREAL",
                "value": "8fdd1f132e0844cca31451de152cec34",
                "wikidata_id": "Q160289"
              }
            ]
          },
          "headquarters_site": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadquartersSite"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The company's headquarters site, with its legal identifier. Derived from the same datalake link as 'parent', which is retained and carries the parent's Delpha id instead.",
            "examples": [
              {
                "company_name": "L'OREAL",
                "legal_id": {
                  "type": "FRA - SIRET",
                  "value": "63201210000012"
                }
              }
            ]
          },
          "matching_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The Atlas Search relevance score (null for exact legal_id matches).",
            "examples": [
              94.78202056884766
            ],
            "title": "Matching Score"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The datalake source of the company.",
            "examples": [
              "https://annuaire-entreprises.data.gouv.fr/entreprise/63201210000012"
            ],
            "title": "Source"
          },
          "last_update": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The ISO-8601 timestamp of the company's last datalake update.",
            "examples": [
              "2026-01-29T16:20:03.935879+00:00"
            ],
            "title": "Last Update"
          }
        },
        "title": "Company",
        "type": "object"
      },
      "CompanyRef": {
        "additionalProperties": true,
        "description": "Reference to a related company (direct or ultimate parent).",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The referenced company's Delpha id.",
            "examples": [
              "8fdd1f132e0844cca31451de152cec34"
            ],
            "title": "Value"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The referenced company name.",
            "examples": [
              "L'OREAL"
            ],
            "title": "Name"
          },
          "confidence": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link confidence (0-100).",
            "examples": [
              100
            ],
            "title": "Confidence"
          },
          "wikidata_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Wikidata id of the referenced company.",
            "examples": [
              "Q160289"
            ],
            "title": "Wikidata Id"
          }
        },
        "title": "CompanyRef",
        "type": "object"
      },
      "CompanyResult": {
        "additionalProperties": true,
        "description": "The result payload for a successful company search.",
        "properties": {
          "companies": {
            "description": "The list of matching companies for the current page.",
            "examples": [
              [
                {
                  "NAF": "2042Z",
                  "SIREN": "632012100",
                  "SIRET": "63201210000012",
                  "VAT": "FR40632012100",
                  "account_name": "L'OREAL",
                  "address": {
                    "city": "PARIS",
                    "coordinates": {
                      "latitude": 48.868137,
                      "longitude": 2.323306
                    },
                    "country": "France",
                    "country_code": "FR",
                    "postal_code": "75008",
                    "street": "14 RUE ROYALE"
                  },
                  "aliases": [
                    "L'OREAL"
                  ],
                  "company_type": {
                    "legal_type": "SA à conseil d'administration",
                    "legal_type_code": "5599",
                    "value": "SAI"
                  },
                  "creation_date": [
                    "1963-01-01"
                  ],
                  "delpha_id": "a9faabec809841a9a4a5b19904754193",
                  "description": "Cosmetics manufacturer.",
                  "employees_nb": {
                    "max": 9999,
                    "min": 5000,
                    "range": "5001-10000",
                    "time": 2021,
                    "value": 9999
                  },
                  "financials": {
                    "currency": "NOK",
                    "equity": 752996000.0,
                    "fiscal_period": {
                      "end_date": "2025-04-30",
                      "start_date": "2024-05-01"
                    },
                    "net_income": 20422000.0,
                    "operating_profit": -5490000.0,
                    "revenue": 62429000.0,
                    "revenue_range": "50-100"
                  },
                  "group_size": 1,
                  "headquarters_site": {
                    "company_name": "L'OREAL",
                    "legal_id": {
                      "type": "FRA - SIRET",
                      "value": "63201210000012"
                    }
                  },
                  "industry_division": {
                    "desc": "Software Development",
                    "type": "SBI",
                    "value": "4649"
                  },
                  "input_names": [
                    "loreal"
                  ],
                  "is_golden": false,
                  "last_update": "2026-01-29T16:20:03.935879+00:00",
                  "legal_id": "63201210000012",
                  "legal_id_type": "FRA - SIRET",
                  "location": "Clichy, France",
                  "matching_score": 94.78202056884766,
                  "parent": {
                    "confidence": 100,
                    "name": "L'OREAL",
                    "value": "8fdd1f132e0844cca31451de152cec34",
                    "wikidata_id": "Q160289"
                  },
                  "site_type": "headquarters",
                  "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/63201210000012",
                  "status": "active",
                  "ultimate_parent": {
                    "confidence": 100,
                    "name": "L'OREAL",
                    "value": "8fdd1f132e0844cca31451de152cec34",
                    "wikidata_id": "Q160289"
                  },
                  "website": "https://www.loreal.com"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/Company"
            },
            "title": "Companies",
            "type": "array"
          },
          "count": {
            "description": "The number of companies on this page (i.e. ``len(companies)``).",
            "examples": [
              10
            ],
            "title": "Count",
            "type": "integer"
          },
          "total": {
            "description": "The true number of matching companies. A lower bound when ``total_is_lower_bound`` is true.",
            "examples": [
              137
            ],
            "title": "Total",
            "type": "integer"
          },
          "total_is_lower_bound": {
            "default": false,
            "description": "When true, ``total`` is a floor — render as '{total}+'.",
            "examples": [
              false
            ],
            "title": "Total Is Lower Bound",
            "type": "boolean"
          },
          "filtered_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The number of companies **strictly** matching every active filter facet (industry, creation date, employee range, city, country) — records missing that facet's value are excluded, unlike ``total``. Exact up to 1000, else a floor. ``null`` when no facet is active. It is the count behind an 'N match your filters' headline.",
            "examples": [
              12
            ],
            "title": "Filtered Total"
          },
          "filtered_total_is_lower_bound": {
            "default": false,
            "description": "When true, ``filtered_total`` is a floor — render as '{filtered_total}+'.",
            "examples": [
              false
            ],
            "title": "Filtered Total Is Lower Bound",
            "type": "boolean"
          },
          "page": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 1,
            "description": "The 1-based page number returned, or `null` when the page was addressed by `cursor` — a cursor is a position in the result set, not a page number.",
            "examples": [
              1
            ],
            "title": "Page"
          },
          "page_size": {
            "default": 10,
            "description": "The number of companies per page.",
            "examples": [
              10
            ],
            "title": "Page Size",
            "type": "integer"
          },
          "has_more": {
            "default": false,
            "description": "Whether a further page of results exists — page with this.",
            "examples": [
              true
            ],
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Opaque cursor for the next page: send it back as `cursor` with the same search parameters. `null` when there is no further page. Authoritative — walk until it is `null` rather than counting against `total`.",
            "examples": [
              "eyJjIjoiZXlKaElqb2lVVEJHUWxVd2JGSlRWazVKVVZoa1RpSXNJbXdpT25SeWRXVXNJbTRpT2pFd01Dd2lkaUk2TVgwIiwicSI6IjZiOWNlMDAwNDY3ZTY0MzAiLCJ2IjoxfQ"
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "companies",
          "count",
          "total"
        ],
        "title": "CompanyResult",
        "type": "object"
      },
      "CompanyType": {
        "additionalProperties": true,
        "description": "Legal / company-type details.",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Company type value.",
            "examples": [
              "SAI"
            ],
            "title": "Value"
          },
          "legal_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Legal type label.",
            "examples": [
              "SA à conseil d'administration"
            ],
            "title": "Legal Type"
          },
          "legal_type_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Legal type code.",
            "examples": [
              "5599"
            ],
            "title": "Legal Type Code"
          }
        },
        "title": "CompanyType",
        "type": "object"
      },
      "Coordinates": {
        "additionalProperties": true,
        "description": "Geographic coordinates of an address.",
        "properties": {
          "latitude": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Latitude.",
            "examples": [
              48.868137
            ],
            "title": "Latitude"
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Longitude.",
            "examples": [
              2.323306
            ],
            "title": "Longitude"
          }
        },
        "title": "Coordinates",
        "type": "object"
      },
      "EmployeeCount": {
        "additionalProperties": true,
        "description": "Employee-count details.",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Headcount.",
            "examples": [
              9999
            ],
            "title": "Value"
          },
          "min": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Lower bound of the range.",
            "examples": [
              5000
            ],
            "title": "Min"
          },
          "max": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upper bound of the range.",
            "examples": [
              9999
            ],
            "title": "Max"
          },
          "range": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Bucketed range.",
            "examples": [
              "5001-10000"
            ],
            "title": "Range"
          },
          "time": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reference year.",
            "examples": [
              2021
            ],
            "title": "Time"
          }
        },
        "title": "EmployeeCount",
        "type": "object"
      },
      "IndustryDivision": {
        "additionalProperties": true,
        "description": "Industry division / activity classification.",
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Division / activity code.",
            "examples": [
              "4649"
            ],
            "title": "Value"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Classification system.",
            "examples": [
              "SBI"
            ],
            "title": "Type"
          },
          "desc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Human-readable description.",
            "examples": [
              "Software Development"
            ],
            "title": "Desc"
          }
        },
        "title": "IndustryDivision",
        "type": "object"
      },
      "CompanyOutput": {
        "additionalProperties": true,
        "description": "Public response for the company datalake search.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "The message to return",
            "examples": [
              "Company search succeeded",
              "Either 'account_name', 'legal_id' or 'search_str' is required",
              "Payment Required",
              "Service unavailable",
              "`page` and `cursor` are mutually exclusive; send one or the other."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              200,
              400,
              402,
              502,
              422
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyResult"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The company search result. Present when status == 'SUCCESS'.",
            "examples": [
              {
                "companies": [
                  {
                    "NAF": "2042Z",
                    "SIREN": "632012100",
                    "SIRET": "63201210000012",
                    "VAT": "FR40632012100",
                    "account_name": "L'OREAL",
                    "address": {
                      "city": "PARIS",
                      "coordinates": {
                        "latitude": 48.868137,
                        "longitude": 2.323306
                      },
                      "country": "France",
                      "country_code": "FR",
                      "postal_code": "75008",
                      "street": "14 RUE ROYALE"
                    },
                    "aliases": [
                      "L'OREAL"
                    ],
                    "company_type": {
                      "legal_type": "SA à conseil d'administration",
                      "legal_type_code": "5599",
                      "value": "SAI"
                    },
                    "creation_date": [
                      "1963-01-01"
                    ],
                    "delpha_id": "a9faabec809841a9a4a5b19904754193",
                    "description": "Cosmetics manufacturer.",
                    "employees_nb": {
                      "max": 9999,
                      "min": 5000,
                      "range": "5001-10000",
                      "time": 2021,
                      "value": 9999
                    },
                    "financials": {
                      "currency": "NOK",
                      "equity": 752996000.0,
                      "fiscal_period": {
                        "end_date": "2025-04-30",
                        "start_date": "2024-05-01"
                      },
                      "net_income": 20422000.0,
                      "operating_profit": -5490000.0,
                      "revenue": 62429000.0,
                      "revenue_range": "50-100"
                    },
                    "group_size": 1,
                    "headquarters_site": {
                      "company_name": "L'OREAL",
                      "legal_id": {
                        "type": "FRA - SIRET",
                        "value": "63201210000012"
                      }
                    },
                    "industry_division": {
                      "desc": "Software Development",
                      "type": "SBI",
                      "value": "4649"
                    },
                    "input_names": [
                      "loreal"
                    ],
                    "is_golden": false,
                    "last_update": "2026-01-29T16:20:03.935879+00:00",
                    "legal_id": "63201210000012",
                    "legal_id_type": "FRA - SIRET",
                    "location": "Clichy, France",
                    "matching_score": 94.78202056884766,
                    "parent": {
                      "confidence": 100,
                      "name": "L'OREAL",
                      "value": "8fdd1f132e0844cca31451de152cec34",
                      "wikidata_id": "Q160289"
                    },
                    "site_type": "headquarters",
                    "source": "https://annuaire-entreprises.data.gouv.fr/entreprise/63201210000012",
                    "status": "active",
                    "ultimate_parent": {
                      "confidence": 100,
                      "name": "L'OREAL",
                      "value": "8fdd1f132e0844cca31451de152cec34",
                      "wikidata_id": "Q160289"
                    },
                    "website": "https://www.loreal.com"
                  }
                ],
                "count": 10,
                "filtered_total": 12,
                "filtered_total_is_lower_bound": false,
                "has_more": true,
                "next_cursor": "eyJjIjoiZXlKaElqb2lVVEJHUWxVd2JGSlRWazVKVVZoa1RpSXNJbXdpT25SeWRXVXNJbTRpT2pFd01Dd2lkaUk2TVgwIiwicSI6IjZiOWNlMDAwNDY3ZTY0MzAiLCJ2IjoxfQ",
                "page": 1,
                "page_size": 10,
                "total": 137,
                "total_is_lower_bound": false
              }
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The processing time of the request, in seconds.",
            "examples": [
              0.42
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "CompanyOutput",
        "type": "object"
      },
      "CandidateEntity": {
        "additionalProperties": false,
        "description": "One of your own records, formatted onto the fields Delpha scores.",
        "properties": {
          "id": {
            "description": "Your own identifier for this record. Opaque to Delpha, echoed back on the match so you can act on it. The candidate list is not archived; a record returned as a match — its id, its name and the values compared — is kept in your team's resolution history for the retention the team configured, unless that retention is 0.",
            "examples": [
              "0011t00000XyZaBAAV"
            ],
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "The record's name, as your system holds it. At most 255 characters — the width of the name field in the systems you are copying from. A longer value usually means a different column was mapped.",
            "examples": [
              "CMA CGM"
            ],
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The record's website, in any form; Delpha derives the root domain.",
            "examples": [
              "https://www.cma-cgm.com"
            ],
            "title": "Website"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The record's country, in the same forms as the reference's `country`.",
            "examples": [
              "France"
            ],
            "title": "Country"
          },
          "legal_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The record's national registration identifier.",
            "examples": [
              "562024422"
            ],
            "title": "Legal Id"
          },
          "legal_id_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What this record's `legal_id` is. Any string.",
            "examples": [
              "FRA - SIREN"
            ],
            "title": "Legal Id Type"
          },
          "lei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The record's Legal Entity Identifier, when your system holds one.",
            "examples": [
              "969500FB8M2VLPYCBM94"
            ],
            "title": "Lei"
          },
          "hierarchy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HierarchySignal"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How large this record's account hierarchy is. The strongest single signal when you can supply it: a corporate parent almost always sits at the top of the biggest tree among your candidates."
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "CandidateEntity",
        "type": "object"
      },
      "HierarchySignal": {
        "additionalProperties": false,
        "description": "How large a candidate's account hierarchy is, and what the count means.",
        "properties": {
          "value": {
            "description": "How many accounts this record's hierarchy contains, counted the way `kind` says. Any consistent count works — Delpha compares candidates against each other, never against an absolute scale.",
            "examples": [
              42
            ],
            "minimum": 0,
            "title": "Value",
            "type": "integer"
          },
          "kind": {
            "description": "What `value` counts. `descendants`: the whole sub-tree. `descendants_depth5`: the sub-tree down to five levels (what the Delpha Salesforce package stores). `direct_children`: immediate children only. `is_root`: 1 when the record has no parent, 0 otherwise. `other`: a count of your own definition. The kind sets how much weight the signal carries, so an honest `direct_children` beats a `descendants` you cannot produce.",
            "enum": [
              "descendants",
              "descendants_depth5",
              "direct_children",
              "is_root",
              "other"
            ],
            "examples": [
              "descendants_depth5"
            ],
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "value",
          "kind"
        ],
        "title": "HierarchySignal",
        "type": "object"
      },
      "ReferenceEntity": {
        "additionalProperties": false,
        "description": "The entity being searched for — what the candidates are ranked against.",
        "properties": {
          "legal_name": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The registered legal name of the entity you are looking for.",
            "examples": [
              "CMA CGM S.A."
            ],
            "title": "Legal Name"
          },
          "commercial_name": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The trading or brand name, when it differs from the legal name.",
            "examples": [
              "CMA CGM"
            ],
            "title": "Commercial Name"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The entity's website. Delpha derives the root domain itself, so any form works — with or without scheme, `www.` or a path.",
            "examples": [
              "https://www.cma-cgm.com"
            ],
            "title": "Website"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The entity's country: its English name, a common alias or its ISO 3166 alpha-2 or alpha-3 code (`France`, `FR`, `FRA`), in any case. Compared with each candidate's country as an ISO code, so `NL` and `Netherlands` agree. A country either side cannot identify is not compared (reason `incomparable`), never counted as a conflict.",
            "examples": [
              "France"
            ],
            "title": "Country"
          },
          "legal_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A national registration identifier. Compared after stripping spaces and punctuation, so formatting differences do not matter.",
            "examples": [
              "562024422"
            ],
            "title": "Legal Id"
          },
          "legal_id_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What `legal_id` is. Any string — Delpha does not validate it against a registry here. When both sides state a type and the two differ, the identifiers are treated as incomparable rather than as a mismatch, so a SIREN is never scored against a SIRET.",
            "examples": [
              "FRA - SIREN"
            ],
            "title": "Legal Id Type"
          },
          "lei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The Legal Entity Identifier (GLEIF), when known.",
            "examples": [
              "969500FB8M2VLPYCBM94"
            ],
            "title": "Lei"
          }
        },
        "title": "ReferenceEntity",
        "type": "object"
      },
      "AccountMatchInput": {
        "additionalProperties": false,
        "description": "The body of ``POST /v1/account-match``.",
        "properties": {
          "reference": {
            "$ref": "#/components/schemas/ReferenceEntity",
            "description": "The entity to look for, built by the caller — from an ultimate-parent result (`getUltimateParentResult` over MCP, `GET /v1/ultimate/{job_id}` over REST) to find a corporate parent in your records, or by hand for plain account matching."
          },
          "candidates": {
            "description": "The records to rank, gathered and formatted by the caller — Delpha never reads your system. At most 100 per call; the identifiers of an ultimate result's `crm_lookup` narrow a query to the likely records.",
            "items": {
              "$ref": "#/components/schemas/CandidateEntity"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Candidates",
            "type": "array"
          },
          "ultimate_job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The `job_id` of the ultimate-parent call this match follows up, if any. Correlation only — it links the two calls in your Delpha history and fills nothing in this request. The reference is still yours to build.",
            "examples": [
              "4e8a7b3c-1234-5678-90ab-cdef12345678"
            ],
            "title": "Ultimate Job Id"
          },
          "top_k": {
            "default": 5,
            "description": "How many matches to return, at most. Clamped to 1..25 rather than refused. Only candidates at or above the confidence threshold are returned, so a larger `top_k` never invents matches.",
            "examples": [
              5
            ],
            "title": "Top K",
            "type": "integer"
          }
        },
        "required": [
          "reference",
          "candidates"
        ],
        "title": "AccountMatchInput",
        "type": "object"
      },
      "AccountMatchRelated": {
        "description": "Correlation back to the call this match follows up.",
        "properties": {
          "ultimate_call_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The Delpha call this match follows up, when `ultimate_job_id` was sent — the id that call appears under in your history.",
            "examples": [
              "9f1c2e4a-0000-5000-a000-000000000000"
            ],
            "title": "Ultimate Call Id"
          }
        },
        "title": "AccountMatchRelated",
        "type": "object"
      },
      "AccountMatchResult": {
        "additionalProperties": true,
        "description": "The ranked matches for one request, and the settings they were scored with.",
        "properties": {
          "settings": {
            "$ref": "#/components/schemas/MatchSettings",
            "description": "The run's configuration: every score and confidence below was computed with it, so the result reads without the request.",
            "examples": [
              {
                "confidence": {
                  "ambiguity_gap": 0.1,
                  "method": "weighted_average",
                  "thresholds": {
                    "normal": 0.6,
                    "strong": 0.6,
                    "weak": 0.6
                  },
                  "weak_ceiling": 0.75
                },
                "labels": {
                  "match": 0.9,
                  "partial": 0.5
                },
                "signals": [
                  {
                    "kind_multipliers": null,
                    "mode": "optional",
                    "operator": "fuzzy",
                    "signal": "name",
                    "weight": 5
                  },
                  {
                    "kind_multipliers": null,
                    "mode": "mandatory_if_present",
                    "operator": "equals",
                    "signal": "website",
                    "weight": 3
                  },
                  {
                    "kind_multipliers": {
                      "descendants": 1.0,
                      "descendants_depth5": 1.0,
                      "direct_children": 0.5,
                      "is_root": 0.1,
                      "other": 0.5
                    },
                    "mode": "optional",
                    "operator": "highest_value",
                    "signal": "hierarchy",
                    "weight": 10
                  },
                  {
                    "kind_multipliers": null,
                    "mode": "optional",
                    "operator": "equals",
                    "signal": "legal_id",
                    "weight": 4
                  },
                  {
                    "kind_multipliers": null,
                    "mode": "optional",
                    "operator": "equals",
                    "signal": "country",
                    "weight": 2
                  },
                  {
                    "kind_multipliers": null,
                    "mode": "optional",
                    "operator": "equals",
                    "signal": "lei",
                    "weight": 4
                  }
                ],
                "top_k": 5
              }
            ]
          },
          "candidates_received": {
            "description": "How many candidates the request carried.",
            "examples": [
              9
            ],
            "minimum": 0,
            "title": "Candidates Received",
            "type": "integer"
          },
          "candidates_scored": {
            "description": "How many were scored. Lower than `candidates_received` when records were ruled out outright by a `mandatory_if_present` criterion — a record whose website belongs to a different company cannot be the entity, whatever its name says.",
            "examples": [
              6
            ],
            "minimum": 0,
            "title": "Candidates Scored",
            "type": "integer"
          },
          "match_status": {
            "description": "One reading of every qualifying record, taken before `top_k` cuts the list. `confident`: the best record is the only one that qualified, or leads the next by at least `settings.confidence.ambiguity_gap`. `ambiguous`: the second qualifying record is within that gap of the first. `no_match`: none of the records sent qualified under this run's settings — a statement about those records, not about the rest of your system.",
            "enum": [
              "confident",
              "ambiguous",
              "no_match"
            ],
            "examples": [
              "confident"
            ],
            "title": "Match Status",
            "type": "string"
          },
          "matches": {
            "description": "Candidates at or above their level's threshold, best first.",
            "examples": [
              [
                {
                  "confidence": 0.9,
                  "evidence_level": "normal",
                  "id": "0015w00002Q7duWAAR",
                  "name": "Stellantis",
                  "signals": [
                    {
                      "candidate": "Stellantis",
                      "kind": null,
                      "label": "match",
                      "reason": null,
                      "reference": "Stellantis",
                      "score": 1.0,
                      "signal": "name"
                    },
                    {
                      "candidate": "stellantis.com",
                      "kind": null,
                      "label": "match",
                      "reason": null,
                      "reference": "https://www.stellantis.com/en/",
                      "score": 1.0,
                      "signal": "website"
                    },
                    {
                      "candidate": 11,
                      "kind": "descendants_depth5",
                      "label": "match",
                      "reason": null,
                      "reference": null,
                      "score": 1.0,
                      "signal": "hierarchy"
                    },
                    {
                      "candidate": "879786085",
                      "kind": null,
                      "label": "not_compared",
                      "reason": "incomparable",
                      "reference": "60372958",
                      "score": null,
                      "signal": "legal_id"
                    },
                    {
                      "candidate": "France",
                      "kind": null,
                      "label": "conflict",
                      "reason": null,
                      "reference": "NL",
                      "score": 0.0,
                      "signal": "country"
                    },
                    {
                      "candidate": null,
                      "kind": null,
                      "label": "not_compared",
                      "reason": "candidate_missing",
                      "reference": "549300LKT9PW7ZIBDF31",
                      "score": null,
                      "signal": "lei"
                    }
                  ]
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/MatchEntry"
            },
            "title": "Matches",
            "type": "array"
          },
          "related": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AccountMatchRelated"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The call this match follows up; `null` unless `ultimate_job_id` was sent.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "settings",
          "candidates_received",
          "candidates_scored",
          "match_status"
        ],
        "title": "AccountMatchResult",
        "type": "object"
      },
      "ConfidenceSettings": {
        "description": "How the per-signal scores became a confidence, and what qualified.",
        "properties": {
          "method": {
            "const": "weighted_average",
            "description": "`confidence = round(Σ score * weight / Σ weight, 2)` over the compared, counted signals, with the hierarchy weight multiplied by its kind's factor; a `weak` match is then compressed into `[thresholds.weak, weak_ceiling]`.",
            "examples": [
              "weighted_average"
            ],
            "title": "Method",
            "type": "string"
          },
          "thresholds": {
            "additionalProperties": {
              "type": "number"
            },
            "description": "Per evidence level, the confidence a candidate needs to be returned at all.",
            "examples": [
              {
                "normal": 0.6,
                "strong": 0.6,
                "weak": 0.6
              }
            ],
            "title": "Thresholds",
            "type": "object"
          },
          "weak_ceiling": {
            "description": "The highest confidence a name-only (`weak`) match can report — two unrelated companies can share a name.",
            "examples": [
              0.75
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Weak Ceiling",
            "type": "number"
          },
          "ambiguity_gap": {
            "description": "`match_status` is `ambiguous` when the second match is within this much of the first.",
            "examples": [
              0.1
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Ambiguity Gap",
            "type": "number"
          }
        },
        "required": [
          "method",
          "thresholds",
          "weak_ceiling",
          "ambiguity_gap"
        ],
        "title": "ConfidenceSettings",
        "type": "object"
      },
      "LabelBands": {
        "description": "The score edges behind each signal's `label`, for graded criteria.",
        "properties": {
          "match": {
            "description": "At or above: `match`.",
            "examples": [
              0.9
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Match",
            "type": "number"
          },
          "partial": {
            "description": "At or above (and below `match`): `partial`; below: `conflict`.",
            "examples": [
              0.5
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Partial",
            "type": "number"
          }
        },
        "required": [
          "match",
          "partial"
        ],
        "title": "LabelBands",
        "type": "object"
      },
      "MatchEntry": {
        "description": "One candidate that qualified, with the evidence behind its score.",
        "properties": {
          "id": {
            "description": "Your own identifier for the matched record, echoed back.",
            "examples": [
              "0015w00002Q7duWAAR"
            ],
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "The matched record's name, echoed back.",
            "examples": [
              "Stellantis"
            ],
            "title": "Name",
            "type": "string"
          },
          "confidence": {
            "description": "How strongly this record matches the reference, 0-1, two decimals — `settings.confidence` says how it was computed. Comparable between candidates in one response and NOT between responses built from different signals; `evidence_level` says how much it is worth.",
            "examples": [
              0.9
            ],
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "type": "number"
          },
          "evidence_level": {
            "description": "How much the confidence is worth. `strong`: name, website and a corroborating hierarchy all compared, with no identity conflict. `normal`: the website or a legal id compared, or an identity criterion (`country`, `legal_id`, `lei`) conflicts — the record is the group's account but a different legal entity. `weak`: the name alone, compressed into a reduced band so it can never report what a corroborated match reports; a weak match is a lead, not an answer.",
            "enum": [
              "strong",
              "normal",
              "weak"
            ],
            "examples": [
              "normal"
            ],
            "title": "Evidence Level",
            "type": "string"
          },
          "signals": {
            "description": "Every criterion, in a fixed order, with its score, its label, the two values compared and — when it was not compared — why.",
            "examples": [
              [
                {
                  "candidate": "Stellantis",
                  "kind": null,
                  "label": "match",
                  "reason": null,
                  "reference": "Stellantis",
                  "score": 1.0,
                  "signal": "name"
                },
                {
                  "candidate": "stellantis.com",
                  "kind": null,
                  "label": "match",
                  "reason": null,
                  "reference": "https://www.stellantis.com/en/",
                  "score": 1.0,
                  "signal": "website"
                },
                {
                  "candidate": 11,
                  "kind": "descendants_depth5",
                  "label": "match",
                  "reason": null,
                  "reference": null,
                  "score": 1.0,
                  "signal": "hierarchy"
                },
                {
                  "candidate": "879786085",
                  "kind": null,
                  "label": "not_compared",
                  "reason": "incomparable",
                  "reference": "60372958",
                  "score": null,
                  "signal": "legal_id"
                },
                {
                  "candidate": "France",
                  "kind": null,
                  "label": "conflict",
                  "reason": null,
                  "reference": "NL",
                  "score": 0.0,
                  "signal": "country"
                },
                {
                  "candidate": null,
                  "kind": null,
                  "label": "not_compared",
                  "reason": "candidate_missing",
                  "reference": "549300LKT9PW7ZIBDF31",
                  "score": null,
                  "signal": "lei"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/SignalEntry"
            },
            "title": "Signals",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "confidence",
          "evidence_level"
        ],
        "title": "MatchEntry",
        "type": "object"
      },
      "MatchSettings": {
        "description": "The configuration this run was scored with — enough to read every number without the request.",
        "properties": {
          "signals": {
            "description": "One entry per criterion, in the order `matches[].signals` uses.",
            "examples": [
              [
                {
                  "kind_multipliers": null,
                  "mode": "optional",
                  "operator": "fuzzy",
                  "signal": "name",
                  "weight": 5
                },
                {
                  "kind_multipliers": null,
                  "mode": "mandatory_if_present",
                  "operator": "equals",
                  "signal": "website",
                  "weight": 3
                },
                {
                  "kind_multipliers": {
                    "descendants": 1.0,
                    "descendants_depth5": 1.0,
                    "direct_children": 0.5,
                    "is_root": 0.1,
                    "other": 0.5
                  },
                  "mode": "optional",
                  "operator": "highest_value",
                  "signal": "hierarchy",
                  "weight": 10
                },
                {
                  "kind_multipliers": null,
                  "mode": "optional",
                  "operator": "equals",
                  "signal": "legal_id",
                  "weight": 4
                },
                {
                  "kind_multipliers": null,
                  "mode": "optional",
                  "operator": "equals",
                  "signal": "country",
                  "weight": 2
                },
                {
                  "kind_multipliers": null,
                  "mode": "optional",
                  "operator": "equals",
                  "signal": "lei",
                  "weight": 4
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/SignalSetting"
            },
            "title": "Signals",
            "type": "array"
          },
          "confidence": {
            "$ref": "#/components/schemas/ConfidenceSettings",
            "description": "How the scores became a confidence, and the thresholds that applied.",
            "examples": [
              {
                "ambiguity_gap": 0.1,
                "method": "weighted_average",
                "thresholds": {
                  "normal": 0.6,
                  "strong": 0.6,
                  "weak": 0.6
                },
                "weak_ceiling": 0.75
              }
            ]
          },
          "labels": {
            "$ref": "#/components/schemas/LabelBands",
            "description": "The score edges behind each signal's `label`.",
            "examples": [
              {
                "match": 0.9,
                "partial": 0.5
              }
            ]
          },
          "top_k": {
            "description": "The most matches this call could return — the request's `top_k` after clamping.",
            "examples": [
              5
            ],
            "minimum": 1,
            "title": "Top K",
            "type": "integer"
          }
        },
        "required": [
          "signals",
          "confidence",
          "labels",
          "top_k"
        ],
        "title": "MatchSettings",
        "type": "object"
      },
      "SignalEntry": {
        "description": "One criterion on one matched record: how it compared, and what was compared.",
        "properties": {
          "signal": {
            "description": "The criterion. One entry per criterion, always in this order: `name`, `website`, `hierarchy`, `legal_id`, `country`, `lei`.",
            "enum": [
              "name",
              "website",
              "hierarchy",
              "legal_id",
              "country",
              "lei"
            ],
            "examples": [
              "name"
            ],
            "title": "Signal",
            "type": "string"
          },
          "label": {
            "description": "Delpha's reading of the comparison. `match`: the two values agree — an exact equality, a name similarity at or above `settings.labels.match`, or a hierarchy count scoring at or above it (`ln(1+count) / ln(1+largest)`, the largest never taken below 10). `partial`: compared and similar but not equal — a name between `settings.labels.partial` and `settings.labels.match`, or a hierarchy count scoring below `settings.labels.match`. `conflict`: compared and different — a different website domain, country, legal id or LEI, or a name below `settings.labels.partial`. `not_compared`: this criterion did not take part; `reason` says why.",
            "enum": [
              "match",
              "partial",
              "conflict",
              "not_compared"
            ],
            "examples": [
              "match"
            ],
            "title": "Label",
            "type": "string"
          },
          "score": {
            "anyOf": [
              {
                "maximum": 1,
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The criterion's own score, 0-1, two decimals, before weighting. `null` when not compared.",
            "examples": [
              1.0
            ],
            "title": "Score"
          },
          "reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The value compared on the reference side, as you sent it (for `name`, the reference name that scored best). `null` when the reference had none, and always `null` for `hierarchy`, which is scored against the other candidates rather than against the reference.",
            "examples": [
              "Stellantis"
            ],
            "title": "Reference"
          },
          "candidate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The value compared on your record's side, as you sent it (the count, for `hierarchy`). `null` when the record had none.",
            "examples": [
              "Stellantis"
            ],
            "title": "Candidate"
          },
          "reason": {
            "anyOf": [
              {
                "enum": [
                  "reference_missing",
                  "candidate_missing",
                  "incomparable",
                  "not_evidence"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Why the criterion was not compared, else `null`. `reference_missing`: the company has no such value — nothing to add on your side. `candidate_missing`: your record lacks it — add the column and the next call scores better. `incomparable`: the two values cannot be compared — a legal id with a type against one without, two registries' numbers, or a country one side could not resolve. `not_evidence`: a hierarchy count of zero, which is honest data but says nothing on its own.",
            "examples": [
              null
            ],
            "title": "Reason"
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "descendants",
                  "descendants_depth5",
                  "direct_children",
                  "is_root",
                  "other"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "On `hierarchy`, the kind of count your record supplied; `null` elsewhere.",
            "examples": [
              null
            ],
            "title": "Kind"
          }
        },
        "required": [
          "signal",
          "label"
        ],
        "title": "SignalEntry",
        "type": "object"
      },
      "SignalSetting": {
        "description": "How one criterion was scored and weighted in this run.",
        "properties": {
          "signal": {
            "description": "The criterion.",
            "enum": [
              "name",
              "website",
              "hierarchy",
              "legal_id",
              "country",
              "lei"
            ],
            "examples": [
              "name"
            ],
            "title": "Signal",
            "type": "string"
          },
          "operator": {
            "description": "`fuzzy`: a Levenshtein similarity of the two names, lower-cased, best of the two reference names. `equals`: equality after normalisation — the root domain for `website`, the ISO alpha-2 code for `country`, alphanumerics upper-cased for `legal_id` (compared only when both sides state the same type or neither does), case-insensitive for `lei`. `highest_value`: `ln(1+count) / ln(1+largest)` against the largest count among your candidates, never below 10.",
            "examples": [
              "fuzzy"
            ],
            "title": "Operator",
            "type": "string"
          },
          "mode": {
            "description": "`optional`: a missing value shrinks the denominator. `mandatory_if_present`: when both the reference and the record carry the value and they differ, the record is ruled out before scoring — the one setting that makes `candidates_scored` smaller than `candidates_received`.",
            "examples": [
              "optional"
            ],
            "title": "Mode",
            "type": "string"
          },
          "weight": {
            "description": "The criterion's weight in the weighted average. 0 means compared and labelled but not counted.",
            "examples": [
              5
            ],
            "minimum": 0,
            "title": "Weight",
            "type": "number"
          },
          "kind_multipliers": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "number"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "On `hierarchy`: the factor applied to the weight for each kind of count. `null` elsewhere.",
            "examples": [
              null
            ],
            "title": "Kind Multipliers"
          }
        },
        "required": [
          "signal",
          "operator",
          "mode",
          "weight"
        ],
        "title": "SignalSetting",
        "type": "object"
      },
      "AccountMatchOutput": {
        "additionalProperties": true,
        "description": "Public response for the synchronous account match.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable description of the outcome.",
            "examples": [
              "Account match succeeded",
              "reference requires at least one of legal_name, commercial_name",
              "Payment Required",
              "Reservation expired; please resubmit the request."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR",
              "ERROR",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              200,
              422,
              402,
              409
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AccountMatchResult"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The ranked matches. Present when status == 'SUCCESS'.",
            "examples": [
              {
                "candidates_received": 9,
                "candidates_scored": 6,
                "match_status": "confident",
                "matches": [
                  {
                    "confidence": 0.9,
                    "evidence_level": "normal",
                    "id": "0015w00002Q7duWAAR",
                    "name": "Stellantis",
                    "signals": [
                      {
                        "candidate": "Stellantis",
                        "kind": null,
                        "label": "match",
                        "reason": null,
                        "reference": "Stellantis",
                        "score": 1.0,
                        "signal": "name"
                      },
                      {
                        "candidate": "stellantis.com",
                        "kind": null,
                        "label": "match",
                        "reason": null,
                        "reference": "https://www.stellantis.com/en/",
                        "score": 1.0,
                        "signal": "website"
                      },
                      {
                        "candidate": 11,
                        "kind": "descendants_depth5",
                        "label": "match",
                        "reason": null,
                        "reference": null,
                        "score": 1.0,
                        "signal": "hierarchy"
                      },
                      {
                        "candidate": "879786085",
                        "kind": null,
                        "label": "not_compared",
                        "reason": "incomparable",
                        "reference": "60372958",
                        "score": null,
                        "signal": "legal_id"
                      },
                      {
                        "candidate": "France",
                        "kind": null,
                        "label": "conflict",
                        "reason": null,
                        "reference": "NL",
                        "score": 0.0,
                        "signal": "country"
                      },
                      {
                        "candidate": null,
                        "kind": null,
                        "label": "not_compared",
                        "reason": "candidate_missing",
                        "reference": "549300LKT9PW7ZIBDF31",
                        "score": null,
                        "signal": "lei"
                      }
                    ]
                  }
                ],
                "related": null,
                "settings": {
                  "confidence": {
                    "ambiguity_gap": 0.1,
                    "method": "weighted_average",
                    "thresholds": {
                      "normal": 0.6,
                      "strong": 0.6,
                      "weak": 0.6
                    },
                    "weak_ceiling": 0.75
                  },
                  "labels": {
                    "match": 0.9,
                    "partial": 0.5
                  },
                  "signals": [
                    {
                      "kind_multipliers": null,
                      "mode": "optional",
                      "operator": "fuzzy",
                      "signal": "name",
                      "weight": 5
                    },
                    {
                      "kind_multipliers": null,
                      "mode": "mandatory_if_present",
                      "operator": "equals",
                      "signal": "website",
                      "weight": 3
                    },
                    {
                      "kind_multipliers": {
                        "descendants": 1.0,
                        "descendants_depth5": 1.0,
                        "direct_children": 0.5,
                        "is_root": 0.1,
                        "other": 0.5
                      },
                      "mode": "optional",
                      "operator": "highest_value",
                      "signal": "hierarchy",
                      "weight": 10
                    },
                    {
                      "kind_multipliers": null,
                      "mode": "optional",
                      "operator": "equals",
                      "signal": "legal_id",
                      "weight": 4
                    },
                    {
                      "kind_multipliers": null,
                      "mode": "optional",
                      "operator": "equals",
                      "signal": "country",
                      "weight": 2
                    },
                    {
                      "kind_multipliers": null,
                      "mode": "optional",
                      "operator": "equals",
                      "signal": "lei",
                      "weight": 4
                    }
                  ],
                  "top_k": 5
                }
              }
            ]
          },
          "process_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The processing time of the request, in seconds.",
            "examples": [
              0.04
            ],
            "title": "Process Time"
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "AccountMatchOutput",
        "type": "object"
      },
      "PricingResult": {
        "description": "The current credit price of every use case.",
        "properties": {
          "unit": {
            "const": "credits",
            "default": "credits",
            "description": "The unit every `credits` value is expressed in.",
            "examples": [
              "credits"
            ],
            "title": "Unit",
            "type": "string"
          },
          "use_cases": {
            "description": "One entry per use case the API serves, in the order this document lists them. Always complete: when a price cannot be read, the request fails with 503 rather than returning a partial list.",
            "examples": [
              [
                {
                  "credits": 1,
                  "operation": "email",
                  "use_case": "email"
                },
                {
                  "credits": 1,
                  "operation": "website",
                  "use_case": "website"
                },
                {
                  "credits": 1,
                  "operation": "phone",
                  "use_case": "phone"
                },
                {
                  "credits": 1,
                  "operation": "name",
                  "use_case": "name"
                },
                {
                  "credits": 1,
                  "operation": "legal_id",
                  "use_case": "legal-id"
                },
                {
                  "credits": 1,
                  "operation": "linkedin_profile",
                  "use_case": "linkedin-profile"
                },
                {
                  "credits": 1,
                  "operation": "linkedin_company_page",
                  "use_case": "linkedin-company-page"
                },
                {
                  "credits": 2,
                  "operation": "ultimate",
                  "use_case": "ultimate"
                },
                {
                  "credits": 1,
                  "operation": "company",
                  "use_case": "company"
                },
                {
                  "credits": 1,
                  "operation": "account_match",
                  "use_case": "account-match"
                }
              ]
            ],
            "items": {
              "$ref": "#/components/schemas/UseCasePrice"
            },
            "title": "Use Cases",
            "type": "array"
          }
        },
        "required": [
          "use_cases"
        ],
        "title": "PricingResult",
        "type": "object"
      },
      "UseCasePrice": {
        "description": "The credit price of one use case.",
        "properties": {
          "use_case": {
            "description": "The use case, spelled as its route segment (`/v1/<use_case>`) and as the middle segment of its API-key scopes.",
            "examples": [
              "legal-id"
            ],
            "title": "Use Case",
            "type": "string",
            "enum": [
              "email",
              "website",
              "phone",
              "name",
              "legal-id",
              "linkedin-profile",
              "linkedin-company-page",
              "ultimate",
              "company",
              "account-match"
            ]
          },
          "operation": {
            "description": "The billed operation, spelled as the `x-credit-operation.operation` value its operations publish in this document.",
            "examples": [
              "legal_id"
            ],
            "title": "Operation",
            "type": "string",
            "enum": [
              "email",
              "website",
              "phone",
              "name",
              "legal_id",
              "linkedin_profile",
              "linkedin_company_page",
              "ultimate",
              "company",
              "account_match"
            ]
          },
          "credits": {
            "description": "Credits charged per request for a single or synchronous call, and per item for a batch, which bills only the items that succeed.",
            "examples": [
              1
            ],
            "minimum": 1,
            "title": "Credits",
            "type": "integer"
          },
          "name": {
            "description": "The use case's display name, as Delpha presents it. Absent when none is set.",
            "examples": [
              "Legal ID"
            ],
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "description": {
            "description": "A one-sentence description of what the use case does. Absent when none is set.",
            "examples": [
              "Find or validate a company's registry legal ID."
            ],
            "minLength": 1,
            "title": "Description",
            "type": "string"
          }
        },
        "required": [
          "use_case",
          "operation",
          "credits"
        ],
        "title": "UseCasePrice",
        "type": "object"
      },
      "PricingOutput": {
        "additionalProperties": true,
        "description": "Public response for the price list.",
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable machine-readable status/error code (see ErrorCode).",
            "examples": [
              "ok"
            ],
            "title": "Code"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API Gateway request id, for support correlation.",
            "examples": [
              "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
            ],
            "title": "Request Id"
          },
          "doc_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Link to error documentation (present when published).",
            "examples": [
              null
            ],
            "title": "Doc Url"
          },
          "message": {
            "description": "A human-readable description of the outcome.",
            "examples": [
              "Pricing retrieved",
              "Pricing is temporarily unavailable. Retry after the interval in the Retry-After header."
            ],
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "The status of the process",
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "examples": [
              "SUCCESS",
              "ERROR"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_code": {
            "description": "The status code to return",
            "examples": [
              200,
              503
            ],
            "title": "Status Code",
            "type": "integer"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PricingResult"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The price list. Present when status == 'SUCCESS'.",
            "examples": [
              {
                "unit": "credits",
                "use_cases": [
                  {
                    "credits": 1,
                    "operation": "email",
                    "use_case": "email"
                  },
                  {
                    "credits": 1,
                    "operation": "website",
                    "use_case": "website"
                  },
                  {
                    "credits": 1,
                    "operation": "phone",
                    "use_case": "phone"
                  },
                  {
                    "credits": 1,
                    "operation": "name",
                    "use_case": "name"
                  },
                  {
                    "credits": 1,
                    "operation": "legal_id",
                    "use_case": "legal-id"
                  },
                  {
                    "credits": 1,
                    "operation": "linkedin_profile",
                    "use_case": "linkedin-profile"
                  },
                  {
                    "credits": 1,
                    "operation": "linkedin_company_page",
                    "use_case": "linkedin-company-page"
                  },
                  {
                    "credits": 2,
                    "operation": "ultimate",
                    "use_case": "ultimate"
                  },
                  {
                    "credits": 1,
                    "operation": "company",
                    "use_case": "company"
                  },
                  {
                    "credits": 1,
                    "operation": "account_match",
                    "use_case": "account-match"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "message",
          "status",
          "status_code"
        ],
        "title": "PricingOutput",
        "type": "object"
      },
      "Error": {
        "type": "object",
        "title": "Error",
        "description": "Typed error envelope emitted by the API for handler-level 4xx/5xx responses. Extends the success envelope with a stable machine-readable `code` and a correlation `request_id`.",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ERROR"
            ],
            "description": "Always \"ERROR\" for an error response."
          },
          "status_code": {
            "type": "integer",
            "description": "The HTTP status code of the response."
          },
          "message": {
            "type": "string",
            "description": "Human-readable, PII-free error message."
          },
          "code": {
            "type": "string",
            "enum": [
              "validation_error",
              "unauthorized",
              "payment_required",
              "not_found",
              "conflict",
              "rate_limited",
              "backend_error",
              "backend_timeout",
              "service_unavailable",
              "job_timeout",
              "internal_error",
              "unsupported_registry",
              "idempotency_key_reuse",
              "idempotency_in_progress",
              "idempotency_key_invalid"
            ],
            "description": "Stable machine-readable error code. `ok` and `job_running` are the success-side codes and never appear in an error body.",
            "x-enumDescriptions": {
              "validation_error": "The request body or query parameters were rejected, or a documented bound was violated. Usually 400, or 422 for a well-formed request that breaks a bound. The same request unchanged is rejected the same way.",
              "unauthorized": "The credential is missing, invalid or expired. Usually 401 — a 401 the gateway raises carries a `GatewayError` body with no `code`. The same credential is refused again; only a new one is accepted.",
              "payment_required": "The team's credit balance is exhausted, or an API key reached its credit ceiling. 402. It clears once the balance is topped up, or the key's ceiling raised, in the console.",
              "not_found": "No job exists for this id, or it belongs to another team — the two cases are answered identically, so a job id is never an oracle for other tenants. 404, and the same id answers the same way later.",
              "conflict": "The credit reservation expired before the result could be delivered. 409. A fresh submission of the same request produces a new job.",
              "rate_limited": "The published rate limit was exceeded. Usually 429, in one of two shapes: your own per-operation allowance answers with this `Error` body, the quota headers, and `Retry-After` set to the seconds left in the window; the per-operation floor shared by all callers answers earlier, with a `GatewayError` body and `Retry-After: 1`. The allowance returns when the interval given has elapsed.",
              "backend_error": "A downstream service returned an error. Usually 502, and transient — the same request can succeed on a later attempt.",
              "backend_timeout": "A downstream service did not answer in time. Usually 504, and transient — the same request can succeed on a later attempt.",
              "service_unavailable": "A downstream dependency was unreachable. Usually 503, carrying `Retry-After`, and transient — the same request can succeed on a later attempt.",
              "job_timeout": "An asynchronous job exceeded its processing ceiling and will never complete. Usually 504. Further polling answers the same way; only a new submission starts a new job.",
              "internal_error": "An unexpected error on Delpha's side. 500, and usually transient. A persistent one is identified to support by its `request_id`.",
              "unsupported_registry": "The request names a legal-identifier registry, or a country, Delpha cannot query. 422, refused before any credit is reserved; the message lists the supported countries. The body is well-formed, so repairing it does not change the answer.",
              "idempotency_key_reuse": "The `Idempotency-Key` was already used with a different request body. 409. A new key admits the new body; the original body replays the original job.",
              "idempotency_in_progress": "The original request carrying this `Idempotency-Key` is still being processed. 409. The same request answers with the original job once that one is admitted.",
              "idempotency_key_invalid": "The `Idempotency-Key` is malformed — a key is 1 to 255 printable ASCII characters. 400. Only a well-formed key is accepted."
            }
          },
          "request_id": {
            "type": "string",
            "description": "API Gateway request id, for support correlation. The same value is returned in the `x-amzn-RequestId` response header on every response, including the 401/403/429 API Gateway generates itself."
          },
          "doc_url": {
            "type": "string",
            "description": "Link to error documentation. Present when error documentation is published."
          }
        },
        "required": [
          "status",
          "status_code",
          "message"
        ],
        "additionalProperties": true
      },
      "GatewayError": {
        "type": "object",
        "title": "GatewayError",
        "description": "Error body returned by API Gateway itself, before a handler runs: 401 (no or invalid credential), 403 (the API key's scopes do not cover this operation, or the path is not routed here) and 429 (stage throttle; carries `Retry-After`). It has no `code` and no `request_id`; correlate it through the `x-amzn-RequestId` response header instead. A 401 a handler emits after the gateway admitted the request carries the full `Error` envelope.",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ERROR"
            ],
            "description": "Always \"ERROR\"."
          },
          "status_code": {
            "type": "integer",
            "description": "The HTTP status code of the response (401, 403 or 429)."
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message."
          }
        },
        "required": [
          "message"
        ],
        "additionalProperties": true
      },
      "WebhookEvent": {
        "type": "object",
        "title": "WebhookEvent",
        "description": "A lifecycle event delivered to a subscribed endpoint. Notify-only: it names the job and its outcome, never the result — fetch that from the job's poll URL. Deduplicate on `id`, which is derived from the job and the event type and therefore repeats on redelivery.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable event id — identical on every redelivery of the same event."
          },
          "type": {
            "type": "string",
            "pattern": "^dataquality\\.[a-z-]+\\.(sent|done|error)$",
            "description": "The event scope: `dataquality.<usecase>.<sent|done|error>`, where `<usecase>` is the route slug (`email`, `legal-id`, `linkedin-profile`, …) or the slug with a `-batch` suffix for batch jobs.",
            "examples": [
              "dataquality.email.done",
              "dataquality.legal-id-batch.error"
            ]
          },
          "created": {
            "type": "integer",
            "description": "Unix time (seconds) the delivery was signed — the `t` of `Delpha-Signature`."
          },
          "data": {
            "type": "object",
            "description": "What happened, and to which job.",
            "properties": {
              "job_id": {
                "type": "string",
                "description": "The job this event is about."
              },
              "usecase": {
                "type": "string",
                "description": "The route slug, `-batch`-suffixed for a batch job."
              },
              "status": {
                "type": "string",
                "enum": [
                  "sent",
                  "succeeded",
                  "failed"
                ],
                "description": "`sent` on admission, `succeeded` on completion, `failed` on a terminal failure."
              },
              "error": {
                "type": "string",
                "description": "On `.error` events only: the same sanitized, PII-free message the poll URL returns."
              },
              "mode": {
                "type": "string",
                "enum": [
                  "sandbox"
                ],
                "description": "Present only on a test-mode job; absent means live."
              }
            },
            "required": [
              "job_id",
              "usecase",
              "status"
            ],
            "additionalProperties": true
          },
          "metadata": {
            "type": "object",
            "description": "The free-form metadata configured on the endpoint, echoed verbatim.",
            "additionalProperties": true
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "additionalProperties": true
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "OAuth 2.0 client-credentials flow (machine-to-machine). Token URL: https://secure.delpha.io/oauth2/token. The `api/access` scope is all-access: it grants every operation this document publishes. Per-use-case scoping, per-key credit ceilings and expiry are properties of an API key, not of this flow — use an API key when a credential must be restricted.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://secure.delpha.io/oauth2/token",
            "scopes": {
              "api/access": "Access to the public API"
            }
          }
        }
      },
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "dlp_",
        "description": "Native Delpha API key. Send it as an HTTP bearer token (`Authorization: Bearer dlp_...`). Keys are issued from the Delpha app (Developer → API keys) and are billed per team against the team's credit balance."
      }
    },
    "headers": {
      "RequestId": {
        "description": "Request id assigned by API Gateway, present on every response — including the 401/403/429 the gateway generates itself, whose bodies carry no `request_id`. Quote it when contacting support. Handler responses also echo it as the body's `request_id`. Errors generated at the Cloudflare edge (before API Gateway) carry `CF-RAY` instead and no JSON envelope.",
        "schema": {
          "type": "string",
          "examples": [
            "c1a2b3d4-0000-4a5b-8c9d-ef0123456789"
          ]
        }
      },
      "DelphaMode": {
        "description": "Present on every response the API renders to a **test-mode** key on an operation that takes a credential, and on no other: absence means the call was live. A test-mode call is answered from the published fixture table, reserves no credits and reaches no verification backend. The 401, 403 and shared-floor 429 the gateway answers before the API sees the request carry no per-request headers, so they never carry this one, and neither does `GET /v1/pricing`, which takes no credential. See the *Test mode* section of this document.",
        "schema": {
          "type": "string",
          "enum": [
            "sandbox"
          ],
          "examples": [
            "sandbox"
          ]
        }
      },
      "RateLimitLimit": {
        "description": "Your request allowance for this operation in the current 60-second window. It is counted per credential owner AND per operation: spending it on one operation does not reduce what you may send to another.",
        "schema": {
          "type": "string",
          "examples": [
            "3000"
          ]
        }
      },
      "RateLimitRemaining": {
        "description": "Requests still available to you on this operation in the current window. `0` on the request that exhausts it and on the refusals that follow.",
        "schema": {
          "type": "string",
          "examples": [
            "2999"
          ]
        }
      },
      "RateLimitReset": {
        "description": "When the current window resets, as **UTC epoch seconds** — an absolute instant, not a number of seconds to wait. Use `Retry-After` for the delay.",
        "schema": {
          "type": "string",
          "examples": [
            "1757592000"
          ]
        }
      },
      "RateLimit": {
        "description": "What is left of the allowance, as a structured field of `draft-ietf-httpapi-ratelimit-headers` (an Internet-Draft, not a published standard): `\"<policy>\";r=<remaining>;t=<seconds to reset>`. Exactly one policy governs a request, so the list always carries one member.",
        "schema": {
          "type": "string",
          "examples": [
            "\"submit\";r=2999;t=37"
          ]
        }
      },
      "RateLimitPolicy": {
        "description": "The allowance that governed this request, as a structured field of `draft-ietf-httpapi-ratelimit-headers` (an Internet-Draft, not a published standard): `\"<policy>\";q=<quota>;w=<window seconds>`. `submit` governs submit and synchronous operations, `poll` the poll operations; the policy for each operation is also published in its `x-rate-limit`. `GET /v1/pricing` is governed by neither and never carries this header.",
        "schema": {
          "type": "string",
          "examples": [
            "\"submit\";q=3000;w=60"
          ]
        }
      }
    }
  }
}
