Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.
The Try it panel runs against production (https://app.tuco.ai) with the key you paste
into it. There is no sandbox — a request from this page creates a real line request, and can start a real payment.
Use this endpoint after the workspace already has an active Tuco subscription. If the request is included in the current plan, Tuco starts provisioning immediately. If the request requires an add-on, Tuco returns a hosted invoice link.
Every order must carry the legal name, the company name and an explicit anti-spam acceptance.
A purchased phone line (an eSIM) must also carry the full legal address, the eSIM country, the ZIP /
postal code to provision on, and the area-code acknowledgement. A request missing any of them is
rejected with 400 and no line is created.
Required. First name of the person authorised to make this payment on behalf of the company.
Agency ordering for a client? Use your client’s name. Business owner? Use your own name. Marketing
or ops? Use your name or the business owner’s. Only the SIM card provider sees it — never your
leads (they see the display name).
Optional. Display first name — set on the Mac and shown to conversation participants on iMessage.
If omitted, Tuco uses legalFirstName. firstName is accepted as an alias.
Optional. Display last name — set on the Mac and shown to conversation participants on iMessage.
If omitted, Tuco uses legalLastName. lastName is accepted as an alias.
Required for every line. The company’s legal name — an LLC, Inc, sole proprietorship or any
registered business, anywhere in the world, e.g. "Acme, LLC" or "Acme, Inc.".
legalName is accepted as an alias.
Required for every line. Must be the boolean true, confirming the workspace accepts Tuco’s
anti-spam and messaging rules. Any other value — including "true"
as a string — is treated as not accepted.Those rules include: every lead sees Delete / Delete and Report Spam / Mark as Known on every
message until they save you; no old leads who’ve forgotten you, no high-pressure tactics, nobody who
opted in more than a month ago; and when re-engaging older leads, a different message per lead with
a 3–5 minute gap. See What your leads see.
Optional. Supported values: "purchased" or "byon". Defaults to "purchased" when omitted.Send "byon" (bring your own number) only if you are porting a number you already own.
Leave it out to have Tuco provision a new number on an eSIM.
Not required unless you are porting a number you already own (lineType: "byon"), in which
case send it in E.164 form, e.g. "+14155550123".For a purchased phone line — the normal case — omit this field entirely. Tuco assigns the
number and reports it back once provisioning completes.
Do not send a placeholder such as "pending", "none" or "" to satisfy the field. Whatever you
send is stored as the line’s number, so a placeholder makes the line look like it already has one.
Omitting the field is what marks the number as not yet assigned.
Country the eSIM is for: "US" or "CA". eSIMs are self-serve for the US and Canada only —
for the UK, Australia or any other country, contact support@tuco.ai.
Any other value is rejected with 400.
iMessage works globally — a US or Canadian line can iMessage recipients in any country.
P2P SMS fallback (a green bubble sent from this same number when the recipient isn’t on
iMessage) only reaches recipients in the eSIM’s country: a US eSIM falls back to SMS for US
numbers only, a CA eSIM for Canadian numbers only.
Street of the legal service address — it can be anywhere in the world. Carriers need a real
address to activate the eSIM. The number itself is provisioned on zipcode (US or Canada).
ZIP / postal code to provision the number on. The eSIM number is requested on this ZIP —
not on an area code. It can be different from legalZipcode. Not format-checked.
Must be the boolean true. Confirms you understand the area code is best effort: Tuco does
not guarantee an area code — the eSIM is provisioned on the zipcode you provide, not an area
code, and the legal address and that ZIP can be different.
Optional. Leave it out (the default) to accept any area code that matches zipcode. Send it
only if you’d like a specific area code, as 3 digits (e.g. "212"). Best effort — NOT
guaranteed. We try for it, but the number is provisioned on zipcode and you may get a
different area code. It never delays the order. Anything that isn’t a 3-digit US / Canada area
code returns 400.
An area code is never guaranteed, whether or not you send preferredAreaCode. Don’t promise a
specific area code to anyone before the line is live.
Every phone line includes 500 outgoing minutes/month with recording, unlimited incoming, and $3 per
extra 100 minutes. These per-line add-ons are optional — see Calling add-ons.
Any of "facetime_audio" (FaceTime Audio add-on — $100/mo per line) and `"caller_id_registration"`
(Registered caller ID add-on — $50 setup + $50/mo per line + $0.075 per call). Charged right after the line
is created, to the card on file: the setup fee plus today’s prorated share of the monthly, then monthly.
Add-ons can’t be removed after purchase — contact support@tuco.ai. Add-ons already bought with your plan
at checkout attach to new lines automatically, with no second charge.
Required (true) whenever callingAddons is non-empty — your explicit agreement to those charges.
Non-refundable. Without it the request is rejected with 400 and nothing is created.
The response then includes a callingAddons array — one result per add-on, with statuspending_setup (charged to the card on file; we’re setting it up) or, only when the card is declined or
the bank requires authentication (3-D Secure), awaiting_payment plus a paymentUrl for the customer to
confirm the payment. All of a line’s add-ons are charged together: one invoice, so every
awaiting_payment result carries the same paymentUrl, and one confirmation starts them all. The
link lapses after about 23 hours if unpaid; the add-ons then go back to none.
Review everything and be sure. Ordering is free — the name and photo you send here don’t count.
After the line is created, its display name and photo can change at most 3 times per line per month — each change needs a person on our side to update the Mac. A
4th change in the same month returns 400 (LINE_INFO_UPDATE_LIMIT); contact support@tuco.ai.
Use reviewOnly below to check everything first.
Optional. Send true to review the order without creating it. Tuco runs exactly the same
validation as a real order and returns 200 with a review object — the display name and photo
your leads will see, the legal name, company, eSIM country, legal address, provisioning ZIP,
forwarding number, calling add-ons with their charges, and a recipientPreviewUrl showing Apple’s
“Maybe: (your name)” screens. Nothing is created or charged. Change anything and review again, then send
the same body without reviewOnly to order. Missing or invalid fields return 400 with
missingFields, as on a real order.
Optional. You can also send this as the Idempotency-Key header. Reusing the same key returns the original response instead of creating a duplicate request.
Every request needs legalFirstName, legalLastName, companyName and antiSpamAccepted: true.
On top of that:
Request type
Also required
Leave out
Purchased phone line / eSIM (most common)
channelType=phone, simCountry, addressLine1, city, state, legalZipcode, zipcode, areaCodeBestEffortAcknowledged: true
phone, email, lineType
Email line
channelType=email, email
phone
Porting a number you own
channelType=phone, lineType=byon, email, phone
—
displayFirstName / displayLastName are always optional — each falls back to the legal name.Extra fields are tolerated, so an unexpected field will not fail the request — but a value you send
is a value Tuco stores. Leave out the fields your request type does not use rather than filling them
with placeholders.
recipientPreviewUrl is returned on every order: a hosted preview of exactly what a lead sees from
this line — Apple’s “Maybe: Jane from Acme” header with Delete, Delete and Report Spam and
Mark as Known on every message until they save your contact. Show it to whoever writes your
messages. See What your leads see.line.firstName / line.lastName are the display name — what the Mac shows participants.
{ "reviewOnly": true, "created": false, "review": { "displayName": "Venk - ABA Therapy", "legalName": "Venkat Raman", "companyName": "ABA Therapy, LLC", "channelType": "phone", "lineType": "purchased", "profileImageUrl": "https://cdn.example.com/venk.jpg", "simCountry": "United States", "legalAddress": "123 Market St, San Francisco, CA, 94103, US", "provisioningZip": "10001", "preferredAreaCode": { "value": "212", "guaranteed": false, "note": "Preference only — NOT guaranteed. We try for this area code, but the number is provisioned on your ZIP / postal code and you may get a different area code. It never delays your order." }, "forwardCallsTo": "+16285559999", "callingAddons": [{ "key": "facetime_audio", "label": "FaceTime Audio add-on", "price": "$100/mo per line" }], "callingAddonChargesToday": "$100/mo, prorated today", "recipientPreviewUrl": "https://app.tuco.ai/recipient-preview?name=Venk%20-%20ABA%20Therapy&photo=https%3A%2F%2Fcdn.example.com%2Fvenk.jpg", "whatTheLeadSees": "Until they save your contact or tap Mark as Known, every message from this line shows \"Maybe: Venk - ABA Therapy\" with Delete, Delete and Report Spam, and Mark as Known." }}
Open recipientPreviewUrl to see exactly what your leads will see. Wrong name or photo? Change
displayName* / profileImageUrl and review again.
Payment is always attached to the exact saved line request. The caller does not need to resubmit the payload after paying.
The API uses the authenticated workspace. You cannot request lines for an arbitrary workspace id in the body.
Retry safety is built in through idempotency support and workspace-level request locking.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Tuco AI","colors":{"primary":"#FF3515","light":"#FFF5F2","dark":"#111827"},"logo":{"light":"https://mintcdn.com/tucoai/oqQbf84LeXHYKs-3/logo/light.svg?fit=max\u0026auto=format\u0026n=oqQbf84LeXHYKs-3\u0026q=85\u0026s=c601a209f9f05fe52c2cd2e67d63adeb","dark":"https://mintcdn.com/tucoai/oqQbf84LeXHYKs-3/logo/dark.svg?fit=max\u0026auto=format\u0026n=oqQbf84LeXHYKs-3\u0026q=85\u0026s=2d4cbb7e9dea8411a50d67377ca76578"},"favicon":"https://mintcdn.com/tucoai/oqQbf84LeXHYKs-3/images/tuco_v1_round.svg?fit=max\u0026auto=format\u0026n=oqQbf84LeXHYKs-3\u0026q=85\u0026s=0c579fbfd834a8ce1afe94ec9a63c4a6","api":{"openapi":"api-reference/openapi.json","mdx":{"auth":{"method":"bearer"},"server":"https://app.tuco.ai"}},"navbar":{"links":[{"href":"mailto:support@tuco.ai","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://app.tuco.ai"}},"footer":{"socials":{"x":"https://x.com/tucoai","linkedin":"https://linkedin.com/company/tuco-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"browser","href":"https://app.tuco.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tucoai","hasAudioNarration":false,"actualSubdomain":"tucoai","customDomains":["docs.tuco.ai"],"gitSource":{"type":"github","owner":"goforbg","repo":"tuco-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae277d9aa176457dc3a2234","collectionId":"ebacd0bf-09db-4284-9b11-da57791e1639","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae277d9aa176457dc3a2234"},"entitlements":{},"buildId":"6ae277d9aa176457dc3a2234","clientVersion":"0.0.4039","searchFilterCounts":[{"language":"default","tag":"API Reference","count":96},{"language":"default","tag":"Documentation","count":63},{"language":"default","tag":"Lines \u0026 Leads","count":19},{"language":"default","tag":"Messages","count":14},{"language":"default","tag":"Goal Bots","count":14},{"language":"default","tag":"Webhooks","count":13},{"language":"default","tag":"iMessage Guides","count":13},{"language":"default","tag":"Agency","count":11},{"language":"default","tag":"Integrations","count":8},{"language":"default","tag":"Core Features","count":6}]},"assistantConfig":{"enableStarterQuestions":false},"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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/create-line-request","slug":"/api-reference/endpoint/create-line-request","pageMetadata":{"title":"Create Line Request","api":"POST /api/line-requests","description":"Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.","href":"/api-reference/endpoint/create-line-request"},"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: \"Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.\"\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`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The Try it panel runs against production`}),` (`,_jsx(_components.code,{children:`https://app.tuco.ai`}),`) with the key you paste\ninto it. There is no sandbox — a request from this page creates a real line request, and can start a real payment.`]})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Use this endpoint after the workspace already has an active Tuco subscription. If the request is included in the current plan, Tuco starts provisioning immediately. If the request requires an add-on, Tuco returns a hosted invoice link.`})}),`\n`,_jsx(Heading,{level:`2`,id:`what-this-endpoint-decides`,children:`What This Endpoint Decides`}),`\n`,_jsx(_components.p,{children:`You send the line details once, and Tuco decides what should happen next.`}),`\n`,_jsx(_components.p,{children:`The response will always fall into one of these buckets:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`provisioning`}),`\nTuco accepted the request immediately and has started setting up the line.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`awaiting_payment`}),`\nTuco saved the request, but it needs payment before provisioning can begin.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`subscription_required`}),`\nThe workspace needs an active base plan before it can request lines.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`forbidden_line_type`}),`\nThe current plan does not allow that request, or the plan reached a hard cap with no paid expansion path.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`Pass your workspace API key as a Bearer token, or use a Clerk session token.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tuco_xxxxxxxxxxxxx`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Every order must carry the legal name, the company name and an explicit anti-spam acceptance.\nA purchased phone line (an eSIM) must also carry the full legal address, the eSIM country, the ZIP /\npostal code to provision on, and the area-code acknowledgement. A request missing any of them is\nrejected with `,_jsx(_components.code,{children:`400`}),` and `,_jsx(_components.strong,{children:`no line is created`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`who-the-line-belongs-to`,children:`Who the line belongs to`}),`\n`,_jsx(ParamField,{body:`legalFirstName`,type:`string`,required:true,id:`param-legal-first-name`,children:_jsxs(_components.p,{children:[`Required. First name of the person `,_jsx(_components.strong,{children:`authorised to make this payment on behalf of the company`}),`.\nAgency ordering for a client? Use your client’s name. Business owner? Use your own name. Marketing\nor ops? Use your name or the business owner’s. Only the SIM card provider sees it — never your\nleads (they see the display name).`]})}),`\n`,_jsx(ParamField,{body:`legalLastName`,type:`string`,required:true,id:`param-legal-last-name`,children:_jsxs(_components.p,{children:[`Required. Last name of the same authorised person (see `,_jsx(_components.code,{children:`legalFirstName`}),`).`]})}),`\n`,_jsx(ParamField,{body:`displayFirstName`,type:`string`,id:`param-display-first-name`,children:_jsxs(_components.p,{children:[`Optional. Display first name — `,_jsx(_components.strong,{children:`set on the Mac`}),` and shown to conversation participants on iMessage.\nIf omitted, Tuco uses `,_jsx(_components.code,{children:`legalFirstName`}),`. `,_jsx(_components.code,{children:`firstName`}),` is accepted as an alias.`]})}),`\n`,_jsx(ParamField,{body:`displayLastName`,type:`string`,id:`param-display-last-name`,children:_jsxs(_components.p,{children:[`Optional. Display last name — `,_jsx(_components.strong,{children:`set on the Mac`}),` and shown to conversation participants on iMessage.\nIf omitted, Tuco uses `,_jsx(_components.code,{children:`legalLastName`}),`. `,_jsx(_components.code,{children:`lastName`}),` is accepted as an alias.`]})}),`\n`,_jsx(ParamField,{body:`companyName`,type:`string`,required:true,id:`param-company-name`,children:_jsxs(_components.p,{children:[`Required for every line. The company’s legal name — an LLC, Inc, sole proprietorship or any\nregistered business, anywhere in the world, e.g. `,_jsx(_components.code,{children:`\"Acme, LLC\"`}),` or `,_jsx(_components.code,{children:`\"Acme, Inc.\"`}),`.\n`,_jsx(_components.code,{children:`legalName`}),` is accepted as an alias.`]})}),`\n`,_jsx(ParamField,{body:`companyPhone`,type:`string`,id:`param-company-phone`,children:_jsx(_components.p,{children:`Optional. Business contact number for the company (not the line’s own number).`})}),`\n`,_jsxs(ParamField,{body:`antiSpamAccepted`,type:`boolean`,required:true,id:`param-anti-spam-accepted`,children:[_jsxs(_components.p,{children:[`Required for every line. Must be the boolean `,_jsx(_components.code,{children:`true`}),`, confirming the workspace accepts Tuco’s\n`,_jsx(_components.a,{href:`https://tuco.ai/anti-spam-policy`,children:`anti-spam and messaging rules`}),`. Any other value — including `,_jsx(_components.code,{children:`\"true\"`}),`\nas a string — is treated as not accepted.`]}),_jsxs(_components.p,{children:[`Those rules include: every lead sees Delete / Delete and Report Spam / Mark as Known on `,_jsx(_components.strong,{children:`every`}),`\nmessage until they save you; no old leads who’ve forgotten you, no high-pressure tactics, nobody who\nopted in more than a month ago; and when re-engaging older leads, a different message per lead with\na 3–5 minute gap. See `,_jsx(_components.a,{href:`/what-leads-see`,children:`What your leads see`}),`.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`what-kind-of-line`,children:`What kind of line`}),`\n`,_jsx(ParamField,{body:`channelType`,type:`string`,required:true,id:`param-channel-type`,children:_jsxs(_components.p,{children:[`Supported values: `,_jsx(_components.code,{children:`\"phone\"`}),` or `,_jsx(_components.code,{children:`\"email\"`}),`. Defaults to `,_jsx(_components.code,{children:`\"phone\"`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`lineType`,type:`string`,id:`param-line-type`,children:[_jsxs(_components.p,{children:[`Optional. Supported values: `,_jsx(_components.code,{children:`\"purchased\"`}),` or `,_jsx(_components.code,{children:`\"byon\"`}),`. Defaults to `,_jsx(_components.code,{children:`\"purchased\"`}),` when omitted.`]}),_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`\"byon\"`}),` (bring your own number) `,_jsx(_components.strong,{children:`only if you are porting a number you already own`}),`.\nLeave it out to have Tuco provision a new number on an eSIM.`]})]}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:_jsxs(_components.p,{children:[`Required for email lines, and for phone lines you are porting (`,_jsx(_components.code,{children:`lineType: \"byon\"`}),`).\nLeave it out for a purchased phone line.`]})}),`\n`,_jsxs(ParamField,{body:`phone`,type:`string`,id:`param-phone`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Not required unless you are porting a number you already own`}),` (`,_jsx(_components.code,{children:`lineType: \"byon\"`}),`), in which\ncase send it in E.164 form, e.g. `,_jsx(_components.code,{children:`\"+14155550123\"`}),`.`]}),_jsxs(_components.p,{children:[`For a purchased phone line — the normal case — `,_jsx(_components.strong,{children:`omit this field entirely`}),`. Tuco assigns the\nnumber and reports it back once provisioning completes.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not send a placeholder such as `,_jsx(_components.code,{children:`\"pending\"`}),`, `,_jsx(_components.code,{children:`\"none\"`}),` or `,_jsx(_components.code,{children:`\"\"`}),` to satisfy the field. Whatever you\nsend is stored as the line’s number, so a placeholder makes the line look like it already has one.\nOmitting the field is what marks the number as not yet assigned.`]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`esim-fields-purchased-phone-lines`,children:`eSIM fields (purchased phone lines)`}),`\n`,_jsxs(_components.p,{children:[`Required when `,_jsx(_components.code,{children:`channelType`}),` is `,_jsx(_components.code,{children:`\"phone\"`}),` and `,_jsx(_components.code,{children:`lineType`}),` is `,_jsx(_components.code,{children:`\"purchased\"`}),` (or omitted). Ignored for\nemail lines and ported numbers.`]}),`\n`,_jsxs(ParamField,{body:`simCountry`,type:`string`,required:true,id:`param-sim-country`,children:[_jsxs(_components.p,{children:[`Country the eSIM is for: `,_jsx(_components.code,{children:`\"US\"`}),` or `,_jsx(_components.code,{children:`\"CA\"`}),`. eSIMs are self-serve for the `,_jsx(_components.strong,{children:`US and Canada only`}),` —\nfor the UK, Australia or any other country, contact `,_jsx(_components.a,{href:`mailto:support@tuco.ai`,children:`support@tuco.ai`}),`.\nAny other value is rejected with `,_jsx(_components.code,{children:`400`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`iMessage works globally`}),` — a US or Canadian line can iMessage recipients in any country.\n`,_jsx(_components.strong,{children:`P2P SMS fallback`}),` (a green bubble sent from this same number when the recipient isn’t on\niMessage) only reaches recipients `,_jsx(_components.strong,{children:`in the eSIM’s country`}),`: a `,_jsx(_components.code,{children:`US`}),` eSIM falls back to SMS for US\nnumbers only, a `,_jsx(_components.code,{children:`CA`}),` eSIM for Canadian numbers only.`]})})]}),`\n`,_jsx(ParamField,{body:`addressLine1`,type:`string`,required:true,id:`param-address-line1`,children:_jsxs(_components.p,{children:[`Street of the `,_jsx(_components.strong,{children:`legal service address`}),` — it can be anywhere in the world. Carriers need a real\naddress to activate the eSIM. The number itself is provisioned on `,_jsx(_components.code,{children:`zipcode`}),` (US or Canada).`]})}),`\n`,_jsx(ParamField,{body:`addressLine2`,type:`string`,id:`param-address-line2`,children:_jsx(_components.p,{children:`Optional. Apt / suite / unit.`})}),`\n`,_jsx(ParamField,{body:`city`,type:`string`,required:true,id:`param-city`,children:_jsx(_components.p,{children:`City of the legal service address.`})}),`\n`,_jsx(ParamField,{body:`state`,type:`string`,required:true,id:`param-state`,children:_jsxs(_components.p,{children:[`State (US) or province (Canada) of the legal service address, e.g. `,_jsx(_components.code,{children:`\"CA\"`}),` or `,_jsx(_components.code,{children:`\"ON\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`legalZipcode`,type:`string`,required:true,id:`param-legal-zipcode`,children:_jsx(_components.p,{children:`ZIP (US) or postal code (Canada) of the legal service address. Not format-checked.`})}),`\n`,_jsx(ParamField,{body:`zipcode`,type:`string`,required:true,id:`param-zipcode`,children:_jsxs(_components.p,{children:[`ZIP / postal code `,_jsx(_components.strong,{children:`to provision the number on`}),`. The eSIM number is requested on this ZIP —\n`,_jsx(_components.strong,{children:`not`}),` on an area code. It can be different from `,_jsx(_components.code,{children:`legalZipcode`}),`. Not format-checked.`]})}),`\n`,_jsx(ParamField,{body:`areaCodeBestEffortAcknowledged`,type:`boolean`,required:true,id:`param-area-code-best-effort-acknowledged`,children:_jsxs(_components.p,{children:[`Must be the boolean `,_jsx(_components.code,{children:`true`}),`. Confirms you understand the area code is `,_jsx(_components.strong,{children:`best effort`}),`: Tuco does\nnot guarantee an area code — the eSIM is provisioned on the `,_jsx(_components.code,{children:`zipcode`}),` you provide, not an area\ncode, and the legal address and that ZIP can be different.`]})}),`\n`,_jsx(ParamField,{body:`preferredAreaCode`,type:`string`,id:`param-preferred-area-code`,children:_jsxs(_components.p,{children:[`Optional. `,_jsxs(_components.strong,{children:[`Leave it out (the default) to accept any area code that matches `,_jsx(_components.code,{children:`zipcode`}),`.`]}),` Send it\nonly if you’d like a specific area code, as 3 digits (e.g. `,_jsx(_components.code,{children:`\"212\"`}),`). `,_jsx(_components.strong,{children:`Best effort — NOT\nguaranteed.`}),` We try for it, but the number is provisioned on `,_jsx(_components.code,{children:`zipcode`}),` and you may get a\ndifferent area code. It never delays the order. Anything that isn’t a 3-digit US / Canada area\ncode returns `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`An area code is never guaranteed`}),`, whether or not you send `,_jsx(_components.code,{children:`preferredAreaCode`}),`. Don’t promise a\nspecific area code to anyone before the line is live.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`calling-add-ons-optional-phone-lines`,children:`Calling add-ons (optional, phone lines)`}),`\n`,_jsxs(_components.p,{children:[`Every phone line includes 500 outgoing minutes/month with recording, unlimited incoming, and $3 per\nextra 100 minutes. These per-line add-ons are optional — see `,_jsx(_components.a,{href:`/api-reference/endpoint/calling-addons`,children:`Calling add-ons`}),`.`]}),`\n`,_jsx(ParamField,{body:`callingAddons`,type:`string[]`,id:`param-calling-addons`,children:_jsxs(_components.p,{children:[`Any of `,_jsx(_components.code,{children:`\"facetime_audio\"`}),` (FaceTime Audio add-on — `,'$100/mo per line) and `\"caller_id_registration\"`\\n(Registered caller ID add-on — $',`50 setup + `,`$50/mo per line + $`,`0.075 per call). Charged right after the line\nis created, to the card on file: the setup fee plus today’s prorated share of the monthly, then monthly.\nAdd-ons can’t be removed after purchase — contact `,_jsx(_components.a,{href:`mailto:support@tuco.ai`,children:`support@tuco.ai`}),`. Add-ons already bought with your plan\nat checkout attach to new lines automatically, with no second charge.`]})}),`\n`,_jsx(ParamField,{body:`acceptCallingAddonCharges`,type:`boolean`,id:`param-accept-calling-addon-charges`,children:_jsxs(_components.p,{children:[`Required (`,_jsx(_components.code,{children:`true`}),`) whenever `,_jsx(_components.code,{children:`callingAddons`}),` is non-empty — your explicit agreement to those charges.\nNon-refundable. Without it the request is rejected with `,_jsx(_components.code,{children:`400`}),` and nothing is created.`]})}),`\n`,_jsxs(_components.p,{children:[`The response then includes a `,_jsx(_components.code,{children:`callingAddons`}),` array — one result per add-on, with `,_jsx(_components.code,{children:`status`}),`\n`,_jsx(_components.code,{children:`pending_setup`}),` (charged to the card on file; we’re setting it up) or, only when the card is declined or\nthe bank requires authentication (3-D Secure), `,_jsx(_components.code,{children:`awaiting_payment`}),` plus a `,_jsx(_components.code,{children:`paymentUrl`}),` for the customer to\nconfirm the payment. All of a line’s add-ons are charged together: one invoice, so every\n`,_jsx(_components.code,{children:`awaiting_payment`}),` result carries the same `,_jsx(_components.code,{children:`paymentUrl`}),`, and one confirmation starts them all. The\nlink lapses after about 23 hours if unpaid; the add-ons then go back to `,_jsx(_components.code,{children:`none`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`other`,children:`Other`}),`\n`,_jsx(ParamField,{body:`forwardCallsTo`,type:`string`,id:`param-forward-calls-to`,children:_jsx(_components.p,{children:`Optional. Forwarding destination for inbound calls on phone lines. One line = one forwarding number.`})}),`\n`,_jsx(ParamField,{body:`profileImageUrl`,type:`string`,id:`param-profile-image-url`,children:_jsx(_components.p,{children:`Optional. Avatar shown in Tuco.`})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Review everything and be sure.`}),` Ordering is free — the name and photo you send here don’t count.\nAfter the line is created, its display name and photo can change at most `,_jsx(_components.strong,{children:`3 times per line per month`}),` — each change needs a person on our side to update the Mac. A\n4th change in the same month returns `,_jsx(_components.code,{children:`400`}),` (`,_jsx(_components.code,{children:`LINE_INFO_UPDATE_LIMIT`}),`); contact `,_jsx(_components.a,{href:`mailto:support@tuco.ai`,children:`support@tuco.ai`}),`.\nUse `,_jsx(_components.code,{children:`reviewOnly`}),` below to check everything first.`]})}),`\n`,_jsx(ParamField,{body:`reviewOnly`,type:`boolean`,id:`param-review-only`,children:_jsxs(_components.p,{children:[`Optional. Send `,_jsx(_components.code,{children:`true`}),` to `,_jsx(_components.strong,{children:`review the order without creating it`}),`. Tuco runs exactly the same\nvalidation as a real order and returns `,_jsx(_components.code,{children:`200`}),` with a `,_jsx(_components.code,{children:`review`}),` object — the display name and photo\nyour leads will see, the legal name, company, eSIM country, legal address, provisioning ZIP,\nforwarding number, calling add-ons with their charges, and a `,_jsx(_components.code,{children:`recipientPreviewUrl`}),` showing Apple’s\n“Maybe: (your name)” screens. Nothing is created or charged. Change anything and review again, then send\nthe same body without `,_jsx(_components.code,{children:`reviewOnly`}),` to order. Missing or invalid fields return `,_jsx(_components.code,{children:`400`}),` with\n`,_jsx(_components.code,{children:`missingFields`}),`, as on a real order.`]})}),`\n`,_jsx(ParamField,{body:`idempotencyKey`,type:`string`,id:`param-idempotency-key`,children:_jsxs(_components.p,{children:[`Optional. You can also send this as the `,_jsx(_components.code,{children:`Idempotency-Key`}),` header. Reusing the same key returns the original response instead of creating a duplicate request.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`required-field-rules`,children:`Required field rules`}),`\n`,_jsxs(_components.p,{children:[`Every request needs `,_jsx(_components.code,{children:`legalFirstName`}),`, `,_jsx(_components.code,{children:`legalLastName`}),`, `,_jsx(_components.code,{children:`companyName`}),` and `,_jsx(_components.code,{children:`antiSpamAccepted: true`}),`.\nOn top of that:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Request type`}),_jsx(_components.th,{children:`Also required`}),_jsx(_components.th,{children:`Leave out`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Purchased phone line / eSIM (most common)`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`channelType=phone`}),`, `,_jsx(_components.code,{children:`simCountry`}),`, `,_jsx(_components.code,{children:`addressLine1`}),`, `,_jsx(_components.code,{children:`city`}),`, `,_jsx(_components.code,{children:`state`}),`, `,_jsx(_components.code,{children:`legalZipcode`}),`, `,_jsx(_components.code,{children:`zipcode`}),`, `,_jsx(_components.code,{children:`areaCodeBestEffortAcknowledged: true`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`phone`}),`, `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`lineType`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Email line`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`channelType=email`}),`, `,_jsx(_components.code,{children:`email`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`phone`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Porting a number you own`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`channelType=phone`}),`, `,_jsx(_components.code,{children:`lineType=byon`}),`, `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`phone`})]}),_jsx(_components.td,{children:`—`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`displayFirstName`}),` / `,_jsx(_components.code,{children:`displayLastName`}),` are always optional — each falls back to the legal name.`]}),`\n`,_jsx(_components.p,{children:`Extra fields are tolerated, so an unexpected field will not fail the request — but a value you send\nis a value Tuco stores. Leave out the fields your request type does not use rather than filling them\nwith placeholders.`}),`\n`,_jsx(Heading,{level:`3`,id:`default-behavior-for-phone-lines`,children:`Default behavior for phone lines`}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`channelType`}),` is `,_jsx(_components.code,{children:`phone`}),` and `,_jsx(_components.code,{children:`lineType`}),` is omitted, Tuco treats the request as:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"lineType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"purchased\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`That means the eSIM fields are required unless you explicitly send `,_jsx(_components.code,{children:`lineType: \"byon\"`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`example-included-line-esim`,children:`Example: included line (eSIM)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.tuco.ai/api/line-requests\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer tuco_xxxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: line-req-001\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legalFirstName\": \"Jane\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legalLastName\": \"Doe\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"displayFirstName\": \"Jane\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"displayLastName\": \"from Acme\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"companyName\": \"Acme, LLC\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"antiSpamAccepted\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"channelType\": \"phone\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"simCountry\": \"US\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"addressLine1\": \"123 Market St\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"city\": \"San Francisco\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"state\": \"CA\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legalZipcode\": \"94103\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"zipcode\": \"10001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"preferredAreaCode\": \"212\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"areaCodeBestEffortAcknowledged\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`success-provisioning-201-created`,children:[`Success: provisioning (`,_jsx(_components.code,{children:`201 Created`}),`)`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"provisioning\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentRequired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6a091e74542d9e3d645925ae\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"firstName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jane\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lastName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"from Acme\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"channelType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lineType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"purchased\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provisioningStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"provisioning\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"not_required\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"recipientPreviewUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://app.tuco.ai/recipient-preview?name=Jane%20from%20Acme\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`recipientPreviewUrl`}),` is returned on `,_jsx(_components.strong,{children:`every`}),` order: a hosted preview of exactly what a lead sees from\nthis line — Apple’s “Maybe: Jane from Acme” header with `,_jsx(_components.strong,{children:`Delete`}),`, `,_jsx(_components.strong,{children:`Delete and Report Spam`}),` and\n`,_jsx(_components.strong,{children:`Mark as Known`}),` on every message until they save your contact. Show it to whoever writes your\nmessages. See `,_jsx(_components.a,{href:`/what-leads-see`,children:`What your leads see`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`line.firstName`}),` / `,_jsx(_components.code,{children:`line.lastName`}),` are the `,_jsx(_components.strong,{children:`display`}),` name — what the Mac shows participants.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`example-paid-add-on-line`,children:`Example: paid add-on line`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.tuco.ai/api/line-requests\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer tuco_xxxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: line-req-002\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legalFirstName\": \"Sam\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legalLastName\": \"Support\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"companyName\": \"Acme, LLC\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"antiSpamAccepted\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"channelType\": \"email\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"support2@example.com\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`No display name is sent, so the line shows `,_jsx(_components.code,{children:`Sam Support`}),`.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`success-awaiting-payment-201-created`,children:[`Success: awaiting payment (`,_jsx(_components.code,{children:`201 Created`}),`)`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"awaiting_payment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentRequired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"over_plan_limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://invoice.stripe.com/...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expiresAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6a09279daa903300e2530b0f\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"firstName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Sam\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lastName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Support\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"channelType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lineType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"purchased\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provisioningStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"awaiting_payment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"awaiting_payment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stripeInvoiceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"in_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentLinkUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://invoice.stripe.com/...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"recipientPreviewUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://app.tuco.ai/recipient-preview?name=Sam%20Support\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`example-review-before-ordering-reviewonly`,children:[`Example: review before ordering (`,_jsx(_components.code,{children:`reviewOnly`}),`)`]}),`\n`,_jsxs(_components.p,{children:[`Send the same body with `,_jsx(_components.code,{children:`\"reviewOnly\": true`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reviewOnly\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"review\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Venk - ABA Therapy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"legalName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Venkat Raman\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"companyName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ABA Therapy, LLC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"channelType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lineType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"purchased\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"profileImageUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/venk.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"simCountry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"United States\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"legalAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123 Market St, San Francisco, CA, 94103, US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provisioningZip\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"preferredAreaCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"212\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"guaranteed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"note\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Preference only — NOT guaranteed. We try for this area code, but the number is provisioned on your ZIP / postal code and you may get a different area code. It never delays your order.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"forwardCallsTo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+16285559999\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callingAddons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"facetime_audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FaceTime Audio add-on\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$100/mo per line\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callingAddonChargesToday\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$100/mo, prorated today\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"recipientPreviewUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://app.tuco.ai/recipient-preview?name=Venk%20-%20ABA%20Therapy\u0026photo=https%3A%2F%2Fcdn.example.com%2Fvenk.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"whatTheLeadSees\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Until they save your contact or tap Mark as Known, every message from this line shows `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Maybe: Venk - ABA Therapy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` with Delete, Delete and Report Spam, and Mark as Known.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Open `,_jsx(_components.code,{children:`recipientPreviewUrl`}),` to see exactly what your leads will see. Wrong name or photo? Change\n`,_jsx(_components.code,{children:`displayName*`}),` / `,_jsx(_components.code,{children:`profileImageUrl`}),` and review again.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`example-rejected-—-missing-compliance-fields-400`,children:[`Example: rejected — missing compliance fields (`,_jsx(_components.code,{children:`400`}),`)`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Missing required fields: legalFirstName, legalLastName, companyName, antiSpamAccepted, addressLine1, city, state, legalZipcode, zipcode, simCountry, areaCodeBestEffortAcknowledged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"missingFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legalFirstName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"legalLastName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"companyName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"antiSpamAccepted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"addressLine1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"city\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"legalZipcode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"zipcode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"simCountry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"areaCodeBestEffortAcknowledged\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`what-to-do-after-you-create-a-request`,children:`What To Do After You Create A Request`}),`\n`,_jsxs(_components.p,{children:[`If the response is `,_jsx(_components.code,{children:`provisioning`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`keep the returned `,_jsx(_components.code,{children:`line._id`})]}),`\n`,_jsxs(_components.li,{children:[`poll `,_jsx(_components.code,{children:`GET /api/line-requests/{id}`}),` for status updates`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If the response is `,_jsx(_components.code,{children:`awaiting_payment`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`keep the returned `,_jsx(_components.code,{children:`line._id`})]}),`\n`,_jsxs(_components.li,{children:[`show the `,_jsx(_components.code,{children:`paymentUrl`}),` to the user`]}),`\n`,_jsxs(_components.li,{children:[`after payment, poll `,_jsx(_components.code,{children:`GET /api/line-requests/{id}`}),` until it changes to `,_jsx(_components.code,{children:`provisioning`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`You should not submit the same line details again after payment. The original request is the one that continues.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`one-request-at-a-time`,children:`One Request At A Time`}),`\n`,_jsxs(_components.p,{children:[`Tuco blocks a new request only when the workspace already has a line request in `,_jsx(_components.code,{children:`awaiting_payment`}),`.`]}),`\n`,_jsx(_components.p,{children:`This prevents:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`duplicate unpaid requests`}),`\n`,_jsx(_components.li,{children:`accidental double purchases`}),`\n`,_jsx(_components.li,{children:`race conditions from retries`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Lines already in `,_jsx(_components.code,{children:`provisioning`}),` do not block the next request.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`When`}),_jsx(_components.th,{children:`Body`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Missing or invalid order fields (legal name, company, anti-spam, eSIM address / country / ZIPs / area-code acknowledgement)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"...\", \"missingFields\": [\"...\"] }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`simCountry`}),` other than `,_jsx(_components.code,{children:`US`}),` / `,_jsx(_components.code,{children:`CA`}),` — contact `,_jsx(_components.a,{href:`mailto:support@tuco.ai`,children:`support@tuco.ai`}),` for other countries`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"...\", \"missingFields\": [] }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Missing or invalid API key / session`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"Unauthorized\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Workspace has no active subscription`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"success\": false, \"status\": \"subscription_required\", \"message\": \"...\", \"redirect\": \"/billing\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Line type is not allowed on the plan, or hard cap reached with no paid expansion`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"success\": false, \"status\": \"forbidden_line_type\", \"message\": \"...\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`Another line request is already waiting for payment`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"success\": false, \"status\": \"request_in_progress\", \"message\": \"...\", \"existingLine\": { ... } }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limit exceeded`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"Rate limit exceeded\", \"retryAfterMs\": 1234 }`})})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Payment is always attached to the exact saved line request. The caller does not need to resubmit the payload after paying.`}),`\n`,_jsx(_components.li,{children:`The API uses the authenticated workspace. You cannot request lines for an arbitrary workspace id in the body.`}),`\n`,_jsx(_components.li,{children:`Retry safety is built in through idempotency support and workspace-level request locking.`}),`\n`]})]})}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":"Create Line Request","api":"POST /api/line-requests","description":"Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.","href":"/api-reference/endpoint/create-line-request"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What This Endpoint Decides","slug":"what-this-endpoint-decides","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request body","slug":"request-body","depth":2,"children":[{"title":"Who the line belongs to","slug":"who-the-line-belongs-to","depth":3,"children":[]},{"title":"What kind of line","slug":"what-kind-of-line","depth":3,"children":[]},{"title":"eSIM fields (purchased phone lines)","slug":"esim-fields-purchased-phone-lines","depth":3,"children":[]},{"title":"Calling add-ons (optional, phone lines)","slug":"calling-add-ons-optional-phone-lines","depth":3,"children":[]},{"title":"Other","slug":"other","depth":3,"children":[]}]},{"title":"Required field rules","slug":"required-field-rules","depth":2,"children":[{"title":"Default behavior for phone lines","slug":"default-behavior-for-phone-lines","depth":3,"children":[]}]},{"title":"Example: included line (eSIM)","slug":"example-included-line-esim","depth":2,"children":[{"title":"Success: provisioning (201 Created)","slug":"success-provisioning-201-created","depth":3,"children":[]}]},{"title":"Example: paid add-on line","slug":"example-paid-add-on-line","depth":2,"children":[{"title":"Success: awaiting payment (201 Created)","slug":"success-awaiting-payment-201-created","depth":3,"children":[]}]},{"title":"Example: review before ordering (reviewOnly)","slug":"example-review-before-ordering-reviewonly","depth":2,"children":[]},{"title":"Example: rejected — missing compliance fields (400)","slug":"example-rejected-—-missing-compliance-fields-400","depth":2,"children":[]},{"title":"What To Do After You Create A Request","slug":"what-to-do-after-you-create-a-request","depth":2,"children":[]},{"title":"One Request At A Time","slug":"one-request-at-a-time","depth":2,"children":[]},{"title":"Error responses","slug":"error-responses","depth":2,"children":[]},{"title":"Notes","slug":"notes","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Create Line Request","path":"/api/line-requests","servers":[{"url":"https://app.tuco.ai"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"legalFirstName":[{"type":"string","description":"Required. First name of the person authorised to make this payment on behalf of the company . Agency ordering for a client? Use your client’s name. Business owner? Use your own name. Marketing or ops? Use your name or the business owner’s. Only the SIM card provider sees it — never your leads (they see the display name).","required":true}],"legalLastName":[{"type":"string","description":"Required. Last name of the same authorised person (see `legalFirstName` ).","required":true}],"displayFirstName":[{"type":"string","description":"Optional. Display first name — set on the Mac and shown to conversation participants on iMessage. If omitted, Tuco uses `legalFirstName` . `firstName` is accepted as an alias."}],"displayLastName":[{"type":"string","description":"Optional. Display last name — set on the Mac and shown to conversation participants on iMessage. If omitted, Tuco uses `legalLastName` . `lastName` is accepted as an alias."}],"companyName":[{"type":"string","description":"Required for every line. The company’s legal name — an LLC, Inc, sole proprietorship or any registered business, anywhere in the world, e.g. `\"Acme, LLC\"` or `\"Acme, Inc.\"` . `legalName` is accepted as an alias.","required":true}],"companyPhone":[{"type":"string","description":"Optional. Business contact number for the company (not the line’s own number)."}],"antiSpamAccepted":[{"type":"boolean","description":"Required for every line. Must be the boolean `true` , confirming the workspace accepts Tuco’s anti-spam and messaging rules . Any other value — including `\"true\"` as a string — is treated as not accepted. Those rules include: every lead sees Delete / Delete and Report Spam / Mark as Known on every message until they save you; no old leads who’ve forgotten you, no high-pressure tactics, nobody who opted in more than a month ago; and when re-engaging older leads, a different message per lead with a 3–5 minute gap. See What your leads see .","required":true}],"channelType":[{"type":"string","description":"Supported values: `\"phone\"` or `\"email\"` . Defaults to `\"phone\"` .","required":true}],"lineType":[{"type":"string","description":"Optional. Supported values: `\"purchased\"` or `\"byon\"` . Defaults to `\"purchased\"` when omitted. Send `\"byon\"` (bring your own number) only if you are porting a number you already own . Leave it out to have Tuco provision a new number on an eSIM."}],"email":[{"type":"string","description":"Required for email lines, and for phone lines you are porting ( `lineType: \"byon\"` ). Leave it out for a purchased phone line."}],"phone":[{"type":"string","description":"Not required unless you are porting a number you already own ( `lineType: \"byon\"` ), in which case send it in E.164 form, e.g. `\"+14155550123\"` . For a purchased phone line — the normal case — omit this field entirely . Tuco assigns the number and reports it back once provisioning completes."}],"simCountry":[{"type":"string","description":"Country the eSIM is for: `\"US\"` or `\"CA\"` . eSIMs are self-serve for the US and Canada only — for the UK, Australia or any other country, contact support@tuco.ai . Any other value is rejected with `400` .","required":true}],"addressLine1":[{"type":"string","description":"Street of the legal service address — it can be anywhere in the world. Carriers need a real address to activate the eSIM. The number itself is provisioned on `zipcode` (US or Canada).","required":true}],"addressLine2":[{"type":"string","description":"Optional. Apt / suite / unit."}],"city":[{"type":"string","description":"City of the legal service address.","required":true}],"state":[{"type":"string","description":"State (US) or province (Canada) of the legal service address, e.g. `\"CA\"` or `\"ON\"` .","required":true}],"legalZipcode":[{"type":"string","description":"ZIP (US) or postal code (Canada) of the legal service address. Not format-checked.","required":true}],"zipcode":[{"type":"string","description":"ZIP / postal code to provision the number on . The eSIM number is requested on this ZIP — not on an area code. It can be different from `legalZipcode` . Not format-checked.","required":true}],"areaCodeBestEffortAcknowledged":[{"type":"boolean","description":"Must be the boolean `true` . Confirms you understand the area code is best effort : Tuco does not guarantee an area code — the eSIM is provisioned on the `zipcode` you provide, not an area code, and the legal address and that ZIP can be different.","required":true}],"preferredAreaCode":[{"type":"string","description":"Optional. Leave it out (the default) to accept any area code that matches `zipcode` . Send it only if you’d like a specific area code, as 3 digits (e.g. `\"212\"` ). Best effort — NOT guaranteed. We try for it, but the number is provisioned on `zipcode` and you may get a different area code. It never delays the order. Anything that isn’t a 3-digit US / Canada area code returns `400` ."}],"callingAddons":[{"type":"array","items":[{"type":"string"}],"description":"Any of `\"facetime_audio\"` (FaceTime Audio add-on — $100/mo per line) and `\"caller_id_registration\"` (Registered caller ID add-on — $ 50 setup + $50/mo per line + $ 0.075 per call). Charged right after the line is created, to the card on file: the setup fee plus today’s prorated share of the monthly, then monthly. Add-ons can’t be removed after purchase — contact support@tuco.ai . Add-ons already bought with your plan at checkout attach to new lines automatically, with no second charge."}],"acceptCallingAddonCharges":[{"type":"boolean","description":"Required ( `true` ) whenever `callingAddons` is non-empty — your explicit agreement to those charges. Non-refundable. Without it the request is rejected with `400` and nothing is created."}],"forwardCallsTo":[{"type":"string","description":"Optional. Forwarding destination for inbound calls on phone lines. One line = one forwarding number."}],"profileImageUrl":[{"type":"string","description":"Optional. Avatar shown in Tuco."}],"reviewOnly":[{"type":"boolean","description":"Optional. Send `true` to review the order without creating it . Tuco runs exactly the same validation as a real order and returns `200` with a `review` object — the display name and photo your leads will see, the legal name, company, eSIM country, legal address, provisioning ZIP, forwarding number, calling add-ons with their charges, and a `recipientPreviewUrl` showing Apple’s “Maybe: (your name)” screens. Nothing is created or charged. Change anything and review again, then send the same body without `reviewOnly` to order. Missing or invalid fields return `400` with `missingFields` , as on a real order."}],"idempotencyKey":[{"type":"string","description":"Optional. You can also send this as the `Idempotency-Key` header. Reusing the same key returns the original response instead of creating a duplicate request."}]}}],"examples":{"example":{"value":{"legalFirstName":"\u003cstring>","legalLastName":"\u003cstring>","displayFirstName":"\u003cstring>","displayLastName":"\u003cstring>","companyName":"\u003cstring>","companyPhone":"\u003cstring>","antiSpamAccepted":true,"channelType":"\u003cstring>","lineType":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","simCountry":"\u003cstring>","addressLine1":"\u003cstring>","addressLine2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","legalZipcode":"\u003cstring>","zipcode":"\u003cstring>","areaCodeBestEffortAcknowledged":true,"preferredAreaCode":"\u003cstring>","callingAddons":["\u003cstring>"],"acceptCallingAddonCharges":true,"forwardCallsTo":"\u003cstring>","profileImageUrl":"\u003cstring>","reviewOnly":true,"idempotencyKey":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"tucoai","siteName":"Tuco AI","title":"Create Line Request - Tuco AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-22T13:41:53.748Z","originalFileLocation":"api-reference/endpoint/create-line-request.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tuco AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tucoai/pPwoyrnQogjfeGN5/_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/tucoai/pPwoyrnQogjfeGN5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tucoai/pPwoyrnQogjfeGN5/_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/tucoai/pPwoyrnQogjfeGN5/_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/tucoai/pPwoyrnQogjfeGN5/_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/tucoai/pPwoyrnQogjfeGN5/_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/tucoai/pPwoyrnQogjfeGN5/_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/tucoai/pPwoyrnQogjfeGN5/_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/tucoai/pPwoyrnQogjfeGN5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Line Request - Tuco AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tuco AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tuco.ai/api-reference/endpoint/create-line-request\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tucoai.mintlify.app/_mintlify/api/og/v2?division=Lines+%26+Leads\u0026amp;title=Create+Line+Request\u0026amp;description=Create+a+new+phone+or+email+line+request+for+the+authenticated+workspace.+REST+endpoint+in+the+Tuco+AI+iMessage+API+%E2%80%94+bearer-token+auth%2C+JSON+request%2Fresponse.\u0026amp;theme=6ee776b2be11f4145c07cfc0\u0026amp;signature=ebbdc00d6d22a778153f6acc2d3866828a28e53eb8982c70e4872d7aa730f3cc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Line Request - Tuco AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tucoai.mintlify.app/_mintlify/api/og/v2?division=Lines+%26+Leads\u0026amp;title=Create+Line+Request\u0026amp;description=Create+a+new+phone+or+email+line+request+for+the+authenticated+workspace.+REST+endpoint+in+the+Tuco+AI+iMessage+API+%E2%80%94+bearer-token+auth%2C+JSON+request%2Fresponse.\u0026amp;theme=6ee776b2be11f4145c07cfc0\u0026amp;signature=ebbdc00d6d22a778153f6acc2d3866828a28e53eb8982c70e4872d7aa730f3cc\">\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/tucoai/pPwoyrnQogjfeGN5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tuco AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF3515\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tuco.ai/api-reference/endpoint/create-line-request\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/create-line-request.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tuco.ai/#organization\",\"name\":\"Tuco AI\",\"url\":\"https://docs.tuco.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tucoai/oqQbf84LeXHYKs-3/logo/light.svg?fit=max\u0026auto=format\u0026n=oqQbf84LeXHYKs-3\u0026q=85\u0026s=c601a209f9f05fe52c2cd2e67d63adeb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tuco.ai#website\",\"name\":\"Tuco AI\",\"url\":\"https://docs.tuco.ai\",\"publisher\":{\"@id\":\"https://docs.tuco.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tuco.ai/api-reference/endpoint/create-line-request#webpage\",\"url\":\"https://docs.tuco.ai/api-reference/endpoint/create-line-request\",\"name\":\"Create Line Request\",\"description\":\"Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.\",\"dateModified\":\"2026-10-22T13:41:53.748Z\",\"isPartOf\":{\"@id\":\"https://docs.tuco.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tuco.ai/api-reference/endpoint/create-line-request#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tuco.ai/api-reference/endpoint/create-line-request#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lines \u0026 Leads\",\"item\":\"https://docs.tuco.ai/api-reference/lines\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Line Request\",\"item\":\"https://docs.tuco.ai/api-reference/endpoint/create-line-request\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tuco.ai/api-reference/endpoint/create-line-request#apireference\",\"headline\":\"Create Line Request\",\"name\":\"Create Line Request\",\"description\":\"Create a new phone or email line request for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.\",\"url\":\"https://docs.tuco.ai/api-reference/endpoint/create-line-request\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tuco.ai/api-reference/endpoint/create-line-request#webpage\"},\"dateModified\":\"2026-10-22T13:41:53.748Z\",\"publisher\":{\"@id\":\"https://docs.tuco.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tuco.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tuco AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Tuco AI","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"browser","href":"https://app.tuco.ai"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Overview","icon":"code","href":"/api-reference/introduction"},{"title":"Tuco API Keys","icon":"key","href":"/api-reference/api-keys"},{"title":"Agency API Keys","icon":"building","href":"/api-reference/agency-api-keys"}]},{"group":"Webhooks","pages":[{"title":"Webhooks Overview","icon":"webhook","href":"/api-reference/endpoint/webhook"},{"title":"Message Webhooks","icon":"webhook","href":"/api-reference/message-webhooks"},{"title":"List Webhooks","api":"GET /api/webhooks","href":"/api-reference/endpoint/list-webhooks"},{"title":"Create Webhook","api":"POST /api/webhooks","href":"/api-reference/endpoint/create-webhook"},{"title":"Get Webhook","api":"GET /api/webhooks/{id}","href":"/api-reference/endpoint/get-webhook"},{"title":"Update Webhook","api":"PATCH /api/webhooks/{id}","href":"/api-reference/endpoint/update-webhook"},{"title":"Delete Webhook","api":"DELETE /api/webhooks/{id}","href":"/api-reference/endpoint/delete-webhook"},{"title":"Rotate Webhook Secret","api":"POST /api/webhooks/{id}/rotate-secret","href":"/api-reference/endpoint/rotate-webhook-secret"},{"title":"Send Test Webhook","api":"POST /api/webhooks/{id}/test","href":"/api-reference/endpoint/send-test-webhook"},{"title":"Webhook Health Check","api":"POST /api/webhooks/{id}/health-check","href":"/api-reference/endpoint/test-webhook"},{"title":"List Webhook Deliveries","api":"GET /api/webhooks/{id}/deliveries","href":"/api-reference/endpoint/list-webhook-deliveries"},{"title":"Get Webhook Delivery","api":"GET /api/webhooks/{id}/deliveries/{deliveryId}","href":"/api-reference/endpoint/get-webhook-delivery"},{"title":"Replay Webhook Delivery","api":"POST /api/webhooks/{id}/deliveries/{deliveryId}/replay","href":"/api-reference/endpoint/replay-webhook-delivery"}]},{"group":"Errors and status codes","pages":[{"title":"Errors \u0026 Status Codes","icon":"circle-exclamation","href":"/api-reference/errors"}]},{"group":"iMessage Availability","pages":[{"title":"Check iMessage Availability (Single Address)","api":"GET /api/check-availability","href":"/api-reference/endpoint/check-availability"},{"title":"Check iMessage Availability (Round-Robin)","api":"POST /api/check-availability-rr","href":"/api-reference/endpoint/check-availability-rr"},{"title":"Check iMessage Availability (Single Lead)","api":"GET /api/leads/check-availability","href":"/api-reference/endpoint/lead-check-availability"},{"title":"Bulk Availability Check Endpoint","api":"POST /api/leads/check-availability","href":"/api-reference/endpoint/bulk-check-availability"}]},{"group":"Messages","pages":[{"title":"Messages","icon":"paper-plane","href":"/api-reference/messages"},{"title":"Drip (bulk shock-absorber)","icon":"faucet-drip","href":"/api-reference/drip"},{"title":"Send Message","api":"POST /api/messages","href":"/api-reference/endpoint/send-message"},{"title":"Get Message History","api":"GET /api/messages","href":"/api-reference/endpoint/get-messages"},{"title":"Send Drip","api":"POST /api/drip","href":"/api-reference/endpoint/send-drip"},{"title":"Send Reaction","api":"POST /api/messages/react","href":"/api-reference/endpoint/send-reaction"},{"title":"Send Typing Indicator","api":"POST /api/messages/typing","href":"/api-reference/endpoint/send-typing-indicator"},{"title":"Send with Attachments","api":"POST /api/messages","href":"/api-reference/endpoint/send-with-attachments"},{"title":"Upload Attachment","openapi":"POST /api/attachments/upload","href":"/api-reference/upload-attachment"},{"title":"Cancel Pending Messages","api":"POST /api/messages/cancel-for-lead","href":"/api-reference/endpoint/cancel-for-lead"},{"title":"Read Fallback SMS Config","api":"GET /api/workspace/fallback-config","href":"/api-reference/endpoint/fallback-config"},{"title":"Update Fallback SMS Config","api":"PATCH /api/workspace/fallback-config","href":"/api-reference/endpoint/update-fallback-config"},{"title":"Atomic Duplicate Guard — POST /api/messages","href":"/imessage-double-send-guard"},{"title":"Message Status","api":"GET /api/messages/{messageId}/journey","href":"/api-reference/endpoint/message-journey"}]},{"group":"Voice / Calling","pages":[{"title":"Place a Call Endpoint","api":"POST /api/voice/calls","tag":"BETA","href":"/api-reference/endpoint/place-call"},{"title":"Get Call Recordings Endpoint","api":"GET /api/voice/recordings","tag":"BETA","href":"/api-reference/endpoint/get-recordings"},{"title":"List Recordings \u0026 Uploads Endpoint","api":"GET /api/attachments/list","tag":"BETA","href":"/api-reference/endpoint/list-recordings"}]},{"group":"Replies","pages":[{"title":"List Conversations","api":"GET /api/unibox/conversations","href":"/api-reference/endpoint/conversations"},{"title":"Check Replies","api":"GET /api/replies","href":"/api-reference/endpoint/get-replies"}]},{"group":"Do Not Contact","pages":[{"title":"List / Check Do-Not-Contact","openapi":"GET /api/dnc","href":"/api-reference/endpoint/list-dnc"},{"title":"Add to Do-Not-Contact","openapi":"POST /api/dnc","href":"/api-reference/endpoint/add-dnc"},{"title":"Bulk Add to Do-Not-Contact","openapi":"PATCH /api/dnc","href":"/api-reference/endpoint/bulk-add-dnc"}]},{"group":"Lines \u0026 Leads","pages":[{"title":"Lines API","icon":"phone","href":"/api-reference/lines"},{"title":"Get All Lines","api":"GET /api/lines/by-user","href":"/api-reference/endpoint/get-lines"},{"title":"Update a Line","api":"PATCH /api/lines/{id}","href":"/api-reference/endpoint/update-line"},{"title":"Line Plan Limits","api":"GET /api/lines/limits","href":"/api-reference/endpoint/line-limits"},{"title":"Calling Add-ons","api":"GET /api/lines/{id}/calling-addons","href":"/api-reference/endpoint/calling-addons"},{"title":"Leads API","icon":"users","href":"/api-reference/leads"},{"title":"Create / Upload Lead Endpoint","api":"POST /api/leads","href":"/api-reference/endpoint/create"},{"title":"Get \u0026 Search Leads","api":"GET /api/leads","href":"/api-reference/endpoint/get"},{"title":"Delete Lead Endpoint","api":"DELETE /api/leads","href":"/api-reference/endpoint/delete"},{"title":"List Lead Lists","api":"GET /api/lists","href":"/api-reference/endpoint/list-lists"},{"title":"Create Lead List","api":"POST /api/lists","href":"/api-reference/endpoint/create-list"},{"title":"Delete Lead List","api":"DELETE /api/lists","href":"/api-reference/endpoint/delete-list"},{"title":"List Custom Field Keys","api":"GET /api/leads/custom-field-keys","description":"Discover the customFields keys actually in use on your Tuco leads, so you can write the right ones in PATCH /api/leads/{id} and in message variables.","href":"/api-reference/endpoint/custom-field-keys"},{"title":"Create Line Request","api":"POST /api/line-requests","href":"/api-reference/endpoint/create-line-request"},{"title":"Get Line Request","api":"GET /api/line-requests/{id}","description":"Fetch the current status of a line request. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response, full schema and code examples.","href":"/api-reference/endpoint/get-line-request"},{"title":"Manage Line Request","api":"POST /api/line-requests/{id}","href":"/api-reference/endpoint/manage-line-request"},{"title":"Cancel a Line","api":"POST /api/lines/cancel","href":"/api-reference/endpoint/cancel-line"},{"title":"Get Lead","api":"GET /api/leads/{id}","href":"/api-reference/endpoint/get-lead"},{"title":"Update Lead","api":"PATCH /api/leads/{id}","href":"/api-reference/endpoint/update-lead"}]},{"group":"Analytics","pages":[{"title":"Analytics","icon":"chart-line","href":"/api-reference/analytics"},{"title":"Analytics Insights","api":"GET /api/analytics/insights","href":"/api-reference/endpoint/analytics-insights"},{"title":"Analytics Day Conversations","api":"GET /api/analytics/conversations","href":"/api-reference/endpoint/analytics-conversations"}]},{"group":"Goal Bots","pages":[{"title":"List Goal Bots","api":"GET /api/goal-bots","href":"/api-reference/endpoint/list-goal-bots"},{"title":"Create Goal Bot","api":"POST /api/goal-bots","href":"/api-reference/endpoint/create-goal-bot"},{"title":"Get Goal Bot","api":"GET /api/goal-bots/{id}","href":"/api-reference/endpoint/get-goal-bot"},{"title":"Update Goal Bot","api":"PATCH /api/goal-bots/{id}","href":"/api-reference/endpoint/update-goal-bot"},{"title":"Delete Goal Bot","api":"DELETE /api/goal-bots/{id}","href":"/api-reference/endpoint/archive-goal-bot"},{"title":"Simulate Goal Bot","api":"POST /api/goal-bots/{id}/simulate","href":"/api-reference/endpoint/simulate-goal-bot"},{"title":"Reply Hours","api":"GET|PUT|DELETE /api/goal-bots/{id}/reply-hours","href":"/api-reference/endpoint/reply-hours"},{"title":"List Instruction Bots (retired)","api":"GET /api/instructions","href":"/api-reference/endpoint/list-instruction-bots"},{"title":"List Task Agents","api":"GET /api/tasks","href":"/api-reference/endpoint/list-task-agents"},{"title":"Create Task Agent","api":"POST /api/tasks","href":"/api-reference/endpoint/create-task-agent"},{"title":"Update Task Agent","api":"PATCH /api/tasks/{id}","href":"/api-reference/endpoint/update-task-agent"},{"title":"Delete Task Agent","api":"DELETE /api/tasks/{id}","href":"/api-reference/endpoint/delete-task-agent"},{"title":"Enroll Lead (instruction bots)","api":"POST /api/instructions/{id}/enroll","href":"/api-reference/endpoint/enroll-lead"},{"title":"Unenroll Lead","api":"DELETE /api/goal-bots/{id}/enroll","href":"/api-reference/endpoint/unenroll-lead"}]},{"group":"API Tools","pages":[{"title":"List API Tools","api":"GET /api/campaign-tools","href":"/api-reference/endpoint/list-tools"},{"title":"Create or Update API Tool","api":"POST /api/campaign-tools","href":"/api-reference/endpoint/save-tool"},{"title":"Delete API Tool","api":"DELETE /api/campaign-tools","href":"/api-reference/endpoint/delete-tool"},{"title":"Test API Tool","api":"POST /api/campaign-tools/test","href":"/api-reference/endpoint/test-tool"}]},{"group":"Agency","pages":[{"title":"Agency API Keys","icon":"building","href":"/api-reference/agency-api-keys"},{"title":"List Agency Workspaces","api":"GET /api/agency/subaccounts","href":"/api-reference/endpoint/agency-list-workspaces"},{"title":"Create Agency Workspace","api":"POST /api/agency/subaccounts","href":"/api-reference/endpoint/agency-create-workspace"},{"title":"Re-mint a Client Workspace Key","api":"POST /api/agency/workspace-keys","href":"/api-reference/endpoint/agency-workspace-keys"},{"title":"List Agency Lines","api":"GET /api/agency/lines","href":"/api-reference/endpoint/agency-list-lines"},{"title":"Move a Line Between Workspaces","api":"POST /api/agency/lines","href":"/api-reference/endpoint/agency-move-line"},{"title":"Agency Overview Stats","api":"GET /api/agency/overview","href":"/api-reference/endpoint/agency-overview"},{"title":"Agency Email Preferences","api":"POST /api/agency/email-preferences","href":"/api-reference/endpoint/agency-email-preferences"},{"title":"Agency Webhooks","api":"POST /api/agency/webhooks","href":"/api-reference/endpoint/agency-webhooks"},{"title":"Subscribe a Client to a Plan","api":"POST /api/agency/billing/subscribe","href":"/api-reference/endpoint/agency-subscribe"},{"title":"Monthly Statement","api":"GET /api/agency/statement","href":"/api-reference/endpoint/agency-statement"}]},{"group":"Workspace settings","pages":[{"title":"Workspace Email Preferences","api":"POST /api/email-preferences","href":"/api-reference/endpoint/email-preferences"},{"title":"Invite a Teammate","api":"POST /api/team/invite","href":"/api-reference/endpoint/team-invite"},{"title":"Force a Line Health Check","api":"GET /api/lines/check-availability","href":"/api-reference/endpoint/line-health-check"}]}]}]},"basePath":"","title":"Create Line Request - Tuco AI","buildId":"dpl_77Hw7ZuAABM8E3WMbYAf2ohQCr3v","deploymentId":"dpl_77Hw7ZuAABM8E3WMbYAf2ohQCr3v","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CVpqyvFO.js","utils-vpweLD0v.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BIOodqb0.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B1LM3qmu.js","snippetPresets-C5xK0GtN.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CCsxLnQl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C2-WKG22.js","shallow-SdoLUC-q.js","getApiPlaygroundDisplay-BnI8L2hB.js","CodeSnippet-D5M8NCHI.js","CodeSnippets-CXRO8Uom.js","Page-CN9QbZiA.js","getPastedJson-CrfHEdRt.js","icon-Cr8AyUnW.js","MethodPill-J_Cs0kNw.js","DuplicateIcon-DrMboxGw.js","createIcon-B4CIWVbU.js","DynamicMarkdown-D9cdbgj9.js","SectionHeading-BO4CouT0.js","axios-vUo_bRtp.js"]}