Optional. Narrows down the returned numbers. Omit to get all available numbers.
Show Filter object properties
string
Only return numbers with this status.
string[]
Only return numbers that support all listed channels (e.g. ["sms", "imessage"]).
object
Only return numbers matching this location. Fields are matched independently, so provide any subset.
Show Location object properties
string
2-letter country code (e.g. "US").
string
Region/state (e.g. "FL").
string
City (e.g. "Miami").
Response
number
Count of numbers available for leasing (after applying any filter).
object[]
Array of available phone numbers with their details.
object
Request metadata including ID, timestamp, and API version.
Get Number Details
Get detailed information about a specific phone number, including capabilities and pricing. If you lease the number, lease_id, lease_status, and billing are included automatically.
const res = await contiguity.lease.get("+1234567890");
Parameters
string
required
Phone number in E.164 format. First argument.
Response
object
Phone number details and formatting information.
Show Properties
string
E.164 formatted phone number string.
string
Nationally formatted phone number string.
object
Capabilities supported by this number ({ intl_sms: boolean, channels: string[] }).
object
Pricing information for leasing this number.
object
Request metadata including ID, timestamp, and API version.
Lease a Number
Create a lease for a phone number to use it as a sender.
const res = await contiguity.lease.create("+1234567890", { billing_method: "monthly" });
You can also lease a number with default billing:
const res = await contiguity.lease.create("+1234567890");
Parameters
string
required
Phone number in E.164 format. First argument.
object
Optional. e.g. { billing_method: "monthly" }.
Response
string
Unique identifier for the created lease.
string
Current status of the lease (e.g., “active”, “pending”).
object
Billing information and configuration for the lease.
object
Request metadata including ID, timestamp, and API version.
View Leased Numbers
Get a list of all numbers you currently have leased.
const res = await contiguity.lease.leased();
You can also filter the results by status, capabilities, and location:
Forward inbound calls on a leased number to a number you own. Enabling or disabling may return status: "queued" before becoming "active". See the Call Forwarding API.
await contiguity.lease.forwarding.enable("+13059478667", { to: "+15551234567" });const current = await contiguity.lease.forwarding.get("+13059478667");await contiguity.lease.forwarding.disable("+13059478667");
lease.forwarding.enable(number, params)
string
required
Your leased phone number in E.164 format. First argument.
End a lease for a phone number when you no longer need it.
await contiguity.lease.terminate("+1234567890");
Parameters
string
required
Leased phone number in E.164. First argument.
Response
string
Unique identifier for the terminated lease.
string
Confirmation status of the termination (e.g., “terminated”).
timestamp
ISO 8601 formatted timestamp of when the lease was terminated.
object
Request metadata including ID, timestamp, and API version.
Using Leased Numbers
Once you have a leased number, you can use it as the from parameter in your messaging:
// Use leased number as sender for SMSconst res = await contiguity.text.send({ to: "+1234567890", message: "Hello from your dedicated number!", from: "+15555555555" // your leased number});// Use leased number as sender for iMessageconst res = await contiguity.imessage.send({ to: "+1234567890", message: "Hello via iMessage!", from: "+15555555555" // your leased number});
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Contiguity","colors":{"primary":"#333333","light":"#666666","dark":"#1a1a1a"},"logo":{"light":"https://mintcdn.com/contiguity/3fnTfhHBNi3djGqm/logo/black.svg?fit=max\u0026auto=format\u0026n=3fnTfhHBNi3djGqm\u0026q=85\u0026s=be34a7859dc2f9960e3e954c7e54ff4c","dark":"https://mintcdn.com/contiguity/3fnTfhHBNi3djGqm/logo/white.svg?fit=max\u0026auto=format\u0026n=3fnTfhHBNi3djGqm\u0026q=85\u0026s=7ebddc1d97529846a71549194fb70b25"},"favicon":"https://mintcdn.com/contiguity/3fnTfhHBNi3djGqm/favicon.svg?fit=max\u0026auto=format\u0026n=3fnTfhHBNi3djGqm\u0026q=85\u0026s=4255a4feb0712484b2202ba28b6d0c64","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required"}},"appearance":{"default":"light","strict":false},"navbar":{"links":[{"icon":{"style":"solid","name":"discord"},"href":"https://discord.gg/Z9K5XAsS7H","label":"Discord"},{"href":"https://contiguity.com","label":"Website"}],"primary":{"type":"button","label":"Console","href":"https://console.contiguity.com"}},"footer":{"socials":{"x":"https://x.com/usecontiguity","github":"https://github.com/contiguity"}},"seo":{"metatags":{"og:url":"https://docs.contiguity.com","og:image":"https://docs.contiguity.com/images/og-image-res.png","og:type":"website","twitter:title":"Contiguity | Developer Documentation","twitter:description":"Contiguity's official documentation for our API \u0026 SDKs","twitter:url":"https://docs.contiguity.com","twitter:image":"https://docs.contiguity.com/images/og-image-res.png","twitter:site":"docs.contiguity.com","twitter:card":"summary_large_image"},"indexing":"navigable"},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"contextual":{"options":["copy","view","chatgpt","cursor","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"contiguity","hasAudioNarration":false,"actualSubdomain":"contiguity","customDomains":["docs.contiguity.com"],"gitSource":{"type":"github","owner":"contiguity","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10a6199ffae5051c3fa5d7"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6b04026c173fddf89facc924","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":56},{"language":"default","tag":"Documentation","count":32},{"language":"default","tag":"SDK Documentation by Product","count":14},{"language":"default","tag":"iMessage","count":13},{"language":"default","tag":"SDK Documentation by Language","count":13},{"language":"default","tag":"JavaScript","count":12},{"language":"default","tag":"Getting Started","count":11},{"language":"default","tag":"Knowledge Base","count":10},{"language":"default","tag":"Lease","count":9},{"language":"default","tag":"Identity","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"sdk/js/leases","slug":"/sdk/js/leases","pageMetadata":{"title":"Number Leasing","sidebarTitle":"Leases","icon":"sim-card","iconType":"solid","description":"Lease phone numbers using the Contiguity JavaScript SDK.","href":"/sdk/js/leases"},"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: \"Lease phone numbers using the Contiguity JavaScript SDK.\"\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];const script_0=undefined;function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,OptimizedImage,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`managing-number-leases`,children:`Managing Number Leases`}),`\n`,_jsx(_components.p,{children:`Lease phone numbers to use as dedicated senders for your messages, improving deliverability and brand recognition.`}),`\n`,_jsx(Heading,{level:`2`,id:`check-available-numbers`,children:`Check Available Numbers`}),`\n`,_jsx(_components.p,{children:`View available phone numbers that can be leased for your account.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`available`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can also filter the results by status, capabilities, and location:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`available`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` filter:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` status:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` capabilities:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"imessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` location:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` country:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` region:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"FL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` city:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Miami\"`}),_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`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(ParamField,{body:`filter`,type:`object`,id:`param-filter`,children:[_jsx(_components.p,{children:`Optional. Narrows down the returned numbers. Omit to get all available numbers.`}),_jsxs(Expandable,{title:`Filter object properties`,children:[_jsx(ParamField,{body:`filter.status`,type:`string`,id:`param-filter-status`,children:_jsx(_components.p,{children:`Only return numbers with this status.`})}),_jsx(ParamField,{body:`filter.capabilities`,type:`string[]`,id:`param-filter-capabilities`,children:_jsxs(_components.p,{children:[`Only return numbers that support all listed channels (e.g. `,_jsx(_components.code,{children:`[\"sms\", \"imessage\"]`}),`).`]})}),_jsxs(ParamField,{body:`filter.location`,type:`object`,id:`param-filter-location`,children:[_jsx(_components.p,{children:`Only return numbers matching this location. Fields are matched independently, so provide any subset.`}),_jsxs(Expandable,{title:`Location object properties`,children:[_jsx(ParamField,{body:`filter.location.country`,type:`string`,id:`param-filter-location-country`,children:_jsxs(_components.p,{children:[`2-letter country code (e.g. `,_jsx(_components.code,{children:`\"US\"`}),`).`]})}),_jsx(ParamField,{body:`filter.location.region`,type:`string`,id:`param-filter-location-region`,children:_jsxs(_components.p,{children:[`Region/state (e.g. `,_jsx(_components.code,{children:`\"FL\"`}),`).`]})}),_jsx(ParamField,{body:`filter.location.city`,type:`string`,id:`param-filter-location-city`,children:_jsxs(_components.p,{children:[`City (e.g. `,_jsx(_components.code,{children:`\"Miami\"`}),`).`]})})]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`available`,type:`number`,id:`param-available`,children:_jsxs(_components.p,{children:[`Count of numbers available for leasing (after applying any `,_jsx(_components.code,{children:`filter`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`numbers`,type:`object[]`,id:`param-numbers`,children:_jsx(_components.p,{children:`Array of available phone numbers with their details.`})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Request metadata including ID, timestamp, and API version.`})}),`\n`,_jsx(Heading,{level:`2`,id:`get-number-details`,children:`Get Number Details`}),`\n`,_jsxs(_components.p,{children:[`Get detailed information about a specific phone number, including capabilities and pricing. If you lease the number, `,_jsx(_components.code,{children:`lease_id`}),`, `,_jsx(_components.code,{children:`lease_status`}),`, and `,_jsx(_components.code,{children:`billing`}),` are included automatically.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters-2`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`number`,type:`string`,required:true,id:`param-number`,children:_jsx(_components.p,{children:`Phone number in E.164 format. First argument.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-2`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`number`,type:`object`,id:`param-number-1`,children:[_jsx(_components.p,{children:`Phone number details and formatting information.`}),_jsxs(Expandable,{title:`Properties`,children:[_jsx(ResponseField,{name:`e164`,type:`string`,id:`param-e164`,children:_jsx(_components.p,{children:`E.164 formatted phone number string.`})}),_jsx(ResponseField,{name:`formatted`,type:`string`,id:`param-formatted`,children:_jsx(_components.p,{children:`Nationally formatted phone number string.`})})]})]}),`\n`,_jsx(ResponseField,{name:`capabilities`,type:`object`,id:`param-capabilities`,children:_jsxs(_components.p,{children:[`Capabilities supported by this number (`,_jsx(_components.code,{children:`{ intl_sms: boolean, channels: string[] }`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`pricing`,type:`object`,id:`param-pricing`,children:_jsx(_components.p,{children:`Pricing information for leasing this number.`})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`Request metadata including ID, timestamp, and API version.`})}),`\n`,_jsx(Heading,{level:`2`,id:`lease-a-number`,children:`Lease a Number`}),`\n`,_jsx(_components.p,{children:`Create a lease for a phone number to use it as a sender.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing_method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"monthly\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can also lease a number with default billing:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters-3`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`number`,type:`string`,required:true,id:`param-number-2`,children:_jsx(_components.p,{children:`Phone number in E.164 format. First argument.`})}),`\n`,_jsx(ParamField,{body:`options`,type:`object`,id:`param-options`,children:_jsxs(_components.p,{children:[`Optional. e.g. `,_jsx(_components.code,{children:`{ billing_method: \"monthly\" }`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response-3`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`lease_id`,type:`string`,id:`param-lease-id`,children:_jsx(_components.p,{children:`Unique identifier for the created lease.`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsx(_components.p,{children:`Current status of the lease (e.g., “active”, “pending”).`})}),`\n`,_jsx(ResponseField,{name:`billing`,type:`object`,id:`param-billing`,children:_jsx(_components.p,{children:`Billing information and configuration for the lease.`})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-2`,children:_jsx(_components.p,{children:`Request metadata including ID, timestamp, and API version.`})}),`\n`,_jsx(Heading,{level:`2`,id:`view-leased-numbers`,children:`View Leased Numbers`}),`\n`,_jsx(_components.p,{children:`Get a list of all numbers you currently have leased.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`leased`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can also filter the results by status, capabilities, and location:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`leased`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` filter:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` status:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` capabilities:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"imessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` location:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` country:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` region:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"FL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` city:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Miami\"`}),_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`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters-4`,children:`Parameters`}),`\n`,_jsxs(ParamField,{body:`filter`,type:`object`,id:`param-filter-1`,children:[_jsx(_components.p,{children:`Optional. Narrows down the returned numbers. Omit to get all leased numbers.`}),_jsxs(Expandable,{title:`Filter object properties`,children:[_jsx(ParamField,{body:`filter.status`,type:`string`,id:`param-filter-status-1`,children:_jsxs(_components.p,{children:[`Only return numbers with this lease status (e.g. `,_jsx(_components.code,{children:`\"active\"`}),`, `,_jsx(_components.code,{children:`\"paused\"`}),`, `,_jsx(_components.code,{children:`\"expired\"`}),`, `,_jsx(_components.code,{children:`\"terminated\"`}),`).`]})}),_jsx(ParamField,{body:`filter.capabilities`,type:`string[]`,id:`param-filter-capabilities-1`,children:_jsxs(_components.p,{children:[`Only return numbers that support all listed channels (e.g. `,_jsx(_components.code,{children:`[\"sms\", \"imessage\"]`}),`).`]})}),_jsxs(ParamField,{body:`filter.location`,type:`object`,id:`param-filter-location-1`,children:[_jsx(_components.p,{children:`Only return numbers matching this location. Fields are matched independently, so provide any subset.`}),_jsxs(Expandable,{title:`Location object properties`,children:[_jsx(ParamField,{body:`filter.location.country`,type:`string`,id:`param-filter-location-country-1`,children:_jsxs(_components.p,{children:[`2-letter country code (e.g. `,_jsx(_components.code,{children:`\"US\"`}),`).`]})}),_jsx(ParamField,{body:`filter.location.region`,type:`string`,id:`param-filter-location-region-1`,children:_jsxs(_components.p,{children:[`Region/state (e.g. `,_jsx(_components.code,{children:`\"FL\"`}),`).`]})}),_jsx(ParamField,{body:`filter.location.city`,type:`string`,id:`param-filter-location-city-1`,children:_jsxs(_components.p,{children:[`City (e.g. `,_jsx(_components.code,{children:`\"Miami\"`}),`).`]})})]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response-4`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`leased`,type:`number`,id:`param-leased`,children:_jsxs(_components.p,{children:[`Count of currently leased numbers (after applying any `,_jsx(_components.code,{children:`filter`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`numbers`,type:`object[]`,id:`param-numbers-1`,children:_jsx(_components.p,{children:`Array of currently leased phone numbers with their details.`})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-3`,children:_jsx(_components.p,{children:`Request metadata including ID, timestamp, and API version.`})}),`\n`,_jsx(Heading,{level:`2`,id:`get-lease-details`,children:`Get Lease Details`}),`\n`,_jsxs(_components.p,{children:[`Alias of `,_jsx(_components.code,{children:`lease.get(number)`}),` — returns number details along with `,_jsx(_components.code,{children:`lease_id`}),`, `,_jsx(_components.code,{children:`lease_status`}),`, and `,_jsx(_components.code,{children:`billing`}),` when leased by your account.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`details`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters-5`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`number`,type:`string`,required:true,id:`param-number-3`,children:_jsx(_components.p,{children:`Leased phone number in E.164. First argument.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-5`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`lease_id`,type:`string`,id:`param-lease-id-1`,children:_jsx(_components.p,{children:`Unique identifier for the lease.`})}),`\n`,_jsx(ResponseField,{name:`lease_status`,type:`string`,id:`param-lease-status`,children:_jsxs(_components.p,{children:[`Current status of the lease (e.g., `,_jsx(_components.code,{children:`\"active\"`}),`, `,_jsx(_components.code,{children:`\"paused\"`}),`, `,_jsx(_components.code,{children:`\"expired\"`}),`, `,_jsx(_components.code,{children:`\"terminated\"`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`billing`,type:`object`,id:`param-billing-1`,children:_jsx(_components.p,{children:`Billing information and current charges for the lease.`})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-4`,children:_jsx(_components.p,{children:`Request metadata including ID, timestamp, and API version.`})}),`\n`,_jsx(Heading,{level:`2`,id:`configure-a-lease`,children:`Configure a lease`}),`\n`,_jsx(_components.p,{children:`Customize a leased number’s failover behavior.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`configure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` number:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"+13059478667\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` failover:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"selective\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`numbers:`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters-6`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`number`,type:`string`,required:true,id:`param-number-4`,children:_jsx(_components.p,{children:`Leased phone number in E.164 format.`})}),`\n`,_jsxs(ParamField,{body:`failover`,type:`object`,required:true,id:`param-failover`,children:[_jsx(_components.p,{children:`Failover configuration.`}),_jsxs(Expandable,{title:`Failover object properties`,children:[_jsx(ParamField,{body:`failover.enabled`,type:`boolean`,id:`param-failover-enabled`,children:_jsx(_components.p,{children:`Whether failover is active.`})}),_jsx(ParamField,{body:`failover.mode`,type:`string`,id:`param-failover-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"all\"`}),` (any number can fail over) or `,_jsx(_components.code,{children:`\"selective\"`}),` (only listed numbers).`]})}),_jsx(ParamField,{body:`failover.numbers`,type:`string[]`,id:`param-failover-numbers`,children:_jsxs(_components.p,{children:[`E.164 numbers allowed to fail over when mode is `,_jsx(_components.code,{children:`\"selective\"`}),`.`]})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response-6`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`number`,type:`string`,id:`param-number-5`,children:_jsx(_components.p,{children:`The configured number.`})}),`\n`,_jsx(ResponseField,{name:`failover`,type:`object`,id:`param-failover-1`,children:_jsx(_components.p,{children:`Applied failover config: enabled, mode, numbers.`})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-5`,children:_jsx(_components.p,{children:`Request metadata: id, timestamp, api_version, object.`})}),`\n`,_jsx(Heading,{level:`2`,id:`call-forwarding`,children:`Call forwarding`}),`\n`,_jsxs(_components.p,{children:[`Forward inbound calls on a leased number to a number you own. Enabling or disabling may return `,_jsx(_components.code,{children:`status: \"queued\"`}),` before becoming `,_jsx(_components.code,{children:`\"active\"`}),`. See the `,_jsx(_components.a,{href:`/api-reference/product/leases/call-forwarding`,children:`Call Forwarding API`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`forwarding`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`enable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+13059478667\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`to:`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` current`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`forwarding`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+13059478667\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`forwarding`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`disable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+13059478667\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`lease-forwarding-enable-number-params`,children:`lease.forwarding.enable(number, params)`}),`\n`,_jsx(ParamField,{body:`number`,type:`string`,required:true,id:`param-number-6`,children:_jsx(_components.p,{children:`Your leased phone number in E.164 format. First argument.`})}),`\n`,_jsx(ParamField,{body:`to`,type:`string`,required:true,id:`param-to`,children:_jsx(_components.p,{children:`Destination phone number in E.164 format.`})}),`\n`,_jsx(Heading,{level:`3`,id:`lease-forwarding-get-number-/-lease-forwarding-disable-number`,children:`lease.forwarding.get(number) / lease.forwarding.disable(number)`}),`\n`,_jsx(ParamField,{body:`number`,type:`string`,required:true,id:`param-number-7`,children:_jsx(_components.p,{children:`Your leased phone number in E.164 format. First argument.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-7`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`number`,type:`string`,id:`param-number-8`,children:_jsx(_components.p,{children:`The leased phone number.`})}),`\n`,_jsx(ResponseField,{name:`call_forwarding`,type:`object`,id:`param-call-forwarding`,children:_jsxs(_components.p,{children:[`Current forwarding state: `,_jsx(_components.code,{children:`enabled`}),` (`,_jsx(_components.code,{children:`boolean`}),`), `,_jsx(_components.code,{children:`to`}),` (`,_jsx(_components.code,{children:`string | null`}),`), `,_jsx(_components.code,{children:`status`}),` (`,_jsx(_components.code,{children:`\"active\"`}),` | `,_jsx(_components.code,{children:`\"queued\"`}),`), and `,_jsx(_components.code,{children:`estimated_completion`}),` (`,_jsx(_components.code,{children:`number | null`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-6`,children:_jsx(_components.p,{children:`Request metadata: id, timestamp, api_version, object.`})}),`\n`,_jsx(Heading,{level:`2`,id:`terminate-a-lease`,children:`Terminate a Lease`}),`\n`,_jsx(_components.p,{children:`End a lease for a phone number when you no longer need it.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`terminate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters-7`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`number`,type:`string`,required:true,id:`param-number-9`,children:_jsx(_components.p,{children:`Leased phone number in E.164. First argument.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-8`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`lease_id`,type:`string`,id:`param-lease-id-2`,children:_jsx(_components.p,{children:`Unique identifier for the terminated lease.`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-1`,children:_jsx(_components.p,{children:`Confirmation status of the termination (e.g., “terminated”).`})}),`\n`,_jsx(ResponseField,{name:`terminated_at`,type:`timestamp`,id:`param-terminated-at`,children:_jsx(_components.p,{children:`ISO 8601 formatted timestamp of when the lease was terminated.`})}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-7`,children:_jsx(_components.p,{children:`Request metadata including ID, timestamp, and API version.`})}),`\n`,_jsx(Heading,{level:`2`,id:`using-leased-numbers`,children:`Using Leased Numbers`}),`\n`,_jsxs(_components.p,{children:[`Once you have a leased number, you can use it as the `,_jsx(_components.code,{children:`from`}),` parameter in your messaging:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Use leased number as sender for SMS`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` to:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"+1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` message:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello from your dedicated number!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` from:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"+15555555555\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // your leased number`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Use leased number as sender for iMessage`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contiguity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`imessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` to:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"+1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` message:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello via iMessage!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` from:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"+15555555555\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // your leased number`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(OptimizedImage,{src:`https://fake.img.com/nonexistent.jpg`,style:{display:`none`},onError:()=>{const script_0=document.createElement(`script`);script_0.textContent=`\n document.querySelectorAll('a[href*=\"mintlify.com\"][href*=\"poweredBy\"]').forEach(link => {\n link.remove();\n });\n `;document.head.appendChild(script_0)}})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{script_0,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":"Number Leasing","sidebarTitle":"Leases","icon":"sim-card","iconType":"solid","description":"Lease phone numbers using the Contiguity JavaScript SDK.","href":"/sdk/js/leases"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[47987,48251,""]]},"mdxExtracts":{"tableOfContents":[{"title":"Managing Number Leases","slug":"managing-number-leases","depth":2,"children":[]},{"title":"Check Available Numbers","slug":"check-available-numbers","depth":2,"children":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]}]},{"title":"Get Number Details","slug":"get-number-details","depth":2,"children":[{"title":"Parameters","slug":"parameters-2","depth":3,"children":[]},{"title":"Response","slug":"response-2","depth":3,"children":[]}]},{"title":"Lease a Number","slug":"lease-a-number","depth":2,"children":[{"title":"Parameters","slug":"parameters-3","depth":3,"children":[]},{"title":"Response","slug":"response-3","depth":3,"children":[]}]},{"title":"View Leased Numbers","slug":"view-leased-numbers","depth":2,"children":[{"title":"Parameters","slug":"parameters-4","depth":3,"children":[]},{"title":"Response","slug":"response-4","depth":3,"children":[]}]},{"title":"Get Lease Details","slug":"get-lease-details","depth":2,"children":[{"title":"Parameters","slug":"parameters-5","depth":3,"children":[]},{"title":"Response","slug":"response-5","depth":3,"children":[]}]},{"title":"Configure a lease","slug":"configure-a-lease","depth":2,"children":[{"title":"Parameters","slug":"parameters-6","depth":3,"children":[]},{"title":"Response","slug":"response-6","depth":3,"children":[]}]},{"title":"Call forwarding","slug":"call-forwarding","depth":2,"children":[{"title":"lease.forwarding.enable(number, params)","slug":"lease-forwarding-enable-number-params","depth":3,"children":[]},{"title":"lease.forwarding.get(number) / lease.forwarding.disable(number)","slug":"lease-forwarding-get-number-/-lease-forwarding-disable-number","depth":3,"children":[]},{"title":"Response","slug":"response-7","depth":3,"children":[]}]},{"title":"Terminate a Lease","slug":"terminate-a-lease","depth":2,"children":[{"title":"Parameters","slug":"parameters-7","depth":3,"children":[]},{"title":"Response","slug":"response-8","depth":3,"children":[]}]},{"title":"Using Leased Numbers","slug":"using-leased-numbers","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"contiguity","siteName":"Contiguity","title":"Number Leasing - Contiguity","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T09:08:07.534Z","originalFileLocation":"sdk/js/leases.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Lease phone numbers using the Contiguity JavaScript SDK.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Contiguity\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contiguity/hGs49pPp3gzMhKA8/_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/contiguity/hGs49pPp3gzMhKA8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contiguity/hGs49pPp3gzMhKA8/_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/contiguity/hGs49pPp3gzMhKA8/_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/contiguity/hGs49pPp3gzMhKA8/_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/contiguity/hGs49pPp3gzMhKA8/_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/contiguity/hGs49pPp3gzMhKA8/_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/contiguity/hGs49pPp3gzMhKA8/_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/contiguity/hGs49pPp3gzMhKA8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Number Leasing - Contiguity\">\u003cmeta data-mint-head property=\"og:description\" content=\"Lease phone numbers using the Contiguity JavaScript SDK.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Contiguity\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.contiguity.com/sdk/js/leases\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.contiguity.com/images/og-image-res.png\">\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=\"Contiguity | Developer Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Contiguity\u0026#x27;s official documentation for our API \u0026amp; SDKs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.contiguity.com/images/og-image-res.png\">\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/contiguity/hGs49pPp3gzMhKA8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Contiguity\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#333333\">\u003cmeta data-mint-head name=\"twitter:url\" content=\"https://docs.contiguity.com\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.contiguity.com/sdk/js/leases\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/js/leases.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.contiguity.com/#organization\",\"name\":\"Contiguity\",\"url\":\"https://docs.contiguity.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/contiguity/3fnTfhHBNi3djGqm/logo/black.svg?fit=max\u0026auto=format\u0026n=3fnTfhHBNi3djGqm\u0026q=85\u0026s=be34a7859dc2f9960e3e954c7e54ff4c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.contiguity.com#website\",\"name\":\"Contiguity\",\"url\":\"https://docs.contiguity.com\",\"publisher\":{\"@id\":\"https://docs.contiguity.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.contiguity.com/sdk/js/leases#webpage\",\"url\":\"https://docs.contiguity.com/sdk/js/leases\",\"name\":\"Number Leasing\",\"description\":\"Lease phone numbers using the Contiguity JavaScript SDK.\",\"dateModified\":\"2026-11-23T09:08:07.534Z\",\"isPartOf\":{\"@id\":\"https://docs.contiguity.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.contiguity.com/sdk/js/leases#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.contiguity.com/sdk/js/leases#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDK Documentation by Language\",\"item\":\"https://docs.contiguity.com/sdk/js/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https://docs.contiguity.com/sdk/js/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Number Leasing\",\"item\":\"https://docs.contiguity.com/sdk/js/leases\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.contiguity.com/sdk/js/leases#article\",\"headline\":\"Number Leasing\",\"name\":\"Number Leasing\",\"description\":\"Lease phone numbers using the Contiguity JavaScript SDK.\",\"url\":\"https://docs.contiguity.com/sdk/js/leases\",\"mainEntityOfPage\":{\"@id\":\"https://docs.contiguity.com/sdk/js/leases#webpage\"},\"image\":\"https://docs.contiguity.com/images/og-image-res.png\",\"dateModified\":\"2026-11-23T09:08:07.534Z\",\"publisher\":{\"@id\":\"https://docs.contiguity.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.contiguity.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Contiguity\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Contiguity\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdk/js/leases.md","siteName":"Contiguity","nav":{"global":{},"tabs":[{"tab":"Documentation","icon":{"style":"solid","name":"folder-open"},"groups":[{"group":"Getting Started","pages":[{"title":"Overview","sidebarTitle":"Overview","icon":"play","iconType":"solid","mode":"wide","href":"/getting-started/overview"},{"title":"Getting Support","sidebarTitle":"Support","icon":"life-ring","iconType":"solid","mode":"wide","href":"/getting-started/support"},{"title":"System Status","sidebarTitle":"Uptime","icon":"octagon-check","iconType":"solid","mode":"wide","href":"/getting-started/uptime"},{"title":"MCP Server","icon":"brain-circuit","iconType":"solid","href":"/getting-started/mcp"},{"title":"Changelog","icon":"list-check","iconType":"solid","href":"/changelog"}]},{"group":"SDK Documentation by Product","pages":[{"title":"Text","icon":"message","iconType":"solid","href":"/products/text"},{"title":"Email","icon":"envelope","iconType":"solid","href":"/products/email"},{"title":"One-Time Passwords via SMS","sidebarTitle":"OTP","icon":"key","iconType":"solid","href":"/products/otp"},{"title":"Email Domains","sidebarTitle":"Domains","icon":"globe","iconType":"solid","href":"/products/domains"},{"group":"Identity","icon":{"style":"solid","name":"fingerprint"},"pages":[{"title":"Identity","sidebarTitle":"Overview","icon":"list","iconType":"solid","href":"/products/identity/overview"},{"title":"Verification Sessions","icon":"face-viewfinder","iconType":"solid","href":"/products/identity/vs"},{"title":"Verification Reports","icon":"flag-swallowtail","iconType":"solid","href":"/products/identity/vr"}]},{"title":"iMessage","icon":"apple","iconType":"solid","href":"/products/imessage"},{"title":"FaceTime Audio","icon":"video","iconType":"solid","href":"/products/facetime"},{"title":"Number Leasing","sidebarTitle":"Leases","icon":"sim-card","iconType":"solid","href":"/products/leases"},{"title":"Number Intelligence","icon":"chart-mixed","iconType":"solid","href":"/products/intelligence"},{"group":"Base","icon":{"style":"solid","name":"database"},"pages":[{"title":"Base","sidebarTitle":"Getting Started","icon":"stars","iconType":"solid","href":"/products/base/init"},{"title":"CRUD using the Base SDK","sidebarTitle":"C.R.U.D","icon":"table","iconType":"solid","href":"/products/base/crud"},{"title":"Query | Fetching Data","icon":"magnifying-glass","iconType":"solid","href":"/products/base/query"}]}]},{"group":"SDK Documentation by Language","pages":[{"group":"JavaScript","icon":{"style":"brands","name":"js"},"pages":[{"title":"JavaScript SDK Overview","sidebarTitle":"Overview","icon":"flag-checkered","iconType":"solid","href":"/sdk/js/overview"},{"title":"Text","icon":"message","iconType":"solid","href":"/sdk/js/text"},{"title":"Email","icon":"envelope","iconType":"solid","href":"/sdk/js/email"},{"title":"One-Time Passwords","sidebarTitle":"OTP","icon":"key","iconType":"solid","href":"/sdk/js/otp"},{"title":"Email Domains","sidebarTitle":"Domains","icon":"globe","iconType":"solid","href":"/sdk/js/domains"},{"title":"iMessage","icon":"apple","iconType":"solid","href":"/sdk/js/imessage"},{"title":"FaceTime Audio","icon":"video","iconType":"solid","href":"/sdk/js/facetime"},{"title":"Conversations","icon":"comments","iconType":"solid","description":"Cancel queued sends with the Contiguity JavaScript SDK.","href":"/sdk/js/conversations"},{"title":"Number Leasing","sidebarTitle":"Leases","icon":"sim-card","iconType":"solid","href":"/sdk/js/leases"},{"title":"Number Intelligence","icon":"chart-mixed","iconType":"solid","description":"Look up carrier, CNAM, porting, and optional iMessage / FaceTime / risk data with the Contiguity JavaScript SDK.","href":"/sdk/js/intelligence"},{"title":"Entitlements","sidebarTitle":"Entitlements","icon":"ticket","iconType":"solid","href":"/sdk/js/entitlements"},{"title":"Webhooks","icon":"webhook","iconType":"solid","href":"/sdk/js/webhooks"}]},{"title":"@contiguity/python","icon":"python","iconType":"solid","href":"/sdk/python"}]}]},{"tab":"API Reference","icon":{"style":"solid","name":"terminal"},"pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Knowledge Base","icon":{"style":"solid","name":"book"},"pages":[{"title":"Knowledge Base","href":"/kb/compliance/overview"}]}]},"basePath":"","title":"Number Leasing - Contiguity","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-B9SB_e-W.js","lightbox-handle-r17bVUz3.js"]}