Authentication
Authenticate to the API using your client credentials. Returns a token needed for all other routes.
Client Id available in the Developer Account section
client_123456789Secret ID available in the Developer Account section
secret_987654321Successfully authenticated
JWT token for authentication
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Token used to refresh the JWT token
rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Token expiration time in seconds
3600Bad Request - Invalid parameters
Invalid credentials
POST /login HTTP/1.1
Host: api.services.wassa.io
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"clientId": "client_123456789",
"secretId": "secret_987654321"
}{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600
}Refresh an expired access token using the refresh token. The Bearer token can be expired.
JWT token needed for all other routes. The token acquired with the login route.
Refresh token received from login
rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Token successfully refreshed
New JWT token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...New refresh token
rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Token expiration time in seconds
3600Bad Request - Invalid parameters
Unauthorized - Invalid token
Forbidden - Insufficient permissions
POST /token HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"refreshToken": "rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600
}Last updated