Test keys: an assignment sent with an isnap_test_ account key takes a real line, billed like any other: see Test keys.
Idempotency-Key: honored, and remembered for 24 hours. Without it, every retry takes one more billable line. See Retries and Lines and hosted macOS sessions.
The Idempotency-Key is longer than 255 characters, or the body is invalid.
400
reserved_metadata_key
metadata names migration_ref or proof_line.
400
inbound_only_not_rental
inbound_only is true with a BYOD kind.
400
test_line_not_rental
as_test_line is true with a BYOD kind.
400
test_line_not_inbound_only
as_test_line and inbound_only are both true.
402
checkout_required
Your account is not a wholesale partner. This is checked after the body passes validation, before the other rules of this operation on the body, and before any line is looked at.
403
forbidden
The request uses a line-scoped key.
409
no_matching_line
No available line matches, or the line that was picked failed its last checks.
The hosted macOS session of the line that was picked does not fit.
409
idempotency_key_collision
The same Idempotency-Key was sent with another body.
503
idempotency_in_flight
A request with the same Idempotency-Key is still running. Retry with the same key.
With as_test_line: true, the call can also return an error of convert-to-test after the line was assigned. The line then stays yours as a rented line: see Assignment.The errors that every operation shares are in Errors.
Authorizations
Authorization
string
header
required
An API key created in the iSnap dashboard, or a trial key, sent as Authorization: Bearer <key>. An API key starts with isnap_live_ or isnap_test_; both act on the same account, lines and billing. A trial key acts on its trial only.
Headers
idempotency-key
string
Optional key that makes a retry safe. A request repeated with the same key, by the same API key, with the same method, path and body, within 24 hours, returns the first successful response unchanged, its trace_id and request_id included, and does not act again. The body is compared byte for byte: a request with no body and a request with {} are two different requests. The same key with another method, path or body returns 409 idempotency_key_collision. While the first request is still running, a retry returns 503 idempotency_in_flight; a request that never completes frees its key after 60 seconds. Only a 2xx response is recorded: after a failed request, the retry runs again. At most 255 characters: a longer key returns 400 validation_failed. The X-Idempotency-Key header is read when Idempotency-Key is absent.
Maximum string length: 255
Body
application/json
The line to take: its kind and, optionally, its area code, its variant and its metadata.
billing_tier
enum<string>
required
The kind of line to take.
Available options:
rental_iphone,
rental_android,
byod_imessage,
byod_android
area_code
string
Take a line whose area_code is exactly this value. Omit it to take a line of any area code.
Required string length: 1 - 10
inbound_only
boolean
true to take the line as an inbound-only line. Rented tiers only (400 inbound_only_not_rental otherwise). Defaults to false: a two-way line.
as_test_line
boolean
true to make the line a test line for the trials of your own prospects, in the same call. Rented tiers only (400 test_line_not_rental otherwise), and not together with inbound_only (400 test_line_not_inbound_only). Defaults to false.
metadata
object
Your own key-value data, set on the line in place of any metadata it carried. Omit it to clear the metadata of the line. At most 20 keys and 8,192 bytes once serialized as JSON. The keys migration_ref and proof_line are reserved (400 reserved_metadata_key). Never put personal data or secrets in it.
Show child attributes
Example:
{ "crm_account_id": "acc_123" }
Response
The assigned line, active, with its full phone number.
success
enum<boolean>
required
Always true on a success response.
Available options:
true
data
object
required
A line. billing_tier, byod, shared, test_line and inbound_only tell the kinds of line apart: a rented line (two-way or inbound-only), a BYOD line, a shared line, a test line.
Show child attributes
trace_id
string
required
Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.
request_id
string
required
Id of the request that produced this response: req_ followed by 25 letters or digits.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"iSnap","description":"Developer documentation for the iSnap API: send and receive iMessage, RCS and SMS from real devices, manage lines, and receive events by webhook.","colors":{"primary":"#09090b","light":"#fafafa","dark":"#09090b"},"logo":{"light":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-light.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=1208ab10ce8a1de87ddc30bbcaae611d","dark":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=8053b4f5aa88bba68e1dbf236c94e79b","href":"https://isnap.ai"},"favicon":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/favicon.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=a854eacec4807a19a4104fd0e6b72fd1","api":{"openapi":["api-reference/openapi.json"],"playground":{"display":"simple"}},"appearance":{"default":"light","strict":false},"background":{"color":{"light":"#ffffff","dark":"#09090b"}},"navbar":{"links":[{"href":"https://platform.isnap.ai","label":"Dashboard"}],"primary":{"type":"button","label":"Sign up","href":"https://platform.isnap.ai/signup"}},"search":{"prompt":"Search the iSnap docs..."},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"isnap","hasAudioNarration":false,"actualSubdomain":"isnap","customDomains":["docs.isnap.ai"],"gitSource":{"type":"github","owner":"whatsnap","repo":"isnap-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10e7239ffae5051c413bb3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad951ec97fabdbdfeb0f9c7","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API reference","count":74},{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Webhooks","count":19},{"language":"default","tag":"Lines","count":15},{"language":"default","tag":"SDK","count":10},{"language":"default","tag":"Line lifecycle","count":9},{"language":"default","tag":"Webhook subscriptions","count":9},{"language":"default","tag":"Events","count":9},{"language":"default","tag":"Pre-orders","count":7},{"language":"default","tag":"Chats","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/lines/assign-line","slug":"/api-reference/lines/assign-line","pageMetadata":{"title":"Assign a line","description":"Makes one available line of a kind yours and activates it, in one call.","openapi":"POST /v1/lines/assign","href":"/api-reference/lines/assign-line"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Makes one available line of a kind yours and activates it, in one call.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Credential:`}),` an API key with no list of lines. See `,_jsx(_components.a,{href:`/guides/getting-a-line#assignment`,children:`Assignment`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Account:`}),` wholesale partners only: any other account receives `,_jsx(_components.code,{children:`402 checkout_required`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Line-scoped keys:`}),` every `,_jsx(_components.a,{href:`/authentication#line-scoped-keys`,children:`line-scoped key`}),` gets `,_jsx(_components.code,{children:`403 forbidden`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Test keys:`}),` an assignment sent with an `,_jsx(_components.code,{children:`isnap_test_`}),` account key takes a real line, billed like any other: see `,_jsx(_components.a,{href:`/authentication#test-keys`,children:`Test keys`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`Idempotency-Key`}),`:`]}),` honored, and remembered for 24 hours. Without it, every retry takes one more billable line. See `,_jsx(_components.a,{href:`/guides/getting-a-line#retries`,children:`Retries`}),` and `,_jsx(_components.a,{href:`/idempotency#lines-and-hosted-macos-sessions`,children:`Lines and hosted macOS sessions`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Events:`}),` none. See `,_jsx(_components.a,{href:`/guides/getting-a-line#events`,children:`Events`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`validation_failed`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`Idempotency-Key`}),` is longer than 255 characters, or the body is invalid.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reserved_metadata_key`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`metadata`}),` names `,_jsx(_components.code,{children:`migration_ref`}),` or `,_jsx(_components.code,{children:`proof_line`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`inbound_only_not_rental`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`inbound_only`}),` is `,_jsx(_components.code,{children:`true`}),` with a BYOD kind.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`test_line_not_rental`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`as_test_line`}),` is `,_jsx(_components.code,{children:`true`}),` with a BYOD kind.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`test_line_not_inbound_only`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`as_test_line`}),` and `,_jsx(_components.code,{children:`inbound_only`}),` are both `,_jsx(_components.code,{children:`true`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`checkout_required`})}),_jsx(_components.td,{children:`Your account is not a wholesale partner. This is checked after the body passes validation, before the other rules of this operation on the body, and before any line is looked at.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`forbidden`})}),_jsx(_components.td,{children:`The request uses a line-scoped key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`no_matching_line`})}),_jsx(_components.td,{children:`No available line matches, or the line that was picked failed its last checks.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`line_on_rented_macos_session`}),`, `,_jsx(_components.code,{children:`line_takes_no_macos_session`})]}),_jsx(_components.td,{children:`The hosted macOS session of the line that was picked does not fit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`idempotency_key_collision`})}),_jsxs(_components.td,{children:[`The same `,_jsx(_components.code,{children:`Idempotency-Key`}),` was sent with another body.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`idempotency_in_flight`})}),_jsxs(_components.td,{children:[`A request with the same `,_jsx(_components.code,{children:`Idempotency-Key`}),` is still running. Retry with the same key.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`as_test_line: true`}),`, the call can also return an error of `,_jsx(_components.a,{href:`/api-reference/lines/convert-to-test-line`,children:_jsx(_components.code,{children:`convert-to-test`})}),` after the line was assigned. The line then stays yours as a rented line: see `,_jsx(_components.a,{href:`/guides/getting-a-line#assignment`,children:`Assignment`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The errors that every operation shares are in `,_jsx(_components.a,{href:`/errors-and-rate-limits#errors`,children:`Errors`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Assign a line","description":"Makes one available line of a kind yours and activates it, in one call.","openapi":"POST /v1/lines/assign","href":"/api-reference/lines/assign-line"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Assign a line","description":"Makes one available line of a kind yours and activates it, in one call.","security":["7529ae09-815f-453b-98e4-a7b1efc057b3"],"parameters":["538bf67e-60e1-44e1-83fe-38727ecdfb5c"],"requestBody":"37e174b8-3557-48a8-b0cd-63808ec6f8ea","responses":{"200":"6e8d3820-31c6-4921-9889-48be808777ef","400":"b2a61a2e-32cb-4be5-89d1-719bba1f8a62","401":"3d921a31-bed7-41ae-aec1-2c366d5d2418","402":"c41da76e-19f1-4e58-a8f8-fbddd2c372dd","403":"8edb6b0f-6098-4d8f-a3de-79295a3cbc2a","404":"9f448d1e-a04c-407b-8f1f-995b5bc938de","409":"8b08afd7-4f43-4da4-a2c8-aaeb4adb1a2b","429":"4026784a-81ca-446e-901c-0312fd9a9ec5","500":"e1a5b17e-fa44-4753-b0bb-2c114743686f","503":"b2eb9ad8-e6d4-4642-839a-5afcdbbe1cd9"},"method":"post","type":"path","servers":["13b85773-3d70-47e8-aa94-bbc0de8ddb38"],"path":"/v1/lines/assign","baseUrlOptions":["https://api.isnap.ai"],"title":"Assign a line","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"538bf67e-60e1-44e1-83fe-38727ecdfb5c":{"schema":{"type":"string","maxLength":255,"description":"Optional key that makes a retry safe. A request repeated with the same key, by the same API key, with the same method, path and body, within 24 hours, returns the first successful response unchanged, its `trace_id` and `request_id` included, and does not act again. The body is compared byte for byte: a request with no body and a request with `{}` are two different requests. The same key with another method, path or body returns `409 idempotency_key_collision`. While the first request is still running, a retry returns `503 idempotency_in_flight`; a request that never completes frees its key after 60 seconds. Only a `2xx` response is recorded: after a failed request, the retry runs again. At most 255 characters: a longer key returns `400 validation_failed`. The `X-Idempotency-Key` header is read when `Idempotency-Key` is absent.","isRequired":false,"uniqueKey":"","typeLabel":"string"},"required":false,"description":"Optional key that makes a retry safe. A request repeated with the same key, by the same API key, with the same method, path and body, within 24 hours, returns the first successful response unchanged, its `trace_id` and `request_id` included, and does not act again. The body is compared byte for byte: a request with no body and a request with `{}` are two different requests. The same key with another method, path or body returns `409 idempotency_key_collision`. While the first request is still running, a retry returns `503 idempotency_in_flight`; a request that never completes frees its key after 60 seconds. Only a `2xx` response is recorded: after a failed request, the retry runs again. At most 255 characters: a longer key returns `400 validation_failed`. The `X-Idempotency-Key` header is read when `Idempotency-Key` is absent.","name":"idempotency-key","in":"header"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"billing_tier":{"type":"string","enum":["rental_iphone","rental_android","byod_imessage","byod_android"],"description":"The kind of line to take.","isRequired":true,"uniqueKey":"billing_tier","typeLabel":"enum\u003cstring>"},"area_code":{"type":"string","minLength":1,"maxLength":10,"description":"Take a line whose `area_code` is exactly this value. Omit it to take a line of any area code.","uniqueKey":"area_code","typeLabel":"string"},"inbound_only":{"type":"boolean","description":"`true` to take the line as an inbound-only line. Rented tiers only (`400 inbound_only_not_rental` otherwise). Defaults to `false`: a two-way line.","uniqueKey":"inbound_only","typeLabel":"boolean"},"as_test_line":{"type":"boolean","description":"`true` to make the line a test line for the trials of your own prospects, in the same call. Rented tiers only (`400 test_line_not_rental` otherwise), and not together with `inbound_only` (`400 test_line_not_inbound_only`). Defaults to `false`.","uniqueKey":"as_test_line","typeLabel":"boolean"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"metadata.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata.additionalProperties","typeLabel":"null"},"description":"Your own key-value data, set on the line in place of any `metadata` it carried. Omit it to clear the `metadata` of the line. At most 20 keys and 8,192 bytes once serialized as JSON. The keys `migration_ref` and `proof_line` are reserved (`400 reserved_metadata_key`). Never put personal data or secrets in it.","example":{"crm_account_id":"acc_123"},"uniqueKey":"metadata","typeLabel":"object"}},"required":["billing_tier"],"description":"The line to take: its kind and, optionally, its area code, its variant and its `metadata`.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"area_code":"\u003cstring>","inbound_only":true,"as_test_line":true,"metadata":{"crm_account_id":"acc_123"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6e8d3820-31c6-4921-9889-48be808777ef":{"description":"The assigned line, `active`, with its full phone number.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true],"description":"Always `true` on a success response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^line_[0-9A-Za-z]{25}$","description":"Id of a line: `line_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"phone_number":{"type":"string","description":"The phone number of the line in E.164 format. An empty string, never `null`, when the line has no number: a BYOD line whose device has not reported one, or a shared line. `GET /v1/attention` returns `null` for such a line. Masked on `GET /v1/lines`, and on `GET /v1/lines/{id}` unless the caller owns the line: `+1 (AAA) ***-**DD` for a North American number, the country code, asterisks and the last two digits for any other number.","isRequired":true,"uniqueKey":"data.phone_number","typeLabel":"string"},"area_code":{"oneOf":[{"type":"string","description":"The 3-digit North American area code of the number. `null` for any other number, and while the number is not known.","isRequired":true,"uniqueKey":"data.area_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The 3-digit North American area code of the number. `null` for any other number, and while the number is not known.","isRequired":true,"uniqueKey":"data.area_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.area_code","typeLabel":"string | null"},"country_code":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country of the number. `null` while the number is not known.","isRequired":true,"uniqueKey":"data.country_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 3166-1 alpha-2 country of the number. `null` while the number is not known.","isRequired":true,"uniqueKey":"data.country_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.country_code","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","description":"Two-letter code of the US state the area code belongs to. `null` outside the US, and while the number is not known.","isRequired":true,"uniqueKey":"data.state.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter code of the US state the area code belongs to. `null` outside the US, and while the number is not known.","isRequired":true,"uniqueKey":"data.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.state","typeLabel":"string | null"},"state_name":{"oneOf":[{"type":"string","description":"Name of that US state, for example `California`. `null` whenever `state` is `null`.","isRequired":true,"uniqueKey":"data.state_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of that US state, for example `California`. `null` whenever `state` is `null`.","isRequired":true,"uniqueKey":"data.state_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.state_name","typeLabel":"string | null"},"billing_tier":{"type":"string","enum":["rental_iphone","rental_android","byod_imessage","byod_android","shared_pool","shared_imessage"],"description":"The kind of line. `rental_iphone`: a rented line that sends iMessage and SMS. `rental_android`: a rented line that sends SMS and RCS. `byod_imessage`: a BYOD line on your own Mac and iPhone. `byod_android`: a BYOD line on your own Android phone. `shared_imessage`: a shared line. `shared_pool`: a test line when `test_line` is `true`, otherwise a dedicated pool line: a line of iSnap that is dedicated to your account.","isRequired":true,"uniqueKey":"data.billing_tier","typeLabel":"enum\u003cstring>"},"byod":{"type":"boolean","description":"`true` for a BYOD line, which runs on your own device: `billing_tier` is `byod_imessage` or `byod_android`.","isRequired":true,"uniqueKey":"data.byod","typeLabel":"boolean"},"inbound_only":{"type":"boolean","description":"`true` for an inbound-only line: it can message a contact only after that contact has messaged it. A send to any other handle returns `403 outbound_first_forbidden`. Only a rented line can be inbound-only: always `false` on BYOD, shared and test lines.","isRequired":true,"uniqueKey":"data.inbound_only","typeLabel":"boolean"},"status":{"type":"string","description":"One of six values. `provisioning`: the line is being prepared for one of your pre-orders. `available`: the line belongs to no account and can be reserved or assigned. `reserved`: the line is reserved for one account until `expires_at`; it is not billed and cannot send. `active`: the line belongs to its owner; it is the only status in which a line sends. `suspended`: the line still belongs to its owner but cannot send (`403 line_suspended`); a line billed by a per-line subscription is suspended when a payment for it fails, iSnap can also suspend a line, and no API operation ends a suspension. `cancelled`: the line is ended for good and keeps its owner.","isRequired":true,"uniqueKey":"data.status","typeLabel":"string"},"monthly_price":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated. Catalog price of this kind of line, in US cents. It is not the amount billed for the line. Removed in the next major version: no removal date is set.","isRequired":true,"uniqueKey":"data.monthly_price","typeLabel":"integer"},"stripe_subscription_id":{"oneOf":[{"type":"string","description":"Id of the per-line subscription that bills the line. `null` on a line billed on the monthly wholesale invoice, on BYOD, shared and test lines, and on a rented line that a direct account received by transfer while the line was not `active`.","isRequired":true,"uniqueKey":"data.stripe_subscription_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the per-line subscription that bills the line. `null` on a line billed on the monthly wholesale invoice, on BYOD, shared and test lines, and on a rented line that a direct account received by transfer while the line was not `active`.","isRequired":true,"uniqueKey":"data.stripe_subscription_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.stripe_subscription_id","typeLabel":"string | null"},"activated_at":{"oneOf":[{"type":"string","description":"Timestamp at which the line became `active` (ISO 8601, UTC). `null` on a line that was never activated, and again on a line that returned to the marketplace. A transfer to a wholesale partner sets it to the time of the transfer; a transfer to a direct account keeps the earlier value.","isRequired":true,"uniqueKey":"data.activated_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp at which the line became `active` (ISO 8601, UTC). `null` on a line that was never activated, and again on a line that returned to the marketplace. A transfer to a wholesale partner sets it to the time of the transfer; a transfer to a direct account keeps the earlier value.","isRequired":true,"uniqueKey":"data.activated_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.activated_at","typeLabel":"string | null"},"expires_at":{"oneOf":[{"type":"string","description":"End of the reservation (ISO 8601, UTC): 15 minutes after the line was reserved. Read it only while `status` is `reserved`: in any other status it is `null` or a past timestamp.","isRequired":true,"uniqueKey":"data.expires_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"End of the reservation (ISO 8601, UTC): 15 minutes after the line was reserved. Read it only while `status` is `reserved`: in any other status it is `null` or a past timestamp.","isRequired":true,"uniqueKey":"data.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.expires_at","typeLabel":"string | null"},"anniversary_at":{"oneOf":[{"type":"string","description":"The anniversary of the line: the timestamp at which you took it (ISO 8601, UTC). `POST /v1/lines/{id}/cancel` ends the line at the next occurrence of this timestamp. iSnap sets it each time a line becomes a wholesale partner's, a transfer included, and `POST /v1/lines/{id}/anniversary` replaces it. A conversion to a test line and back keeps it. `null` on a line owned by a direct account or by no account, and on a line of a wholesale partner whose anniversary was never set.","isRequired":true,"uniqueKey":"data.anniversary_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"The anniversary of the line: the timestamp at which you took it (ISO 8601, UTC). `POST /v1/lines/{id}/cancel` ends the line at the next occurrence of this timestamp. iSnap sets it each time a line becomes a wholesale partner's, a transfer included, and `POST /v1/lines/{id}/anniversary` replaces it. A conversion to a test line and back keeps it. `null` on a line owned by a direct account or by no account, and on a line of a wholesale partner whose anniversary was never set.","isRequired":true,"uniqueKey":"data.anniversary_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.anniversary_at","typeLabel":"string | null"},"cancel_at":{"oneOf":[{"type":"string","description":"Timestamp at which iSnap ends this line (ISO 8601, UTC). Set by `POST /v1/lines/{id}/cancel` and cleared by `POST /v1/lines/{id}/uncancel`. The line works and is billed as before until then. `null` when no end is scheduled. A line that ended at this date keeps the value. On a test line ended with `POST /v1/lines/{id}/terminate`, it holds the time the line ended.","isRequired":true,"uniqueKey":"data.cancel_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp at which iSnap ends this line (ISO 8601, UTC). Set by `POST /v1/lines/{id}/cancel` and cleared by `POST /v1/lines/{id}/uncancel`. The line works and is billed as before until then. `null` when no end is scheduled. A line that ended at this date keeps the value. On a test line ended with `POST /v1/lines/{id}/terminate`, it holds the time the line ended.","isRequired":true,"uniqueKey":"data.cancel_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.cancel_at","typeLabel":"string | null"},"billing_anchor_at":{"oneOf":[{"type":"string","description":"The billing anchor you stated for this line (ISO 8601, UTC): a line billed on the monthly wholesale invoice is billed at each monthly occurrence of this timestamp. `null` when you stated none: the line is then billed at each monthly occurrence of `activated_at`. State it with `POST /v1/pre-orders`, `POST /v1/lines/{id}/activate` or `PATCH /v1/lines/{id}`. A change applies from the next occurrence and does not alter a month already billed.","isRequired":true,"uniqueKey":"data.billing_anchor_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"The billing anchor you stated for this line (ISO 8601, UTC): a line billed on the monthly wholesale invoice is billed at each monthly occurrence of this timestamp. `null` when you stated none: the line is then billed at each monthly occurrence of `activated_at`. State it with `POST /v1/pre-orders`, `POST /v1/lines/{id}/activate` or `PATCH /v1/lines/{id}`. A change applies from the next occurrence and does not alter a month already billed.","isRequired":true,"uniqueKey":"data.billing_anchor_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.billing_anchor_at","typeLabel":"string | null"},"next_anchor_at":{"oneOf":[{"type":"string","description":"For a line billed on the monthly wholesale invoice: the next timestamp at which it is billed (ISO 8601, UTC). It is the next occurrence, strictly after the read, of `billing_anchor_at`, or of `activated_at` when no billing anchor is stated: the same day of the month, moved to the last day of a shorter month, at the same time of day. `null` when the line is not `active` or `suspended`, when it was never activated, and when its `cancel_at` falls on or before that occurrence. A line billed by a per-line subscription also carries a value here, which does not tell when that line is billed.","isRequired":true,"uniqueKey":"data.next_anchor_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"For a line billed on the monthly wholesale invoice: the next timestamp at which it is billed (ISO 8601, UTC). It is the next occurrence, strictly after the read, of `billing_anchor_at`, or of `activated_at` when no billing anchor is stated: the same day of the month, moved to the last day of a shorter month, at the same time of day. `null` when the line is not `active` or `suspended`, when it was never activated, and when its `cancel_at` falls on or before that occurrence. A line billed by a per-line subscription also carries a value here, which does not tell when that line is billed.","isRequired":true,"uniqueKey":"data.next_anchor_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.next_anchor_at","typeLabel":"string | null"},"pending_variant":{"oneOf":[{"type":"object","properties":{"inbound_only":{"type":"boolean","description":"The value `inbound_only` takes when the change applies.","isRequired":true,"uniqueKey":"data.pending_variant.oneOf.0.inbound_only","typeLabel":"boolean"},"effective_at":{"type":"string","description":"The billing anchor occurrence at which the change applies (ISO 8601, UTC). iSnap applies it after this timestamp, and before it charges the line for the month that starts then: the API does not bound the delay.","isRequired":true,"uniqueKey":"data.pending_variant.oneOf.0.effective_at","typeLabel":"string"}},"required":["inbound_only","effective_at"],"description":"The variant change scheduled for this line, or `null` when none is pending. The `inbound_only` field of the line keeps its value until the change applies. Schedule a change with `POST /v1/lines/{id}/variant` and `effective: \"next_anchor\"`; withdraw it with `DELETE /v1/lines/{id}/variant`. It becomes `null` when the change is applied, when it is withdrawn, when it can no longer apply at its date, when the line becomes a test line, and when the line leaves its owner without ending. A line that ends keeps its `pending_variant`, and the change never applies.","isRequired":true,"uniqueKey":"data.pending_variant.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"inbound_only":{"type":"boolean","description":"The value `inbound_only` takes when the change applies."},"effective_at":{"type":"string","description":"The billing anchor occurrence at which the change applies (ISO 8601, UTC). iSnap applies it after this timestamp, and before it charges the line for the month that starts then: the API does not bound the delay."}},"required":["inbound_only","effective_at"],"description":"The variant change scheduled for this line, or `null` when none is pending. The `inbound_only` field of the line keeps its value until the change applies. Schedule a change with `POST /v1/lines/{id}/variant` and `effective: \"next_anchor\"`; withdraw it with `DELETE /v1/lines/{id}/variant`. It becomes `null` when the change is applied, when it is withdrawn, when it can no longer apply at its date, when the line becomes a test line, and when the line leaves its owner without ending. A line that ends keeps its `pending_variant`, and the change never applies.","isRequired":true,"uniqueKey":"data.pending_variant.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.pending_variant","typeLabel":"object | null"},"created_at":{"type":"string","description":"Timestamp at which iSnap created the line (ISO 8601, UTC). It is not the date you acquired the line.","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"data.metadata.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata.oneOf.0.additionalProperties","typeLabel":"null"},"description":"Your own key-value data on the line. `null` when the line has none. A line created with `\"metadata\": {}` reads `{}`: treat `null` and `{}` the same. It is part of the line object for every caller, `GET /v1/lines` and `GET /v1/lines/{id}` included, and a line that returns to the marketplace keeps it: never put personal data or secrets in it.","isRequired":true,"uniqueKey":"data.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"data.metadata.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata.oneOf.1.additionalProperties","typeLabel":"null"},"description":"Your own key-value data on the line. `null` when the line has none. A line created with `\"metadata\": {}` reads `{}`: treat `null` and `{}` the same. It is part of the line object for every caller, `GET /v1/lines` and `GET /v1/lines/{id}` included, and a line that returns to the marketplace keeps it: never put personal data or secrets in it.","isRequired":true,"uniqueKey":"data.metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.metadata","typeLabel":"object | null"},"test_line":{"type":"boolean","description":"`true` for a test line: a line you set aside to host the trials of your own prospects. Its `billing_tier` is `shared_pool`.","isRequired":true,"uniqueKey":"data.test_line","typeLabel":"boolean"},"shared":{"type":"boolean","description":"`true` for a shared line, which has no device and no phone number of its own: its `billing_tier` is `shared_imessage` and its `phone_number` is an empty string.","isRequired":true,"uniqueKey":"data.shared","typeLabel":"boolean"},"capabilities":{"oneOf":[{"description":"The services the line sends, as an array of lowercase names: `[\"imessage\", \"sms\"]` on `rental_iphone` and `byod_imessage` lines, `[\"sms\", \"rcs\"]` on `rental_android` and `byod_android` lines, `[\"imessage\"]` on a shared line. A test line that you made from a rented line keeps the array of that line. On a dedicated pool line, and on a test line that iSnap created for your account, the array does not tell the services and can be `[\"sms\"]`: such a line is an iMessage line.","uniqueKey":"data.capabilities.oneOf.0","typeLabel":"any"},{"description":"The services the line sends, as an array of lowercase names: `[\"imessage\", \"sms\"]` on `rental_iphone` and `byod_imessage` lines, `[\"sms\", \"rcs\"]` on `rental_android` and `byod_android` lines, `[\"imessage\"]` on a shared line. A test line that you made from a rented line keeps the array of that line. On a dedicated pool line, and on a test line that iSnap created for your account, the array does not tell the services and can be `[\"sms\"]`: such a line is an iMessage line.","type":"null","uniqueKey":"data.capabilities.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.capabilities","typeLabel":"any | null"},"fulfillment_status":{"oneOf":[{"type":"string","description":"Present only on `GET /v1/lines/my`. `open` while an order for this line is still being fulfilled, `null` otherwise.","uniqueKey":"data.fulfillment_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only on `GET /v1/lines/my`. `open` while an order for this line is still being fulfilled, `null` otherwise.","uniqueKey":"data.fulfillment_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.fulfillment_status","typeLabel":"string | null"}},"required":["id","phone_number","area_code","country_code","state","state_name","billing_tier","byod","inbound_only","status","monthly_price","stripe_subscription_id","activated_at","expires_at","anniversary_at","cancel_at","billing_anchor_at","next_anchor_at","pending_variant","created_at","metadata","test_line","shared"],"description":"A line. `billing_tier`, `byod`, `shared`, `test_line` and `inbound_only` tell the kinds of line apart: a rented line (two-way or inbound-only), a BYOD line, a shared line, a test line.","isRequired":true,"uniqueKey":"data","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","trace_id","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"id":"\u003cstring>","phone_number":"\u003cstring>","area_code":"\u003cstring>","country_code":"\u003cstring>","state":"\u003cstring>","state_name":"\u003cstring>","billing_tier":"rental_iphone","byod":true,"inbound_only":true,"status":"\u003cstring>","monthly_price":1,"stripe_subscription_id":"\u003cstring>","activated_at":"\u003cstring>","expires_at":"\u003cstring>","anniversary_at":"\u003cstring>","cancel_at":"\u003cstring>","billing_anchor_at":"\u003cstring>","next_anchor_at":"\u003cstring>","pending_variant":{"inbound_only":true,"effective_at":"\u003cstring>"},"created_at":"\u003cstring>","metadata":{},"test_line":true,"shared":true,"capabilities":"\u003cunknown>","fulfillment_status":"\u003cstring>"},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b2a61a2e-32cb-4be5-89d1-719bba1f8a62":{"description":"Invalid request. `validation_failed`: the body or the `Idempotency-Key` header does not match its schema. `reserved_metadata_key`: `metadata` names `migration_ref` or `proof_line`. `inbound_only_not_rental`: `inbound_only` is `true` with a BYOD tier. `test_line_not_rental`: `as_test_line` is `true` with a BYOD tier. `test_line_not_inbound_only`: `as_test_line` and `inbound_only` are both `true`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"3d921a31-bed7-41ae-aec1-2c366d5d2418":{"description":"No valid credential. `error.code` is `unauthorized`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"c41da76e-19f1-4e58-a8f8-fbddd2c372dd":{"description":"Payment required. `checkout_required`: the account is not a wholesale partner. No line is taken.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8edb6b0f-6098-4d8f-a3de-79295a3cbc2a":{"description":"Refused. `forbidden`: the request carries neither an API key in its `Authorization` header nor the header `X-Requested-With: XMLHttpRequest`, or the key is line-scoped. A line-scoped key cannot acquire a line.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"9f448d1e-a04c-407b-8f1f-995b5bc938de":{"description":"Not returned by this operation: when no line matches, it returns `409 no_matching_line`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8b08afd7-4f43-4da4-a2c8-aaeb4adb1a2b":{"description":"Conflict. `no_matching_line`: no available line matches, or the line picked failed its last checks. `idempotency_key_collision`: the `Idempotency-Key` was already used with another body, or on another operation. `line_on_rented_macos_session` or `line_takes_no_macos_session`: the hosted macOS session of the line does not fit this change, and only iSnap can resolve it.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4026784a-81ca-446e-901c-0312fd9a9ec5":{"description":"Too many requests. `error.code` is `rate_limit_exceeded` when more than 100 requests came from the same network address in 60 seconds, whatever their API key or account: wait `error.retry_after` seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e1a5b17e-fa44-4753-b0bb-2c114743686f":{"description":"Unexpected failure. `error.code` is `internal_error`. An operation that takes a JSON body also returns it when the body, sent as `application/json`, is not valid JSON. Quote `trace_id` when you report it to iSnap.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b2eb9ad8-e6d4-4642-839a-5afcdbbe1cd9":{"description":"Unavailable. `error.code` is `idempotency_in_flight` when a request with the same `Idempotency-Key` is still running: retry the same request once it has completed.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7529ae09-815f-453b-98e4-a7b1efc057b3":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"13b85773-3d70-47e8-aa94-bbc0de8ddb38":{"url":"https://api.isnap.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"isnap","siteName":"iSnap","title":"Assign a line - iSnap","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T21:38:00.771Z","originalFileLocation":"api-reference/lines/assign-line.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=\"light\"}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=\"Makes one available line of a kind yours and activates it, in one call.\">\u003cmeta data-mint-head name=\"application-name\" content=\"iSnap\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Assign a line - iSnap\">\u003cmeta data-mint-head property=\"og:description\" content=\"Makes one available line of a kind yours and activates it, in one call.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"iSnap\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.isnap.ai/api-reference/lines/assign-line\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://isnap.mintlify.site/_mintlify/api/og/v2?division=Lines\u0026amp;title=Assign+a+line\u0026amp;description=Makes+one+available+line+of+a+kind+yours+and+activates+it%2C+in+one+call.\u0026amp;theme=f241cf48d31b6385a79939a4\u0026amp;signature=fe85cb8567f6dbb51dde16580b24d79a9f6cb4d8f4c15df431027d79f37b0f63\">\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=\"Assign a line - iSnap\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Makes one available line of a kind yours and activates it, in one call.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://isnap.mintlify.site/_mintlify/api/og/v2?division=Lines\u0026amp;title=Assign+a+line\u0026amp;description=Makes+one+available+line+of+a+kind+yours+and+activates+it%2C+in+one+call.\u0026amp;theme=f241cf48d31b6385a79939a4\u0026amp;signature=fe85cb8567f6dbb51dde16580b24d79a9f6cb4d8f4c15df431027d79f37b0f63\">\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/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"iSnap\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#09090b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.isnap.ai/api-reference/lines/assign-line\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/lines/assign-line.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.isnap.ai/#organization\",\"name\":\"iSnap\",\"url\":\"https://docs.isnap.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-light.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=1208ab10ce8a1de87ddc30bbcaae611d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.isnap.ai#website\",\"name\":\"iSnap\",\"url\":\"https://docs.isnap.ai\",\"publisher\":{\"@id\":\"https://docs.isnap.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.isnap.ai/api-reference/lines/assign-line#webpage\",\"url\":\"https://docs.isnap.ai/api-reference/lines/assign-line\",\"name\":\"Assign a line\",\"description\":\"Makes one available line of a kind yours and activates it, in one call.\",\"dateModified\":\"2026-10-12T21:38:00.771Z\",\"isPartOf\":{\"@id\":\"https://docs.isnap.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.isnap.ai/api-reference/lines/assign-line#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.isnap.ai/api-reference/lines/assign-line#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lines\",\"item\":\"https://docs.isnap.ai/api-reference/lines/list-available-lines\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Assign a line\",\"item\":\"https://docs.isnap.ai/api-reference/lines/assign-line\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.isnap.ai/api-reference/lines/assign-line#apireference\",\"headline\":\"Assign a line\",\"name\":\"Assign a line\",\"description\":\"Makes one available line of a kind yours and activates it, in one call.\",\"url\":\"https://docs.isnap.ai/api-reference/lines/assign-line\",\"mainEntityOfPage\":{\"@id\":\"https://docs.isnap.ai/api-reference/lines/assign-line#webpage\"},\"dateModified\":\"2026-10-12T21:38:00.771Z\",\"publisher\":{\"@id\":\"https://docs.isnap.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.isnap.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"iSnap\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"iSnap\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/lines/assign-line.md","siteName":"iSnap","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/overview"}]},{"tab":"API reference","groups":[{"group":"API reference","pages":[{"title":"API reference","sidebarTitle":"Overview","href":"/api-reference/introduction"},{"title":"Changelog","href":"/changelog"}]},{"group":"Messages","pages":[{"title":"Send a message","openapi":"POST /v1/messages","href":"/api-reference/messages/send-message"},{"title":"List messages","openapi":"GET /v1/messages","href":"/api-reference/messages/list-messages"},{"title":"Get a message","openapi":"GET /v1/messages/{id}","href":"/api-reference/messages/get-message"},{"title":"Cancel a message","openapi":"DELETE /v1/messages/{id}","href":"/api-reference/messages/cancel-message"},{"title":"Add a reaction","openapi":"POST /v1/messages/{id}/reactions","href":"/api-reference/messages/add-reaction"},{"title":"Remove a reaction","openapi":"DELETE /v1/messages/{id}/reactions","href":"/api-reference/messages/remove-reaction"}]},{"group":"Chats","pages":[{"title":"List chats","openapi":"GET /v1/chats","href":"/api-reference/chats/list-chats"},{"title":"Get a chat","openapi":"GET /v1/chats/{chat_id}","href":"/api-reference/chats/get-chat"},{"title":"Mark a chat as read","openapi":"POST /v1/chats/{chat_id}/read","href":"/api-reference/chats/mark-chat-read"},{"title":"Show the typing indicator","openapi":"POST /v1/chats/{chat_id}/typing","href":"/api-reference/chats/start-typing"},{"title":"Clear the typing indicator","openapi":"DELETE /v1/chats/{chat_id}/typing","href":"/api-reference/chats/stop-typing"},{"title":"Send a contact card","openapi":"POST /v1/chats/{chat_id}/share-contact-card","href":"/api-reference/chats/share-contact-card"}]},{"group":"Attachments","pages":[{"title":"Create an attachment","openapi":"POST /v1/attachments","href":"/api-reference/attachments/create-attachment"},{"title":"Get an attachment","openapi":"GET /v1/attachments/{id}","href":"/api-reference/attachments/get-attachment"}]},{"group":"Recipient lookup","pages":[{"title":"Look up a recipient","openapi":"POST /v1/lookup","href":"/api-reference/lookup/look-up-recipient"}]},{"group":"Lines","pages":[{"title":"List available lines","openapi":"GET /v1/lines","href":"/api-reference/lines/list-available-lines"},{"title":"Get a line","openapi":"GET /v1/lines/{id}","href":"/api-reference/lines/get-line"},{"title":"List your active and reserved lines","openapi":"GET /v1/lines/my","href":"/api-reference/lines/list-my-lines"},{"title":"Update the metadata or billing anchor of a line","openapi":"PATCH /v1/lines/{id}","href":"/api-reference/lines/update-line"},{"title":"Reserve a line","openapi":"POST /v1/lines/{id}/reserve","href":"/api-reference/lines/reserve-line"},{"title":"Activate a reserved line","openapi":"POST /v1/lines/{id}/activate","href":"/api-reference/lines/activate-line"},{"title":"Release a reserved line","description":"Gives back a line you reserved, which becomes available again.","openapi":"POST /v1/lines/{id}/release","href":"/api-reference/lines/release-line"},{"title":"Assign a line","openapi":"POST /v1/lines/assign","href":"/api-reference/lines/assign-line"},{"title":"Create a shared line","description":"Creates a shared line, which is active immediately.","openapi":"POST /v1/lines/shared","href":"/api-reference/lines/create-shared-line"}]},{"group":"Line lifecycle","pages":[{"title":"Terminate a line","openapi":"POST /v1/lines/{id}/terminate","href":"/api-reference/lines/terminate-line"},{"title":"Cancel a line at its next anniversary","openapi":"POST /v1/lines/{id}/cancel","href":"/api-reference/lines/cancel-line"},{"title":"Uncancel a line","openapi":"POST /v1/lines/{id}/uncancel","href":"/api-reference/lines/uncancel-line"},{"title":"Set the anniversary of a line","openapi":"POST /v1/lines/{id}/anniversary","href":"/api-reference/lines/set-line-anniversary"},{"title":"Change the variant of a line","openapi":"POST /v1/lines/{id}/variant","href":"/api-reference/lines/change-line-variant"},{"title":"Withdraw a scheduled variant change","openapi":"DELETE /v1/lines/{id}/variant","href":"/api-reference/lines/cancel-variant-change"},{"title":"Convert a line to a test line","openapi":"POST /v1/lines/{id}/convert-to-test","href":"/api-reference/lines/convert-to-test-line"},{"title":"Convert a test line back to a rented line","openapi":"POST /v1/lines/{id}/convert-from-test","href":"/api-reference/lines/convert-from-test-line"},{"title":"Transfer a line to another account","openapi":"POST /v1/lines/{id}/transfer-ownership","href":"/api-reference/lines/transfer-line"}]},{"group":"Line configuration and state","pages":[{"title":"Get the configuration of a line","openapi":"GET /v1/lines/{id}/config","href":"/api-reference/lines/get-line-config"},{"title":"Update the configuration of a line","openapi":"PATCH /v1/lines/{id}/config","href":"/api-reference/lines/update-line-config"},{"title":"Get the sending limits of a line","openapi":"GET /v1/lines/{id}/quota","href":"/api-reference/lines/get-line-sending-limits"},{"title":"List the queue of a line","openapi":"GET /v1/lines/{id}/queue","href":"/api-reference/lines/get-line-queue"},{"title":"Get the health of a BYOD line","openapi":"GET /v1/lines/{id}/health","href":"/api-reference/lines/get-line-health"},{"title":"List the lines that need attention","openapi":"GET /v1/attention","href":"/api-reference/lines/list-attention"}]},{"group":"Webhook subscriptions","pages":[{"title":"Create a webhook subscription","openapi":"POST /v1/webhooks","href":"/api-reference/webhooks/create-webhook"},{"title":"List webhook subscriptions","openapi":"GET /v1/webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Get a webhook subscription","openapi":"GET /v1/webhooks/{id}","href":"/api-reference/webhooks/get-webhook"},{"title":"Update a webhook subscription","openapi":"PATCH /v1/webhooks/{id}","href":"/api-reference/webhooks/update-webhook"},{"title":"Delete a webhook subscription","openapi":"DELETE /v1/webhooks/{id}","href":"/api-reference/webhooks/delete-webhook"},{"title":"Rotate a signing secret","openapi":"POST /v1/webhooks/{id}/rotate-secret","href":"/api-reference/webhooks/rotate-webhook-secret"},{"title":"List the deliveries of a webhook subscription","openapi":"GET /v1/webhooks/{id}/deliveries","href":"/api-reference/webhooks/list-webhook-deliveries"},{"title":"Replay a delivery","openapi":"POST /v1/webhooks/{id}/deliveries/{delivery_id}/replay","href":"/api-reference/webhooks/replay-webhook-delivery"},{"title":"List the events feed","openapi":"GET /v1/webhooks/events","href":"/api-reference/webhooks/list-webhook-events"}]},{"group":"Trials","pages":[{"title":"Start a trial","openapi":"POST /v1/trial/init","href":"/api-reference/trials/start-trial"},{"title":"Get the pairing status of a trial","openapi":"GET /v1/trial/status","href":"/api-reference/trials/get-trial-status"},{"title":"Get the activity of a trial","openapi":"GET /v1/trial/activity","href":"/api-reference/trials/get-trial-activity"},{"title":"Get a trial","openapi":"GET /v1/trial/{trial_id}","href":"/api-reference/trials/get-trial"},{"title":"Update the metadata of a trial","openapi":"PATCH /v1/trial/{trial_id}","href":"/api-reference/trials/update-trial"},{"title":"Revoke a trial","openapi":"POST /v1/trial/{trial_id}/revoke","href":"/api-reference/trials/revoke-trial"}]},{"group":"BYOD","pages":[{"title":"Issue a BYOD activation code","openapi":"POST /v1/byod/pair","href":"/api-reference/byod/start-byod-pairing"},{"title":"Get the bridge app downloads","openapi":"GET /v1/apps","href":"/api-reference/byod/get-app-downloads"}]},{"group":"Pre-orders","pages":[{"title":"Create a pre-order","openapi":"POST /v1/pre-orders","href":"/api-reference/pre-orders/create-pre-order"},{"title":"List pre-orders","openapi":"GET /v1/pre-orders","href":"/api-reference/pre-orders/list-pre-orders"},{"title":"Get a pre-order","openapi":"GET /v1/pre-orders/{id}","href":"/api-reference/pre-orders/get-pre-order"},{"title":"Update the metadata of a pre-order","openapi":"PATCH /v1/pre-orders/{id}","href":"/api-reference/pre-orders/update-pre-order"},{"title":"Confirm a pre-order","openapi":"POST /v1/pre-orders/{id}/confirm","href":"/api-reference/pre-orders/confirm-pre-order"},{"title":"Cancel a pre-order","openapi":"POST /v1/pre-orders/{id}/cancel","href":"/api-reference/pre-orders/cancel-pre-order"},{"title":"List area codes","openapi":"GET /v1/area-codes","href":"/api-reference/pre-orders/list-area-codes"}]},{"group":"Hosted macOS sessions","pages":[{"title":"Rent a hosted macOS session","openapi":"POST /v1/macos-sessions/rent","href":"/api-reference/macos-sessions/rent-macos-session"},{"title":"Get a hosted macOS session","openapi":"GET /v1/macos-sessions/{id}","href":"/api-reference/macos-sessions/get-macos-session"},{"title":"Update the metadata of a hosted macOS session","openapi":"PATCH /v1/macos-sessions/{id}","href":"/api-reference/macos-sessions/update-macos-session"},{"title":"Cancel a hosted macOS session at its next anniversary","openapi":"POST /v1/macos-sessions/{id}/cancel","href":"/api-reference/macos-sessions/cancel-macos-session"},{"title":"Uncancel a hosted macOS session","openapi":"POST /v1/macos-sessions/{id}/uncancel","href":"/api-reference/macos-sessions/uncancel-macos-session"}]},{"group":"Service","pages":[{"title":"Get the health of the API","openapi":"GET /v1/health","href":"/api-reference/service/get-health"},{"title":"Get the version of the API","openapi":"GET /v1/version","href":"/api-reference/service/get-version"}]}]}]},"basePath":"","title":"Assign a line - iSnap","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}