v1

latestOpenAPI 3.0.12026-07-2679100267.2 KB
Authenticate

Revoke an access_token

You can use this endpoint to revoke an access_token.

post/v1/auth/token/revoke

Request body

clientIdstring required

The client's id as obtained from your Nomba dashboard.

access_tokenstring required

The JWT (Json Web Token) token to be revoked

Example request

{
  "clientId": "2242b79d-f2cf-4ccc-ada1-e890bd1a9f0d",
  "access_token": "eyJhbGciOiJIUzI1NiJ9.eyJHOjhmYWM4M2FjLTc2YjAtNDM1Zi1hYTM1LThkOTU3ZGQ5MjdkZCI6Ikc6OGZhYzgzYWMtNzZiMC00MzVmLWFhMzUtOGQ5NTdkZDkyN2RkIiwiUjpURUFNU19PV05FUiI6IlI6VEVBTVNfT1dORVIiLCJFbWFpbDp2aWN0b3JzaG9hZ2FAZ21haWwuY29tIjoiRW1haWw6dmljdG9yc2hvYWdhQGdtYWlsLmNvbSIsImlhdCI6MTY4MTkxODU3OSwic3ViIjoiNWUyNmNmYjAtNTI5Zi00MTdiLWI4ZDItYWJjNDcxZjRjOWRiIiwiZXhwIjoxNjgxOTIyMTc5fQ.lQOsyhR1gajKdzE9IHQEtxhQyUrArctEDZiP9pWVTFY"
}

Response

Your request to revoke an access_token was successful.

codestring

Tells if the access_token has been revoked

descriptionstring

Describes the result of the action performed

Example response

{
  "code": "00",
  "description": "Token revoked successfully"
}