{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OTPIQ Documentation","description":"Documentation for OTPIQ, this platform provide a robust documentations for OTPIQ.","colors":{"primary":"#ff4607","light":"#ff4607","dark":"#ff4607"},"logo":{"light":"https://mintcdn.com/otpiq-1357e998/3-VBVMjm43QBa28a/logo/light.svg?fit=max\u0026auto=format\u0026n=3-VBVMjm43QBa28a\u0026q=85\u0026s=9b624d5b3613b277ef5bdee89a8587c9","dark":"https://mintcdn.com/otpiq-1357e998/3-VBVMjm43QBa28a/logo/dark.svg?fit=max\u0026auto=format\u0026n=3-VBVMjm43QBa28a\u0026q=85\u0026s=6a0fecbd7d92706833062be734be6712"},"favicon":"https://mintcdn.com/otpiq-1357e998/3-VBVMjm43QBa28a/favicon.ico?fit=max\u0026auto=format\u0026n=3-VBVMjm43QBa28a\u0026q=85\u0026s=e5451ce4d987406ab23309bc6fb2cde5","navbar":{"links":[{"href":"mailto:info@otpiq.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.otpiq.com"}},"footer":{"socials":{"x":"https://x.com/otp_iq","github":"https://github.com/otpiq","linkedin":"https://www.linkedin.com/company/106088956"}},"contextual":{"options":["copy","view","chatgpt","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"otpiq-1357e998","hasAudioNarration":false,"actualSubdomain":"otpiq-1357e998","customDomains":["docs.otpiq.com"],"gitSource":{"type":"github","owner":"sarkarkurdish","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a534f9c3fa2eb468bd54efa","collectionId":"86fd766b-422c-4832-b6ea-050dce9d23c7","schemaVersion":"v3"},"entitlements":{},"buildId":"6a534f9c3fa2eb468bd54efa:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API reference","count":18},{"language":"default","tag":"Help Center","count":13},{"language":"default","tag":"WhatsApp Campaigns Endpoints","count":9},{"language":"default","tag":"Useful articles","count":6},{"language":"default","tag":"WhatsApp Business API","count":4},{"language":"default","tag":"Messaging \u0026 SMS Endpoints","count":3},{"language":"default","tag":"Delivery Reports Endpoints","count":2},{"language":"default","tag":"Getting started","count":2},{"language":"default","tag":"Project Endpoints","count":1},{"language":"default","tag":"API documentation","count":1}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/messaging/post","slug":"/api-reference/messaging/post","pageMetadata":{"title":"Send SMS","openapi":"POST /sms","description":"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.","href":"/api-reference/messaging/post"},"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: \"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send SMS","openapi":"POST /sms","description":"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.","href":"/api-reference/messaging/post"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["SMS"],"summary":"Send SMS","description":"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.","operationId":"sendSMS","security":["adac74e6-5086-4949-9f70-b3e23bf2a882"],"requestBody":"ba9a620d-9331-4fe9-a6e5-7fbed1399d11","responses":{"200":"7ad118d0-62b6-4dfc-9fd3-d02d34513044","400":"fef1f1fc-b6a6-4a3b-9419-b874c97a9dbe","401":"cf97b507-55b1-4347-b636-f20853f40644","429":"4b84b389-c680-49c9-a14d-4e28f223f503","500":"78ce457c-398f-4d77-80c9-7521d22d0e40"},"method":"post","type":"path","servers":["52cb902f-1ed2-4da5-aa4a-043ad9246f14"],"path":"/sms","baseUrlOptions":["https://api.otpiq.com/api"],"title":"Send SMS","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"SMS request parameters. First select smsType; inputs show/hide accordingly.","required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Verification Message","required":["smsType","phoneNumber","verificationCode"],"properties":{"phoneNumber":{"type":"string","description":"Phone number in international format without + (e.g., 964750123456)","pattern":"^[0-9]{10,15}$","examples":["964750123456"],"isRequired":true,"uniqueKey":"oneOf.0.phoneNumber","typeLabel":"string"},"smsType":{"type":"string","description":"Must be set to \"verification\" for sending verification codes. This value determines the message type and required fields.","isRequired":true,"uniqueKey":"oneOf.0.smsType","typeLabel":"string"},"verificationCode":{"type":"string","description":"Verification code to send","minLength":1,"maxLength":20,"examples":["123456"],"isRequired":true,"uniqueKey":"oneOf.0.verificationCode","typeLabel":"string"},"senderId":{"type":"string","description":"Optional sender ID to use for the message","maxLength":11,"examples":["OTPIQ"],"uniqueKey":"oneOf.0.senderId","typeLabel":"string"},"whatsappAccountId":{"type":"string","description":"Optional WhatsApp Business Account ID for using custom WhatsApp sender","examples":["68c46fecc509cdcec8fb3ef2"],"uniqueKey":"oneOf.0.whatsappAccountId","typeLabel":"string"},"whatsappPhoneId":{"type":"string","description":"Optional WhatsApp Phone Number ID for using custom WhatsApp sender","examples":["68da31fb518ac3db3eb0a0f4"],"uniqueKey":"oneOf.0.whatsappPhoneId","typeLabel":"string"},"templateName":{"type":"string","description":"Optional WhatsApp template name for using custom WhatsApp sender","examples":["verification_template"],"uniqueKey":"oneOf.0.templateName","typeLabel":"string"},"provider":{"type":"string","enum":["auto","whatsapp-sms","telegram-sms","whatsapp-telegram-sms","sms","whatsapp","telegram"],"description":"Provider/channel to use","default":"auto","examples":["whatsapp-sms"],"uniqueKey":"oneOf.0.provider","typeLabel":"enum\u003cstring>"},"deliveryReport":{"description":"Optional webhook delivery report configuration","type":"object","properties":{"webhookUrl":{"type":"string","format":"uri","description":"The HTTPS URL where delivery status updates will be sent","examples":["https://your-app.com/webhooks/sms-status"],"uniqueKey":"oneOf.0.deliveryReport.webhookUrl","typeLabel":"string\u003curi>"},"deliveryReportType":{"type":"string","enum":["all","final"],"description":"Controls when webhooks are triggered","default":"all","uniqueKey":"oneOf.0.deliveryReport.deliveryReportType","typeLabel":"enum\u003cstring>"},"webhookSecret":{"type":"string","description":"Optional secret key for webhook authentication","minLength":1,"maxLength":200,"pattern":"^[\\w!#$%\u0026'*+\\-.^_`|~]+$","examples":["your_webhook_secret_123"],"uniqueKey":"oneOf.0.deliveryReport.webhookSecret","typeLabel":"string"}},"uniqueKey":"oneOf.0.deliveryReport","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"Verification Message · object"},{"type":"object","title":"Custom Message","required":["smsType","phoneNumber","customMessage"],"properties":{"phoneNumber":{"type":"string","description":"Phone number in international format without + (e.g., 964750123456)","pattern":"^[0-9]{10,15}$","examples":["964750123456"],"isRequired":true,"uniqueKey":"oneOf.1.phoneNumber","typeLabel":"string"},"smsType":{"type":"string","description":"Must be set to \"custom\" for sending custom messages with your own content. This value determines the message type and required fields.","isRequired":true,"uniqueKey":"oneOf.1.smsType","typeLabel":"string"},"customMessage":{"type":"string","description":"Custom message to send","maxLength":1000,"examples":["Your order #12345 has been confirmed. Thank you for your purchase!"],"isRequired":true,"uniqueKey":"oneOf.1.customMessage","typeLabel":"string"},"senderId":{"type":"string","description":"Optional sender ID to use for the message","maxLength":11,"examples":["OTPIQ"],"uniqueKey":"oneOf.1.senderId","typeLabel":"string"},"whatsappAccountId":{"type":"string","description":"Optional WhatsApp Business Account ID for using custom WhatsApp sender","examples":["68c46fecc509cdcec8fb3ef2"],"uniqueKey":"oneOf.1.whatsappAccountId","typeLabel":"string"},"whatsappPhoneId":{"type":"string","description":"Optional WhatsApp Phone Number ID for using custom WhatsApp sender","examples":["68da31fb518ac3db3eb0a0f4"],"uniqueKey":"oneOf.1.whatsappPhoneId","typeLabel":"string"},"templateName":{"type":"string","description":"Optional WhatsApp template name for using custom WhatsApp sender","examples":["custom_template"],"uniqueKey":"oneOf.1.templateName","typeLabel":"string"},"provider":{"type":"string","enum":["auto","whatsapp-sms","telegram-sms","whatsapp-telegram-sms","sms","whatsapp","telegram"],"description":"Provider/channel to use","default":"auto","examples":["sms"],"uniqueKey":"oneOf.1.provider","typeLabel":"enum\u003cstring>"},"deliveryReport":{"description":"Optional webhook delivery report configuration","type":"object","properties":{"webhookUrl":{"type":"string","format":"uri","description":"The HTTPS URL where delivery status updates will be sent","examples":["https://your-app.com/webhooks/sms-status"],"uniqueKey":"oneOf.1.deliveryReport.webhookUrl","typeLabel":"string\u003curi>"},"deliveryReportType":{"type":"string","enum":["all","final"],"description":"Controls when webhooks are triggered","default":"all","uniqueKey":"oneOf.1.deliveryReport.deliveryReportType","typeLabel":"enum\u003cstring>"},"webhookSecret":{"type":"string","description":"Optional secret key for webhook authentication","minLength":1,"maxLength":200,"pattern":"^[\\w!#$%\u0026'*+\\-.^_`|~]+$","examples":["your_webhook_secret_123"],"uniqueKey":"oneOf.1.deliveryReport.webhookSecret","typeLabel":"string"}},"uniqueKey":"oneOf.1.deliveryReport","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"Custom Message · object"},{"type":"object","title":"WhatsApp Template Message","required":["smsType","phoneNumber","templateName","whatsappAccountId","whatsappPhoneId"],"properties":{"phoneNumber":{"type":"string","description":"Phone number in international format without + (e.g., 964750123456)","pattern":"^[0-9]{10,15}$","examples":["964750123456"],"isRequired":true,"uniqueKey":"oneOf.2.phoneNumber","typeLabel":"string"},"smsType":{"type":"string","description":"Must be set to \"whatsapp-template\" for sending WhatsApp template messages. This value determines the message type and required fields.","isRequired":true,"uniqueKey":"oneOf.2.smsType","typeLabel":"string"},"templateName":{"type":"string","description":"WhatsApp template name","examples":["template_name"],"isRequired":true,"uniqueKey":"oneOf.2.templateName","typeLabel":"string"},"whatsappAccountId":{"type":"string","description":"WhatsApp Business Account ID","examples":["68c46fecc509cdcec8fb3ef2"],"isRequired":true,"uniqueKey":"oneOf.2.whatsappAccountId","typeLabel":"string"},"whatsappPhoneId":{"type":"string","description":"WhatsApp Phone Number ID","examples":["68da31fb518ac3db3eb0a0f4"],"isRequired":true,"uniqueKey":"oneOf.2.whatsappPhoneId","typeLabel":"string"},"senderId":{"type":"string","description":"Optional sender ID to use for the message","maxLength":11,"examples":["OTPIQ"],"uniqueKey":"oneOf.2.senderId","typeLabel":"string"},"provider":{"type":"string","enum":["auto","whatsapp-sms","telegram-sms","whatsapp-telegram-sms","sms","whatsapp","telegram"],"description":"Provider/channel to use","default":"auto","examples":["whatsapp"],"uniqueKey":"oneOf.2.provider","typeLabel":"enum\u003cstring>"},"deliveryReport":{"description":"Optional webhook delivery report configuration","type":"object","properties":{"webhookUrl":{"type":"string","format":"uri","description":"The HTTPS URL where delivery status updates will be sent","examples":["https://your-app.com/webhooks/sms-status"],"uniqueKey":"oneOf.2.deliveryReport.webhookUrl","typeLabel":"string\u003curi>"},"deliveryReportType":{"type":"string","enum":["all","final"],"description":"Controls when webhooks are triggered","default":"all","uniqueKey":"oneOf.2.deliveryReport.deliveryReportType","typeLabel":"enum\u003cstring>"},"webhookSecret":{"type":"string","description":"Optional secret key for webhook authentication","minLength":1,"maxLength":200,"pattern":"^[\\w!#$%\u0026'*+\\-.^_`|~]+$","examples":["your_webhook_secret_123"],"uniqueKey":"oneOf.2.deliveryReport.webhookSecret","typeLabel":"string"}},"uniqueKey":"oneOf.2.deliveryReport","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"WhatsApp Template Message · object"}],"uniqueKey":"","typeLabel":"Verification Message · object | Custom Message · object | WhatsApp Template Message · object"},"examples":{"Example":{"title":"Example","value":{"phoneNumber":"964750123456","smsType":"\u003cstring>","verificationCode":"123456","senderId":"OTPIQ","whatsappAccountId":"68c46fecc509cdcec8fb3ef2","whatsappPhoneId":"68da31fb518ac3db3eb0a0f4","templateName":"verification_template","provider":"whatsapp-sms","deliveryReport":{"webhookUrl":"https://your-app.com/webhooks/sms-status","deliveryReportType":"all","webhookSecret":"your_webhook_secret_123"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"7ad118d0-62b6-4dfc-9fd3-d02d34513044":{"description":"SMS sent successfully. Response body includes: message (string), smsId (string), remainingCredit (number), cost (number), canCover (boolean), paymentType ('prepaid' | 'postpaid').","content":{"application/json":{"schema":{"type":"object","required":["message","smsId","remainingCredit","cost","canCover","paymentType"],"properties":{"message":{"type":"string","description":"Success message","examples":["SMS task created successfully"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"},"smsId":{"type":"string","description":"Unique identifier for the SMS message","pattern":"^sms-[a-f0-9]{24}$","examples":["sms-1234567890abcdef123456"],"isRequired":true,"uniqueKey":"smsId","typeLabel":"string"},"remainingCredit":{"type":"number","description":"Remaining credit balance after the transaction","minimum":0,"examples":[14800],"isRequired":true,"uniqueKey":"remainingCredit","typeLabel":"number"},"cost":{"type":"number","description":"Cost of the SMS in IQD","minimum":0,"examples":[200],"isRequired":true,"uniqueKey":"cost","typeLabel":"number"},"canCover":{"type":"boolean","description":"Whether the user has sufficient credit to cover the cost","examples":[true],"isRequired":true,"uniqueKey":"canCover","typeLabel":"boolean"},"paymentType":{"type":"string","enum":["prepaid","postpaid"],"description":"Payment type of the user account","examples":["prepaid"],"isRequired":true,"uniqueKey":"paymentType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"success":{"title":"success","value":{"message":"SMS task created successfully","smsId":"sms-1234567890abcdef123456","remainingCredit":14800,"cost":200,"canCover":true,"paymentType":"prepaid"}}},"exampleType":"examples"}},"exampleType":"examples"},"fef1f1fc-b6a6-4a3b-9419-b874c97a9dbe":{"description":"Bad request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Validation error message","examples":["Phone must be a valid number without any spaces or special characters.","Invalid sms type.","When smsType is custom, you must provide (customMessage)","Verification code must be between 1 and 20 characters long.","When smsType is whatsapp-template, you must provide (templateName)","When smsType is whatsapp-template, you must provide (whatsappAccountId)","When smsType is whatsapp-template, you must provide (whatsappPhoneId)","Invalid provider."],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["error","yourCredit","requiredCredit","canCover"],"properties":{"error":{"type":"string","description":"Error message","examples":["Insufficient credit, please add more credit"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"string"},"yourCredit":{"type":"number","description":"Current credit balance","minimum":0,"examples":[100],"isRequired":true,"uniqueKey":"oneOf.1.yourCredit","typeLabel":"number"},"requiredCredit":{"type":"number","description":"Credit required for the transaction","minimum":0,"examples":[200],"isRequired":true,"uniqueKey":"oneOf.1.requiredCredit","typeLabel":"number"},"canCover":{"type":"boolean","description":"Whether the user can cover the cost","examples":[false],"isRequired":true,"uniqueKey":"oneOf.1.canCover","typeLabel":"boolean"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["error","currentSpending","spendingThreshold","cost"],"properties":{"error":{"type":"string","description":"Error message","examples":["Project spending threshold of 10,000 IQD would be exceeded. Current spending: 9,500 IQD"],"isRequired":true,"uniqueKey":"oneOf.2.error","typeLabel":"string"},"currentSpending":{"type":"number","description":"Current spending for the project","minimum":0,"examples":[9500],"isRequired":true,"uniqueKey":"oneOf.2.currentSpending","typeLabel":"number"},"spendingThreshold":{"type":"number","description":"Spending threshold for the project","minimum":0,"examples":[10000],"isRequired":true,"uniqueKey":"oneOf.2.spendingThreshold","typeLabel":"number"},"cost":{"type":"number","description":"Cost of the transaction","minimum":0,"examples":[200],"isRequired":true,"uniqueKey":"oneOf.2.cost","typeLabel":"number"}},"uniqueKey":"oneOf.2","typeLabel":"object"},{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","examples":["SenderID not found","SenderID is not accepted, please wait for it to be accepted"],"isRequired":true,"uniqueKey":"oneOf.3.error","typeLabel":"string"}},"uniqueKey":"oneOf.3","typeLabel":"object"},{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","examples":["Account is in trial mode, you can only send sms to your own phone number for verification, add credit to send to other numbers"],"isRequired":true,"uniqueKey":"oneOf.4.error","typeLabel":"string"}},"uniqueKey":"oneOf.4","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"validation":{"title":"validation","value":{"error":"Phone must be a valid number without any spaces or special characters."}},"insufficient_credit":{"title":"insufficient_credit","value":{"error":"Insufficient credit, please add more credit","yourCredit":100,"requiredCredit":200,"canCover":false}},"spending_threshold":{"title":"spending_threshold","value":{"error":"Project spending threshold of 10,000 IQD would be exceeded. Current spending: 9,500 IQD","currentSpending":9500,"spendingThreshold":10000,"cost":200}}},"exampleType":"examples"}},"exampleType":"examples"},"cf97b507-55b1-4347-b636-f20853f40644":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Unauthorized error message","examples":["Unauthorized, please use your project api key"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Unauthorized, please use your project api key"}}},"exampleType":"generated"}},"exampleType":"generated"},"4b84b389-c680-49c9-a14d-4e28f223f503":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","required":["message","waitMinutes","maxRequests","timeWindowMinutes"],"properties":{"message":{"type":"string","description":"Rate limit error message","examples":["Rate limit exceeded. Please try again in 8 minutes. Maximum 10 requests allowed per phone number in 10 minutes."],"isRequired":true,"uniqueKey":"message","typeLabel":"string"},"waitMinutes":{"type":"number","description":"Minutes to wait before retrying","minimum":0,"examples":[8],"isRequired":true,"uniqueKey":"waitMinutes","typeLabel":"number"},"maxRequests":{"type":"number","description":"Maximum requests allowed","minimum":1,"examples":[10],"isRequired":true,"uniqueKey":"maxRequests","typeLabel":"number"},"timeWindowMinutes":{"type":"number","description":"Time window in minutes","minimum":1,"examples":[10],"isRequired":true,"uniqueKey":"timeWindowMinutes","typeLabel":"number"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rate_limit":{"title":"rate_limit","value":{"message":"Rate limit exceeded. Please try again in 8 minutes. Maximum 10 requests allowed per phone number in 10 minutes.","waitMinutes":8,"maxRequests":10,"timeWindowMinutes":10}}},"exampleType":"examples"}},"exampleType":"examples"},"78ce457c-398f-4d77-80c9-7521d22d0e40":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Internal server error message","examples":["Internal server error"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Internal server error"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"adac74e6-5086-4949-9f70-b3e23bf2a882":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Project API key (`sk_live…` or `sk_dev…`). Send it as `Authorization: Bearer \u003capi_key>`.","scopes":[]}}},"servers":{"52cb902f-1ed2-4da5-aa4a-043ad9246f14":{"url":"https://api.otpiq.com/api","description":"Production API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Project API key (`sk_live…` or `sk_dev…`). Send it as `Authorization: Bearer \u003capi_key>`.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Project API key (`sk_live…` or `sk_dev…`). Send it as `Authorization: Bearer \u003capi_key>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"otpiq-1357e998","siteName":"OTPIQ Documentation","title":"Send SMS - OTPIQ Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/messaging/post.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=\"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OTPIQ Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/otpiq-1357e998/1JzE0wbYZphf8Bey/_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/otpiq-1357e998/1JzE0wbYZphf8Bey/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/otpiq-1357e998/1JzE0wbYZphf8Bey/_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/otpiq-1357e998/1JzE0wbYZphf8Bey/_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/otpiq-1357e998/1JzE0wbYZphf8Bey/_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/otpiq-1357e998/1JzE0wbYZphf8Bey/_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/otpiq-1357e998/1JzE0wbYZphf8Bey/_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/otpiq-1357e998/1JzE0wbYZphf8Bey/_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/otpiq-1357e998/1JzE0wbYZphf8Bey/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send SMS - OTPIQ Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OTPIQ Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.otpiq.com/api-reference/messaging/post\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://otpiq-1357e998.mintlify.app/_mintlify/api/og/v2?division=Messaging+%26+SMS+Endpoints\u0026amp;title=Send+SMS\u0026amp;description=Send+an+SMS+message.+Supports+both+verification+codes+and+custom+messages+with+multiple+provider+options.\u0026amp;theme=e42692449f8ea3db087586d1\u0026amp;signature=34514ae33ae4f8a766f5d4d5c9b468403373bd369cf95ee573731cacde2991c0\">\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=\"Send SMS - OTPIQ Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://otpiq-1357e998.mintlify.app/_mintlify/api/og/v2?division=Messaging+%26+SMS+Endpoints\u0026amp;title=Send+SMS\u0026amp;description=Send+an+SMS+message.+Supports+both+verification+codes+and+custom+messages+with+multiple+provider+options.\u0026amp;theme=e42692449f8ea3db087586d1\u0026amp;signature=34514ae33ae4f8a766f5d4d5c9b468403373bd369cf95ee573731cacde2991c0\">\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/otpiq-1357e998/1JzE0wbYZphf8Bey/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OTPIQ Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff4607\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.otpiq.com/api-reference/messaging/post\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/messaging/post.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.otpiq.com/#organization\",\"name\":\"OTPIQ Documentation\",\"url\":\"https://docs.otpiq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/otpiq-1357e998/3-VBVMjm43QBa28a/logo/light.svg?fit=max\u0026auto=format\u0026n=3-VBVMjm43QBa28a\u0026q=85\u0026s=9b624d5b3613b277ef5bdee89a8587c9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.otpiq.com#website\",\"name\":\"OTPIQ Documentation\",\"url\":\"https://docs.otpiq.com\",\"publisher\":{\"@id\":\"https://docs.otpiq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.otpiq.com/api-reference/messaging/post#webpage\",\"url\":\"https://docs.otpiq.com/api-reference/messaging/post\",\"name\":\"Send SMS\",\"description\":\"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.\",\"isPartOf\":{\"@id\":\"https://docs.otpiq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.otpiq.com/api-reference/messaging/post#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.otpiq.com/api-reference/messaging/post#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"OTPIQ Documentation\",\"item\":\"https://docs.otpiq.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send SMS\",\"item\":\"https://docs.otpiq.com/api-reference/messaging/post\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.otpiq.com/api-reference/messaging/post#apireference\",\"headline\":\"Send SMS\",\"name\":\"Send SMS\",\"description\":\"Send an SMS message. Supports both verification codes and custom messages with multiple provider options.\",\"url\":\"https://docs.otpiq.com/api-reference/messaging/post\",\"mainEntityOfPage\":{\"@id\":\"https://docs.otpiq.com/api-reference/messaging/post#webpage\"},\"publisher\":{\"@id\":\"https://docs.otpiq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.otpiq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OTPIQ Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OTPIQ Documentation","nav":{"global":null,"tabs":[{"tab":"Help Center","pages":[{"title":"Help Center","href":""}]},{"tab":"API reference","groups":[{"group":"API documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Project Endpoints","pages":[{"title":"Get Project Info","openapi":"GET /info","description":"Retrieve information about the authenticated project including remaining credits and project details.","href":"/api-reference/endpoint/get"}]},{"group":"Messaging \u0026 SMS Endpoints","pages":[{"title":"Send SMS","openapi":"POST /sms","href":"/api-reference/messaging/post"},{"title":"Track SMS","openapi":"GET /sms/track/{smsId}","description":"Get the delivery status of a specific SMS message.","href":"/api-reference/messaging/track"},{"title":"International SMS Pricing","openapi":"GET /international-sms-pricing","href":"/api-reference/messaging/international-sms-pricing"}]},{"group":"Sender ID Endpoints","pages":[{"title":"Get Sender IDs","openapi":"GET /sender-ids","href":"/api-reference/sender-id/get"}]},{"group":"Delivery Reports Endpoints","pages":[{"title":"Generate Delivery Report","openapi":"POST /reports/generate","href":"/api-reference/reports/generate"},{"title":"List Delivery Reports","openapi":"GET /reports","href":"/api-reference/reports/list"}]},{"group":"WhatsApp Endpoints","pages":[{"title":"List WhatsApp Resources","openapi":"GET /whatsapp/resources","href":"/api-reference/whatsapp/resources"}]},{"group":"WhatsApp Campaigns Endpoints","pages":[{"title":"Create Campaign","openapi":"POST /whatsapp/campaigns","href":"/api-reference/whatsapp/campaigns/create"},{"title":"Get Recipient Schema","openapi":"GET /whatsapp/campaigns/recipient-payload","href":"/api-reference/whatsapp/campaigns/get-recipient-payload"},{"title":"Attach Recipients","openapi":"POST /whatsapp/campaigns/{_id}/recipients","href":"/api-reference/whatsapp/campaigns/attach-recipients"},{"title":"Send Sample","openapi":"POST /whatsapp/campaigns/{_id}/sample","href":"/api-reference/whatsapp/campaigns/send-sample"},{"title":"Start Campaign","openapi":"POST /whatsapp/campaigns/{_id}/start","href":"/api-reference/whatsapp/campaigns/start"},{"title":"List Campaigns","openapi":"GET /whatsapp/campaigns","href":"/api-reference/whatsapp/campaigns/list"},{"title":"Get Campaign Details","openapi":"GET /whatsapp/campaigns/{_id}","href":"/api-reference/whatsapp/campaigns/get"},{"title":"Update Campaign","openapi":"PATCH /whatsapp/campaigns/{_id}","href":"/api-reference/whatsapp/campaigns/update"},{"title":"Delete Campaign","openapi":"DELETE /whatsapp/campaigns/{_id}","href":"/api-reference/whatsapp/campaigns/delete"}]}]}]},"basePath":"","title":"Send SMS - OTPIQ Documentation","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}