Bitel
2.0.0
2.0.0
  • Introduction
  • Authorization
  • API Structure
  • General API Errors
  • SMS
    • Introduction
    • Template SMS
    • OTP SMS
    • Single SMS
    • Batch SMS
    • Batch P2P SMS
    • SMS Status
  • Call
    • Introduction
    • OTP Call
    • Single Call
    • Single TTS Call
    • Batch Call
    • Batch TTS Call
    • Call Status
  • Webhook
    • Sms Webhook Events
    • Voice Webhook Events
  • Files
    • Introduction
    • Upload Voice
    • Text To Speech
    • Download Voice
  • Code Samples
    • C#
    • PHP
    • Python
Powered by GitBook
On this page

Was this helpful?

Authorization

PreviousIntroductionNextAPI Structure

Last updated 5 years ago

Was this helpful?

In order to get the JWT token, head to and create an account.

Bitel APIs require the client to pass the JWT token in the Authorization HEADER:

"Authorization": "Bearer YOUR_JWT_TOKEN"

If the token is invalid or it's not provided then the server will return 401 Unauthorized error.

Please refer to Code Sample section to see how the authorization header is implemented.

The token lifetime is unlimited, thus the token can safely be stored in a secure location permanently.

bitel.rest