RevokeToken

Updated at: 2025-03-14 06:29

Revokes an access token or refresh token.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/{instanceId}/{applicationId}/oauth2/revoke HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx
applicationIdstringYes

The application ID.

app_mkv7rgt4d7i4u7zqtzev2mxxxx
client_idstringNo

The client ID.

app_mkv7rgt4d7i4u7zqtzev2mxxxx
client_secretstringNo

The client secret.

CSEHDcHcrUKHw1CuxkJEHPveWRXBGqVqRsxxxx
tokenstringYes

The token to be revoked.

ATxxxx
token_type_hintstringNo

The type of the token. Valid values: access_token refresh_token

access_token

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object

The response parameters.

Examples

Sample success responses

JSONformat

{
  "test": "test",
  "test2": 1
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
Change timeSummary of changesOperation
2023-10-24The internal configuration of the API is changed, but the call is not affectedView Change Details
  • On this page (1)
  • Debugging
  • Authorization information
  • Request syntax
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback
phone Contact Us