Webhooks send status updates to your callback URL. See Webhooks.
OpenAPI specification
The full API is described in an OpenAPI 3.1 file, api-reference/openapi.yaml, in this documentation’s repository. Use it to generate a client or import the API into Postman or Insomnia.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OTPBay","description":"One API for OTP verification over Telegram and SMS, with automatic SMS fallback and pay-as-you-go pricing.","colors":{"primary":"#2563EB","light":"#60A5FA","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/otplabs/8X-9M4_TQPcbQN7P/logo/light.svg?fit=max\u0026auto=format\u0026n=8X-9M4_TQPcbQN7P\u0026q=85\u0026s=6b4b1e93ed9af2e6c96dc1b134c943b4","dark":"https://mintcdn.com/otplabs/8X-9M4_TQPcbQN7P/logo/dark.svg?fit=max\u0026auto=format\u0026n=8X-9M4_TQPcbQN7P\u0026q=85\u0026s=5485971997fc4eec1bf90a275f2ee143","href":"https://otpbay.com"},"favicon":"https://mintcdn.com/otplabs/8X-9M4_TQPcbQN7P/favicon.svg?fit=max\u0026auto=format\u0026n=8X-9M4_TQPcbQN7P\u0026q=85\u0026s=af1cf27822fe713b72449abc797087c5","api":{"params":{"expanded":"all"},"playground":{"display":"interactive"},"examples":{"defaults":"all","languages":["bash","javascript","python","php","go","java","ruby","csharp"],"prefill":true}},"navbar":{"links":[{"href":"mailto:hello@otpbay.com","label":"Support"}],"primary":{"type":"button","label":"Get an API key","href":"https://app.otpbay.com/login"}},"footer":{"links":[{"header":"OTPBay","items":[{"label":"Website","href":"https://otpbay.com"},{"label":"Dashboard","href":"https://app.otpbay.com"},{"label":"Contact","href":"mailto:hello@otpbay.com"}]}]},"seo":{"metatags":{"og:site_name":"OTPBay Docs"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://app.otpbay.com"},{"anchor":"Pricing","icon":"tag","href":"https://otpbay.com/#pricing"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"otplabs","hasAudioNarration":false,"actualSubdomain":"otplabs","customDomains":["docs.otpbay.com"],"gitSource":{"type":"github","owner":"sarkarkurdish","repo":"otpbay-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ab8101293ea6a921de40041","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API reference","count":11},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Concepts","count":4},{"language":"default","tag":"Telegram","count":3},{"language":"default","tag":"Verify","count":3},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Channels","count":3},{"language":"default","tag":"SMS","count":2},{"language":"default","tag":"Overview","count":1},{"language":"default","tag":"Project","count":1}]},"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":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/introduction","slug":"/api-reference/introduction","pageMetadata":{"title":"API reference","sidebarTitle":"Introduction","description":"The OTPBay REST API: base URL, authentication, and conventions.","href":"/api-reference/introduction"},"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: \"The OTPBay REST API: base URL, authentication, and conventions.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The OTPBay API is a JSON REST API. Every endpoint page has a playground: paste your API key and send a real request.`}),`\n`,_jsx(Heading,{level:`2`,id:`base-url`,children:`Base URL`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.otpbay.com/v1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`All requests use HTTPS.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`Send your project API key as a bearer token:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.otpbay.com/v1/project`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer otp_live_...\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),` to create a key and restrict it to your IP addresses.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Requests from the playground are real. They send real messages and charge your balance.`})}),`\n`,_jsx(Heading,{level:`2`,id:`endpoints`,children:`Endpoints`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/verify/start`,children:_jsx(_components.code,{children:`/verifications`})})}),_jsx(_components.td,{children:`Start a verification`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/verify/get`,children:_jsx(_components.code,{children:`/verifications/{sid}`})})}),_jsx(_components.td,{children:`Get a verification`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/verify/check`,children:_jsx(_components.code,{children:`/verifications/{sid}/check`})})}),_jsx(_components.td,{children:`Check a code`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/sms/send`,children:_jsx(_components.code,{children:`/messages/sms`})})}),_jsx(_components.td,{children:`Send an SMS`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/sms/get`,children:_jsx(_components.code,{children:`/messages/sms/{sid}`})})}),_jsx(_components.td,{children:`Get an SMS`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/telegram/send`,children:_jsx(_components.code,{children:`/messages/telegram`})})}),_jsx(_components.td,{children:`Send a Telegram code`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/telegram/get`,children:_jsx(_components.code,{children:`/messages/telegram/{sid}`})})}),_jsx(_components.td,{children:`Get a Telegram code`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/telegram/verify`,children:_jsx(_components.code,{children:`/messages/telegram/{sid}/verify`})})}),_jsx(_components.td,{children:`Verify a Telegram code`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/project/get`,children:_jsx(_components.code,{children:`/project`})})}),_jsx(_components.td,{children:`Get the project and its balance`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`conventions`,children:`Conventions`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requests`}),` are JSON with `,_jsx(_components.code,{children:`Content-Type: application/json`}),`. Unknown fields are rejected.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Phone numbers`}),` are international format and returned as E.164. See `,_jsx(_components.a,{href:`/concepts/formats`,children:`IDs and formats`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`IDs`}),` are `,_jsx(_components.code,{children:`sid`}),` strings with a type prefix: `,_jsx(_components.code,{children:`VE`}),`, `,_jsx(_components.code,{children:`SM`}),` or `,_jsx(_components.code,{children:`TG`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amounts`}),` are US dollar strings with two decimals, such as `,_jsx(_components.code,{children:`\"0.02\"`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Errors`}),` return `,_jsx(_components.code,{children:`{ \"error\": { \"code\", \"message\" } }`}),`. See `,_jsx(_components.a,{href:`/errors`,children:`Errors`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Webhooks`}),` send status updates to your `,_jsx(_components.code,{children:`callback`}),` URL. See `,_jsx(_components.a,{href:`/webhooks`,children:`Webhooks`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`openapi-specification`,children:`OpenAPI specification`}),`\n`,_jsxs(_components.p,{children:[`The full API is described in an OpenAPI 3.1 file, `,_jsx(_components.code,{children:`api-reference/openapi.yaml`}),`, in this documentation’s repository. Use it to generate a client or import the API into Postman or Insomnia.`]})]})}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":"API reference","sidebarTitle":"Introduction","description":"The OTPBay REST API: base URL, authentication, and conventions.","href":"/api-reference/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Base URL","slug":"base-url","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Endpoints","slug":"endpoints","depth":2,"children":[]},{"title":"Conventions","slug":"conventions","depth":2,"children":[]},{"title":"OpenAPI specification","slug":"openapi-specification","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"otplabs","siteName":"OTPBay","title":"API reference - OTPBay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-26T18:33:58.236Z","originalFileLocation":"api-reference/introduction.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The OTPBay REST API: base URL, authentication, and conventions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OTPBay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/otplabs/m_RD1oW66WwT2cnl/_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/otplabs/m_RD1oW66WwT2cnl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/otplabs/m_RD1oW66WwT2cnl/_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/otplabs/m_RD1oW66WwT2cnl/_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/otplabs/m_RD1oW66WwT2cnl/_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/otplabs/m_RD1oW66WwT2cnl/_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/otplabs/m_RD1oW66WwT2cnl/_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/otplabs/m_RD1oW66WwT2cnl/_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/otplabs/m_RD1oW66WwT2cnl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API reference - OTPBay\">\u003cmeta data-mint-head property=\"og:description\" content=\"The OTPBay REST API: base URL, authentication, and conventions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OTPBay Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.otpbay.com/api-reference/introduction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://otplabs.mintlify.site/_mintlify/api/og/v2?division=Overview\u0026amp;title=API+reference\u0026amp;description=The+OTPBay+REST+API%3A+base+URL%2C+authentication%2C+and+conventions.\u0026amp;theme=e356ee5661d14dccab2560c7\u0026amp;signature=4023efeac2a07bad2b5ec2849eec33ee05ebcd9973992114ec65d55f115006b0\">\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=\"API reference - OTPBay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The OTPBay REST API: base URL, authentication, and conventions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://otplabs.mintlify.site/_mintlify/api/og/v2?division=Overview\u0026amp;title=API+reference\u0026amp;description=The+OTPBay+REST+API%3A+base+URL%2C+authentication%2C+and+conventions.\u0026amp;theme=e356ee5661d14dccab2560c7\u0026amp;signature=4023efeac2a07bad2b5ec2849eec33ee05ebcd9973992114ec65d55f115006b0\">\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/otplabs/m_RD1oW66WwT2cnl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OTPBay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.otpbay.com/api-reference/introduction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/introduction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.otpbay.com/#organization\",\"name\":\"OTPBay\",\"url\":\"https://docs.otpbay.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/otplabs/8X-9M4_TQPcbQN7P/logo/light.svg?fit=max\u0026auto=format\u0026n=8X-9M4_TQPcbQN7P\u0026q=85\u0026s=6b4b1e93ed9af2e6c96dc1b134c943b4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.otpbay.com#website\",\"name\":\"OTPBay\",\"url\":\"https://docs.otpbay.com\",\"publisher\":{\"@id\":\"https://docs.otpbay.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.otpbay.com/api-reference/introduction#webpage\",\"url\":\"https://docs.otpbay.com/api-reference/introduction\",\"name\":\"API reference\",\"description\":\"The OTPBay REST API: base URL, authentication, and conventions.\",\"dateModified\":\"2026-09-26T18:33:58.236Z\",\"isPartOf\":{\"@id\":\"https://docs.otpbay.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.otpbay.com/api-reference/introduction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.otpbay.com/api-reference/introduction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"OTPBay\",\"item\":\"https://docs.otpbay.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API reference\",\"item\":\"https://docs.otpbay.com/api-reference/introduction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.otpbay.com/api-reference/introduction#article\",\"headline\":\"API reference\",\"name\":\"API reference\",\"description\":\"The OTPBay REST API: base URL, authentication, and conventions.\",\"url\":\"https://docs.otpbay.com/api-reference/introduction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.otpbay.com/api-reference/introduction#webpage\"},\"dateModified\":\"2026-09-26T18:33:58.236Z\",\"publisher\":{\"@id\":\"https://docs.otpbay.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.otpbay.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OTPBay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OTPBay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/introduction.md","siteName":"OTPBay","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://app.otpbay.com"},{"anchor":"Pricing","icon":"tag","href":"https://otpbay.com/#pricing"}]},"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","icon":"square-terminal","groups":[{"group":"Overview","pages":[{"title":"API reference","sidebarTitle":"Introduction","href":"/api-reference/introduction"}]},{"group":"Verify","pages":[{"openapi":"api-reference/openapi.yaml POST /verifications","title":"Start a verification","description":"Generates a code and sends it to `to` on the channel set in your project's Verify settings. When Telegram is the channel and SMS fallback is on, OTPBay switches to SMS if Telegram can't deliver or doesn't deliver within the fallback wait. Store the returned `sid` and pass it to [Check a code](/api-reference/verify/check) when the user enters the code.","href":"/api-reference/verify/start"},{"openapi":"api-reference/openapi.yaml GET /verifications/{sid}","title":"Get a verification","href":"/api-reference/verify/get"},{"openapi":"api-reference/openapi.yaml POST /verifications/{sid}/check","title":"Check a code","href":"/api-reference/verify/check"}]},{"group":"SMS","pages":[{"openapi":"api-reference/openapi.yaml POST /messages/sms","title":"Send an SMS","href":"/api-reference/sms/send"},{"openapi":"api-reference/openapi.yaml GET /messages/sms/{sid}","title":"Get an SMS","href":"/api-reference/sms/get"}]},{"group":"Telegram","pages":[{"openapi":"api-reference/openapi.yaml POST /messages/telegram","title":"Send a Telegram code","href":"/api-reference/telegram/send"},{"openapi":"api-reference/openapi.yaml GET /messages/telegram/{sid}","title":"Get a Telegram code","href":"/api-reference/telegram/get"},{"openapi":"api-reference/openapi.yaml POST /messages/telegram/{sid}/verify","title":"Verify a Telegram code","href":"/api-reference/telegram/verify"}]},{"group":"Project","pages":[{"openapi":"api-reference/openapi.yaml GET /project","title":"Get project","href":"/api-reference/project/get"}]},{"group":"Webhooks","pages":[{"openapi":"api-reference/openapi.yaml webhook statusUpdate","title":"Status webhook","href":"/api-reference/webhooks/status"}]}]}]},"basePath":"","title":"API reference - OTPBay","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}