Getting Started
Authentication
Authentication
  • V2 Authentication (Deprecated)
  • V3 Authentication
V2 API Documentation (Deprecated)V3 API DocumentationDialer SDKMCP
Getting Started
Authentication
Authentication
  • V2 Authentication (Deprecated)
  • V3 Authentication
V2 API Documentation (Deprecated)V3 API DocumentationDialer SDKMCP
  1. Getting Started
  • Getting Started
  • Choosing the Right API Version
  • Architecture
  • Quick Start
  • Authentication
  • Roles and API Access
  • Rate Limits
  • API Categories
  • API Endpoints Reference
  • Making Your First API Call
  • Working with Encrypted Tokens
  • Code Examples
  • Error Handling
  • Best Practices
  • Troubleshooting
  • Support
  • Recipes
  1. Getting Started

Working with Encrypted Tokens

What You Need to Know#

Tokens are encrypted, so you can't read anything from them. Store each token and send it back exactly as you received it in the Authorization header. Don't try to decode or change it.

Keeping Tokens Safe#

Call the API from your server, not from a browser or mobile app. Getting a token takes your API secret, and anyone who has that secret can use your account through the API.
Keep your API secret and tokens in your server's secret store or environment variables, never in source code
Never send them to a browser or mobile app
Never write them to logs or error messages
Refresh the access token before it expires, and always save the new refresh token
Revoke tokens you no longer need

Example: Token Management Class#

Run this on your server. It keeps tokens in memory; save them to your secret store if they need to survive a restart.
Modified at 2026-11-26 12:44:39
Previous
Making Your First API Call
Next
Code Examples
Built with