Validate callback requests using your Beem API Key.
API Key validation (optional)
You can optionally validate the Beem API Key on inbound callback requests. This is separate from authenticating outbound API calls to other Beem products, which use Basic Auth (API Key and Secret) or an access token.
API Key and Secret
Generate credentials from the Beem dashboard:
Navigate to SMS → API Setup
Click Generate API Key and Secret
Use these credentials to verify that incoming callback requests originate from Beem.
The API Secret is only shown once when generated. Store it securely — you cannot retrieve it again from the dashboard.
Callback endpoint security
Your callback URL is registered on your Two-Way number in the Beem portal. To keep inbound message handling secure:
Use HTTPS only — do not expose callback endpoints over plain HTTP
Validate the API Key (or other auth token) on every request before processing the payload
Respond with an error status if authentication fails
Do not log or expose subscriber message content in unsecured systems
Best practices
Keep your API Secret out of client-side code and version control
Process callbacks idempotently using transaction_id to avoid duplicate handling
Return responses quickly — long processing should happen asynchronously after acknowledging the callback
Monitor failed callbacks and alert on repeated authentication failures
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Beem API","colors":{"primary":"#33B1BA","light":"#54C5CF","dark":"#278991"},"logo":{"light":"https://mintcdn.com/beem-996d8f1d/kow37oXzRv3nwEZo/logo/light-logo.png?fit=max\u0026auto=format\u0026n=kow37oXzRv3nwEZo\u0026q=85\u0026s=e31266482f0b7ad162cc7755268d0619","dark":"https://mintcdn.com/beem-996d8f1d/kow37oXzRv3nwEZo/logo/light-logo.png?fit=max\u0026auto=format\u0026n=kow37oXzRv3nwEZo\u0026q=85\u0026s=e31266482f0b7ad162cc7755268d0619"},"favicon":"https://mintcdn.com/beem-996d8f1d/kow37oXzRv3nwEZo/favicon.png?fit=max\u0026auto=format\u0026n=kow37oXzRv3nwEZo\u0026q=85\u0026s=5d080ee62f1e1bdf86f2f509d5d1d48a","api":{"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"mailto:support@beem.africa","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://login.beem.africa/"}},"footer":{"socials":{"x":"https://x.com/BeemAfrica","github":"https://github.com/beem-africa","linkedin":"https://www.linkedin.com/company/beem-africa"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://beem.africa/beem-api"},{"anchor":"Blog","icon":"newspaper","href":"https://beem.africa/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"beem-996d8f1d","hasAudioNarration":false,"actualSubdomain":"beem-996d8f1d","customDomains":["docs.beem.africa"],"gitSource":{"type":"github","owner":"beem-africa","repo":"bm-apidocs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae1f97a201cdb70a5225a69","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"APIs","count":120},{"language":"default","tag":"API Reference","count":34},{"language":"default","tag":"SMS","count":18},{"language":"default","tag":"Contacts","count":16},{"language":"default","tag":"Multicountry SMS","count":14},{"language":"default","tag":"Airtime","count":12},{"language":"default","tag":"MOJA Broadcast API","count":12},{"language":"default","tag":"Payments Checkout","count":11},{"language":"default","tag":"OTP","count":9},{"language":"default","tag":"Payments Collection","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/two-way-sms/security","slug":"/guides/two-way-sms/security","pageMetadata":{"title":"Security","description":"Validate callback requests using your Beem API Key.","href":"/guides/two-way-sms/security"},"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: \"Validate callback requests using your Beem API Key.\"\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={code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`api-key-validation-optional`,children:`API Key validation (optional)`}),`\n`,_jsxs(_components.p,{children:[`You can optionally validate the Beem API Key on inbound callback requests. This is `,_jsx(_components.strong,{children:`separate`}),` from authenticating outbound API calls to other Beem products, which use Basic Auth (API Key and Secret) or an access token.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`api-key-and-secret`,children:`API Key and Secret`}),`\n`,_jsx(_components.p,{children:`Generate credentials from the Beem dashboard:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Navigate to `,_jsx(_components.strong,{children:`SMS`}),` → `,_jsx(_components.strong,{children:`API Setup`})]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Generate API Key and Secret`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Use these credentials to verify that incoming callback requests originate from Beem.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The API Secret is only shown once when generated. Store it securely — you cannot retrieve it again from the dashboard.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`callback-endpoint-security`,children:`Callback endpoint security`}),`\n`,_jsx(_components.p,{children:`Your callback URL is registered on your Two-Way number in the Beem portal. To keep inbound message handling secure:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.strong,{children:`HTTPS`}),` only — do not expose callback endpoints over plain HTTP`]}),`\n`,_jsx(_components.li,{children:`Validate the API Key (or other auth token) on every request before processing the payload`}),`\n`,_jsx(_components.li,{children:`Respond with an error status if authentication fails`}),`\n`,_jsx(_components.li,{children:`Do not log or expose subscriber message content in unsecured systems`}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`best-practices`,children:`Best practices`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Keep your API Secret out of client-side code and version control`}),`\n`,_jsxs(_components.li,{children:[`Process callbacks idempotently using `,_jsx(_components.code,{children:`transaction_id`}),` to avoid duplicate handling`]}),`\n`,_jsx(_components.li,{children:`Return responses quickly — long processing should happen asynchronously after acknowledging the callback`}),`\n`,_jsx(_components.li,{children:`Monitor failed callbacks and alert on repeated authentication failures`}),`\n`]})]})}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":"Security","description":"Validate callback requests using your Beem API Key.","href":"/guides/two-way-sms/security"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API Key validation (optional)","slug":"api-key-validation-optional","depth":2,"children":[]},{"title":"API Key and Secret","slug":"api-key-and-secret","depth":2,"children":[]},{"title":"Callback endpoint security","slug":"callback-endpoint-security","depth":2,"children":[]},{"title":"Best practices","slug":"best-practices","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/beem-996d8f1d/c278b725fff1a6bf/scripts/lib/openapi-sync.js","/_mintlify/custom/beem-996d8f1d/c5939f0d94af4f52/scripts/openapi-extensions/airtime.js","/_mintlify/custom/beem-996d8f1d/ebb89ae694e90022/scripts/openapi-extensions/moja.js","/_mintlify/custom/beem-996d8f1d/df9b54f4510d89f1/scripts/openapi-extensions/payments-collection.js","/_mintlify/custom/beem-996d8f1d/148bec60adf6ecc0/scripts/openapi-extensions/ussd.js","/_mintlify/custom/beem-996d8f1d/58b21da6ecd1f697/scripts/sync-airtime-openapi.js","/_mintlify/custom/beem-996d8f1d/b9ddc273568fd95f/scripts/sync-contact-openapi.js","/_mintlify/custom/beem-996d8f1d/e99747e86d58faf9/scripts/sync-moja-openapi.js","/_mintlify/custom/beem-996d8f1d/cadfe9595773fe9d/scripts/sync-otp-openapi.js","/_mintlify/custom/beem-996d8f1d/ce905b345def6f52/scripts/sync-payments-checkout-openapi.js","/_mintlify/custom/beem-996d8f1d/7c3d9adab8e85dd2/scripts/sync-payments-collection-openapi.js","/_mintlify/custom/beem-996d8f1d/c040a2f459024bd0/scripts/sync-sms-openapi.js","/_mintlify/custom/beem-996d8f1d/ec431d9e8ea1d64a/scripts/sync-ussd-openapi.js","/_mintlify/custom/beem-996d8f1d/31efed33c81bba73/scripts/openapi-extensions/multicountry-sms.js","/_mintlify/custom/beem-996d8f1d/7e3c74cf17e019f7/scripts/sync-multicountry-sms-openapi.js"],"subdomain":"beem-996d8f1d","siteName":"Beem API","title":"Security - Beem API","contextualStarterQuestions":[{"_id":"6a996781ee59f0ae7f4b8dd5","deploymentId":"6a561c0d903636dd707b6938","questionText":"Where do I generate credentials?","status":"active","generatedBy":"contextual","path":"guides/two-way-sms/security","createdAt":"2026-09-03T12:26:41.702Z","updatedAt":"2026-09-03T12:26:41.702Z","__v":0},{"_id":"6a996781ee59f0ae7f4b8dd4","deploymentId":"6a561c0d903636dd707b6938","questionText":"How do I validate API keys?","status":"active","generatedBy":"contextual","path":"guides/two-way-sms/security","createdAt":"2026-09-03T12:26:41.702Z","updatedAt":"2026-09-03T12:26:41.702Z","__v":0},{"_id":"6a996781ee59f0ae7f4b8dd6","deploymentId":"6a561c0d903636dd707b6938","questionText":"What makes callbacks secure?","status":"active","generatedBy":"contextual","path":"guides/two-way-sms/security","createdAt":"2026-09-03T12:26:41.702Z","updatedAt":"2026-09-03T12:26:41.702Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-06T10:25:59.231Z","originalFileLocation":"guides/two-way-sms/security.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=\"Validate callback requests using your Beem API Key.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Beem API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/beem-996d8f1d/-RszeSbq19Bthawt/_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/beem-996d8f1d/-RszeSbq19Bthawt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/beem-996d8f1d/-RszeSbq19Bthawt/_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/beem-996d8f1d/-RszeSbq19Bthawt/_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/beem-996d8f1d/-RszeSbq19Bthawt/_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/beem-996d8f1d/-RszeSbq19Bthawt/_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/beem-996d8f1d/-RszeSbq19Bthawt/_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/beem-996d8f1d/-RszeSbq19Bthawt/_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/beem-996d8f1d/-RszeSbq19Bthawt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Security - Beem API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Validate callback requests using your Beem API Key.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Beem API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.beem.africa/guides/two-way-sms/security\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://beem-996d8f1d.mintlify.site/_mintlify/api/og/v2?division=Two+Way+SMS\u0026amp;title=Security\u0026amp;description=Validate+callback+requests+using+your+Beem+API+Key.\u0026amp;theme=13a41f58bb3fa22637ceba42\u0026amp;signature=56f104b4bd5fa46fa9fb432e8162bd92e8716b9c5295bf0be2067475ec018715\">\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=\"Security - Beem API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Validate callback requests using your Beem API Key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://beem-996d8f1d.mintlify.site/_mintlify/api/og/v2?division=Two+Way+SMS\u0026amp;title=Security\u0026amp;description=Validate+callback+requests+using+your+Beem+API+Key.\u0026amp;theme=13a41f58bb3fa22637ceba42\u0026amp;signature=56f104b4bd5fa46fa9fb432e8162bd92e8716b9c5295bf0be2067475ec018715\">\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/beem-996d8f1d/-RszeSbq19Bthawt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Beem API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#33B1BA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.beem.africa/guides/two-way-sms/security\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/two-way-sms/security.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.beem.africa/#organization\",\"name\":\"Beem API\",\"url\":\"https://docs.beem.africa\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/beem-996d8f1d/kow37oXzRv3nwEZo/logo/light-logo.png?fit=max\u0026auto=format\u0026n=kow37oXzRv3nwEZo\u0026q=85\u0026s=e31266482f0b7ad162cc7755268d0619\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.beem.africa#website\",\"name\":\"Beem API\",\"url\":\"https://docs.beem.africa\",\"publisher\":{\"@id\":\"https://docs.beem.africa/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.beem.africa/guides/two-way-sms/security#webpage\",\"url\":\"https://docs.beem.africa/guides/two-way-sms/security\",\"name\":\"Security\",\"description\":\"Validate callback requests using your Beem API Key.\",\"dateModified\":\"2026-08-06T10:25:59.231Z\",\"isPartOf\":{\"@id\":\"https://docs.beem.africa#website\"},\"breadcrumb\":{\"@id\":\"https://docs.beem.africa/guides/two-way-sms/security#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.beem.africa/guides/two-way-sms/security#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https://docs.beem.africa/guides/sms\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Two Way SMS\",\"item\":\"https://docs.beem.africa/guides/two-way-sms\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Security\",\"item\":\"https://docs.beem.africa/guides/two-way-sms/security\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.beem.africa/guides/two-way-sms/security#article\",\"headline\":\"Security\",\"name\":\"Security\",\"description\":\"Validate callback requests using your Beem API Key.\",\"url\":\"https://docs.beem.africa/guides/two-way-sms/security\",\"mainEntityOfPage\":{\"@id\":\"https://docs.beem.africa/guides/two-way-sms/security#webpage\"},\"dateModified\":\"2026-08-06T10:25:59.231Z\",\"publisher\":{\"@id\":\"https://docs.beem.africa/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.beem.africa#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Beem API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Beem API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/two-way-sms/security.md","siteName":"Beem API","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://beem.africa/beem-api"},{"anchor":"Blog","icon":"newspaper","href":"https://beem.africa/blog"}]},"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/index"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"APIs","pages":[{"group":"SMS","expanded":false,"pages":[{"title":"Introduction","href":"/guides/sms/index"},{"title":"Prerequisites","href":"/guides/sms/prerequisites"},{"title":"Authentication","href":"/guides/sms/authentication"},{"title":"Sender ID registration","href":"/guides/sms/sender-id"},{"title":"Sending flow","href":"/guides/sms/sending-flow"},{"title":"Delivery reports","href":"/guides/sms/delivery-reports"},{"title":"Monitoring \u0026 API logs","href":"/guides/sms/monitoring"},{"title":"API responses","href":"/guides/sms/api-responses"},{"title":"API lifecycle","href":"/guides/sms/api-lifecycle"},{"title":"Security","href":"/guides/sms/security"},{"group":"API Reference","pages":[{"title":"Send SMS","deprecated":null,"version":null,"openapi":"/openapi/sms.json post /v1/send","href":"/api-reference/send-sms"},{"title":"Get vendor balance","deprecated":null,"version":null,"openapi":"/openapi/sms.json get /public/v1/vendors/balance","href":"/api-reference/get-vendor-balance"},{"title":"Get delivery reports","deprecated":null,"version":null,"openapi":"/openapi/sms.json get /public/v1/delivery-reports","href":"/api-reference/get-delivery-reports"},{"title":"List sender names","deprecated":null,"version":null,"openapi":"/openapi/sms.json get /public/v1/sender-names","href":"/api-reference/list-sender-names"},{"title":"List SMS templates","deprecated":null,"version":null,"openapi":"/openapi/sms.json get /public/v1/sms-templates","href":"/api-reference/list-sms-templates"},{"title":"Create SMS template","deprecated":null,"version":null,"openapi":"/openapi/sms.json post /public/v1/sms-templates","href":"/api-reference/create-sms-template"},{"title":"Update SMS template","deprecated":null,"version":null,"openapi":"/openapi/sms.json put /public/v1/sms-templates/{sms_template_id}","href":"/api-reference/update-sms-template"},{"title":"Delete SMS template","deprecated":null,"version":null,"openapi":"/openapi/sms.json delete /public/v1/sms-templates/{sms_template_id}","href":"/api-reference/delete-sms-template"}]}]},{"group":"Multicountry SMS","expanded":false,"pages":[{"title":"Introduction","href":"/guides/multicountry-sms/index"},{"title":"Prerequisites","href":"/guides/multicountry-sms/prerequisites"},{"title":"Message encoding","href":"/guides/multicountry-sms/message-encoding"},{"title":"Sending messages","href":"/guides/multicountry-sms/sending-messages"},{"title":"API responses","href":"/guides/multicountry-sms/api-responses"},{"title":"Throughput \u0026 connections","href":"/guides/multicountry-sms/throughput"},{"title":"Delivery reports","href":"/guides/multicountry-sms/delivery-reports"},{"title":"Inbound two-way SMS","href":"/guides/multicountry-sms/inbound-two-way"},{"title":"Parameters reference","href":"/guides/multicountry-sms/parameters"},{"group":"API Reference","pages":[{"title":"Send message","deprecated":null,"version":null,"openapi":"/openapi/multicountry-sms.json post /bin/send","href":"/api-reference/send-message"},{"title":"Send message (JSON response)","deprecated":null,"version":null,"openapi":"/openapi/multicountry-sms.json post /send.json","href":"/api-reference/send-message-json-response"},{"title":"Send message (XML response)","deprecated":null,"version":null,"openapi":"/openapi/multicountry-sms.json post /bin/send.xml","href":"/api-reference/send-message-xml-response"},{"title":"Check balance","deprecated":null,"version":null,"openapi":"/openapi/multicountry-sms.json get /api/userAccountBalance","href":"/api-reference/check-balance"},{"title":"Receive inbound message or DLR","deprecated":null,"version":null,"openapi":"/openapi/multicountry-sms.json post /callback","href":"/api-reference/receive-inbound-message-or-dlr"}]}]},{"group":"SMPP","expanded":false,"pages":[{"title":"SMPP integration","href":"/guides/multicountry-sms/smpp"},{"title":"SMPP error codes","href":"/guides/multicountry-sms/smpp-error-codes"}]},{"group":"Two Way SMS","expanded":false,"pages":[{"title":"Introduction","href":"/guides/two-way-sms/index"},{"title":"Prerequisites","href":"/guides/two-way-sms/prerequisites"},{"title":"Inbound callbacks","description":"Handle inbound SMS callbacks from Beem on your server.","href":"/guides/two-way-sms/inbound-callbacks"},{"title":"Security","href":"/guides/two-way-sms/security"}]},{"group":"Contacts","expanded":false,"pages":[{"title":"Introduction","description":"Organize contacts into address books and manage them through the Beem Contacts API.","href":"/guides/contact/index"},{"title":"Prerequisites","href":"/guides/contact/prerequisites"},{"title":"Authentication","href":"/guides/contact/authentication"},{"title":"Address books","href":"/guides/contact/address-books"},{"title":"Contacts","href":"/guides/contact/contacts"},{"title":"Search and filtering","href":"/guides/contact/search-and-filtering"},{"title":"API responses","href":"/guides/contact/api-responses"},{"title":"Best practices","href":"/guides/contact/best-practices"},{"group":"API Reference","pages":[{"title":"List address books","deprecated":null,"version":null,"openapi":"/openapi/contact.json get /address-books","href":"/api-reference/list-address-books"},{"title":"Create address book","deprecated":null,"version":null,"openapi":"/openapi/contact.json post /address-books","href":"/api-reference/create-address-book"},{"title":"Update address book","deprecated":null,"version":null,"openapi":"/openapi/contact.json put /address-books/{addressbook_id}","href":"/api-reference/update-address-book"},{"title":"Delete address book","deprecated":null,"version":null,"openapi":"/openapi/contact.json delete /address-books/{addressbook_id}","href":"/api-reference/delete-address-book"},{"title":"List contacts","deprecated":null,"version":null,"openapi":"/openapi/contact.json get /contacts","href":"/api-reference/list-contacts"},{"title":"Create contact","deprecated":null,"version":null,"openapi":"/openapi/contact.json post /contacts","href":"/api-reference/create-contact"},{"title":"Update contact","deprecated":null,"version":null,"openapi":"/openapi/contact.json put /contacts/{contact_id}","href":"/api-reference/update-contact"},{"title":"Delete contact","deprecated":null,"version":null,"openapi":"/openapi/contact.json delete /contacts/{contact_id}","href":"/api-reference/delete-contact"}]}]},{"group":"MOJA Chat API","expanded":false,"pages":[{"title":"Introduction","href":"/guides/moja/index"},{"title":"Prerequisites","href":"/guides/moja/prerequisites"},{"title":"Authentication","href":"/guides/moja/authentication"},{"title":"Active sessions","href":"/guides/moja/active-sessions"},{"title":"Send session message","href":"/guides/moja/send-session-message"},{"title":"Inbound callbacks","href":"/guides/moja/inbound-callbacks"},{"title":"API responses","href":"/guides/moja/api-responses"},{"title":"Get active sessions","deprecated":null,"version":null,"openapi":"/openapi/moja.json get /v1/chatapi/active-users","href":"/api-reference/moja/conversations/get-active-sessions"},{"title":"Send session message","deprecated":null,"version":null,"openapi":"/openapi/moja.json post /v1/chatapi","href":"/api-reference/moja/conversations/send-session-message"},{"title":"Receive a message","deprecated":null,"version":null,"openapi":"/openapi/moja.json post /callback","href":"/api-reference/moja/conversations/receive-a-message"}]},{"group":"MOJA Broadcast API","expanded":false,"pages":[{"title":"Prerequisites","href":"/guides/moja/prerequisites"},{"title":"Authentication","href":"/guides/moja/authentication"},{"title":"WhatsApp templates","href":"/guides/moja/whatsapp-templates"},{"title":"Template categories","href":"/guides/moja/template-categories"},{"title":"Request a template","href":"/guides/moja/requesting-templates"},{"title":"Retrieve templates","href":"/guides/moja/retrieve-templates"},{"title":"Send template message","href":"/guides/moja/send-template"},{"title":"Delivery reports","href":"/guides/moja/delivery-reports"},{"title":"API responses","href":"/guides/moja/api-responses"},{"title":"List message templates","deprecated":null,"version":null,"openapi":"/openapi/moja.json get /v1/message-templates/list","href":"/api-reference/moja/broadcast/list-message-templates"},{"title":"Send template message","deprecated":null,"version":null,"openapi":"/openapi/moja.json post /v1/broadcast/template/api-send","href":"/api-reference/moja/broadcast/send-template-message"},{"title":"Receive template delivery report","deprecated":null,"version":null,"openapi":"/openapi/moja.json post /template-dlr","href":"/api-reference/moja/broadcast/receive-template-delivery-report"}]},{"group":"USSD","expanded":false,"pages":[{"title":"Introduction","href":"/guides/ussd/index"},{"title":"Authentication","href":"/guides/ussd/authentication"},{"title":"USSD callback","href":"/guides/ussd/callback"},{"title":"Check balance","href":"/guides/ussd/check-balance"},{"title":"USSD simulator","openapi":"openapi/ussd.json POST /","href":"/api-reference/ussd/simulator"},{"group":"API Reference","pages":[{"title":"Check USSD credit balance","deprecated":null,"version":null,"openapi":"/openapi/ussd.json get /credit-balance","href":"/api-reference/ussd/check-ussd-credit-balance"},{"title":"Receive USSD session callback","deprecated":null,"version":null,"openapi":"/openapi/ussd.json post /callback","href":"/api-reference/ussd/receive-ussd-session-callback"}]}]},{"group":"Airtime","expanded":false,"pages":[{"title":"Introduction","href":"/guides/airtime/index"},{"title":"Prerequisites","href":"/guides/airtime/prerequisites"},{"title":"Authentication","href":"/guides/airtime/authentication"},{"title":"Sending airtime","href":"/guides/airtime/sending-airtime"},{"title":"Callbacks","href":"/guides/airtime/callbacks"},{"title":"Transaction status","href":"/guides/airtime/transaction-status"},{"title":"Check balance","href":"/guides/airtime/check-balance"},{"title":"Response codes","href":"/guides/airtime/response-codes"},{"group":"API Reference","pages":[{"title":"Send airtime","deprecated":null,"version":null,"openapi":"/openapi/airtime.json post /v1/transfer","href":"/api-reference/send-airtime"},{"title":"Check transaction status","deprecated":null,"version":null,"openapi":"/openapi/airtime.json post /v1/transaction-status","href":"/api-reference/check-transaction-status"},{"title":"Receive airtime callback","deprecated":null,"version":null,"openapi":"/openapi/airtime.json post /airtime/callback","href":"/api-reference/receive-airtime-callback"},{"title":"Check credit balance","deprecated":null,"version":null,"openapi":"/openapi/airtime.json get /credit-balance","href":"/api-reference/check-credit-balance"}]}]},{"group":"Payments Collection","expanded":false,"pages":[{"title":"Introduction","href":"/guides/payments-collection/index"},{"title":"Prerequisites","href":"/guides/payments-collection/prerequisites"},{"title":"Authentication","href":"/guides/payments-collection/authentication"},{"title":"Callbacks","href":"/guides/payments-collection/callbacks"},{"title":"Check balance","href":"/guides/payments-collection/check-balance"},{"title":"Bpay collection simulator","openapi":"openapi/payments-collection.json POST /","href":"/api-reference/payments-collection/simulator"},{"group":"API Reference","pages":[{"title":"Check Bpay credit balance","deprecated":null,"version":null,"openapi":"/openapi/payments-collection.json get /credit-balance","href":"/api-reference/payments-collection/check-bpay-credit-balance"},{"title":"Receive payment collection callback","deprecated":null,"version":null,"openapi":"/openapi/payments-collection.json post /callback","href":"/api-reference/payments-collection/receive-payment-collection-callback"}]}]},{"group":"Payments Checkout","expanded":false,"pages":[{"title":"Introduction","href":"/guides/payments-checkout/index"},{"title":"Prerequisites","href":"/guides/payments-checkout/prerequisites"},{"title":"Authentication","href":"/guides/payments-checkout/authentication"},{"title":"Redirect method","href":"/guides/payments-checkout/redirect-method"},{"title":"Iframe method","href":"/guides/payments-checkout/iframe-method"},{"title":"Callbacks","href":"/guides/payments-checkout/callbacks"},{"title":"Error codes","href":"/guides/payments-checkout/error-codes"},{"title":"Sandbox","href":"/guides/payments-checkout/sandbox"},{"group":"API Reference","pages":[{"title":"Request checkout page","deprecated":null,"version":null,"openapi":"/openapi/payments-checkout.json get /checkout","href":"/api-reference/payments-checkout/request-checkout-page"},{"title":"Whitelist website for iframe checkout","deprecated":null,"version":null,"openapi":"/openapi/payments-checkout.json post /whitelist/add-to-list","href":"/api-reference/payments-checkout/whitelist-website-for-iframe-checkout"},{"title":"Receive checkout payment callback","deprecated":null,"version":null,"openapi":"/openapi/payments-checkout.json post /callback","href":"/api-reference/payments-checkout/receive-checkout-payment-callback"}]}]},{"group":"OTP","expanded":false,"pages":[{"title":"Introduction","href":"/guides/otp/index"},{"title":"Prerequisites","href":"/guides/otp/prerequisites"},{"title":"Authentication","href":"/guides/otp/authentication"},{"title":"Verification flow","href":"/guides/otp/verification-flow"},{"title":"OTP lifecycle","href":"/guides/otp/otp-lifecycle"},{"title":"API responses","href":"/guides/otp/api-responses"},{"title":"Security","href":"/guides/otp/security"},{"group":"API Reference","pages":[{"title":"Request OTP","deprecated":null,"version":null,"openapi":"/openapi/otp.json post /request","href":"/api-reference/request-otp"},{"title":"Verify OTP","deprecated":null,"version":null,"openapi":"/openapi/otp.json post /verify","href":"/api-reference/verify-otp"}]}]}]}]},"basePath":"","title":"Security - Beem API","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}