This is the call that starts a verification. OneXtel generates the PIN, substitutes it into the
template’s content for each channel you asked for, and dispatches to all of them in parallel —
then returns a pinId and what each channel did.Hold on to the pinId. It is what you verify against, and
what you resend on. The code itself is never returned to
you and never stored in the clear.
Omit channels to send on the template’s default channel. Pass it to override — every channel you
name must already have a channel account configured on that template, or the call fails with
channel_not_configured.
Partial success
A 201 means at least one channel accepted the message, not all of them. Read channels[]
to see which:
Only when every requested channel is rejected do you get 502 dispatch_failed. So do not
retry on a 201 — the user has a code.
Always send the Idempotency-Key header on this call. Without it, a network timeout you retry
will dispatch a second PIN and invalidate the first, and the user will be typing a code that no
longer verifies. See Idempotency.
Authorizations
Authorization
string
header
required
An API key from the OneXtel portal, Developers → API Keys, sent as Authorization: Bearer <key>.
Headers
Idempotency-Key
string
Protects a send/resend against duplicate dispatch on retry. Replaying the same key + body within 24h returns the original response verbatim; the same key with a different body is rejected (idempotency_key_reuse); a concurrent request with the same key still in flight is rejected (idempotency_in_progress).
Body
application/json
destination
string
required
Destination, exactly as the active provider expects it — never reformatted.
Required string length: 1 - 64
Example:
"+919876543210"
templateId
string
required
The template to send under.
Minimum string length: 1
Example:
"tpl_abc123"
channels
enum<string>[]
Channels to dispatch on. Omit to use the template's default channel.
Minimum array length: 1
Available options:
sms,
whatsapp,
email
Example:
["sms"]
referenceId
string
Optional caller-supplied correlation id, searchable in Verifications.
Required string length: 1 - 200
Example:
"order_1234"
templateParams
object
Per-send override for a WhatsApp template's non-OTP placeholders, by position. Omitted positions fall back to the template's stored default.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OneXtel","colors":{"primary":"#242C6A","light":"#242C6A","dark":"#242C6A"},"logo":{"light":"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/Xsymbol.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=ca8a83762561eb064c1ebb35709d6f77","dark":"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/logo.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=cb43d9837bb40c11e42081de17ca736e"},"favicon":{"light":"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/Xsymbol.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=ca8a83762561eb064c1ebb35709d6f77","dark":"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/logo.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=cb43d9837bb40c11e42081de17ca736e"},"appearance":{"default":"light","strict":true},"background":{"decoration":"grid","color":{"light":"#ffffff","dark":"#ffffff"}},"navbar":{"links":[{"href":"/download-pdf","label":"Download PDF"}],"primary":{"type":"button","label":"OneXtel","href":"https://onextel.com"}},"footer":{"socials":{"website":"https://onextel.com","linkedin":"https://www.linkedin.com/company/14525405","instagram":"https://www.instagram.com/onextel_media"}},"icons":{"library":"fontawesome"},"banner":{"content":"**Beta documentation, for internal review.** Do not share this site with customers.","dismissible":false,"type":"warning"},"contextual":{"options":["copy","view","download-pdf",{"title":"Download all docs","description":"Every guide, API reference and plugin page in one PDF","icon":"file-pdf","href":"/download-pdf"},"download-spec","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"onextel-09023014","hasAudioNarration":false,"actualSubdomain":"onextel-09023014","customDomains":[],"gitSource":{"type":"github","owner":"1xtel","repo":"onextel-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10f49a9ffae5051c418fcb"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b09147e5972eb552bebeb08","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Guides","count":81},{"language":"default","tag":"API Reference","count":80},{"language":"default","tag":"WhatsApp","count":37},{"language":"default","tag":"Truecaller","count":31},{"language":"default","tag":"RCS","count":18},{"language":"default","tag":"SMS (International)","count":14},{"language":"default","tag":"Campaigns","count":14},{"language":"default","tag":"Platform","count":14},{"language":"default","tag":"Verify","count":12},{"language":"default","tag":"Plugins","count":12}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"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":[{"filePath":"feedback.css","content":".oxf{--oxf-navy: #252e6a;--oxf-red: #d72327;--oxf-sky: #dae6f1;--oxf-grey: #e6e7e8;--oxf-ink: #231f20;--oxf-surface: #ffffff;font-size:14px;line-height:1.45}html.dark .oxf{--oxf-sky: #2a3350;--oxf-grey: #3a3f55;--oxf-ink: #f1f3f8;--oxf-surface: #151a2e}.oxf[hidden],.oxf [hidden]{display:none}.oxf-bubble,.oxf-launcher,.oxf-primary{background:var(--oxf-navy);color:#ffffff;border:0;border-radius:999px;padding:8px 14px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px rgb(0 0 0 / 0.18)}.oxf-bubble{position:absolute;z-index:60}.oxf-launcher{position:fixed;right:20px;bottom:20px;z-index:55}.oxf-bubble:focus-visible,.oxf-launcher:focus-visible,.oxf-panel button:focus-visible,.oxf-input:focus-visible{outline:2px solid var(--oxf-red);outline-offset:2px}.oxf-panel{position:fixed;right:20px;bottom:68px;z-index:56;width:min(380px, calc(100vw - 32px));max-height:min(70vh, 640px);overflow-y:auto;padding:16px;background:var(--oxf-surface);color:var(--oxf-ink);border:1px solid var(--oxf-grey);border-radius:12px;box-shadow:0 12px 32px rgb(0 0 0 / 0.22)}.oxf-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.oxf-help,.oxf-local,.oxf-status,.oxf-meta,.oxf-empty{margin:8px 0 0;font-size:13px;opacity:0.8}.oxf-status:empty{display:none}.oxf-starters,.oxf-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.oxf-secondary{background:transparent;color:inherit;border:1px solid var(--oxf-grey);border-radius:8px;padding:6px 10px;cursor:pointer}.oxf-link{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font-size:13px}.oxf-form{display:grid;gap:8px;margin-top:12px}.oxf-quote,.oxf-jump{margin:0;padding:8px 10px;background:var(--oxf-sky);color:inherit;border:0;border-left:3px solid var(--oxf-navy);border-radius:4px;font-size:13px;text-align:left;overflow-wrap:anywhere}.oxf-jump{display:block;width:100%;cursor:pointer}.oxf-input{width:100%;padding:8px 10px;background:var(--oxf-surface);color:inherit;border:1px solid var(--oxf-grey);border-radius:8px;font:inherit}.oxf-primary{border-radius:8px;box-shadow:none}.oxf-primary:disabled{opacity:0.6;cursor:default}.oxf-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px}.oxf-item{padding-top:12px;border-top:1px solid var(--oxf-grey)}.oxf-comment{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.oxf-meta{display:flex;justify-content:space-between;gap:8px}.oxf-resolved .oxf-jump,.oxf-resolved .oxf-comment{opacity:0.55}.oxf-pick-hint{position:fixed;left:50%;bottom:20px;z-index:57;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:10px 14px;background:var(--oxf-navy);color:#ffffff;border-radius:8px;box-shadow:0 4px 14px rgb(0 0 0 / 0.18)}html.oxf-picking #content,html.oxf-picking main{cursor:crosshair}.oxf-pick-target{outline:2px solid #d72327;outline-offset:3px;border-radius:4px}::highlight(oxf-note){background-color:rgb(247 231 206 / 0.9);color:#231f20}::highlight(oxf-focus){background-color:rgb(215 35 39 / 0.3)}@media print{.oxf{display:none}}"},{"filePath":"banner.css","content":"#banner{background-color:#d72327!important}"}]}
{"page":{"pagePath":"api-reference/verify/create-and-dispatch-a-pin","slug":"/api-reference/verify/create-and-dispatch-a-pin","pageMetadata":{"title":"Create and dispatch a PIN","description":"Generate a PIN and send it to one or more channels in parallel.","openapi":"POST /v1/pins","href":"/api-reference/verify/create-and-dispatch-a-pin"},"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: \"Generate a PIN and send it to one or more channels in parallel.\"\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`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This is the call that starts a verification. OneXtel generates the PIN, substitutes it into the\ntemplate’s content for each channel you asked for, and dispatches to all of them `,_jsx(_components.strong,{children:`in parallel`}),` —\nthen returns a `,_jsx(_components.code,{children:`pinId`}),` and what each channel did.`]}),`\n`,_jsxs(_components.p,{children:[`Hold on to the `,_jsx(_components.code,{children:`pinId`}),`. It is what you `,_jsx(_components.a,{href:`/api-reference/verify/verify-a-pin`,children:`verify`}),` against, and\nwhat you `,_jsx(_components.a,{href:`/api-reference/verify/resend-a-pin`,children:`resend`}),` on. The code itself is never returned to\nyou and never stored in the clear.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`channels`}),` to send on the template’s default channel. Pass it to override — every channel you\nname must already have a channel account configured on that template, or the call fails with\n`,_jsx(_components.code,{children:`channel_not_configured`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`partial-success`,children:`Partial success`}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`201`}),` means `,_jsx(_components.strong,{children:`at least one`}),` channel accepted the message, not all of them. Read `,_jsx(_components.code,{children:`channels[]`}),`\nto see which:`]}),`\n`,_jsx(CodeBlock,{filename:`Response — SMS accepted, WhatsApp rejected`,numberOfLines:`10`,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:`10`,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:` \"pinId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pin_x9k2m1qz\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PENDING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expiresAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-04T10:22:03.221Z\"`}),_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:` \"attemptsRemaining\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_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:` \"channels\"`}),_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\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"channel\"`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"accepted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"providerMessageId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f9a1c02\"`}),_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\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"channel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whatsapp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rejected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"errorCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"131047\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"errorMessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Re-engagement message\"`}),_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`,_jsxs(_components.p,{children:[`Only when `,_jsx(_components.strong,{children:`every`}),` requested channel is rejected do you get `,_jsx(_components.code,{children:`502 dispatch_failed`}),`. So do not\nretry on a `,_jsx(_components.code,{children:`201`}),` — the user has a code.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Always send the `,_jsx(_components.code,{children:`Idempotency-Key`}),` header on this call. Without it, a network timeout you retry\nwill dispatch a second PIN and invalidate the first, and the user will be typing a code that no\nlonger verifies. See `,_jsx(_components.a,{href:`/api-reference/verify/overview#idempotency`,children:`Idempotency`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create and dispatch a PIN","description":"Generate a PIN and send it to one or more channels in parallel.","openapi":"POST /v1/pins","href":"/api-reference/verify/create-and-dispatch-a-pin"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Partial success","slug":"partial-success","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/onextel-09023014/3fd9b1eec8d14911/feedback.js"],"openApiReferenceData":{"operation":{"operationId":"createPin","tags":["Pins"],"summary":"Create and dispatch a PIN","description":"Generate a PIN and send it to one or more channels in parallel.","parameters":["7d9a3add-812d-4fff-bb05-f6733d20e73f"],"requestBody":"c6c90957-ead0-487b-a5ed-f39aa03ab3b2","responses":{"201":"a4bea2ba-712f-4e71-82e9-3cb76dd22302","400":"dbabb801-18e1-481d-9be3-8fde89c8d57a","401":"9244dfbd-a3a2-4bdf-b4d8-80b9dc0ef750","403":"60443707-25d3-4072-8ec3-3d245986831f","404":"7f2adf7b-04bd-4ba3-b252-7c6d9390e721","409":"a7b817b7-34f1-413a-97a1-c38bb0fb1e6f","429":"5ebd2294-88aa-4e48-8ce9-9412a70aded0","502":"1b136c61-825a-4ae8-95a0-e67bb9940e30"},"method":"post","type":"path","servers":["784e5584-1593-44df-bb8b-28ba04ef7310"],"security":["c24e9e66-e0c5-476c-b7cf-e658c1cbc004"],"path":"/v1/pins","baseUrlOptions":["https://api.onexaura.com"],"title":"Create and dispatch a PIN","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"7d9a3add-812d-4fff-bb05-f6733d20e73f":{"name":"Idempotency-Key","in":"header","description":"Protects a send/resend against duplicate dispatch on retry. Replaying the same key + body within 24h returns the original response verbatim; the same key with a different body is rejected (`idempotency_key_reuse`); a concurrent request with the same key still in flight is rejected (`idempotency_in_progress`).\n","schema":{"type":"string","description":"Protects a send/resend against duplicate dispatch on retry. Replaying the same key + body within 24h returns the original response verbatim; the same key with a different body is rejected (`idempotency_key_reuse`); a concurrent request with the same key still in flight is rejected (`idempotency_in_progress`).\n","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["destination","templateId"],"properties":{"destination":{"type":"string","minLength":1,"maxLength":64,"description":"Destination, exactly as the active provider expects it — never reformatted.","examples":["+919876543210"],"isRequired":true,"uniqueKey":"destination","typeLabel":"string"},"templateId":{"type":"string","minLength":1,"description":"The template to send under.","examples":["tpl_abc123"],"isRequired":true,"uniqueKey":"templateId","typeLabel":"string"},"channels":{"type":"array","minItems":1,"description":"Channels to dispatch on. Omit to use the template's default channel.","items":{"type":"string","enum":["sms","whatsapp","email"],"uniqueKey":"channels.items.[INDEX]","typeLabel":"enum\u003cstring>"},"examples":[["sms"]],"uniqueKey":"channels","typeLabel":"enum\u003cstring>[]"},"referenceId":{"type":"string","minLength":1,"maxLength":200,"description":"Optional caller-supplied correlation id, searchable in Verifications.","examples":["order_1234"],"uniqueKey":"referenceId","typeLabel":"string"},"templateParams":{"type":"object","description":"Per-send override for a WhatsApp template's non-OTP placeholders, by position. Omitted positions fall back to the template's stored default.\n","additionalProperties":{"type":"string","uniqueKey":"templateParams.additionalProperties","typeLabel":"string"},"examples":[{"1":"Jane Doe","2":"ORD-1234"}],"uniqueKey":"templateParams","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"destination":"+919876543210","templateId":"tpl_abc123","channels":["sms"],"referenceId":"order_1234","templateParams":{"1":"Jane Doe","2":"ORD-1234"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a4bea2ba-712f-4e71-82e9-3cb76dd22302":{"description":"At least one channel accepted the message.","content":{"application/json":{"schema":{"type":"object","properties":{"pinId":{"type":"string","examples":["pin_x9k2m1qz"],"uniqueKey":"pinId","typeLabel":"string"},"status":{"type":"string","enum":["PENDING","VERIFIED","EXPIRED","BLOCKED"],"examples":["PENDING"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"expiresAt":{"type":"string","format":"date-time","examples":["2026-08-04T10:22:03.221Z"],"uniqueKey":"expiresAt","typeLabel":"string\u003cdate-time>"},"attemptsRemaining":{"type":"integer","examples":[3],"uniqueKey":"attemptsRemaining","typeLabel":"integer"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["sms","whatsapp","email"],"uniqueKey":"channels.items.[INDEX].channel","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["accepted","rejected","error"],"description":"`accepted` — the provider took the message. `rejected` — the provider refused it. `error` — the dispatch itself failed (timeout, transport, unexpected response).\n","uniqueKey":"channels.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"providerMessageId":{"type":"string","description":"The provider's id for the message, when it returned one.","uniqueKey":"channels.items.[INDEX].providerMessageId","typeLabel":"string"},"errorCode":{"type":"string","uniqueKey":"channels.items.[INDEX].errorCode","typeLabel":"string"},"errorMessage":{"type":"string","uniqueKey":"channels.items.[INDEX].errorMessage","typeLabel":"string"}},"uniqueKey":"channels.items.[INDEX]","typeLabel":"object"},"uniqueKey":"channels","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"pinId":"pin_x9k2m1qz","status":"PENDING","expiresAt":"2026-08-04T10:22:03.221Z","attemptsRemaining":3,"channels":[{"channel":"sms","status":"accepted","providerMessageId":"\u003cstring>","errorCode":"\u003cstring>","errorMessage":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"dbabb801-18e1-481d-9be3-8fde89c8d57a":{"description":"`validation_failed`","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","examples":["pin_expired"],"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","examples":["req_9f3a2c"],"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"pin_expired","message":"\u003cstring>","requestId":"req_9f3a2c","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"9244dfbd-a3a2-4bdf-b4d8-80b9dc0ef750":{"description":"`unauthenticated`","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","examples":["pin_expired"],"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","examples":["req_9f3a2c"],"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"pin_expired","message":"\u003cstring>","requestId":"req_9f3a2c","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"60443707-25d3-4072-8ec3-3d245986831f":{"description":"`forbidden` / `workspace_disabled`","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","examples":["pin_expired"],"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","examples":["req_9f3a2c"],"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"pin_expired","message":"\u003cstring>","requestId":"req_9f3a2c","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7f2adf7b-04bd-4ba3-b252-7c6d9390e721":{"description":"`not_found` / `template_not_found`","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","examples":["pin_expired"],"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","examples":["req_9f3a2c"],"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"pin_expired","message":"\u003cstring>","requestId":"req_9f3a2c","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"a7b817b7-34f1-413a-97a1-c38bb0fb1e6f":{"description":"`template_disabled` / `channel_not_configured` / `channel_account_disabled` / `idempotency_key_reuse` / `idempotency_in_progress`","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","examples":["pin_expired"],"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","examples":["req_9f3a2c"],"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"pin_expired","message":"\u003cstring>","requestId":"req_9f3a2c","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"5ebd2294-88aa-4e48-8ce9-9412a70aded0":{"description":"`rate_limited` / `daily_cap_exceeded`","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","examples":["pin_expired"],"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","examples":["req_9f3a2c"],"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"pin_expired","message":"\u003cstring>","requestId":"req_9f3a2c","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"1b136c61-825a-4ae8-95a0-e67bb9940e30":{"description":"`dispatch_failed`","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","examples":["pin_expired"],"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","examples":["req_9f3a2c"],"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"pin_expired","message":"\u003cstring>","requestId":"req_9f3a2c","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c24e9e66-e0c5-476c-b7cf-e658c1cbc004":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key from the OneXtel portal, **Developers → API Keys**, sent as `Authorization: Bearer \u003ckey>`.","scopes":[]}}},"servers":{"784e5584-1593-44df-bb8b-28ba04ef7310":{"url":"https://api.onexaura.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key from the OneXtel portal, **Developers → API Keys**, sent as `Authorization: Bearer \u003ckey>`.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key from the OneXtel portal, **Developers → API Keys**, sent as `Authorization: Bearer \u003ckey>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/verify/openapi.yaml"},"subdomain":"onextel-09023014","siteName":"OneXtel","title":"Create and dispatch a PIN - OneXtel","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T11:41:30.246Z","originalFileLocation":"api-reference/verify/create-and-dispatch-a-pin.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"Generate a PIN and send it to one or more channels in parallel.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OneXtel\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_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/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onextel-09023014/FERTGqQkUGmZ7ru3/_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/onextel-09023014/FERTGqQkUGmZ7ru3/_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/onextel-09023014/FERTGqQkUGmZ7ru3/_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/onextel-09023014/FERTGqQkUGmZ7ru3/_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/onextel-09023014/FERTGqQkUGmZ7ru3/_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/onextel-09023014/FERTGqQkUGmZ7ru3/_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/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create and dispatch a PIN - OneXtel\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate a PIN and send it to one or more channels in parallel.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OneXtel\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://onextel-09023014.mintlify.site/_mintlify/api/og/v2?division=Verify\u0026amp;title=Create+and+dispatch+a+PIN\u0026amp;description=Generate+a+PIN+and+send+it+to+one+or+more+channels+in+parallel.\u0026amp;theme=bf91e30fa1f84b6896b98302\u0026amp;signature=469aa41d4f1e88e981fb34246e3f9911c3be8142e390f12982b1d47aeb4504bc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create and dispatch a PIN - OneXtel\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate a PIN and send it to one or more channels in parallel.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://onextel-09023014.mintlify.site/_mintlify/api/og/v2?division=Verify\u0026amp;title=Create+and+dispatch+a+PIN\u0026amp;description=Generate+a+PIN+and+send+it+to+one+or+more+channels+in+parallel.\u0026amp;theme=bf91e30fa1f84b6896b98302\u0026amp;signature=469aa41d4f1e88e981fb34246e3f9911c3be8142e390f12982b1d47aeb4504bc\">\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/onextel-09023014/FERTGqQkUGmZ7ru3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OneXtel\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#242C6A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/verify/create-and-dispatch-a-pin.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://onextel-09023014.mintlify.app/#organization\",\"name\":\"OneXtel\",\"url\":\"https://onextel-09023014.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/onextel-09023014/vEquwaRxR4Mg_-97/images/Xsymbol.png?fit=max\u0026auto=format\u0026n=vEquwaRxR4Mg_-97\u0026q=85\u0026s=ca8a83762561eb064c1ebb35709d6f77\"}},{\"@type\":\"WebSite\",\"@id\":\"https://onextel-09023014.mintlify.app#website\",\"name\":\"OneXtel\",\"url\":\"https://onextel-09023014.mintlify.app\",\"publisher\":{\"@id\":\"https://onextel-09023014.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin#webpage\",\"url\":\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin\",\"name\":\"Create and dispatch a PIN\",\"description\":\"Generate a PIN and send it to one or more channels in parallel.\",\"dateModified\":\"2026-11-26T11:41:30.246Z\",\"isPartOf\":{\"@id\":\"https://onextel-09023014.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Verify\",\"item\":\"https://onextel-09023014.mintlify.app/api-reference/verify/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create and dispatch a PIN\",\"item\":\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin#apireference\",\"headline\":\"Create and dispatch a PIN\",\"name\":\"Create and dispatch a PIN\",\"description\":\"Generate a PIN and send it to one or more channels in parallel.\",\"url\":\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin\",\"mainEntityOfPage\":{\"@id\":\"https://onextel-09023014.mintlify.app/api-reference/verify/create-and-dispatch-a-pin#webpage\"},\"dateModified\":\"2026-11-26T11:41:30.246Z\",\"publisher\":{\"@id\":\"https://onextel-09023014.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://onextel-09023014.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OneXtel\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OneXtel\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/verify/create-and-dispatch-a-pin.md","siteName":"OneXtel","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/about-onextel"}]},{"tab":"API Reference","groups":[{"group":"Tools","pages":[{"title":"Validate a payload","href":"/api-reference/payload-validator"}]},{"group":"WhatsApp","pages":[{"title":"WhatsApp API Overview","href":"/api-reference/whatsapp/overview"},{"title":"Create WhatsApp Template","href":"/api-reference/whatsapp/templates-create"},{"title":"Fetch WhatsApp Templates","href":"/api-reference/whatsapp/templates-fetch"},{"title":"Send WhatsApp Template Message","href":"/api-reference/whatsapp/send-template-message"},{"title":"Send Session Messages","href":"/api-reference/whatsapp/send-session-messages"},{"title":"Media","href":"/api-reference/whatsapp/media"},{"title":"Opt In / Opt Out","href":"/api-reference/whatsapp/opt-in-opt-out"},{"group":"Callbacks","pages":[{"title":"WhatsApp Callback Events","href":"/api-reference/whatsapp/callback-events"},{"title":"Callback: Incoming Messages","href":"/api-reference/whatsapp/callback-incoming-messages"},{"title":"Callback: Delivery Notification","href":"/api-reference/whatsapp/callback-delivery-notification"},{"title":"Callback: Button Clicks","href":"/api-reference/whatsapp/callback-button-clicks"},{"title":"Callback: URL Click","href":"/api-reference/whatsapp/callback-url-click"}]},{"title":"WhatsApp Error Codes","href":"/api-reference/whatsapp/error-codes"}]},{"group":"RCS","pages":[{"title":"RCS Messaging Overview","href":"/api-reference/rcs/overview"},{"title":"RCS Templates","href":"/api-reference/rcs/templates"},{"title":"Send an RCS Template Message","href":"/api-reference/rcs/send-template-message"},{"title":"Send Non-Template Messages","href":"/api-reference/rcs/send-messages"},{"title":"Media Upload","href":"/api-reference/rcs/media"},{"title":"Opt In / Opt Out","href":"/api-reference/rcs/opt-in-opt-out"},{"title":"RCS Delivery Notification","href":"/api-reference/rcs/callback-delivery-notification"},{"title":"RCS Operator Error Codes","href":"/api-reference/rcs/error-codes"}]},{"group":"SMS (India)","pages":[{"title":"India SMS Overview","href":"/api-reference/sms/overview"},{"title":"Send SMS — India","href":"/api-reference/sms/send-sms-omni"},{"title":"DLR Callback","href":"/api-reference/sms/dlr-callback"},{"title":"Clicker Callback","href":"/api-reference/sms/clicker-callback"},{"title":"Pull Message Status","href":"/api-reference/sms/get-status"},{"title":"Standalone URL Shortener","href":"/api-reference/sms/url-shortener"},{"title":"India SMS Error Codes","href":"/api-reference/sms/error-codes"}]},{"group":"SMS (International)","pages":[{"title":"International SMS overview","href":"/api-reference/sms-international/overview"},{"title":"Send SMS — International","sidebarTitle":"Send SMS","href":"/api-reference/sms-international/send-sms"},{"title":"DLR callback","href":"/api-reference/sms-international/dlr-callback"},{"title":"International SMS response codes","sidebarTitle":"Response codes","href":"/api-reference/sms-international/error-codes"}]},{"group":"OmniChannel","pages":[{"title":"OmniChannel API Overview","href":"/api-reference/omnichannel/overview"},{"title":"Fallback API","href":"/api-reference/omnichannel/fallback"},{"title":"Message Status","href":"/api-reference/omnichannel/message-status"},{"title":"Message History","href":"/api-reference/omnichannel/message-history"}]},{"group":"Verify","pages":[{"title":"Verify API Overview","description":"Generate, dispatch and verify one-time PINs across SMS, WhatsApp, and email from a single API.","href":"/api-reference/verify/overview"},{"title":"Create and dispatch a PIN","openapi":"POST /v1/pins","href":"/api-reference/verify/create-and-dispatch-a-pin"},{"title":"Resend a PIN","description":"Issue a fresh PIN on an existing pinId, optionally on a different channel.","openapi":"POST /v1/pins/{pinId}/resend","href":"/api-reference/verify/resend-a-pin"},{"title":"Verify a PIN","openapi":"POST /v1/pins/{pinId}/verify","href":"/api-reference/verify/verify-a-pin"},{"title":"List templates","openapi":"GET /v1/templates","href":"/api-reference/verify/list-templates"},{"title":"List channel accounts","openapi":"GET /v1/channel-accounts","href":"/api-reference/verify/list-channel-accounts"},{"title":"Verify Error Codes","href":"/api-reference/verify/error-codes"},{"group":"Pins","pages":[{"title":"Create and dispatch a PIN","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml post /v1/pins","href":"/api-reference/pins/create-and-dispatch-a-pin"},{"title":"Resend a PIN","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml post /v1/pins/{pinId}/resend","href":"/api-reference/pins/resend-a-pin"},{"title":"Verify a PIN","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml post /v1/pins/{pinId}/verify","href":"/api-reference/pins/verify-a-pin"}]},{"group":"Templates","pages":[{"title":"List templates","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml get /v1/templates","href":"/api-reference/templates/list-templates"}]},{"group":"Channel Accounts","pages":[{"title":"List channel accounts","deprecated":null,"version":null,"openapi":"/api-reference/verify/openapi.yaml get /v1/channel-accounts","href":"/api-reference/channel-accounts/list-channel-accounts"}]}]},{"group":"Truecaller","pages":[{"title":"Truecaller API Overview","href":"/api-reference/truecaller/overview"},{"title":"Rich messages","href":"/api-reference/truecaller/rich-messages"},{"title":"Webhooks","href":"/api-reference/truecaller/webhooks"},{"title":"Errors","href":"/api-reference/truecaller/errors"},{"group":"Messages","pages":[{"title":"Send a message","openapi":"api-reference/truecaller/openapi.yaml POST /v1/messages","href":"/api-reference/truecaller/send-message"},{"title":"Get a message","openapi":"api-reference/truecaller/openapi.yaml GET /v1/messages/{id}","href":"/api-reference/truecaller/get-message"}]},{"group":"Templates","pages":[{"title":"List templates","openapi":"api-reference/truecaller/openapi.yaml GET /v1/templates","href":"/api-reference/truecaller/list-templates"},{"title":"Create a template","openapi":"api-reference/truecaller/openapi.yaml POST /v1/templates","href":"/api-reference/truecaller/create-template"},{"title":"Get a template","openapi":"api-reference/truecaller/openapi.yaml GET /v1/templates/{id}","href":"/api-reference/truecaller/get-template"},{"title":"Update a template","openapi":"api-reference/truecaller/openapi.yaml PUT /v1/templates/{id}","href":"/api-reference/truecaller/update-template"},{"title":"Submit a template","openapi":"api-reference/truecaller/openapi.yaml POST /v1/templates/{id}/submit","href":"/api-reference/truecaller/submit-template"},{"title":"Preview a template","openapi":"api-reference/truecaller/openapi.yaml POST /v1/templates/{id}/preview","href":"/api-reference/truecaller/preview-template"},{"title":"Delete a template","openapi":"api-reference/truecaller/openapi.yaml DELETE /v1/templates/{id}","href":"/api-reference/truecaller/delete-template"},{"title":"Upload media","openapi":"api-reference/truecaller/openapi.yaml POST /v1/media","href":"/api-reference/truecaller/upload-media"}]},{"group":"Contact lists","pages":[{"title":"List contact lists","openapi":"api-reference/truecaller/openapi.yaml GET /v1/lists","href":"/api-reference/truecaller/list-contact-lists"},{"title":"Create a contact list","openapi":"api-reference/truecaller/openapi.yaml POST /v1/lists","href":"/api-reference/truecaller/create-contact-list"},{"title":"Add contacts","openapi":"api-reference/truecaller/openapi.yaml POST /v1/lists/{id}/contacts","href":"/api-reference/truecaller/add-contacts"},{"title":"Check an audience","openapi":"api-reference/truecaller/openapi.yaml POST /v1/lists/validate","href":"/api-reference/truecaller/validate-audience"},{"title":"Get a contact list","openapi":"api-reference/truecaller/openapi.yaml GET /v1/lists/{id}","href":"/api-reference/truecaller/get-contact-list"},{"title":"Delete a contact list","openapi":"api-reference/truecaller/openapi.yaml DELETE /v1/lists/{id}","href":"/api-reference/truecaller/delete-contact-list"},{"title":"Opt a number out","openapi":"api-reference/truecaller/openapi.yaml POST /v1/opt-outs","href":"/api-reference/truecaller/opt-out"},{"title":"Remove an opt-out","openapi":"api-reference/truecaller/openapi.yaml DELETE /v1/opt-outs/{phone}","href":"/api-reference/truecaller/remove-opt-out"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","openapi":"api-reference/truecaller/openapi.yaml GET /v1/campaigns","href":"/api-reference/truecaller/list-campaigns"},{"title":"Create a campaign","openapi":"api-reference/truecaller/openapi.yaml POST /v1/campaigns","href":"/api-reference/truecaller/create-campaign"},{"title":"Get a campaign","openapi":"api-reference/truecaller/openapi.yaml GET /v1/campaigns/{id}","href":"/api-reference/truecaller/get-campaign"},{"title":"Launch a campaign","openapi":"api-reference/truecaller/openapi.yaml POST /v1/campaigns/{id}/launch","href":"/api-reference/truecaller/launch-campaign"},{"title":"Cancel a campaign","openapi":"api-reference/truecaller/openapi.yaml POST /v1/campaigns/{id}/cancel","href":"/api-reference/truecaller/cancel-campaign"},{"title":"Delete a draft campaign","openapi":"api-reference/truecaller/openapi.yaml DELETE /v1/campaigns/{id}","href":"/api-reference/truecaller/delete-campaign"},{"title":"Campaign report","openapi":"api-reference/truecaller/openapi.yaml GET /v1/campaigns/{id}/report","href":"/api-reference/truecaller/campaign-report"},{"title":"Export campaign messages","openapi":"api-reference/truecaller/openapi.yaml GET /v1/campaigns/{id}/messages.csv","href":"/api-reference/truecaller/export-campaign-messages"}]},{"group":"Senders","pages":[{"title":"List senders","openapi":"api-reference/truecaller/openapi.yaml GET /v1/senders","href":"/api-reference/truecaller/list-senders"}]}]}]},{"tab":"Plugins","pages":[{"title":"Plugins","href":"/plugins/overview"}]},{"tab":"Archived APIs","pages":[{"title":"Archived APIs","href":"/legacy/overview"}]}]},"basePath":"","title":"Create and dispatch a PIN - OneXtel","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-74C-oA3c.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js"]}