For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

Authenticate to the API

post

Authenticate to the API using your client credentials. Returns a token needed for all other routes.

Body
clientIdstringRequired

Client Id available in the Developer Account section

Example: client_123456789
secretIdstringRequired

Secret ID available in the Developer Account section

Example: secret_987654321
Responses
200

Successfully authenticated

application/json
tokenstringRequired

JWT token for authentication

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
refreshTokenstringRequired

Token used to refresh the JWT token

Example: rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
expiresIninteger · int32Required

Token expiration time in seconds

Example: 3600
post/login
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 access token

post

Refresh an expired access token using the refresh token. The Bearer token can be expired.

Authorizations
AuthorizationstringRequired

JWT token needed for all other routes. The token acquired with the login route.

Body
refreshTokenstringRequired

Refresh token received from login

Example: rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Responses
200

Token successfully refreshed

application/json
tokenstringRequired

New JWT token

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
refreshTokenstringRequired

New refresh token

Example: rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
expiresIninteger · int32Required

Token expiration time in seconds

Example: 3600
post/token
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