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

Refresh Access Token

POST
https://platform-oauth.convirza.com/oauth/refresh-token
Authentication
Last modified:2026-11-26 11:03:16
Exchanges a refresh token from POST /oauth/token/client-credentials for a new access token and refresh token pair, without re-sending your API secret.
Token rotation (security)
This endpoint implements single-use refresh tokens. When you call this endpoint:
1.
Your refresh_token is validated.
2.
A brand new access_token and refresh_token are generated.
3.
The old refresh_token is immediately invalidated and cannot be reused.
This means if an attacker steals a refresh token and uses it, the legitimate user's next refresh attempt will fail, alerting them to the potential compromise.
When to call this endpoint
Your client receives a 401 Unauthorized from any API endpoint (access token has expired).
Proactively when you detect the access token is near expiry (check expires_in from the token response).
When a refresh token stops working
A refresh token is rejected once it expires, is revoked, or has already been used, and when its API key is revoked, expires, or has its secret rotated. In all cases, request a new token pair with POST /oauth/token/client-credentials.

Request

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Token refreshed successfully - returns new access and refresh tokens
Bodyapplication/json

🟠400
🟠401
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://platform-oauth.convirza.com/oauth/refresh-token' \
--header 'Content-Type: application/json' \
--data '{
    "refresh_token": "xyz789refresh012345678901234567890"
}'
Response Response Example
200 - Example 1
{
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9sdsaECAdsz123",
    "refresh_token": "xyz789refresh012345678901234567890",
    "token_type": "Bearer",
    "expire": "2026-04-06T12:34:56.789Z",
    "refresh_expire": "2026-10-06T12:34:56.789Z"
}
Modified at 2026-11-26 11:03:16
Previous
Get Access Token
Next
Revoke Token
Built with