Use this endpoint to read the balance for the active QuickSend SMS integration in the selected project environment. The result depends on how that integration was configured.
Live Testing Guide: Before using Try it, create a Development project, then enter its Client ID and Client Secret. Configure the relevant provider for that project before sending the request.
API endpoint
POST
https://avraapi.com/api/v1/sms/balance
Request fields
This endpoint accepts an empty JSON object. AvraAPI resolves the configured SMS integration from your Project Client ID and X-ENV.
Field
Required
Rules
None
No
Send {} when your HTTP client requires a JSON body.
Outside the documentation Playground, keep the Project Client Secret on your backend. This endpoint is read-only and does not deduct AvraAPI credits.
Result fields
Field
Type
Notes
source
string
apix_wallet for a Managed integration, or quicksend_direct for a Manual (BYOK) integration.
balance_formatted
string
A human-readable balance value for the reported source.
provider_response
object
Present only for Manual (BYOK) integrations. It contains the provider’s balance response.
For a Managed integration, balance_formatted is the AvraAPI wallet balance in API credits. 1 USD equals 1,000,000 API credits. For a Manual (BYOK) integration, the balance is read from the connected QuickSend account and remains provider-formatted.
Credentials are missing, invalid, inactive, or do not match the selected environment.
Check your backend secret configuration and X-ENV.
422
provider_selection_failed
No active QuickSend SMS integration can be selected for the project environment.
Configure or enable the QuickSend integration for the selected environment.
422
http_error
The active SMS integration is incomplete or its Manual (BYOK) credentials cannot be used.
Recheck the integration setup and credentials before retrying.
429
rate_limit_exceeded
The configured request limit was reached.
Respect Retry-After when present; do not retry in a tight loop.
500
internal_error
The balance check could not complete unexpectedly.
Retry only if your workflow permits it, retaining the request ID.
503
http_error
QuickSend could not be reached for a Manual (BYOK) balance check.
Retry later; a Managed balance does not call QuickSend.
503
project_paused
The project is paused.
Reactivate the project before retrying.
Keep the JSON request_id or X-APIX-Request-ID response header with your support record. It is the safest way for AvraAPI support to trace a request.
See the REST API guide for shared credential, privacy, and error-handling guidance.
Playground resources
The generated reference below lists this endpoint’s API standard details: request fields, authorizations, and response schema. The complete integration guide, request and response examples, and endpoint-specific error handling are above.
Authorizations
X-API-KEY
string
header
required
Your Development project's Client ID. Enter your own value in the Documentation Playground.
X-API-SECRET
string
header
required
Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.
Headers
X-ENV
enum<string>
default:development
Selects the Development credential environment. The Documentation Playground exposes Development values only; normal backend integrations may use their documented Production credentials outside this tool.
Available options:
dev,
development
Accept
string
Requests a JSON response where the selected operation supports JSON.
Example:
"application/json"
X-Privacy-Mode
boolean
default:false
Optional privacy override. Turn this on to request that AvraAPI suppress request-payload storage in observability logs for this request.
Example:
true
Body
application/json
The body is of type object.
Response
Balance associated with the selected SMS integration.
success
enum<boolean>
required
Available options:
true
request_id
string<uuid>
required
Include this value when contacting AvraAPI support.
data
object
required
Operation-specific result data.
Show child attributes
Last modified on October 1, 2026
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"AvraAPI","description":"Official AvraAPI documentation for backend SDKs, microservice APIs, and Universal Payment Gateway integrations.","colors":{"primary":"#0450ff","light":"#3b82f6","dark":"#3b82f6"},"logo":{"light":"https://mintcdn.com/avraapi/m_1aZj30iaDgR5ok/logo/light.png?fit=max\u0026auto=format\u0026n=m_1aZj30iaDgR5ok\u0026q=85\u0026s=1e1ee08fd48f0cd836a53ca3afbcac7c","dark":"https://mintcdn.com/avraapi/m_1aZj30iaDgR5ok/logo/dark.svg?fit=max\u0026auto=format\u0026n=m_1aZj30iaDgR5ok\u0026q=85\u0026s=99972ab69fe3ea2a8c60fa0292dca4de"},"favicon":"https://mintcdn.com/avraapi/CI9RHnUBtfjY8Z3E/favicon.ico?fit=max\u0026auto=format\u0026n=CI9RHnUBtfjY8Z3E\u0026q=85\u0026s=06fc4ebdc219a34f50b1f571702dc728","api":{"playground":{"display":"interactive","proxy":false,"credentials":false},"examples":{"defaults":"required","languages":["curl","javascript","php"],"prefill":true}},"search":{"prompt":"Search AvraAPI documentation..."},"seo":{"metatags":{"canonical":"https://docs.avraapi.com","robots":"index, follow","googlebot":"index, follow","og:site_name":"AvraAPI","og:locale":"en_US","twitter:card":"summary_large_image","theme-color":"#0450ff"},"organization":{"id":"https://avraapi.com/#organization","name":"AvraAPI","legalName":"Fidex Developers (Pvt) Ltd","url":"https://avraapi.com","logo":"https://docs.avraapi.com/logo/light.png"},"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"avraapi","hasAudioNarration":false,"actualSubdomain":"avraapi","customDomains":["docs.avraapi.com"],"gitSource":{"type":"github","owner":"avraapi","repo":"apix","deployBranch":"feature/universal_payment_gateway","contentDirectory":"docs/mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6abefef58bbeefc99d396eb1","clientVersion":"0.0.4277","searchFilterCounts":[{"language":"default","tag":"SDK Documentation","count":25},{"language":"default","tag":"Advanced Services","count":23},{"language":"default","tag":"Universal Payment Gateway","count":18},{"language":"default","tag":"REST API Reference","count":16},{"language":"default","tag":"Information \u0026 Guides","count":13},{"language":"default","tag":"Gateway-wise Functions","count":9},{"language":"default","tag":"Laravel SDK (v1.2.0)","count":8},{"language":"default","tag":"Node.js SDK (v1.2.0)","count":8},{"language":"default","tag":"PHP SDK (v1.5.2)","count":8},{"language":"default","tag":"Getting Started","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"info@avraapi.com"}},"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":[{"filePath":"images/payment-elements/playground.css","href":"/_mintlify/custom/avraapi/c9c507745cea4af5/images/payment-elements/playground.css"}]}
{"page":{"pagePath":"api-reference/sms/balance","slug":"/api-reference/sms/balance","pageMetadata":{"title":"Check SMS balance","description":"Read the balance associated with the configured QuickSend SMS integration.","openapi":"api-reference/provider-api.openapi.yaml POST /sms/balance","playground":"interactive","href":"/api-reference/sms/balance"},"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: \"Read the balance associated with the configured QuickSend SMS integration.\"\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`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use this endpoint to read the balance for the active QuickSend SMS integration in the selected project environment. The result depends on how that integration was configured.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Live Testing Guide:`}),` Before using `,_jsx(_components.strong,{children:`Try it`}),`, create a Development project, then enter its `,_jsx(_components.strong,{children:`Client ID`}),` and `,_jsx(_components.strong,{children:`Client Secret`}),`. Configure the relevant provider for that project before sending the request.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`api-endpoint`,children:`API endpoint`}),`\n`,_jsx(CodeBlock,{filename:`POST`,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://avraapi.com/api/v1/sms/balance`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`request-fields`,children:`Request fields`}),`\n`,_jsxs(_components.p,{children:[`This endpoint accepts an empty JSON object. AvraAPI resolves the configured SMS integration from your Project Client ID and `,_jsx(_components.code,{children:`X-ENV`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Rules`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.em,{children:`None`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Send `,_jsx(_components.code,{children:`{}`}),` when your HTTP client requires a JSON body.`]})]})})]}),`\n`,_jsx(_components.p,{children:`Outside the documentation Playground, keep the Project Client Secret on your backend. This endpoint is read-only and does not deduct AvraAPI credits.`}),`\n`,_jsx(Heading,{level:`2`,id:`result-fields`,children:`Result fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`apix_wallet`}),` for a Managed integration, or `,_jsx(_components.code,{children:`quicksend_direct`}),` for a Manual (BYOK) integration.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`balance_formatted`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`A human-readable balance value for the reported source.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provider_response`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Present only for Manual (BYOK) integrations. It contains the provider’s balance response.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`For a Managed integration, `,_jsx(_components.code,{children:`balance_formatted`}),` is the AvraAPI wallet balance in API credits. `,_jsx(_components.strong,{children:`1 USD equals 1,000,000 API credits`}),`. For a Manual (BYOK) integration, the balance is read from the connected QuickSend account and remains provider-formatted.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-example`,children:`Request example`}),`\n`,_jsx(CodeBlock,{filename:`curl`,numberOfLines:`7`,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:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://avraapi.com/api/v1/sms/balance\"`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-KEY: YOUR_PROJECT_CLIENT_ID\"`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-SECRET: YOUR_PROJECT_CLIENT_SECRET\"`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-ENV: development\"`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Accept: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response-example-—-manual-byok`,children:`Response example — Manual (BYOK)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,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:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7a5b17fa-0716-45e1-b109-378322b8769f\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quicksend_direct\"`}),_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:` \"balance_formatted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"473.52\"`}),_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:` \"provider_response\"`}),_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:` \"balance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"473.52\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response-example-—-managed`,children:`Response example — Managed`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,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:`8`,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:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3251caf2-3d8a-4232-a1fb-b4cfc4846888\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"apix_wallet\"`}),_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:` \"balance_formatted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"285,417,005 credits\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`When it happens`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`unauthorized`})})}),_jsx(_components.td,{children:`Credentials are missing, invalid, inactive, or do not match the selected environment.`}),_jsxs(_components.td,{children:[`Check your backend secret configuration and `,_jsx(_components.code,{children:`X-ENV`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`provider_selection_failed`})})}),_jsx(_components.td,{children:`No active QuickSend SMS integration can be selected for the project environment.`}),_jsx(_components.td,{children:`Configure or enable the QuickSend integration for the selected environment.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`http_error`})})}),_jsx(_components.td,{children:`The active SMS integration is incomplete or its Manual (BYOK) credentials cannot be used.`}),_jsx(_components.td,{children:`Recheck the integration setup and credentials before retrying.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`rate_limit_exceeded`})})}),_jsx(_components.td,{children:`The configured request limit was reached.`}),_jsxs(_components.td,{children:[`Respect `,_jsx(_components.code,{children:`Retry-After`}),` when present; do not retry in a tight loop.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`internal_error`})})}),_jsx(_components.td,{children:`The balance check could not complete unexpectedly.`}),_jsx(_components.td,{children:`Retry only if your workflow permits it, retaining the request ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`http_error`})})}),_jsx(_components.td,{children:`QuickSend could not be reached for a Manual (BYOK) balance check.`}),_jsx(_components.td,{children:`Retry later; a Managed balance does not call QuickSend.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(`span`,{style:{whiteSpace:`nowrap`},children:_jsx(`code`,{children:`project_paused`})})}),_jsx(_components.td,{children:`The project is paused.`}),_jsx(_components.td,{children:`Reactivate the project before retrying.`})]})]})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Keep the JSON `,_jsx(_components.code,{children:`request_id`}),` or `,_jsx(_components.code,{children:`X-APIX-Request-ID`}),` response header with your support record. It is the safest way for AvraAPI support to trace a request.`]})}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/api-reference/rest-api`,children:`REST API guide`}),` for shared credential, privacy, and error-handling guidance.`]}),`\n`,_jsx(Heading,{level:`2`,id:`playground-resources`,children:`Playground resources`}),`\n`,_jsx(_components.p,{children:`The generated reference below lists this endpoint’s API standard details: request fields, authorizations, and response schema. The complete integration guide, request and response examples, and endpoint-specific error handling are above.`})]})}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":"Check SMS balance","description":"Read the balance associated with the configured QuickSend SMS integration.","openapi":"api-reference/provider-api.openapi.yaml POST /sms/balance","playground":"interactive","href":"/api-reference/sms/balance"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API endpoint","slug":"api-endpoint","depth":2,"children":[]},{"title":"Request fields","slug":"request-fields","depth":2,"children":[]},{"title":"Result fields","slug":"result-fields","depth":2,"children":[]},{"title":"Request example","slug":"request-example","depth":2,"children":[]},{"title":"Response example — Manual (BYOK)","slug":"response-example-—-manual-byok","depth":2,"children":[]},{"title":"Response example — Managed","slug":"response-example-—-managed","depth":2,"children":[]},{"title":"Error codes","slug":"error-codes","depth":2,"children":[]},{"title":"Playground resources","slug":"playground-resources","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/avraapi/ec3b4381e9d0c5d2/images/payment-elements/playground.js"],"openApiReferenceData":{"operation":{"tags":["SMS"],"operationId":"checkSmsBalance","summary":"Check SMS balance","description":"Read the balance associated with the configured QuickSend SMS integration.","x-avraapi-operation-classification":"interactive-development","parameters":["bd3fe7eb-03ae-4e31-b172-8fbe8cb2961e","a0adb71f-6eb5-4992-9223-dae9aacdde85","a645ee36-7361-436e-96bb-e7ea7901975c"],"requestBody":"8d9555b4-5065-4429-bfe3-15cead4cb31e","responses":{"200":"96d01874-fb81-4731-858a-8da575715abd","401":"1f8b8b27-a18d-4883-8073-ff8d5bd95df2","422":"e85cfc85-8390-4eed-8f52-286c9392fdde","429":"057dd074-b12d-41fb-a32d-253cf05b378f","500":"97ccaf33-2315-4a46-8600-63a2e6a48fbf","503":"603455fd-ebac-41ec-a47b-8a22dd036d8c"},"method":"post","type":"path","servers":["13fe6015-747e-4dae-bb20-620e83109976"],"security":["dba1cf01-89ab-45f1-a005-235bcd9b3c8d"],"path":"/sms/balance","baseUrlOptions":["https://avraapi.com/api/v1"],"title":"Check SMS balance","codeSamples":[],"requestExampleLanguages":["bash","javascript","php"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{}],"disableProxy":true},"dependencies":{"parameters":{"bd3fe7eb-03ae-4e31-b172-8fbe8cb2961e":{"name":"X-ENV","in":"header","required":false,"description":"Selects the Development credential environment. The Documentation Playground exposes Development values only; normal backend integrations may use their documented Production credentials outside this tool.","schema":{"type":"string","enum":["dev","development"],"default":"development","isRequired":false,"description":"Selects the Development credential environment. The Documentation Playground exposes Development values only; normal backend integrations may use their documented Production credentials outside this tool.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"a0adb71f-6eb5-4992-9223-dae9aacdde85":{"name":"Accept","in":"header","required":false,"description":"Requests a JSON response where the selected operation supports JSON.","schema":{"type":"string","example":"application/json","isRequired":false,"description":"Requests a JSON response where the selected operation supports JSON.","uniqueKey":"","typeLabel":"string"}},"a645ee36-7361-436e-96bb-e7ea7901975c":{"name":"X-Privacy-Mode","in":"header","required":false,"description":"Optional privacy override. Turn this on to request that AvraAPI suppress request-payload storage in observability logs for this request.","schema":{"type":"boolean","default":false,"example":true,"isRequired":false,"description":"Optional privacy override. Turn this on to request that AvraAPI suppress request-payload storage in observability logs for this request.","uniqueKey":"","typeLabel":"boolean"}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"empty_body":{"title":"empty_body","summary":"Empty JSON object","value":{}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"96d01874-fb81-4731-858a-8da575715abd":{"description":"Balance associated with the selected SMS integration.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","data"],"properties":{"success":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","description":"Include this value when contacting AvraAPI support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"data":{"type":"object","description":"Operation-specific result data.","required":["source","balance_formatted"],"properties":{"source":{"type":"string","enum":["apix_wallet","quicksend_direct"],"description":"The balance source selected by the integration setup method.","isRequired":true,"uniqueKey":"data.source","typeLabel":"enum\u003cstring>"},"balance_formatted":{"type":"string","description":"Human-readable balance value for the reported source.","isRequired":true,"uniqueKey":"data.balance_formatted","typeLabel":"string"},"provider_response":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Present only for a Manual (BYOK) QuickSend integration.","uniqueKey":"data.provider_response.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Present only for a Manual (BYOK) QuickSend integration.","uniqueKey":"data.provider_response.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.provider_response","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"manual_byok":{"title":"manual_byok","summary":"Manual (BYOK) QuickSend balance","value":{"success":true,"request_id":"7a5b17fa-0716-45e1-b109-378322b8769f","data":{"source":"quicksend_direct","balance_formatted":"473.52","provider_response":{"balance":"473.52"}}}},"managed":{"title":"managed","summary":"Managed AvraAPI wallet credits","value":{"success":true,"request_id":"3251caf2-3d8a-4232-a1fb-b4cfc4846888","data":{"source":"apix_wallet","balance_formatted":"285,417,005 credits"}}}},"exampleType":"examples"}},"exampleType":"examples"},"1f8b8b27-a18d-4883-8073-ff8d5bd95df2":{"description":"Missing, invalid, inactive, or environment-mismatched project credentials.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"],"example":"unauthorized","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"unauthorized":{"title":"unauthorized","value":{"success":false,"request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","error":{"code":"unauthorized","message":"\u003cstring>","details":{}},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"e85cfc85-8390-4eed-8f52-286c9392fdde":{"description":"No active QuickSend SMS integration can be selected for the project environment.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["provider_selection_failed"],"example":"provider_selection_failed","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"provider_selection_failed":{"title":"provider_selection_failed","value":{"success":false,"request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","error":{"code":"provider_selection_failed","message":"\u003cstring>","details":{}},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"057dd074-b12d-41fb-a32d-253cf05b378f":{"description":"The configured SMS request limit has been reached.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}},"Retry-After":{"description":"Seconds to wait before retrying a rate-limited request.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["rate_limit_exceeded"],"example":"rate_limit_exceeded","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rate_limit_exceeded":{"title":"rate_limit_exceeded","value":{"success":false,"request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","error":{"code":"rate_limit_exceeded","message":"\u003cstring>","details":{}},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"97ccaf33-2315-4a46-8600-63a2e6a48fbf":{"description":"The balance check could not complete unexpectedly.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"],"example":"internal_error","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"internal_error":{"title":"internal_error","value":{"success":false,"request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","error":{"code":"internal_error","message":"\u003cstring>","details":{}},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"603455fd-ebac-41ec-a47b-8a22dd036d8c":{"description":"QuickSend could not be reached for a Manual (BYOK) balance check.","headers":{"X-APIX-Request-ID":{"description":"AvraAPI request identifier for support and troubleshooting.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["success","request_id","error"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["http_error"],"example":"http_error","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","additionalProperties":true,"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"http_error":{"title":"http_error","value":{"success":false,"request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","error":{"code":"http_error","message":"\u003cstring>","details":{}},"meta":{}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"dba1cf01-89ab-45f1-a005-235bcd9b3c8d":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your Development project's Client ID. Enter your own value in the Documentation Playground.","scopes":[]},"ApiSecretHeader":{"type":"apiKey","in":"header","name":"X-API-SECRET","description":"Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.","scopes":[]}}},"servers":{"13fe6015-747e-4dae-bb20-620e83109976":{"url":"https://avraapi.com/api/v1","description":"AvraAPI REST API v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your Development project's Client ID. Enter your own value in the Documentation Playground.","scopes":[]},"schema":{"title":"X-API-KEY","type":"string","description":"Your Development project's Client ID. Enter your own value in the Documentation Playground.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyHeader","name":"X-API-KEY"},{"scheme":{"type":"apiKey","in":"header","name":"X-API-SECRET","description":"Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.","scopes":[]},"schema":{"title":"X-API-SECRET","type":"string","description":"Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiSecretHeader","name":"X-API-SECRET"}],"title":"ApiKeyHeader \u0026 ApiSecretHeader"}]},"originalFileLocation":"api-reference/provider-api.openapi.yaml"},"subdomain":"avraapi","siteName":"AvraAPI","title":"Check SMS balance - AvraAPI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-01T13:37:07.624Z","originalFileLocation":"api-reference/sms/balance.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=\"Read the balance associated with the configured QuickSend SMS integration.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AvraAPI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_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/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/avraapi/hBrlc_a6OxL2-jI-/_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/avraapi/hBrlc_a6OxL2-jI-/_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/avraapi/hBrlc_a6OxL2-jI-/_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/avraapi/hBrlc_a6OxL2-jI-/_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/avraapi/hBrlc_a6OxL2-jI-/_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/avraapi/hBrlc_a6OxL2-jI-/_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/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Check SMS balance - AvraAPI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Read the balance associated with the configured QuickSend SMS integration.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AvraAPI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.avraapi.com/api-reference/sms/balance\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://avraapi.mintlify.site/_mintlify/api/og/v2?division=SMS\u0026amp;title=Check+SMS+balance\u0026amp;description=Read+the+balance+associated+with+the+configured+QuickSend+SMS+integration.\u0026amp;theme=d9e89b2eca5511b6e2827c0b\u0026amp;signature=6da91b70f27683cd295175f4f6758214505f2adcaa33503504c5281a4405abe7\">\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=\"Check SMS balance - AvraAPI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Read the balance associated with the configured QuickSend SMS integration.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://avraapi.mintlify.site/_mintlify/api/og/v2?division=SMS\u0026amp;title=Check+SMS+balance\u0026amp;description=Read+the+balance+associated+with+the+configured+QuickSend+SMS+integration.\u0026amp;theme=d9e89b2eca5511b6e2827c0b\u0026amp;signature=6da91b70f27683cd295175f4f6758214505f2adcaa33503504c5281a4405abe7\">\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/avraapi/hBrlc_a6OxL2-jI-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AvraAPI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0450ff\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#0450ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.avraapi.com/api-reference/sms/balance\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/sms/balance.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://avraapi.com/#organization\",\"name\":\"AvraAPI\",\"legalName\":\"Fidex Developers (Pvt) Ltd\",\"url\":\"https://avraapi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.avraapi.com/logo/light.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.avraapi.com#website\",\"name\":\"AvraAPI\",\"url\":\"https://docs.avraapi.com\",\"publisher\":{\"@id\":\"https://avraapi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.avraapi.com/api-reference/sms/balance#webpage\",\"url\":\"https://docs.avraapi.com/api-reference/sms/balance\",\"name\":\"Check SMS balance\",\"description\":\"Read the balance associated with the configured QuickSend SMS integration.\",\"dateModified\":\"2026-10-01T13:37:07.624Z\",\"isPartOf\":{\"@id\":\"https://docs.avraapi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.avraapi.com/api-reference/sms/balance#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.avraapi.com/api-reference/sms/balance#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AvraAPI\",\"item\":\"https://docs.avraapi.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Check SMS balance\",\"item\":\"https://docs.avraapi.com/api-reference/sms/balance\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.avraapi.com/api-reference/sms/balance#apireference\",\"headline\":\"Check SMS balance\",\"name\":\"Check SMS balance\",\"description\":\"Read the balance associated with the configured QuickSend SMS integration.\",\"url\":\"https://docs.avraapi.com/api-reference/sms/balance\",\"mainEntityOfPage\":{\"@id\":\"https://docs.avraapi.com/api-reference/sms/balance#webpage\"},\"dateModified\":\"2026-10-01T13:37:07.624Z\",\"publisher\":{\"@id\":\"https://avraapi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.avraapi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AvraAPI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AvraAPI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/sms/balance.md","siteName":"AvraAPI","nav":{"global":null,"tabs":[{"tab":"Information \u0026 Guides","icon":"book-open","pages":[{"title":"Information \u0026 Guides","href":"/introduction"}]},{"tab":"Advanced Services","icon":"wand-magic-sparkles","pages":[{"title":"Advanced Services","href":"/universal-payment-gateway/overview"}]},{"tab":"SDK Documentation","icon":"code","pages":[{"title":"SDK Documentation","href":"/sdk/overview"}]},{"tab":"REST API Reference","icon":"server","groups":[{"group":"Introduction","pages":[{"title":"API Reference overview","icon":"map","href":"/api-reference/overview"},{"title":"Providers \u0026 Microservices","icon":"book-open","href":"/api-reference/providers-and-microservices"},{"title":"REST API guide","icon":"terminal","href":"/api-reference/rest-api"}]},{"group":"Currencies","pages":[{"title":"CBSL Rates","icon":"landmark","href":"/api-reference/cbsl-rates"},{"title":"List supported currency codes","openapi":"api-reference/provider-api.openapi.yaml GET /utility/currency/codes","playground":"interactive","href":"/api-reference/currency/list-codes"},{"title":"Get latest rates","openapi":"api-reference/provider-api.openapi.yaml GET /utility/currency/latest/{base}","playground":"interactive","href":"/api-reference/currency/latest-rates"},{"title":"Get one currency-pair rate","openapi":"api-reference/provider-api.openapi.yaml GET /utility/currency/pair/{base}/{target}","playground":"interactive","href":"/api-reference/currency/pair-rate"},{"title":"Convert a currency amount","description":"Calculate a conversion for one positive amount using the current pair rate.","openapi":"api-reference/provider-api.openapi.yaml GET /utility/currency/pair/{base}/{target}/{amount}","playground":"interactive","href":"/api-reference/currency/convert-amount"}]},{"group":"SMS","pages":[{"title":"Check SMS balance","openapi":"api-reference/provider-api.openapi.yaml POST /sms/balance","playground":"interactive","href":"/api-reference/sms/balance"},{"title":"Send an SMS","description":"Send one SMS, the same SMS to a bulk list, or different SMS messages to multiple recipients.","openapi":"api-reference/provider-api.openapi.yaml POST /sms/send","playground":"interactive","href":"/api-reference/sms/send"}]},{"group":"Security","pages":[{"title":"Check VPN, proxy, and IP risk","openapi":"api-reference/provider-api.openapi.yaml POST /security/vpn-shield","playground":"interactive","href":"/api-reference/security/vpn-shield"},{"title":"Check a disposable email address","openapi":"api-reference/provider-api.openapi.yaml POST /security/burner-email-shield","playground":"interactive","href":"/api-reference/security/burner-email-shield"}]},{"group":"Location","pages":[{"title":"Look up an IP address","openapi":"api-reference/provider-api.openapi.yaml POST /location/lookup","playground":"interactive","href":"/api-reference/location/lookup"}]},{"group":"Utilities","pages":[{"title":"Generate a QR code","openapi":"api-reference/provider-api.openapi.yaml POST /utilities/qr/generate","playground":"interactive","href":"/api-reference/utilities/qr-generate"},{"title":"Generate a barcode","openapi":"api-reference/provider-api.openapi.yaml POST /utilities/barcode/generate","playground":"interactive","href":"/api-reference/utilities/barcode-generate"},{"title":"Generate a PDF","openapi":"api-reference/provider-api.openapi.yaml POST /utilities/pdf/generate","playground":"interactive","href":"/api-reference/utilities/pdf-generate"}]}]}]},"basePath":"","title":"Check SMS balance - AvraAPI","deploymentId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","buildId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CtBVvVHw.js","snippetPresets-9Wdj1iJX.js","utils-C7pdn048.js","style-to-object-BY3JEAdk.js","utils-DXrrd362.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-mhMleBMB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BAjduu_G.js","_Uint8Array-nYbT9fMe.js","isObject-FP1Yky1u.js","ApiExamples-B_rQ3sQn.js","usePlaygroundInputsStore-1axgsDkN.js","shallow-BzGYy3WT.js","isEqual-YKdP-BC9.js","CodeSnippets-Bnk9aSsZ.js","CodeSnippet-CpmxV9bB.js","getApiPlaygroundDisplay-bJKEwju4.js","Page-B3Xw2AdP.js","DynamicMarkdown-hgwwGkem.js","SectionHeading-D_cNZKTp.js","icon-Bt9132nT.js","MethodPill-bMPQiifO.js","getPastedJson-B4rstRhU.js","Check2Icon-D82b8qKN.js","axios-CsQoIw0U.js","Markdown-0sfW67Ea.js","AssistantPageLink-B0docfb1.js","dist-DAabPqRJ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}