Submit a single request or a batch of requests. For batch, wrap in {"requests": [...]}. If internalId is supplied on a single request, a duplicate POST with the same internalId returns the previously reserved requestId rather than creating a new one.
Inputs as a flat { key: value } object: every value must be a string or null. The required and optional keys are schema-specific; discover them with GET /v1/schemas/{schemaId}/required-inputs. Those two lists are the baseline, not an allow-list: additional keys outside both are accepted, stored with the request, echoed back on reads and webhooks, and given to the voice agent as context on any phone call the request makes. A non-string value (number, boolean, nested object, array) is rejected with INVALID_INPUTS and details.invalidInputs (<field> must be a string (got list)). A field that holds several values is therefore one comma-delimited string, not an array: send "cptCodes": "99213,99214". The legacy POST /v1/calls accepts an array here and this endpoint does not, so check those fields when you migrate. Each supplied value is format-checked by type (phone, date, dollar amount, boolean, regex-constrained string) and against two universal rules (no scientific notation, no curly braces); some accounts also enforce memberId structure and per-payer required inputs. Missing or format-invalid inputs return INVALID_INPUTS (400) with details.missingInputs and/or details.invalidInputs. See the Input Validation guide for the full rule list, Creating a Request for examples, and Payer Phone Number Lookup for how omitting phoneNumber affects the response.
Optional and ignored. Historical field; the request type is derived server-side from the schema. You'll see the canonical value on the requestType field of the RequestResponse returned by GET /v1/requests/{requestId}.
Optional. When true and payer phone number lookup is enabled for your account, dial SuperDial's matched payer number even if you supplied phoneNumber, falling back to your supplied number when no match is found (no error). When omitted or false, a supplied phoneNumber is always dialed as-is. Ignored when lookup is off. See Payer Phone Number Lookup.
Optional correlation ID that also serves as the request's idempotency key. A retry with the same internalId does not create a new request: it returns the original requestId and the original payerLookup (if any), even if our payer data has changed since. Because it is the idempotency key, a value you supply must be unique per distinct request; reusing one silently returns the original request instead of starting new work. If you omit it, SuperDial generates and maintains its own unique key server-side, so you only need to supply one when you want to correlate results to your own records. See the Correlation and idempotency section in the Creating a Request guide.
Optional. When true, any phone call this request makes is handled only by our automated (AI) voice agent, never a human agent. Leaving it false adds no restriction: it does not force human-agent handling. Defaults to false.
Optional. When true, all phone handling for this request is restricted to US-based agents. Leaving it false adds no restriction. Defaults to false.
Response
Request(s) created successfully. The body is CreateRequestSuccess for a single-item POST and CreateRequestBatchResponse (with every entry a success) for a batch.
Option 1
Option 2
Success response from POST /v1/requests on a single-item POST. internalId is echoed only when supplied in the body. payerLookup is present on every created request when payer phone number lookup is enabled for the account (its matched* fields are null unless SuperDial dialed its own matched number).
Server-generated request ID. Stable across idempotent retries with the same internalId. Use it on GET /v1/requests/{requestId} to fetch the full result.
Payer/phone lookup outcome, returned on POST /v1/requests success responses and on the GET /v1/requests read endpoints. Always present on a created request when payer phone number lookup is enabled for your account. phoneNumberToUse is the number that will be dialed and phoneNumberSource says where it came from. The matched* fields are populated only when SuperDial dials its own matched number (you omitted phoneNumber, or set useMatchedPayerPhone: true and a match was found); when your supplied number is dialed they are null and phoneNumberSource is input. See the Payer Phone Number Lookup guide.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SuperDial API","description":"Submit requests and retrieve results programmatically.","colors":{"primary":"#4a43cd","light":"#6544CC","dark":"#3b2675"},"logo":{"light":"https://mintcdn.com/superdial-9fcd9934/KzxamTIEifVDF1yv/logo/light.svg?fit=max\u0026auto=format\u0026n=KzxamTIEifVDF1yv\u0026q=85\u0026s=77c15b72582931c99c221ee72f68f1dc","dark":"https://mintcdn.com/superdial-9fcd9934/KzxamTIEifVDF1yv/logo/dark.svg?fit=max\u0026auto=format\u0026n=KzxamTIEifVDF1yv\u0026q=85\u0026s=0d69085283efe37ca944e43fde55fa59","href":"/"},"favicon":"https://mintcdn.com/superdial-9fcd9934/KzxamTIEifVDF1yv/favicon.svg?fit=max\u0026auto=format\u0026n=KzxamTIEifVDF1yv\u0026q=85\u0026s=5dd418d27df909620d22251ba70ab764","api":{"playground":{"display":"simple"}},"footer":{"socials":{}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"superdial-9fcd9934","hasAudioNarration":false,"actualSubdomain":"superdial-9fcd9934","customDomains":["docs.superdial.com"],"gitSource":{"type":"github","owner":"superbill-inc","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ad7d53d09956394faa895bf","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Guides","count":11},{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Requests","count":7},{"language":"default","tag":"Schemas","count":5},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Payers","count":2},{"language":"default","tag":"Migration","count":1},{"language":"default","tag":"Authentication","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/requests/create-a-request","slug":"/api-reference/requests/create-a-request","pageMetadata":{"title":"Create a Request","description":"Submit a single request or a batch of requests. For batch, wrap in `{\"requests\": [...]}`. If `internalId` is supplied on a single request, a duplicate POST with the same `internalId` returns the previously reserved `requestId` rather than creating a new one.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/requests","href":"/api-reference/requests/create-a-request","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Submit a single request or a batch of requests. For batch, wrap in \", _jsx(_components.code, {\n children: \"{\\\"requests\\\": [...]}\"\n }), \". If \", _jsx(_components.code, {\n children: \"internalId\"\n }), \" is supplied on a single request, a duplicate POST with the same \", _jsx(_components.code, {\n children: \"internalId\"\n }), \" returns the previously reserved \", _jsx(_components.code, {\n children: \"requestId\"\n }), \" rather than creating a new one.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a Request","description":"Submit a single request or a batch of requests. For batch, wrap in `{\"requests\": [...]}`. If `internalId` is supplied on a single request, a duplicate POST with the same `internalId` returns the previously reserved `requestId` rather than creating a new one.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/requests","href":"/api-reference/requests/create-a-request","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Requests"],"summary":"Create a Request","description":"Submit a single request or a batch of requests. For batch, wrap in `{\"requests\": [...]}`. If `internalId` is supplied on a single request, a duplicate POST with the same `internalId` returns the previously reserved `requestId` rather than creating a new one.","security":["d1f4aafb-adcf-484d-830b-6fad98db3b67"],"requestBody":"3172bbb7-f216-4040-9a20-dfb59f8d33e0","responses":{"200":"8cde78b4-1de9-4442-8735-e8cfc24432b2","207":"c40db580-aef5-4e94-9f1b-75da563ddf6f","400":"e649c3f1-b929-46ad-8bdd-f2ca183f30c1","401":"415882cf-59c1-490a-9801-238d806cc032","404":"22c2d8e8-b99e-429f-bdce-2471c8eb9ce2","500":"cfe5390e-5146-4fef-a972-062480278a95"},"method":"post","type":"path","servers":["c4b175c6-68d7-4f5a-a035-5b49b0403a76"],"path":"/v1/requests","baseUrlOptions":["https://robodialer-service-api-9nc4t1p9.uc.gateway.dev"],"title":"Create a Request","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["schemaId","inputs"],"example":{"schemaId":"fWxzG4nqtpHsJxS5Lm3q","inputs":{"payerName":"Sample Insurance Co","memberId":"TEST123456789","phoneNumber":"2125551234","providerNpi":"1234567890","dateOfService":"2026-03-15"},"internalId":"claim_internal_456","internalTag":"march-batch","aiOnly":true,"onshoreOnly":true},"properties":{"schemaId":{"type":"string","description":"Schema ID. Discover yours via `GET /v1/schemas`.","isRequired":true,"uniqueKey":"oneOf.0.schemaId","typeLabel":"string"},"inputs":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.inputs.additionalProperties","typeLabel":"string"},"description":"Inputs as a flat `{ key: value }` object: every value must be a string or null. The required and optional keys are schema-specific; discover them with `GET /v1/schemas/{schemaId}/required-inputs`. Those two lists are the baseline, not an allow-list: additional keys outside both are accepted, stored with the request, echoed back on reads and webhooks, and given to the voice agent as context on any phone call the request makes. A non-string value (number, boolean, nested object, array) is rejected with `INVALID_INPUTS` and `details.invalidInputs` (`\u003cfield> must be a string (got list)`). A field that holds several values is therefore one comma-delimited string, not an array: send `\"cptCodes\": \"99213,99214\"`. The legacy `POST /v1/calls` accepts an array here and this endpoint does not, so check those fields when you migrate. Each supplied value is format-checked by type (phone, date, dollar amount, boolean, regex-constrained string) and against two universal rules (no scientific notation, no curly braces); some accounts also enforce `memberId` structure and per-payer required inputs. Missing or format-invalid inputs return `INVALID_INPUTS` (400) with `details.missingInputs` and/or `details.invalidInputs`. See the [Input Validation](/guides/input-validation) guide for the full rule list, [Creating a Request](/guides/creating-a-request) for examples, and [Payer Phone Number Lookup](/guides/payer-resolution) for how omitting `phoneNumber` affects the response.","isRequired":true,"uniqueKey":"oneOf.0.inputs","typeLabel":"object"},"requestType":{"type":"string","description":"**Optional and ignored.** Historical field; the request type is derived server-side from the schema. You'll see the canonical value on the `requestType` field of the `RequestResponse` returned by `GET /v1/requests/{requestId}`.","uniqueKey":"oneOf.0.requestType","typeLabel":"string"},"webhookUrl":{"oneOf":[{"type":"string","description":"**Optional.** Per-request webhook URL override. Wins over the account-level webhook URL for this single request.","uniqueKey":"oneOf.0.webhookUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Per-request webhook URL override. Wins over the account-level webhook URL for this single request.","uniqueKey":"oneOf.0.webhookUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.webhookUrl","typeLabel":"string | null"},"useMatchedPayerPhone":{"oneOf":[{"type":"boolean","default":false,"description":"**Optional.** When `true` and payer phone number lookup is enabled for your account, dial SuperDial's matched payer number even if you supplied `phoneNumber`, falling back to your supplied number when no match is found (no error). When omitted or `false`, a supplied `phoneNumber` is always dialed as-is. Ignored when lookup is off. See [Payer Phone Number Lookup](/guides/payer-resolution#choosing-which-number-to-dial).","uniqueKey":"oneOf.0.useMatchedPayerPhone.oneOf.0","typeLabel":"boolean"},{"type":"null","default":false,"description":"**Optional.** When `true` and payer phone number lookup is enabled for your account, dial SuperDial's matched payer number even if you supplied `phoneNumber`, falling back to your supplied number when no match is found (no error). When omitted or `false`, a supplied `phoneNumber` is always dialed as-is. Ignored when lookup is off. See [Payer Phone Number Lookup](/guides/payer-resolution#choosing-which-number-to-dial).","uniqueKey":"oneOf.0.useMatchedPayerPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.useMatchedPayerPhone","typeLabel":"boolean | null"},"internalId":{"oneOf":[{"type":"string","description":"**Optional** correlation ID that also serves as the request's idempotency key. A retry with the same `internalId` does not create a new request: it returns the original `requestId` and the original `payerLookup` (if any), even if our payer data has changed since. Because it is the idempotency key, a value you supply **must be unique per distinct request**; reusing one silently returns the original request instead of starting new work. If you omit it, SuperDial generates and maintains its own unique key server-side, so you only need to supply one when you want to correlate results to your own records. See the Correlation and idempotency section in the Creating a Request guide.","uniqueKey":"oneOf.0.internalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional** correlation ID that also serves as the request's idempotency key. A retry with the same `internalId` does not create a new request: it returns the original `requestId` and the original `payerLookup` (if any), even if our payer data has changed since. Because it is the idempotency key, a value you supply **must be unique per distinct request**; reusing one silently returns the original request instead of starting new work. If you omit it, SuperDial generates and maintains its own unique key server-side, so you only need to supply one when you want to correlate results to your own records. See the Correlation and idempotency section in the Creating a Request guide.","uniqueKey":"oneOf.0.internalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.internalId","typeLabel":"string | null"},"internalTag":{"oneOf":[{"type":"string","description":"**Optional.** Customer tag, echoed back on reads and webhooks. Useful for grouping requests without polluting your correlation IDs.","uniqueKey":"oneOf.0.internalTag.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Customer tag, echoed back on reads and webhooks. Useful for grouping requests without polluting your correlation IDs.","uniqueKey":"oneOf.0.internalTag.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.internalTag","typeLabel":"string | null"},"aiOnly":{"oneOf":[{"type":"boolean","description":"**Optional.** When `true`, any phone call this request makes is handled only by our automated (AI) voice agent, never a human agent. Leaving it `false` adds no restriction: it does not force human-agent handling. Defaults to `false`.","uniqueKey":"oneOf.0.aiOnly.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"**Optional.** When `true`, any phone call this request makes is handled only by our automated (AI) voice agent, never a human agent. Leaving it `false` adds no restriction: it does not force human-agent handling. Defaults to `false`.","uniqueKey":"oneOf.0.aiOnly.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.aiOnly","typeLabel":"boolean | null"},"onshoreOnly":{"oneOf":[{"type":"boolean","description":"**Optional.** When `true`, all phone handling for this request is restricted to US-based agents. Leaving it `false` adds no restriction. Defaults to `false`.","uniqueKey":"oneOf.0.onshoreOnly.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"**Optional.** When `true`, all phone handling for this request is restricted to US-based agents. Leaving it `false` adds no restriction. Defaults to `false`.","uniqueKey":"oneOf.0.onshoreOnly.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.onshoreOnly","typeLabel":"boolean | null"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["requests"],"example":{"requests":[{"schemaId":"fWxzG4nqtpHsJxS5Lm3q","inputs":{"payerName":"Sample Insurance Co","memberId":"TEST123456789","phoneNumber":"2125551234"},"internalId":"claim_001"},{"schemaId":"fWxzG4nqtpHsJxS5Lm3q","inputs":{"payerName":"Sample Insurance Co","memberId":"TEST987654321","phoneNumber":"2125551234"},"internalId":"claim_002"}]},"properties":{"requests":{"type":"array","minItems":1,"description":"Non-empty array of request bodies. Empty arrays are rejected with HTTP 400.","items":{"type":"object","required":["schemaId","inputs"],"properties":{"schemaId":{"type":"string","description":"Schema ID. Discover yours via `GET /v1/schemas`.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].schemaId","typeLabel":"string"},"inputs":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.1.requests.items.[INDEX].inputs.additionalProperties","typeLabel":"string"},"description":"Inputs as a flat `{ key: value }` object: every value must be a string or null. The required and optional keys are schema-specific; discover them with `GET /v1/schemas/{schemaId}/required-inputs`. Those two lists are the baseline, not an allow-list: additional keys outside both are accepted, stored with the request, echoed back on reads and webhooks, and given to the voice agent as context on any phone call the request makes. A non-string value (number, boolean, nested object, array) is rejected with `INVALID_INPUTS` and `details.invalidInputs` (`\u003cfield> must be a string (got list)`). A field that holds several values is therefore one comma-delimited string, not an array: send `\"cptCodes\": \"99213,99214\"`. The legacy `POST /v1/calls` accepts an array here and this endpoint does not, so check those fields when you migrate. Each supplied value is format-checked by type (phone, date, dollar amount, boolean, regex-constrained string) and against two universal rules (no scientific notation, no curly braces); some accounts also enforce `memberId` structure and per-payer required inputs. Missing or format-invalid inputs return `INVALID_INPUTS` (400) with `details.missingInputs` and/or `details.invalidInputs`. See the [Input Validation](/guides/input-validation) guide for the full rule list, [Creating a Request](/guides/creating-a-request) for examples, and [Payer Phone Number Lookup](/guides/payer-resolution) for how omitting `phoneNumber` affects the response.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].inputs","typeLabel":"object"},"requestType":{"type":"string","description":"**Optional and ignored.** Historical field; the request type is derived server-side from the schema. You'll see the canonical value on the `requestType` field of the `RequestResponse` returned by `GET /v1/requests/{requestId}`.","uniqueKey":"oneOf.1.requests.items.[INDEX].requestType","typeLabel":"string"},"webhookUrl":{"oneOf":[{"type":"string","description":"**Optional.** Per-request webhook URL override. Wins over the account-level webhook URL for this single request.","uniqueKey":"oneOf.1.requests.items.[INDEX].webhookUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Per-request webhook URL override. Wins over the account-level webhook URL for this single request.","uniqueKey":"oneOf.1.requests.items.[INDEX].webhookUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].webhookUrl","typeLabel":"string | null"},"useMatchedPayerPhone":{"oneOf":[{"type":"boolean","default":false,"description":"**Optional.** When `true` and payer phone number lookup is enabled for your account, dial SuperDial's matched payer number even if you supplied `phoneNumber`, falling back to your supplied number when no match is found (no error). When omitted or `false`, a supplied `phoneNumber` is always dialed as-is. Ignored when lookup is off. See [Payer Phone Number Lookup](/guides/payer-resolution#choosing-which-number-to-dial).","uniqueKey":"oneOf.1.requests.items.[INDEX].useMatchedPayerPhone.oneOf.0","typeLabel":"boolean"},{"type":"null","default":false,"description":"**Optional.** When `true` and payer phone number lookup is enabled for your account, dial SuperDial's matched payer number even if you supplied `phoneNumber`, falling back to your supplied number when no match is found (no error). When omitted or `false`, a supplied `phoneNumber` is always dialed as-is. Ignored when lookup is off. See [Payer Phone Number Lookup](/guides/payer-resolution#choosing-which-number-to-dial).","uniqueKey":"oneOf.1.requests.items.[INDEX].useMatchedPayerPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].useMatchedPayerPhone","typeLabel":"boolean | null"},"internalId":{"oneOf":[{"type":"string","description":"**Optional** correlation ID that also serves as the request's idempotency key. A retry with the same `internalId` does not create a new request: it returns the original `requestId` and the original `payerLookup` (if any), even if our payer data has changed since. Because it is the idempotency key, a value you supply **must be unique per distinct request**; reusing one silently returns the original request instead of starting new work. If you omit it, SuperDial generates and maintains its own unique key server-side, so you only need to supply one when you want to correlate results to your own records. See the Correlation and idempotency section in the Creating a Request guide.","uniqueKey":"oneOf.1.requests.items.[INDEX].internalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional** correlation ID that also serves as the request's idempotency key. A retry with the same `internalId` does not create a new request: it returns the original `requestId` and the original `payerLookup` (if any), even if our payer data has changed since. Because it is the idempotency key, a value you supply **must be unique per distinct request**; reusing one silently returns the original request instead of starting new work. If you omit it, SuperDial generates and maintains its own unique key server-side, so you only need to supply one when you want to correlate results to your own records. See the Correlation and idempotency section in the Creating a Request guide.","uniqueKey":"oneOf.1.requests.items.[INDEX].internalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].internalId","typeLabel":"string | null"},"internalTag":{"oneOf":[{"type":"string","description":"**Optional.** Customer tag, echoed back on reads and webhooks. Useful for grouping requests without polluting your correlation IDs.","uniqueKey":"oneOf.1.requests.items.[INDEX].internalTag.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Customer tag, echoed back on reads and webhooks. Useful for grouping requests without polluting your correlation IDs.","uniqueKey":"oneOf.1.requests.items.[INDEX].internalTag.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].internalTag","typeLabel":"string | null"},"aiOnly":{"oneOf":[{"type":"boolean","description":"**Optional.** When `true`, any phone call this request makes is handled only by our automated (AI) voice agent, never a human agent. Leaving it `false` adds no restriction: it does not force human-agent handling. Defaults to `false`.","uniqueKey":"oneOf.1.requests.items.[INDEX].aiOnly.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"**Optional.** When `true`, any phone call this request makes is handled only by our automated (AI) voice agent, never a human agent. Leaving it `false` adds no restriction: it does not force human-agent handling. Defaults to `false`.","uniqueKey":"oneOf.1.requests.items.[INDEX].aiOnly.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].aiOnly","typeLabel":"boolean | null"},"onshoreOnly":{"oneOf":[{"type":"boolean","description":"**Optional.** When `true`, all phone handling for this request is restricted to US-based agents. Leaving it `false` adds no restriction. Defaults to `false`.","uniqueKey":"oneOf.1.requests.items.[INDEX].onshoreOnly.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"**Optional.** When `true`, all phone handling for this request is restricted to US-based agents. Leaving it `false` adds no restriction. Defaults to `false`.","uniqueKey":"oneOf.1.requests.items.[INDEX].onshoreOnly.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].onshoreOnly","typeLabel":"boolean | null"}},"example":{"schemaId":"fWxzG4nqtpHsJxS5Lm3q","inputs":{"payerName":"Sample Insurance Co","memberId":"TEST123456789","phoneNumber":"2125551234","providerNpi":"1234567890","dateOfService":"2026-03-15"},"internalId":"claim_internal_456","internalTag":"march-batch","aiOnly":true,"onshoreOnly":true},"uniqueKey":"oneOf.1.requests.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.requests","typeLabel":"object[]"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"single":{"title":"single","value":{"schemaId":"fWxzG4nqtpHsJxS5Lm3q","inputs":{"payerName":"Sample Insurance Co","memberId":"TEST123456789","phoneNumber":"2125551234","providerNpi":"1234567890","dateOfService":"2026-03-15"},"internalId":"claim_internal_456"}},"batch":{"title":"batch","value":{"requests":[{"schemaId":"fWxzG4nqtpHsJxS5Lm3q","inputs":{"payerName":"Sample Insurance Co","memberId":"TEST123456789","phoneNumber":"2125551234","providerNpi":"1234567890","dateOfService":"2026-03-15"},"internalId":"claim_001"},{"schemaId":"fWxzG4nqtpHsJxS5Lm3q","inputs":{"payerName":"Sample Insurance Co","memberId":"TEST987654321","phoneNumber":"2125551234","providerNpi":"1234567890","dateOfService":"2026-03-12"},"internalId":"claim_002"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"8cde78b4-1de9-4442-8735-e8cfc24432b2":{"description":"Request(s) created successfully. The body is `CreateRequestSuccess` for a single-item POST and `CreateRequestBatchResponse` (with every entry a success) for a batch.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Success response from `POST /v1/requests` on a single-item POST. `internalId` is echoed only when supplied in the body. `payerLookup` is present on every created request when payer phone number lookup is enabled for the account (its `matched*` fields are `null` unless SuperDial dialed its own matched number).","required":["requestId","requestBatchId"],"example":{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_internal_456"},"properties":{"requestId":{"type":"string","description":"Server-generated request ID. Stable across idempotent retries with the same `internalId`. Use it on `GET /v1/requests/{requestId}` to fetch the full result.","isRequired":true,"uniqueKey":"oneOf.0.requestId","typeLabel":"string"},"requestBatchId":{"type":"string","description":"Server-generated batch ID this request belongs to.","isRequired":true,"uniqueKey":"oneOf.0.requestBatchId","typeLabel":"string"},"internalId":{"oneOf":[{"type":"string","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"oneOf.0.internalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"oneOf.0.internalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.internalId","typeLabel":"string | null"},"payerLookup":{"type":"object","description":"Payer/phone lookup outcome, returned on `POST /v1/requests` success responses and on the `GET /v1/requests` read endpoints. **Always present** on a created request when payer phone number lookup is enabled for your account. `phoneNumberToUse` is the number that will be dialed and `phoneNumberSource` says where it came from. The `matched*` fields are populated **only when SuperDial dials its own matched number** (you omitted `phoneNumber`, or set `useMatchedPayerPhone: true` and a match was found); when your supplied number is dialed they are `null` and `phoneNumberSource` is `input`. See the [Payer Phone Number Lookup guide](/guides/payer-resolution).","required":["inputPayerName","inputPhoneNumber","matchedPayerName","matchedPayerPhone","phoneNumberToUse","phoneNumberSource"],"properties":{"inputPayerName":{"oneOf":[{"type":"string","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.inputPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.inputPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.payerLookup.inputPayerName","typeLabel":"string | null"},"inputPhoneNumber":{"oneOf":[{"type":"string","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.inputPhoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.inputPhoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.payerLookup.inputPhoneNumber","typeLabel":"string | null"},"matchedPayerName":{"oneOf":[{"type":"string","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.matchedPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.matchedPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.payerLookup.matchedPayerName","typeLabel":"string | null"},"matchedPayerPhone":{"oneOf":[{"type":"string","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.matchedPayerPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.matchedPayerPhone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.payerLookup.matchedPayerPhone","typeLabel":"string | null"},"phoneNumberToUse":{"oneOf":[{"type":"string","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.phoneNumberToUse.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.phoneNumberToUse.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.payerLookup.phoneNumberToUse","typeLabel":"string | null"},"phoneNumberSource":{"oneOf":[{"type":"string","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.phoneNumberSource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.0.payerLookup.phoneNumberSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.payerLookup.phoneNumberSource","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"oneOf.0.payerLookup","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Response from `POST /v1/requests` on a batch POST. Each entry in `requests` is positionally aligned with the input and is either a `CreateRequestSuccess` payload or an `ApiError` envelope. In the batch context, schema-not-found surfaces per-entry as `INVALID_REQUEST` (with `\"Schema not found\"` in `message`); the `SCHEMA_NOT_FOUND` error code only appears on single-item 404s.","required":["requests"],"example":{"requests":[{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_001"},{"error":"INVALID_REQUEST","message":"schemaId is required"}]},"properties":{"requests":{"type":"array","items":{"oneOf":[{"type":"object","description":"Success response from `POST /v1/requests` on a single-item POST. `internalId` is echoed only when supplied in the body. `payerLookup` is present on every created request when payer phone number lookup is enabled for the account (its `matched*` fields are `null` unless SuperDial dialed its own matched number).","required":["requestId","requestBatchId"],"example":{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_internal_456"},"properties":{"requestId":{"type":"string","description":"Server-generated request ID. Stable across idempotent retries with the same `internalId`. Use it on `GET /v1/requests/{requestId}` to fetch the full result.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.requestId","typeLabel":"string"},"requestBatchId":{"type":"string","description":"Server-generated batch ID this request belongs to.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.requestBatchId","typeLabel":"string"},"internalId":{"oneOf":[{"type":"string","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId","typeLabel":"string | null"},"payerLookup":{"type":"object","description":"Payer/phone lookup outcome, returned on `POST /v1/requests` success responses and on the `GET /v1/requests` read endpoints. **Always present** on a created request when payer phone number lookup is enabled for your account. `phoneNumberToUse` is the number that will be dialed and `phoneNumberSource` says where it came from. The `matched*` fields are populated **only when SuperDial dials its own matched number** (you omitted `phoneNumber`, or set `useMatchedPayerPhone: true` and a match was found); when your supplied number is dialed they are `null` and `phoneNumberSource` is `input`. See the [Payer Phone Number Lookup guide](/guides/payer-resolution).","required":["inputPayerName","inputPhoneNumber","matchedPayerName","matchedPayerPhone","phoneNumberToUse","phoneNumberSource"],"properties":{"inputPayerName":{"oneOf":[{"type":"string","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName","typeLabel":"string | null"},"inputPhoneNumber":{"oneOf":[{"type":"string","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber","typeLabel":"string | null"},"matchedPayerName":{"oneOf":[{"type":"string","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName","typeLabel":"string | null"},"matchedPayerPhone":{"oneOf":[{"type":"string","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone","typeLabel":"string | null"},"phoneNumberToUse":{"oneOf":[{"type":"string","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse","typeLabel":"string | null"},"phoneNumberSource":{"oneOf":[{"type":"string","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Uniform error envelope returned by every non-2xx response from `/v1/requests` and `/v1/schemas`. The `error` field is a stable machine-readable code; the `message` field is a human-readable description safe to surface to end users; `details` (optional) carries the structured `missingInputs` / `invalidInputs` block on the `INVALID_INPUTS` path. Unmatched paths and unsupported HTTP methods fall back to the framework's default response (typically HTML); use a documented endpoint and method to receive this envelope.","required":["error","message"],"properties":{"error":{"type":"string","enum":["INVALID_REQUEST","INVALID_INPUTS","PAYER_NOT_FOUND","ACCOUNT_NOT_FOUND","SCHEMA_NOT_FOUND","REQUEST_NOT_FOUND","INTERNAL_ERROR","PAYER_LOOKUP_FAILURE","PAYER_REQUIRED_INPUTS_DISABLED"],"description":"Machine-readable error code for the HTTP envelope. See [Creating a Request → Error handling](/guides/creating-a-request#error-handling) for what each code means, when it fires, and how to handle it.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description. Never contains stack traces or internal identifiers.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.message","typeLabel":"string"},"details":{"type":"object","description":"**Optional.** Currently set only for `INVALID_INPUTS`, where it contains `missingInputs` (array of field names) and/or `invalidInputs` (object mapping field name to reason). See the [Input Validation](/guides/input-validation) guide for the full set of rules behind these reasons.","properties":{"missingInputs":{"type":"array","description":"Field names that were required but absent, null, or empty/whitespace-only.","items":{"type":"string","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.missingInputs.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.missingInputs","typeLabel":"string[]"},"invalidInputs":{"type":"object","description":"Maps each rejected field name to a human-readable reason (e.g. `phoneNumber is not a valid U.S. phone number`, `claimChargeAmount is scientific notation`, `memberId contains invalid characters (curly braces)`, or a member-ID structure message).","additionalProperties":{"type":"string","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.invalidInputs.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.invalidInputs","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.requests.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.requests","typeLabel":"object[]"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"single":{"title":"single","value":{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_internal_456"}},"singleWithPayerLookup":{"title":"singleWithPayerLookup","value":{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_internal_456","payerLookup":{"inputPayerName":"Sample Insurance Co","inputPhoneNumber":null,"matchedPayerName":"Sample Insurance Company, Inc.","matchedPayerPhone":"8005551234","phoneNumberToUse":"8005551234","phoneNumberSource":"superdial"}}},"singleIdempotentReplay":{"title":"singleIdempotentReplay","value":{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_internal_456"}},"batch":{"title":"batch","value":{"requests":[{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_001"},{"requestId":"aC3hN5jD8eL1fM2gK6Yo","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_002"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"c40db580-aef5-4e94-9f1b-75da563ddf6f":{"description":"Partial success (batch only): at least one entry succeeded and at least one failed (validation, lookup, or server error). Each failed entry uses the `ApiError` envelope; succeeded entries use `CreateRequestSuccess`. The batch response itself does not carry a top-level error.","content":{"application/json":{"schema":{"type":"object","description":"Response from `POST /v1/requests` on a batch POST. Each entry in `requests` is positionally aligned with the input and is either a `CreateRequestSuccess` payload or an `ApiError` envelope. In the batch context, schema-not-found surfaces per-entry as `INVALID_REQUEST` (with `\"Schema not found\"` in `message`); the `SCHEMA_NOT_FOUND` error code only appears on single-item 404s.","required":["requests"],"properties":{"requests":{"type":"array","items":{"oneOf":[{"type":"object","description":"Success response from `POST /v1/requests` on a single-item POST. `internalId` is echoed only when supplied in the body. `payerLookup` is present on every created request when payer phone number lookup is enabled for the account (its `matched*` fields are `null` unless SuperDial dialed its own matched number).","required":["requestId","requestBatchId"],"example":{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_internal_456"},"properties":{"requestId":{"type":"string","description":"Server-generated request ID. Stable across idempotent retries with the same `internalId`. Use it on `GET /v1/requests/{requestId}` to fetch the full result.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.requestId","typeLabel":"string"},"requestBatchId":{"type":"string","description":"Server-generated batch ID this request belongs to.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.requestBatchId","typeLabel":"string"},"internalId":{"oneOf":[{"type":"string","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"requests.items.[INDEX].oneOf.0.internalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"requests.items.[INDEX].oneOf.0.internalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"requests.items.[INDEX].oneOf.0.internalId","typeLabel":"string | null"},"payerLookup":{"type":"object","description":"Payer/phone lookup outcome, returned on `POST /v1/requests` success responses and on the `GET /v1/requests` read endpoints. **Always present** on a created request when payer phone number lookup is enabled for your account. `phoneNumberToUse` is the number that will be dialed and `phoneNumberSource` says where it came from. The `matched*` fields are populated **only when SuperDial dials its own matched number** (you omitted `phoneNumber`, or set `useMatchedPayerPhone: true` and a match was found); when your supplied number is dialed they are `null` and `phoneNumberSource` is `input`. See the [Payer Phone Number Lookup guide](/guides/payer-resolution).","required":["inputPayerName","inputPhoneNumber","matchedPayerName","matchedPayerPhone","phoneNumberToUse","phoneNumberSource"],"properties":{"inputPayerName":{"oneOf":[{"type":"string","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName","typeLabel":"string | null"},"inputPhoneNumber":{"oneOf":[{"type":"string","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber","typeLabel":"string | null"},"matchedPayerName":{"oneOf":[{"type":"string","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName","typeLabel":"string | null"},"matchedPayerPhone":{"oneOf":[{"type":"string","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone","typeLabel":"string | null"},"phoneNumberToUse":{"oneOf":[{"type":"string","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse","typeLabel":"string | null"},"phoneNumberSource":{"oneOf":[{"type":"string","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"requests.items.[INDEX].oneOf.0.payerLookup","typeLabel":"object"}},"uniqueKey":"requests.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Uniform error envelope returned by every non-2xx response from `/v1/requests` and `/v1/schemas`. The `error` field is a stable machine-readable code; the `message` field is a human-readable description safe to surface to end users; `details` (optional) carries the structured `missingInputs` / `invalidInputs` block on the `INVALID_INPUTS` path. Unmatched paths and unsupported HTTP methods fall back to the framework's default response (typically HTML); use a documented endpoint and method to receive this envelope.","required":["error","message"],"properties":{"error":{"type":"string","enum":["INVALID_REQUEST","INVALID_INPUTS","PAYER_NOT_FOUND","ACCOUNT_NOT_FOUND","SCHEMA_NOT_FOUND","REQUEST_NOT_FOUND","INTERNAL_ERROR","PAYER_LOOKUP_FAILURE","PAYER_REQUIRED_INPUTS_DISABLED"],"description":"Machine-readable error code for the HTTP envelope. See [Creating a Request → Error handling](/guides/creating-a-request#error-handling) for what each code means, when it fires, and how to handle it.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.1.error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description. Never contains stack traces or internal identifiers.","isRequired":true,"uniqueKey":"requests.items.[INDEX].oneOf.1.message","typeLabel":"string"},"details":{"type":"object","description":"**Optional.** Currently set only for `INVALID_INPUTS`, where it contains `missingInputs` (array of field names) and/or `invalidInputs` (object mapping field name to reason). See the [Input Validation](/guides/input-validation) guide for the full set of rules behind these reasons.","properties":{"missingInputs":{"type":"array","description":"Field names that were required but absent, null, or empty/whitespace-only.","items":{"type":"string","uniqueKey":"requests.items.[INDEX].oneOf.1.details.missingInputs.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requests.items.[INDEX].oneOf.1.details.missingInputs","typeLabel":"string[]"},"invalidInputs":{"type":"object","description":"Maps each rejected field name to a human-readable reason (e.g. `phoneNumber is not a valid U.S. phone number`, `claimChargeAmount is scientific notation`, `memberId contains invalid characters (curly braces)`, or a member-ID structure message).","additionalProperties":{"type":"string","uniqueKey":"requests.items.[INDEX].oneOf.1.details.invalidInputs.additionalProperties","typeLabel":"string"},"uniqueKey":"requests.items.[INDEX].oneOf.1.details.invalidInputs","typeLabel":"object"}},"uniqueKey":"requests.items.[INDEX].oneOf.1.details","typeLabel":"object"}},"uniqueKey":"requests.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"requests.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"requests","typeLabel":"object[]"}},"example":{"requests":[{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_001"},{"error":"INVALID_REQUEST","message":"schemaId is required"}]},"uniqueKey":"","typeLabel":"object"},"examples":{"batchMixed":{"title":"batchMixed","value":{"requests":[{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_001"},{"error":"INVALID_REQUEST","message":"schemaId is required"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"e649c3f1-b929-46ad-8bdd-f2ca183f30c1":{"description":"Validation error. The body is always an `ApiError` envelope, except when every entry of a batch failed validation. In that case the body is a `CreateRequestBatchResponse` and each entry is its own `ApiError`. Codes returned at this status: `INVALID_REQUEST` (payload-shape, missing required fields, scheduling-capacity errors) and `INVALID_INPUTS` (input validation, with `details.missingInputs` and/or `details.invalidInputs`). With per-payer required inputs enabled, `details.missingInputs` can also include inputs a payer requires beyond the schema fields.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Uniform error envelope returned by every non-2xx response from `/v1/requests` and `/v1/schemas`. The `error` field is a stable machine-readable code; the `message` field is a human-readable description safe to surface to end users; `details` (optional) carries the structured `missingInputs` / `invalidInputs` block on the `INVALID_INPUTS` path. Unmatched paths and unsupported HTTP methods fall back to the framework's default response (typically HTML); use a documented endpoint and method to receive this envelope.","required":["error","message"],"properties":{"error":{"type":"string","enum":["INVALID_REQUEST","INVALID_INPUTS","PAYER_NOT_FOUND","ACCOUNT_NOT_FOUND","SCHEMA_NOT_FOUND","REQUEST_NOT_FOUND","INTERNAL_ERROR","PAYER_LOOKUP_FAILURE","PAYER_REQUIRED_INPUTS_DISABLED"],"description":"Machine-readable error code for the HTTP envelope. See [Creating a Request → Error handling](/guides/creating-a-request#error-handling) for what each code means, when it fires, and how to handle it.","isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description. Never contains stack traces or internal identifiers.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"details":{"type":"object","description":"**Optional.** Currently set only for `INVALID_INPUTS`, where it contains `missingInputs` (array of field names) and/or `invalidInputs` (object mapping field name to reason). See the [Input Validation](/guides/input-validation) guide for the full set of rules behind these reasons.","properties":{"missingInputs":{"type":"array","description":"Field names that were required but absent, null, or empty/whitespace-only.","items":{"type":"string","uniqueKey":"oneOf.0.details.missingInputs.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.details.missingInputs","typeLabel":"string[]"},"invalidInputs":{"type":"object","description":"Maps each rejected field name to a human-readable reason (e.g. `phoneNumber is not a valid U.S. phone number`, `claimChargeAmount is scientific notation`, `memberId contains invalid characters (curly braces)`, or a member-ID structure message).","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.details.invalidInputs.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.details.invalidInputs","typeLabel":"object"}},"uniqueKey":"oneOf.0.details","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Response from `POST /v1/requests` on a batch POST. Each entry in `requests` is positionally aligned with the input and is either a `CreateRequestSuccess` payload or an `ApiError` envelope. In the batch context, schema-not-found surfaces per-entry as `INVALID_REQUEST` (with `\"Schema not found\"` in `message`); the `SCHEMA_NOT_FOUND` error code only appears on single-item 404s.","required":["requests"],"example":{"requests":[{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_001"},{"error":"INVALID_REQUEST","message":"schemaId is required"}]},"properties":{"requests":{"type":"array","items":{"oneOf":[{"type":"object","description":"Success response from `POST /v1/requests` on a single-item POST. `internalId` is echoed only when supplied in the body. `payerLookup` is present on every created request when payer phone number lookup is enabled for the account (its `matched*` fields are `null` unless SuperDial dialed its own matched number).","required":["requestId","requestBatchId"],"example":{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_internal_456"},"properties":{"requestId":{"type":"string","description":"Server-generated request ID. Stable across idempotent retries with the same `internalId`. Use it on `GET /v1/requests/{requestId}` to fetch the full result.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.requestId","typeLabel":"string"},"requestBatchId":{"type":"string","description":"Server-generated batch ID this request belongs to.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.requestBatchId","typeLabel":"string"},"internalId":{"oneOf":[{"type":"string","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId","typeLabel":"string | null"},"payerLookup":{"type":"object","description":"Payer/phone lookup outcome, returned on `POST /v1/requests` success responses and on the `GET /v1/requests` read endpoints. **Always present** on a created request when payer phone number lookup is enabled for your account. `phoneNumberToUse` is the number that will be dialed and `phoneNumberSource` says where it came from. The `matched*` fields are populated **only when SuperDial dials its own matched number** (you omitted `phoneNumber`, or set `useMatchedPayerPhone: true` and a match was found); when your supplied number is dialed they are `null` and `phoneNumberSource` is `input`. See the [Payer Phone Number Lookup guide](/guides/payer-resolution).","required":["inputPayerName","inputPhoneNumber","matchedPayerName","matchedPayerPhone","phoneNumberToUse","phoneNumberSource"],"properties":{"inputPayerName":{"oneOf":[{"type":"string","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName","typeLabel":"string | null"},"inputPhoneNumber":{"oneOf":[{"type":"string","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber","typeLabel":"string | null"},"matchedPayerName":{"oneOf":[{"type":"string","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName","typeLabel":"string | null"},"matchedPayerPhone":{"oneOf":[{"type":"string","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone","typeLabel":"string | null"},"phoneNumberToUse":{"oneOf":[{"type":"string","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse","typeLabel":"string | null"},"phoneNumberSource":{"oneOf":[{"type":"string","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Uniform error envelope returned by every non-2xx response from `/v1/requests` and `/v1/schemas`. The `error` field is a stable machine-readable code; the `message` field is a human-readable description safe to surface to end users; `details` (optional) carries the structured `missingInputs` / `invalidInputs` block on the `INVALID_INPUTS` path. Unmatched paths and unsupported HTTP methods fall back to the framework's default response (typically HTML); use a documented endpoint and method to receive this envelope.","required":["error","message"],"properties":{"error":{"type":"string","enum":["INVALID_REQUEST","INVALID_INPUTS","PAYER_NOT_FOUND","ACCOUNT_NOT_FOUND","SCHEMA_NOT_FOUND","REQUEST_NOT_FOUND","INTERNAL_ERROR","PAYER_LOOKUP_FAILURE","PAYER_REQUIRED_INPUTS_DISABLED"],"description":"Machine-readable error code for the HTTP envelope. See [Creating a Request → Error handling](/guides/creating-a-request#error-handling) for what each code means, when it fires, and how to handle it.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description. Never contains stack traces or internal identifiers.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.message","typeLabel":"string"},"details":{"type":"object","description":"**Optional.** Currently set only for `INVALID_INPUTS`, where it contains `missingInputs` (array of field names) and/or `invalidInputs` (object mapping field name to reason). See the [Input Validation](/guides/input-validation) guide for the full set of rules behind these reasons.","properties":{"missingInputs":{"type":"array","description":"Field names that were required but absent, null, or empty/whitespace-only.","items":{"type":"string","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.missingInputs.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.missingInputs","typeLabel":"string[]"},"invalidInputs":{"type":"object","description":"Maps each rejected field name to a human-readable reason (e.g. `phoneNumber is not a valid U.S. phone number`, `claimChargeAmount is scientific notation`, `memberId contains invalid characters (curly braces)`, or a member-ID structure message).","additionalProperties":{"type":"string","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.invalidInputs.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.invalidInputs","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.requests.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.requests","typeLabel":"object[]"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"bodyNotJsonObject":{"title":"bodyNotJsonObject","value":{"error":"INVALID_REQUEST","message":"The request body must be a JSON object."}},"schemaIdRequired":{"title":"schemaIdRequired","value":{"error":"INVALID_REQUEST","message":"schemaId is required"}},"inputsNotObject":{"title":"inputsNotObject","value":{"error":"INVALID_REQUEST","message":"inputs must be an object"}},"inputsMissing":{"title":"inputsMissing","value":{"error":"INVALID_INPUTS","message":"Required inputs are missing or invalid.","details":{"missingInputs":["beginningDateOfService","billingProviderName","billingProviderTaxId","claimChargeAmount","memberId","patientDateOfBirth","patientFirstName","patientLastName","phoneNumber","renderingProviderName","renderingProviderNpi"]}}},"inputsInvalid":{"title":"inputsInvalid","value":{"error":"INVALID_INPUTS","message":"Required inputs are missing or invalid.","details":{"missingInputs":["beginningDateOfService","billingProviderName","billingProviderTaxId","claimChargeAmount","patientDateOfBirth","patientFirstName","patientLastName","renderingProviderName","renderingProviderNpi"],"invalidInputs":{"memberId":"memberId contains invalid characters (curly braces)","phoneNumber":"phoneNumber is not a valid U.S. phone number"}}}},"inputsFormatInvalid":{"title":"inputsFormatInvalid","value":{"error":"INVALID_INPUTS","message":"Required inputs are missing or invalid.","details":{"invalidInputs":{"claimChargeAmount":"claimChargeAmount is scientific notation","dateOfService":"dateOfService is invalid","phoneNumber":"phoneNumber is not a valid U.S. phone number"}}}},"inputValueNotString":{"title":"inputValueNotString","value":{"error":"INVALID_INPUTS","message":"Required inputs are missing or invalid.","details":{"invalidInputs":{"priorDenialReason":"priorDenialReason must be a string (got dict)"}}}},"memberIdRejected":{"title":"memberIdRejected","value":{"error":"INVALID_INPUTS","message":"Required inputs are missing or invalid.","details":{"invalidInputs":{"memberId":"memberId 'ABC' is too short to be a BCBS member ID (got 3 characters, minimum is 9). BCBS Federal IDs are 9 chars (R + 8 digits); commercial IDs are typically 11+."}}}},"dailyLimitZero":{"title":"dailyLimitZero","value":{"error":"INVALID_REQUEST","message":"Daily calls limit is set to 0: cannot schedule batches"}},"capacityExceeded":{"title":"capacityExceeded","value":{"error":"INVALID_REQUEST","message":"Could not schedule all rows within 365 days: 5 of 100 rows could not be placed"}},"batchEmpty":{"title":"batchEmpty","value":{"error":"INVALID_REQUEST","message":"The 'requests' array must contain at least one entry."}},"payerNotFound":{"title":"payerNotFound","value":{"error":"PAYER_NOT_FOUND","message":"Could not match the supplied payerName to any known payer."}},"batchAllFailed":{"title":"batchAllFailed","value":{"requests":[{"error":"INVALID_REQUEST","message":"Schema not found"},{"error":"INVALID_REQUEST","message":"schemaId is required"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"415882cf-59c1-490a-9801-238d806cc032":{"description":"Unauthorized: enforced by the API gateway. Returned when the `Authorization: Bearer \u003ctoken>` header is missing, malformed, or the token is invalid/expired. The gateway uses its own envelope (`{code, message}`), distinct from the service's `ApiError`.","headers":{"WWW-Authenticate":{"description":"Bearer realm and (when applicable) error code per RFC 6750.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","description":"Error envelope returned by the API Gateway for auth failures and routing errors. Distinct from the service's own `ApiError` envelope: gateway responses use `{code, message}` because they're produced before the request reaches the service.","properties":{"code":{"type":"integer","description":"HTTP status code, repeated in the body.","example":401,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable error message from the gateway.","example":"Jwt is missing","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"missingAuth":{"title":"missingAuth","value":{"code":401,"message":"Jwt is missing"}},"malformedJwt":{"title":"malformedJwt","value":{"code":401,"message":"Jwt is not in the form of Header.Payload.Signature with two dots and 3 sections"}}},"exampleType":"examples"}},"exampleType":"examples"},"22c2d8e8-b99e-429f-bdce-2471c8eb9ce2":{"description":"Resource not found: schema or account.","content":{"application/json":{"schema":{"type":"object","description":"Uniform error envelope returned by every non-2xx response from `/v1/requests` and `/v1/schemas`. The `error` field is a stable machine-readable code; the `message` field is a human-readable description safe to surface to end users; `details` (optional) carries the structured `missingInputs` / `invalidInputs` block on the `INVALID_INPUTS` path. Unmatched paths and unsupported HTTP methods fall back to the framework's default response (typically HTML); use a documented endpoint and method to receive this envelope.","required":["error","message"],"properties":{"error":{"type":"string","enum":["INVALID_REQUEST","INVALID_INPUTS","PAYER_NOT_FOUND","ACCOUNT_NOT_FOUND","SCHEMA_NOT_FOUND","REQUEST_NOT_FOUND","INTERNAL_ERROR","PAYER_LOOKUP_FAILURE","PAYER_REQUIRED_INPUTS_DISABLED"],"description":"Machine-readable error code for the HTTP envelope. See [Creating a Request → Error handling](/guides/creating-a-request#error-handling) for what each code means, when it fires, and how to handle it.","isRequired":true,"uniqueKey":"error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description. Never contains stack traces or internal identifiers.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"**Optional.** Currently set only for `INVALID_INPUTS`, where it contains `missingInputs` (array of field names) and/or `invalidInputs` (object mapping field name to reason). See the [Input Validation](/guides/input-validation) guide for the full set of rules behind these reasons.","properties":{"missingInputs":{"type":"array","description":"Field names that were required but absent, null, or empty/whitespace-only.","items":{"type":"string","uniqueKey":"details.missingInputs.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.missingInputs","typeLabel":"string[]"},"invalidInputs":{"type":"object","description":"Maps each rejected field name to a human-readable reason (e.g. `phoneNumber is not a valid U.S. phone number`, `claimChargeAmount is scientific notation`, `memberId contains invalid characters (curly braces)`, or a member-ID structure message).","additionalProperties":{"type":"string","uniqueKey":"details.invalidInputs.additionalProperties","typeLabel":"string"},"uniqueKey":"details.invalidInputs","typeLabel":"object"}},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"schemaNotFound":{"title":"schemaNotFound","value":{"error":"SCHEMA_NOT_FOUND","message":"No schema with that ID exists for your account."}},"accountNotFound":{"title":"accountNotFound","value":{"error":"ACCOUNT_NOT_FOUND","message":"No account is associated with this API key. Contact support if you believe this is an error."}}},"exampleType":"examples"}},"exampleType":"examples"},"cfe5390e-5146-4fef-a972-062480278a95":{"description":"Internal server error. **Single-item POST:** body is the top-level `INTERNAL_ERROR` envelope. **Batch POST:** body can take **either** of two shapes: top-level `INTERNAL_ERROR` envelope (the common case), or `{\"requests\": [...]}` with per-entry envelopes (rarer: every entry failed and at least one was a server error). Check for the `requests` key to tell the two shapes apart.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Uniform error envelope returned by every non-2xx response from `/v1/requests` and `/v1/schemas`. The `error` field is a stable machine-readable code; the `message` field is a human-readable description safe to surface to end users; `details` (optional) carries the structured `missingInputs` / `invalidInputs` block on the `INVALID_INPUTS` path. Unmatched paths and unsupported HTTP methods fall back to the framework's default response (typically HTML); use a documented endpoint and method to receive this envelope.","required":["error","message"],"properties":{"error":{"type":"string","enum":["INVALID_REQUEST","INVALID_INPUTS","PAYER_NOT_FOUND","ACCOUNT_NOT_FOUND","SCHEMA_NOT_FOUND","REQUEST_NOT_FOUND","INTERNAL_ERROR","PAYER_LOOKUP_FAILURE","PAYER_REQUIRED_INPUTS_DISABLED"],"description":"Machine-readable error code for the HTTP envelope. See [Creating a Request → Error handling](/guides/creating-a-request#error-handling) for what each code means, when it fires, and how to handle it.","isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description. Never contains stack traces or internal identifiers.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"details":{"type":"object","description":"**Optional.** Currently set only for `INVALID_INPUTS`, where it contains `missingInputs` (array of field names) and/or `invalidInputs` (object mapping field name to reason). See the [Input Validation](/guides/input-validation) guide for the full set of rules behind these reasons.","properties":{"missingInputs":{"type":"array","description":"Field names that were required but absent, null, or empty/whitespace-only.","items":{"type":"string","uniqueKey":"oneOf.0.details.missingInputs.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.details.missingInputs","typeLabel":"string[]"},"invalidInputs":{"type":"object","description":"Maps each rejected field name to a human-readable reason (e.g. `phoneNumber is not a valid U.S. phone number`, `claimChargeAmount is scientific notation`, `memberId contains invalid characters (curly braces)`, or a member-ID structure message).","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.details.invalidInputs.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.details.invalidInputs","typeLabel":"object"}},"uniqueKey":"oneOf.0.details","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Response from `POST /v1/requests` on a batch POST. Each entry in `requests` is positionally aligned with the input and is either a `CreateRequestSuccess` payload or an `ApiError` envelope. In the batch context, schema-not-found surfaces per-entry as `INVALID_REQUEST` (with `\"Schema not found\"` in `message`); the `SCHEMA_NOT_FOUND` error code only appears on single-item 404s.","required":["requests"],"example":{"requests":[{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_001"},{"error":"INVALID_REQUEST","message":"schemaId is required"}]},"properties":{"requests":{"type":"array","items":{"oneOf":[{"type":"object","description":"Success response from `POST /v1/requests` on a single-item POST. `internalId` is echoed only when supplied in the body. `payerLookup` is present on every created request when payer phone number lookup is enabled for the account (its `matched*` fields are `null` unless SuperDial dialed its own matched number).","required":["requestId","requestBatchId"],"example":{"requestId":"8bF7xK2mP9qR4sT6uV0w","requestBatchId":"pH9kJ2lM4nB6vC8xZ7Qr","internalId":"claim_internal_456"},"properties":{"requestId":{"type":"string","description":"Server-generated request ID. Stable across idempotent retries with the same `internalId`. Use it on `GET /v1/requests/{requestId}` to fetch the full result.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.requestId","typeLabel":"string"},"requestBatchId":{"type":"string","description":"Server-generated batch ID this request belongs to.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.requestBatchId","typeLabel":"string"},"internalId":{"oneOf":[{"type":"string","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"**Optional.** Echoed back from the request body if you supplied one.","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.internalId","typeLabel":"string | null"},"payerLookup":{"type":"object","description":"Payer/phone lookup outcome, returned on `POST /v1/requests` success responses and on the `GET /v1/requests` read endpoints. **Always present** on a created request when payer phone number lookup is enabled for your account. `phoneNumberToUse` is the number that will be dialed and `phoneNumberSource` says where it came from. The `matched*` fields are populated **only when SuperDial dials its own matched number** (you omitted `phoneNumber`, or set `useMatchedPayerPhone: true` and a match was found); when your supplied number is dialed they are `null` and `phoneNumberSource` is `input`. See the [Payer Phone Number Lookup guide](/guides/payer-resolution).","required":["inputPayerName","inputPhoneNumber","matchedPayerName","matchedPayerPhone","phoneNumberToUse","phoneNumberSource"],"properties":{"inputPayerName":{"oneOf":[{"type":"string","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Echoes `inputs.payerName` from the request, verbatim. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPayerName","typeLabel":"string | null"},"inputPhoneNumber":{"oneOf":[{"type":"string","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `phoneNumber` you supplied in `inputs`, before any lookup. `null` when none was supplied.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.inputPhoneNumber","typeLabel":"string | null"},"matchedPayerName":{"oneOf":[{"type":"string","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Canonical payer name SuperDial matched. `null` unless the matched payer's number was dialed. Compare against `inputPayerName` to confirm the match.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerName","typeLabel":"string | null"},"matchedPayerPhone":{"oneOf":[{"type":"string","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number of the matched payer. `null` unless it was the number dialed.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.matchedPayerPhone","typeLabel":"string | null"},"phoneNumberToUse":{"oneOf":[{"type":"string","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number that will actually be dialed. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberToUse","typeLabel":"string | null"},"phoneNumberSource":{"oneOf":[{"type":"string","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["superdial","phoneBook","input"],"description":"Origin of `phoneNumberToUse`: `superdial` is SuperDial's payer directory, `phoneBook` is a per-client override configured for your account, `input` is the number you supplied. `null` when nothing is dialable.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup.phoneNumberSource","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0.payerLookup","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Uniform error envelope returned by every non-2xx response from `/v1/requests` and `/v1/schemas`. The `error` field is a stable machine-readable code; the `message` field is a human-readable description safe to surface to end users; `details` (optional) carries the structured `missingInputs` / `invalidInputs` block on the `INVALID_INPUTS` path. Unmatched paths and unsupported HTTP methods fall back to the framework's default response (typically HTML); use a documented endpoint and method to receive this envelope.","required":["error","message"],"properties":{"error":{"type":"string","enum":["INVALID_REQUEST","INVALID_INPUTS","PAYER_NOT_FOUND","ACCOUNT_NOT_FOUND","SCHEMA_NOT_FOUND","REQUEST_NOT_FOUND","INTERNAL_ERROR","PAYER_LOOKUP_FAILURE","PAYER_REQUIRED_INPUTS_DISABLED"],"description":"Machine-readable error code for the HTTP envelope. See [Creating a Request → Error handling](/guides/creating-a-request#error-handling) for what each code means, when it fires, and how to handle it.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description. Never contains stack traces or internal identifiers.","isRequired":true,"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.message","typeLabel":"string"},"details":{"type":"object","description":"**Optional.** Currently set only for `INVALID_INPUTS`, where it contains `missingInputs` (array of field names) and/or `invalidInputs` (object mapping field name to reason). See the [Input Validation](/guides/input-validation) guide for the full set of rules behind these reasons.","properties":{"missingInputs":{"type":"array","description":"Field names that were required but absent, null, or empty/whitespace-only.","items":{"type":"string","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.missingInputs.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.missingInputs","typeLabel":"string[]"},"invalidInputs":{"type":"object","description":"Maps each rejected field name to a human-readable reason (e.g. `phoneNumber is not a valid U.S. phone number`, `claimChargeAmount is scientific notation`, `memberId contains invalid characters (curly braces)`, or a member-ID structure message).","additionalProperties":{"type":"string","uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.invalidInputs.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details.invalidInputs","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1.details","typeLabel":"object"}},"uniqueKey":"oneOf.1.requests.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.requests.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.requests","typeLabel":"object[]"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"singleInternalError":{"title":"singleInternalError","value":{"error":"INTERNAL_ERROR","message":"An internal error occurred. Please try again or contact support if the problem persists."}},"payerLookupFailure":{"title":"payerLookupFailure","value":{"error":"PAYER_LOOKUP_FAILURE","message":"Could not retrieve a phone number for the resolved payer. Please retry, or supply phoneNumber explicitly."}},"batchInternalError":{"title":"batchInternalError","value":{"error":"INTERNAL_ERROR","message":"An internal error occurred. Please try again or contact support if the problem persists."}},"batchAllServerErrors":{"title":"batchAllServerErrors","value":{"requests":[{"error":"INVALID_REQUEST","message":"Failed to enqueue request"},{"error":"INVALID_REQUEST","message":"schemaId is required"}]}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"d1f4aafb-adcf-484d-830b-6fad98db3b67":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer token obtained from the /v1/auth endpoint","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"c4b175c6-68d7-4f5a-a035-5b49b0403a76":{"url":"https://robodialer-service-api-9nc4t1p9.uc.gateway.dev","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer token obtained from the /v1/auth endpoint","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token obtained from the /v1/auth endpoint","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"superdial-9fcd9934","siteName":"SuperDial API","title":"Create a Request - SuperDial API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-20T20:55:30.706Z","originalFileLocation":"api-reference/requests/create-a-request.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Submit a single request or a batch of requests. For batch, wrap in {\u0026quot;requests\u0026quot;: [...]}. If internalId is supplied on a single request, a duplicate POST with the same internalId returns the previously reserved requestId rather than creating a new one.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SuperDial API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a Request - SuperDial API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Submit a single request or a batch of requests. For batch, wrap in {\u0026quot;requests\u0026quot;: [...]}. If internalId is supplied on a single request, a duplicate POST with the same internalId returns the previously reserved requestId rather than creating a new one.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SuperDial API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.superdial.com/api-reference/requests/create-a-request\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://superdial-9fcd9934.mintlify.site/_mintlify/api/og/v2?division=Requests\u0026amp;title=Create+a+Request\u0026amp;description=Submit+a+single+request+or+a+batch+of+requests.+For+batch%2C+wrap+in+%60%7B%22requests%22%3A+%5B...%5D%7D%60.+If+%60internalId%60+is+supplied+on+a+single+request%2C+a+duplicate+POST+with\u0026amp;theme=31448c6dd75f433e32c468d2\u0026amp;signature=c51f61a60b046f4f3e3070fcd4c2eaeb23a70dc4a758d60d3f2a8b8b6dae5e9e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a Request - SuperDial API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Submit a single request or a batch of requests. For batch, wrap in {\u0026quot;requests\u0026quot;: [...]}. If internalId is supplied on a single request, a duplicate POST with the same internalId returns the previously reserved requestId rather than creating a new one.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://superdial-9fcd9934.mintlify.site/_mintlify/api/og/v2?division=Requests\u0026amp;title=Create+a+Request\u0026amp;description=Submit+a+single+request+or+a+batch+of+requests.+For+batch%2C+wrap+in+%60%7B%22requests%22%3A+%5B...%5D%7D%60.+If+%60internalId%60+is+supplied+on+a+single+request%2C+a+duplicate+POST+with\u0026amp;theme=31448c6dd75f433e32c468d2\u0026amp;signature=c51f61a60b046f4f3e3070fcd4c2eaeb23a70dc4a758d60d3f2a8b8b6dae5e9e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/superdial-9fcd9934/6yMBfZH-oph9iQDr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SuperDial API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4a43cd\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.superdial.com/api-reference/requests/create-a-request\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/requests/create-a-request.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.superdial.com/#organization\",\"name\":\"SuperDial API\",\"url\":\"https://docs.superdial.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/superdial-9fcd9934/KzxamTIEifVDF1yv/logo/light.svg?fit=max\u0026auto=format\u0026n=KzxamTIEifVDF1yv\u0026q=85\u0026s=77c15b72582931c99c221ee72f68f1dc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.superdial.com#website\",\"name\":\"SuperDial API\",\"url\":\"https://docs.superdial.com\",\"publisher\":{\"@id\":\"https://docs.superdial.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.superdial.com/api-reference/requests/create-a-request#webpage\",\"url\":\"https://docs.superdial.com/api-reference/requests/create-a-request\",\"name\":\"Create a Request\",\"description\":\"Submit a single request or a batch of requests. For batch, wrap in {\\\"requests\\\": [...]}. If internalId is supplied on a single request, a duplicate POST with the same internalId returns the previously reserved requestId rather than creating a new one.\",\"dateModified\":\"2026-10-20T20:55:30.706Z\",\"isPartOf\":{\"@id\":\"https://docs.superdial.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.superdial.com/api-reference/requests/create-a-request#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.superdial.com/api-reference/requests/create-a-request#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Requests\",\"item\":\"https://docs.superdial.com/api-reference/requests/list-requests\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Request\",\"item\":\"https://docs.superdial.com/api-reference/requests/create-a-request\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.superdial.com/api-reference/requests/create-a-request#apireference\",\"headline\":\"Create a Request\",\"name\":\"Create a Request\",\"description\":\"Submit a single request or a batch of requests. For batch, wrap in {\\\"requests\\\": [...]}. If internalId is supplied on a single request, a duplicate POST with the same internalId returns the previously reserved requestId rather than creating a new one.\",\"url\":\"https://docs.superdial.com/api-reference/requests/create-a-request\",\"mainEntityOfPage\":{\"@id\":\"https://docs.superdial.com/api-reference/requests/create-a-request#webpage\"},\"dateModified\":\"2026-10-20T20:55:30.706Z\",\"publisher\":{\"@id\":\"https://docs.superdial.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.superdial.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SuperDial API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"SuperDial API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Authentication","pages":[{"title":"Authenticate and get token","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/auth","href":"/api-reference/authentication/authenticate-and-get-token"}]},{"group":"Schemas","pages":[{"title":"List schemas","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/schemas","href":"/api-reference/schemas/list-schemas"},{"title":"Retrieve a schema","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/schemas/{schemaId}","href":"/api-reference/schemas/retrieve-a-schema"},{"title":"Required inputs for a schema","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/schemas/{schemaId}/required-inputs","href":"/api-reference/schemas/required-inputs-for-a-schema"},{"title":"Resolve payer names against a schema's required inputs","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/schemas/{schemaId}/required-payer-inputs","href":"/api-reference/schemas/resolve-payer-names-against-a-schemas-required-inputs"}]},{"group":"Requests","pages":[{"title":"List Requests","description":"Retrieve requests filtered by date range or batch ID.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/requests","href":"/api-reference/requests/list-requests"},{"title":"Create a Request","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/requests","href":"/api-reference/requests/create-a-request"},{"title":"Retrieve a Request","description":"Fetch details for a request by ID.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/requests/{requestId}","href":"/api-reference/requests/retrieve-a-request"}]}]}]},"basePath":"","title":"Create a Request - SuperDial API","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}