Access tokens

Revoke an access token

POST/api/v1/oauth/revoke

Stops an access token working everywhere at once, before it expires. Authenticate with the API key the token was issued to. Revoking a token that is unknown or already expired also succeeds.

Authorization

apiKey
X-Api-Key<token>

Your whole API key, for example fpk_test_xxxx.secret, from the dashboard. Used only to get and revoke access tokens.

In: header

Request Body

application/x-www-form-urlencoded

Response Body

application/json

application/json

curl -X POST "https://api-malipo.flex.co.tz/api/v1/oauth/revoke" \  -H "X-Api-Key: fpk_test_your_key" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'token=eyJraWQiOiJ...'
Empty