Facebook
LinkedIn
YouTube
Getting Started
Authentication
Authentication
  • V2 Authentication (Deprecated)
  • V3 Authentication
V2 API Documentation (Deprecated)V3 API Documentation
Getting Started
Authentication
Authentication
  • V2 Authentication (Deprecated)
  • V3 Authentication
V2 API Documentation (Deprecated)V3 API Documentation
V2 Authentication (Deprecated)
V3 Authentication
V2 Authentication (Deprecated)
V3 Authentication
  1. V2 Authentication (Deprecated)
  • Get Access Token
    POST
  1. V2 Authentication (Deprecated)

Get Access Token

POST
https://apicfa.convirza.com/oauth/token
Authentication
Last modified:2026-04-03 13:17:39
Authenticates user credentials and returns access and refresh tokens for API access.

OAuth 2.0 Password Grant#

This endpoint implements the OAuth 2.0 password grant flow for initial user authentication.
Required parameters:
grant_type: password
username: User email address
password: User password
client_id: OAuth client identifier
client_secret: OAuth client secret
Authentication Process:
1.
Validates client credentials against configured OAuth clients
2.
Authenticates user email and password against the database
3.
Retrieves user permissions, campaigns, and organization data
4.
Creates session in Redis with user profile and permissions
5.
Generates access token (UUID, 1 hour TTL) and refresh token (UUID, 30 days TTL)
6.
Returns both tokens in the response

Response Tokens#

The response includes two tokens:
access_token: Use for API authentication (valid for 1 hour)
refresh_token: Long-lived token returned for future use (valid for 30 days)

Token Usage#

Include the access token in all API requests:
Authorization: Bearer 946e347b-48ce-41d1-aae6-756ddc552d18

Rate Limiting#

This endpoint is rate-limited to 10 requests per minute per IP to prevent brute-force attacks.

Request

Body Params application/x-www-form-urlencodedRequired

Responses

🟢200
application/json
Authentication successful - returns access token and refresh token
Headers

Body

🟠400
🟠401
🟠429
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apicfa.convirza.com/oauth/token' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=user@convirza.com' \
--data-urlencode 'password=mySecurePassword123' \
--data-urlencode 'client_id=system' \
--data-urlencode 'client_secret=f558ba166258089b2ef322c340554c'
Response Response Example
200 - Successful authentication
{
    "access_token": "946e347b-48ce-41d1-aae6-756ddc552d18",
    "refresh_token": "e46d437e-346b-4de4-a2a3-5f4b610cdfe1",
    "expires_in": 3600,
    "status": "success",
    "token_type": "Bearer"
}
Modified at 2026-04-03 13:17:39
Built with