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
V2 Authentication (Deprecated)V3 Authentication
V2 Authentication (Deprecated)V3 Authentication
  1. V3 Authentication
  • Get Access Token
    POST
  • Refresh Access Token
    POST
  • Revoke Token
    POST
  1. V3 Authentication

Get Access Token

POST
https://platform-oauth.convirza.com/oauth/token/client-credentials
Authentication
Last modified:2026-10-29 12:52:48
Get a Bearer token to authenticate your API requests.
How to Use
1.
Get your credentials from Portal → API Access page
2.
Send your api_key and api_secret to this endpoint
3.
Receive a Bearer access_token that's valid for 7 days, and a refresh_token that's valid for 30 days
4.
Use the access token in your API requests with the header: Authorization: Bearer <access_token>
5.
Before the access token expires, send the refresh_token to POST /oauth/refresh-token to get a new pair without re-sending your api_secret
Request Body
{
  "grant_type": "client_credentials",
  "api_key": "df7ed8f5-78f1-45b8-8951-42e8a1ad8c4c",
  "api_secret": "bcbab2ec-0c8b-4b98-b54a-30701de99e6f"
}
Important
Your access token expires after 7 days; your refresh token after 30 days, or sooner if your API key has an expiry date
Refresh tokens are single use: every refresh returns a new pair, so always store the new refresh_token
Refresh tokens stop working when the API key is revoked or its secret is rotated, the password changes, or the user is deactivated
Keep your api_secret and refresh_token secure and never share them
You can generate a new token anytime using the same credentials; each call returns an independent token pair
Revoke a token you no longer need with POST /oauth/revoke-token

Request

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Token generated successfully
Bodyapplication/json

🟠400
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://platform-oauth.convirza.com/oauth/token/client-credentials' \
--header 'Content-Type: application/json' \
--data '{
    "grant_type": "client_credentials",
    "api_key": "df7ed8f5-78f1-45b8-8951-42e8a1ad8c4c",
    "api_secret": "bcbab2ec-0c8b-4b98-b54a-30701de99e6f"
}'
Response Response Example
200 - Example 1
{
    "code": 200,
    "message": "Token generated successfully",
    "data": {
        "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbklkIjoiYWJjZDEyMzQiLCJ1c2VySWQiOjEyMzQ1LCJvcmdVbml0SWQiOjY3ODkwLCJ0eXBlIjoiY2xpZW50X2NyZWRlbnRpYWxzIiwiaWF0IjoxNzA5NTU1NTU1LCJleHAiOjE3MTAxNjAzNTV9.xyz123",
        "refresh_token": "xyz789refresh012345678901234567890",
        "token_type": "Bearer",
        "expires_in": 604800,
        "refresh_expire": "2026-08-08T10:55:45.857Z"
    },
    "requestId": "4513d75e-3f05-468d-afff-f5a292f61b01",
    "timestamp": "2026-07-09T10:55:45.857Z"
}
Modified at 2026-10-29 12:52:48
Next
Refresh Access Token
Built with