Developer API Updated Mar 2026

API Authentication

How to authenticate your API requests with Bearer tokens.

apiauthenticationbearertokenkeyheader

Bearer Token Authentication

All API requests to Sakura SMS require authentication via a Bearer token in the Authorization header.

Generating an API Key

  • Go to Developer > API Keys in the portal
  • Click Generate and give your key a descriptive name (e.g., "Production", "Staging")
  • Copy the key immediately — it will not be shown again

Using the Key

Include the key in every request as a Bearer token:

Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx

Security Best Practices

  • Never expose keys in client-side code (browsers, mobile apps)
  • Store keys in environment variables, not in source code
  • Use separate keys for production and staging environments
  • Rotate keys periodically and revoke unused ones
  • If a key is compromised, revoke it immediately in the API Keys tab

Rate Limits

API requests are rate-limited to 50 requests per second per API key. If you exceed this limit, you'll receive a 429 Too Many Requests response. Implement exponential backoff in your retry logic.

Ready to start sending?

Create your account, fund your wallet, and send your first SMS in minutes.