cURL
curl --request POST \ --url https://sandbox.waftpay.io/api/authentication-service/v1/api/generate-token \ --header 'Content-Type: application/json' \ --data ' { "consumer_key": "APP_CONSUMER_KEY", "consumer_secret": "APP_CONSUMER_SECRET" } '
{ "status": true, "message": "Request processed successfully", "token": "abcdeFGHIjklmno@1234567890...", "expires_in": 7200000 }
Exchange consumer credentials for a short-lived Bearer token.
{ "consumer_key": "APP_CONSUMER_KEY", "consumer_secret": "APP_CONSUMER_SECRET" }
Authorization
Authorization: Bearer <token>
Authentication token generated successfully
Indicates if the request was successful
true
"Request processed successfully"
JWT bearer token to use in Authorization header
Token validity in milliseconds
7200000