Skip to main content
POST
/
v1
/
auth
/
token
/
revoke
RevokeToken
curl --request POST \
  --url https://sdk.anghami.com/v1/auth/token/revoke \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "clientId": "<string>"
}
'
{}

Body

application/json

RevokeTokenRequest is the request message for revoking an access or refresh token. After revocation, the token can no longer be used for authentication.

token
string
required

The access token or refresh token to revoke.

clientId
string
required

The client application identifier.

Response

Successful response

RevokeTokenResponse is the response message for the revoke operation. An empty response indicates successful revocation.