Map one or more numbers to this trunk - the Leg-A (BYO carrier) path. The bridge is
auto-resolved and hidden. The response returns the trunk-level origin endpoint: the
shared SBC ingress your carrier sends inbound calls to, the mapped numbers, and the accepted
source IPs.
Prerequisites: API Token + Org-Handle. See Authentication.
Headers
Name
Type
Required
Description
Authorization
string
Yes
Token <your-api-key>
Org-Handle
string
Yes
Organization domain handle
Content-Type
string
Yes
application/json
Path parameters
Name
Type
Required
Description
id
integer
Yes
Trunk id
Request body
Field
Type
Required
Description
number_ids
integer[]
Yes
Numbers to map, up to 100 (duplicates ignored)
bridge_slug
string
No
Explicit bridge; auto-resolved when omitted
region
string
No
Region hint (e.g. IN)
Origin endpoint
Field
Type
Description
ingress
string
SBC ingress host your carrier sends calls to (no sip: prefix)
dids
string[]
The numbers successfully mapped
accepted_source_ips
string[]
The trunk’s source-IP allow-list
region
string
Resolved bridge region
Partial success
201 if at least one number maps, else 400 (also when every eligible number fails). Each data.numbers entry reports
ok/error independently. Ineligible ids (unknown, inactive, already assigned, or
another organization’s) are skipped with no entry; if none is eligible, the 400
(No valid unassigned numbers found.) has an empty data.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Unpod AI","colors":{"primary":"#796cff","light":"#9a90ff","dark":"#5a4fff"},"logo":{"light":"https://mintcdn.com/unpodai/skZrL-w9VsejlWmJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=skZrL-w9VsejlWmJ\u0026q=85\u0026s=d4977735e0d6b64f987e610fe5b46ca2","dark":"https://mintcdn.com/unpodai/sCwY9ZjK0yFb_-6i/logo/white.svg?fit=max\u0026auto=format\u0026n=sCwY9ZjK0yFb_-6i\u0026q=85\u0026s=65367487286f1c22da9d756cb479d693","href":"https://unpod.ai"},"favicon":"https://mintcdn.com/unpodai/0WH_wUStTMwJ3hug/favicon.png?fit=max\u0026auto=format\u0026n=0WH_wUStTMwJ3hug\u0026q=85\u0026s=b39e4bd826f3b8cf4f5c0e71d17bbc04","footer":{"socials":{"github":"https://github.com/unpod-ai/unpod","twitter":"https://x.com/unpod_ai","youtube":"https://www.youtube.com/@unpod-ai","discord":"https://discord.gg/7kQ4ewNSHZ"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","aistudio","perplexity","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"git-branch","href":"https://github.com/unpod-ai/unpod"},{"anchor":"Playground","icon":"play","href":"https://app.unpod.ai/playground?tab=preview"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"unpodai","hasAudioNarration":false,"actualSubdomain":"unpodai","customDomains":["docs.unpod.ai"],"gitSource":{"type":"github","owner":"parvbhullar","repo":"unpod-dev-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":false},"entitlements":{},"buildId":"6b098defcfd00c340366edbd","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Developers","count":116},{"language":"default","tag":"Conversational Platform","count":73},{"language":"default","tag":"API Reference","count":52},{"language":"default","tag":"API Lists","count":38},{"language":"default","tag":"Agent Studio","count":31},{"language":"default","tag":"Agent SDK","count":29},{"language":"default","tag":"Platform","count":29},{"language":"default","tag":"Numbers \u0026 SIP","count":28},{"language":"default","tag":"Telephony SDK","count":19},{"language":"default","tag":"SuperDialog framework","count":16}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","href":"/_mintlify/custom/unpodai/1c421e19f4d18b6f/custom.css"}]}
{"page":{"pagePath":"telephony/trunks/attach-numbers","slug":"/telephony/trunks/attach-numbers","pageMetadata":{"title":"Attach Numbers to Trunk","icon":"link","description":"Map one or more numbers to a SIP trunk and get the origin endpoint","openapi":"POST /api/v2/platform/telephony/trunks/{id}/attach-numbers/","href":"/telephony/trunks/attach-numbers"},"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: \"Map one or more numbers to a SIP trunk and get the origin endpoint\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Map one or more numbers to this trunk - the `,_jsx(_components.strong,{children:`Leg-A`}),` (BYO carrier) path. The bridge is\nauto-resolved and hidden. The response returns the trunk-level `,_jsx(_components.strong,{children:`origin endpoint`}),`: the\nshared SBC ingress your carrier sends inbound calls to, the mapped numbers, and the accepted\nsource IPs.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Prerequisites:`}),` API Token + Org-Handle. See `,_jsx(_components.a,{href:`/api/get-started/authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`headers`,children:`Headers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Authorization`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Token \u003cyour-api-key>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Org-Handle`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Organization domain handle`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Content-Type`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/json`})})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`id`}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Trunk id`})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`number_ids`}),_jsx(_components.td,{children:`integer[]`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Numbers to map, up to 100 (duplicates ignored)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`bridge_slug`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Explicit bridge; auto-resolved when omitted`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`region`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Region hint (e.g. `,_jsx(_components.code,{children:`IN`}),`)`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`origin-endpoint`,children:`Origin endpoint`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`ingress`}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`SBC ingress host your carrier sends calls to (no `,_jsx(_components.code,{children:`sip:`}),` prefix)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`dids`}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{children:`The numbers successfully mapped`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`accepted_source_ips`}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{children:`The trunk’s source-IP allow-list`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`region`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Resolved bridge region`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`partial-success`,children:`Partial success`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`201`}),` if at least one number maps, else `,_jsx(_components.code,{children:`400`}),` (also when every eligible number fails). Each `,_jsx(_components.code,{children:`data.numbers`}),` entry reports\n`,_jsx(_components.code,{children:`ok`}),`/`,_jsx(_components.code,{children:`error`}),` independently. Ineligible ids (unknown, inactive, already assigned, or\nanother organization’s) are skipped with no entry; if none is eligible, the `,_jsx(_components.code,{children:`400`}),`\n(`,_jsx(_components.code,{children:`No valid unassigned numbers found.`}),`) has an empty `,_jsx(_components.code,{children:`data`}),`.`]}),`\n`,`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,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:`5`,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:` -s`}),_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://unpod.dev/api/v2/platform/telephony/trunks/21/attach-numbers/\"`}),_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: Token \u003cyour-api-key>\"`}),_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:` \"Org-Handle: \u003cyour-org-handle>\"`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"number_ids\": [501]}'`})]}),`\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":"Attach Numbers to Trunk","icon":"link","description":"Map one or more numbers to a SIP trunk and get the origin endpoint","openapi":"POST /api/v2/platform/telephony/trunks/{id}/attach-numbers/","href":"/telephony/trunks/attach-numbers"}}},"mdxSourceWithNoJs":{"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ResponseExample,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Map one or more numbers to this trunk - the `,_jsx(_components.strong,{children:`Leg-A`}),` (BYO carrier) path. The bridge is\nauto-resolved and hidden. The response returns the trunk-level `,_jsx(_components.strong,{children:`origin endpoint`}),`: the\nshared SBC ingress your carrier sends inbound calls to, the mapped numbers, and the accepted\nsource IPs.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Prerequisites:`}),` API Token + Org-Handle. See `,_jsx(_components.a,{href:`/api/get-started/authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`headers`,children:`Headers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Authorization`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Token \u003cyour-api-key>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Org-Handle`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Organization domain handle`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Content-Type`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/json`})})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`id`}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Trunk id`})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`number_ids`}),_jsx(_components.td,{children:`integer[]`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Numbers to map, up to 100 (duplicates ignored)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`bridge_slug`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Explicit bridge; auto-resolved when omitted`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`region`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Region hint (e.g. `,_jsx(_components.code,{children:`IN`}),`)`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`origin-endpoint`,children:`Origin endpoint`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`ingress`}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`SBC ingress host your carrier sends calls to (no `,_jsx(_components.code,{children:`sip:`}),` prefix)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`dids`}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{children:`The numbers successfully mapped`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`accepted_source_ips`}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{children:`The trunk’s source-IP allow-list`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`region`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Resolved bridge region`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`partial-success`,children:`Partial success`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`201`}),` if at least one number maps, else `,_jsx(_components.code,{children:`400`}),` (also when every eligible number fails). Each `,_jsx(_components.code,{children:`data.numbers`}),` entry reports\n`,_jsx(_components.code,{children:`ok`}),`/`,_jsx(_components.code,{children:`error`}),` independently. Ineligible ids (unknown, inactive, already assigned, or\nanother organization’s) are skipped with no entry; if none is eligible, the `,_jsx(_components.code,{children:`400`}),`\n(`,_jsx(_components.code,{children:`No valid unassigned numbers found.`}),`) has an empty `,_jsx(_components.code,{children:`data`}),`.`]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`201`,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:` \"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`201`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Numbers mapped to trunk.\"`}),_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:` \"data\"`}),_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:` \"trunk_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`21`}),_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:` \"origin_endpoint\"`}),_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:` \"ingress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sip-lb1.unpod.tel\"`}),_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:` \"dids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+15551234567\"`}),_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:` \"accepted_source_ips\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.2.3.4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5.6.7.0/24\"`}),_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:` \"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"us-east\"`})]}),`\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:` \"numbers\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"number_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`501`}),_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:` \"number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+15551234567\"`}),_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:` \"connection_state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NOT_LINKED\"`}),_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:` \"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\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`,_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`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`5`,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:`5`,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:` \"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No valid unassigned numbers found.\"`}),_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:` \"data\"`}),_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(CodeBlock,{filename:`cURL`,numberOfLines:`5`,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:`5`,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:` -s`}),_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://unpod.dev/api/v2/platform/telephony/trunks/21/attach-numbers/\"`}),_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: Token \u003cyour-api-key>\"`}),_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:` \"Org-Handle: \u003cyour-org-handle>\"`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"number_ids\": [501]}'`})]}),`\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":"Attach Numbers to Trunk","icon":"link","description":"Map one or more numbers to a SIP trunk and get the origin endpoint","openapi":"POST /api/v2/platform/telephony/trunks/{id}/attach-numbers/","href":"/telephony/trunks/attach-numbers"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Headers","slug":"headers","depth":3,"children":[]},{"title":"Path parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Request body","slug":"request-body","depth":3,"children":[]},{"title":"Origin endpoint","slug":"origin-endpoint","depth":3,"children":[]},{"title":"Partial success","slug":"partial-success","depth":3,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"201","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">201\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Numbers mapped to trunk.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"trunk_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">21\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"origin_endpoint\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ingress\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"sip-lb1.unpod.tel\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"dids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+15551234567\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"accepted_source_ips\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1.2.3.4\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"5.6.7.0/24\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"region\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"us-east\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"numbers\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"number_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">501\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+15551234567\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"connection_state\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"NOT_LINKED\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">400\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"No valid unassigned numbers found.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"attachNumbersToTrunk","summary":"Attach Numbers to Trunk","tags":["Trunks"],"security":["477272b5-f88b-43c7-8be5-27814240911b"],"parameters":["e4da816d-467a-44af-981c-b78eb6c34368","5522fc9d-72ba-42e4-8be0-8fc53bf4cadc"],"requestBody":"64d6088c-a5e4-441b-9e84-3bafd542be79","responses":{"201":"0862553d-ca5d-4d1c-b5fc-59abd6808a72","400":"68856f67-f7be-4846-ace4-12606987bf4f","401":"7f78b61e-1f46-4e2b-8f23-5fafcf711098","404":"0139bf14-d665-405d-ace3-2bcfc8853965"},"method":"post","type":"path","servers":["926af053-405b-4384-9101-5f25470c6699","8a8e8b5f-9c4e-44d3-bc22-958ad1c93d90"],"path":"/api/v2/platform/telephony/trunks/{id}/attach-numbers/","baseUrlOptions":["https://unpod.dev/","https://unpod.ai/"],"title":"Attach Numbers to Trunk","description":"Map one or more numbers to a SIP trunk and get the origin endpoint","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"21","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"status_code\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"201"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Numbers mapped to trunk.\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"trunk_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"21"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"origin_endpoint\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"ingress\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"sip-lb1.unpod.tel\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"dids\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"+15551234567\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"accepted_source_ips\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"1.2.3.4\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"5.6.7.0/24\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"region\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"us-east\""}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"numbers\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": ["}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"number_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"501"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"number\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"+15551234567\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"connection_state\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"NOT_LINKED\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"ok\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"true"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ]"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"201"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"5","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"status_code\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"400"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"No valid unassigned numbers found.\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {}"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"400"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"e4da816d-467a-44af-981c-b78eb6c34368":{"name":"id","in":"path","required":true,"schema":{"type":"integer","example":21,"isRequired":true,"uniqueKey":"","typeLabel":"integer"}},"5522fc9d-72ba-42e4-8be0-8fc53bf4cadc":{"name":"Org-Handle","in":"header","required":true,"schema":{"type":"string","example":"unpod.tv","isRequired":true,"description":"Organization domain handle","uniqueKey":"","typeLabel":"string"},"description":"Organization domain handle"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["number_ids"],"properties":{"number_ids":{"type":"array","items":{"type":"integer","uniqueKey":"number_ids.items.[INDEX]","typeLabel":"integer"},"example":[501],"isRequired":true,"uniqueKey":"number_ids","typeLabel":"integer[]"},"bridge_slug":{"type":"string","description":"Optional explicit bridge; auto-resolved when omitted.","uniqueKey":"bridge_slug","typeLabel":"string"},"region":{"type":"string","example":"IN","uniqueKey":"region","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"number_ids":[501]},"examples":{"Example":{"title":"Example","value":{"number_ids":[501]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"0862553d-ca5d-4d1c-b5fc-59abd6808a72":{"description":"Numbers mapped to trunk; origin endpoint returned","content":{"application/json":{"example":{"status_code":201,"message":"Numbers mapped to trunk.","data":{"trunk_id":21,"origin_endpoint":{"ingress":"sip-lb1.unpod.tel","dids":["+15551234567"],"accepted_source_ips":["1.2.3.4","5.6.7.0/24"],"region":"us-east"},"numbers":[{"number_id":501,"number":"+15551234567","connection_state":"NOT_LINKED","ok":true}]}},"examples":{"Example":{"title":"Example","value":{"status_code":201,"message":"Numbers mapped to trunk.","data":{"trunk_id":21,"origin_endpoint":{"ingress":"sip-lb1.unpod.tel","dids":["+15551234567"],"accepted_source_ips":["1.2.3.4","5.6.7.0/24"],"region":"us-east"},"numbers":[{"number_id":501,"number":"+15551234567","connection_state":"NOT_LINKED","ok":true}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"68856f67-f7be-4846-ace4-12606987bf4f":{"description":"No eligible numbers, or none of the eligible numbers could be mapped","content":{"application/json":{"examples":{"no_eligible_numbers":{"title":"no_eligible_numbers","summary":"No id is an active NOT_ASSIGNED number (seen live)","value":{"status_code":400,"message":"No valid unassigned numbers found.","data":{}}},"mapping_failed":{"title":"mapping_failed","summary":"Eligible numbers, but mapping failed","value":{"status_code":400,"message":"No numbers could be mapped.","data":{"trunk_id":21,"origin_endpoint":{"ingress":"sip-lb1.unpod.tel","dids":[],"accepted_source_ips":["1.2.3.4","5.6.7.0/24"],"region":null},"numbers":[{"number_id":501,"ok":false,"error":"Failed to map number."}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"7f78b61e-1f46-4e2b-8f23-5fafcf711098":{"description":"Unauthorized - Invalid or missing API token","content":{"application/json":{"example":{"status_code":401,"message":"Authentication credentials were not provided."},"examples":{"Example":{"title":"Example","value":{"status_code":401,"message":"Authentication credentials were not provided."}}},"exampleType":"examples"}},"exampleType":"examples"},"0139bf14-d665-405d-ace3-2bcfc8853965":{"description":"Trunk not found","content":{"application/json":{"example":{"status_code":404,"message":"Trunk not found."},"examples":{"Example":{"title":"Example","value":{"status_code":404,"message":"Trunk not found."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"477272b5-f88b-43c7-8be5-27814240911b":{"TokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Format: Token \u003cyour-api-key>","scopes":[],"schemeName":"TokenAuth"}}},"servers":{"926af053-405b-4384-9101-5f25470c6699":{"url":"https://unpod.dev/","description":"Developers (unpod.dev)"},"8a8e8b5f-9c4e-44d3-bc22-958ad1c93d90":{"url":"https://unpod.ai/","description":"Platform (unpod.ai)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"Format: Token \u003cyour-api-key>","scopes":[],"schemeName":"TokenAuth"},"schema":{"title":"Authorization","type":"string","description":"Format: Token \u003cyour-api-key>","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"TokenAuth","name":"Authorization"}],"title":"TokenAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"unpodai","siteName":"Unpod AI","title":"Attach Numbers to Trunk - Unpod AI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T10:52:22.739Z","originalFileLocation":"telephony/trunks/attach-numbers.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=\"Map one or more numbers to a SIP trunk and get the origin endpoint\">\u003cmeta data-mint-head name=\"application-name\" content=\"Unpod 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/unpodai/yKpm9gABN20wxgiY/_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/unpodai/yKpm9gABN20wxgiY/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/unpodai/yKpm9gABN20wxgiY/_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/unpodai/yKpm9gABN20wxgiY/_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/unpodai/yKpm9gABN20wxgiY/_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/unpodai/yKpm9gABN20wxgiY/_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/unpodai/yKpm9gABN20wxgiY/_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/unpodai/yKpm9gABN20wxgiY/_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/unpodai/yKpm9gABN20wxgiY/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Attach Numbers to Trunk - Unpod AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Map one or more numbers to a SIP trunk and get the origin endpoint\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Unpod AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.unpod.ai/telephony/trunks/attach-numbers\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://unpodai.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Attach+Numbers+to+Trunk\u0026amp;description=Map+one+or+more+numbers+to+a+SIP+trunk+and+get+the+origin+endpoint\u0026amp;theme=928a516a96bf6482faeb1e05\u0026amp;signature=c845bfbdeae2c3259477f3d981abe53d53a32ce529078bec46d89253dec6c6f1\">\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=\"Attach Numbers to Trunk - Unpod AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Map one or more numbers to a SIP trunk and get the origin endpoint\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://unpodai.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Attach+Numbers+to+Trunk\u0026amp;description=Map+one+or+more+numbers+to+a+SIP+trunk+and+get+the+origin+endpoint\u0026amp;theme=928a516a96bf6482faeb1e05\u0026amp;signature=c845bfbdeae2c3259477f3d981abe53d53a32ce529078bec46d89253dec6c6f1\">\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/unpodai/yKpm9gABN20wxgiY/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Unpod AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#796cff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.unpod.ai/telephony/trunks/attach-numbers\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/telephony/trunks/attach-numbers.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.unpod.ai/#organization\",\"name\":\"Unpod AI\",\"url\":\"https://docs.unpod.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/unpodai/skZrL-w9VsejlWmJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=skZrL-w9VsejlWmJ\u0026q=85\u0026s=d4977735e0d6b64f987e610fe5b46ca2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.unpod.ai#website\",\"name\":\"Unpod AI\",\"url\":\"https://docs.unpod.ai\",\"publisher\":{\"@id\":\"https://docs.unpod.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.unpod.ai/telephony/trunks/attach-numbers#webpage\",\"url\":\"https://docs.unpod.ai/telephony/trunks/attach-numbers\",\"name\":\"Attach Numbers to Trunk\",\"description\":\"Map one or more numbers to a SIP trunk and get the origin endpoint\",\"dateModified\":\"2026-11-23T10:52:22.739Z\",\"isPartOf\":{\"@id\":\"https://docs.unpod.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.unpod.ai/telephony/trunks/attach-numbers#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.unpod.ai/telephony/trunks/attach-numbers#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.unpod.ai/telephony/numbers/list-numbers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Attach Numbers to Trunk\",\"item\":\"https://docs.unpod.ai/telephony/trunks/attach-numbers\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.unpod.ai/telephony/trunks/attach-numbers#apireference\",\"headline\":\"Attach Numbers to Trunk\",\"name\":\"Attach Numbers to Trunk\",\"description\":\"Map one or more numbers to a SIP trunk and get the origin endpoint\",\"url\":\"https://docs.unpod.ai/telephony/trunks/attach-numbers\",\"mainEntityOfPage\":{\"@id\":\"https://docs.unpod.ai/telephony/trunks/attach-numbers#webpage\"},\"dateModified\":\"2026-11-23T10:52:22.739Z\",\"publisher\":{\"@id\":\"https://docs.unpod.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.unpod.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Unpod AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Unpod AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/telephony/trunks/attach-numbers.md","siteName":"Unpod AI","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"git-branch","href":"https://github.com/unpod-ai/unpod"},{"anchor":"Playground","icon":"play","href":"https://app.unpod.ai/playground?tab=preview"}]},"products":[{"product":"Developers","icon":"code","description":"Numbers, calls, audio streaming, intelligence and agents","tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home/overview"}]},{"tab":"Numbers \u0026 SIP","groups":[{"group":"Getting Started","icon":"book-open","pages":[{"title":"SIP Trunking Quick Start","sidebarTitle":"Quick Start","icon":"rocket","href":"/telephony/quickstart"}]},{"group":"Numbers","icon":"hash","pages":[{"title":"Get a Number","icon":"hash","href":"/telephony/apis/numbers"},{"title":"Numbers","icon":"hash","href":"/platform/dev-platform/numbers"},{"title":"Attach a Number to an Agent","icon":"phone-forwarded","href":"/platform/dev-platform/attach-number-to-agent"},{"title":"Phone Numbers","icon":"hash","href":"/speech-stack/numbers"}]},{"group":"Trunks","icon":"git-branch","pages":[{"title":"Manage Trunks","icon":"git-branch","href":"/telephony/sip-trunking/trunks"},{"title":"Connect an Unpod Number","sidebarTitle":"Unpod Number → Your SIP","icon":"layout-dashboard","href":"/telephony/integrations/unpod/dashboard"},{"title":"Telephony","icon":"phone-call","href":"/platform/dev-platform/telephony"},{"title":"Providers","icon":"server","href":"/platform/dev-platform/provider"}]},{"group":"Integrations","icon":"blocks","pages":[{"title":"Integrations \u0026 SDKs","sidebarTitle":"Overview","icon":"blocks","href":"/telephony/integrations/overview"},{"group":"LiveKit","pages":[{"title":"LiveKit (Dashboard)","sidebarTitle":"Dashboard","icon":"layout-dashboard","href":"/telephony/integrations/livekit/dashboard"},{"title":"LiveKit (API)","sidebarTitle":"API","icon":"terminal","href":"/telephony/integrations/livekit/api"}]},{"group":"ElevenLabs","pages":[{"title":"ElevenLabs (Dashboard)","sidebarTitle":"Dashboard","icon":"layout-dashboard","href":"/telephony/integrations/elevenlabs/dashboard"},{"title":"ElevenLabs (API)","sidebarTitle":"API","icon":"terminal","href":"/telephony/integrations/elevenlabs/api"}]},{"group":"Vapi","pages":[{"title":"Vapi (Dashboard)","sidebarTitle":"Dashboard","icon":"layout-dashboard","href":"/telephony/integrations/vapi/dashboard"},{"title":"Vapi (API)","sidebarTitle":"API","icon":"terminal","href":"/telephony/integrations/vapi/api"}]},{"group":"Daily","pages":[{"title":"Daily (Dashboard)","sidebarTitle":"Dashboard","icon":"layout-dashboard","href":"/telephony/integrations/daily/dashboard"},{"title":"Daily (API)","sidebarTitle":"API","icon":"terminal","href":"/telephony/integrations/daily/api"}]},{"group":"Ultravox","pages":[{"title":"Ultravox (Dashboard)","sidebarTitle":"Dashboard","icon":"layout-dashboard","href":"/telephony/integrations/ultravox/dashboard"},{"title":"Ultravox (API)","sidebarTitle":"API","icon":"terminal","href":"/telephony/integrations/ultravox/api"}]}]},{"group":"API Reference","icon":"code","pages":[{"title":"List Numbers","icon":"hash","openapi":"GET /api/v2/platform/telephony/numbers/","href":"/telephony/numbers/list-numbers"},{"title":"List Trunks","icon":"list","openapi":"GET /api/v2/platform/telephony/trunks/","href":"/telephony/trunks/list-trunks"},{"title":"Create Trunk","icon":"circle-plus","openapi":"POST /api/v2/platform/telephony/trunks/","href":"/telephony/trunks/create-trunk"},{"title":"Get Trunk","icon":"search","description":"Fetch a single SIP trunk by id","openapi":"GET /api/v2/platform/telephony/trunks/{id}/","href":"/telephony/trunks/get-trunk"},{"title":"Attach Numbers to Trunk","icon":"link","openapi":"POST /api/v2/platform/telephony/trunks/{id}/attach-numbers/","href":"/telephony/trunks/attach-numbers"},{"title":"Detach Numbers from Trunk","icon":"unlink","description":"Unmap one or more numbers from a SIP trunk","openapi":"POST /api/v2/platform/telephony/trunks/{id}/detach-numbers/","href":"/telephony/trunks/detach-numbers"},{"title":"Delete Trunk","icon":"trash-2","openapi":"DELETE /api/v2/platform/telephony/trunks/{id}/","href":"/telephony/trunks/delete-trunk"},{"title":"Telephony Overview","icon":"activity","openapi":"GET /api/v2/platform/telephony/overview/","href":"/telephony/calls/overview"}]}]},{"tab":"Telephony SDK","pages":[{"title":"Telephony SDK","href":"/telephony/introduction"}]},{"tab":"Intelligence","pages":[{"title":"Intelligence","href":"/intelligence/blocks"}]},{"tab":"Agent SDK","pages":[{"title":"Agent SDK","href":"/agent-sdk/overview"}]},{"tab":"Agent Studio","pages":[{"title":"Agent Studio","href":"/agent-studio/playground"}]}]},{"product":"Conversational Platform","icon":"layout-dashboard","description":"The Unpod app and its API","pages":[{"title":"Conversational Platform","href":"/platform/introduction"}]}]},"basePath":"","title":"Attach Numbers to Trunk - Unpod AI","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","SectionHeading-B08KBUKT.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}