---
page_title: Revoke Token API
product: JUSPAY Unified Dashboard
page_source: https://juspay.io/in/docs/dashboard/docs/oauth-20-flow-for-dashboard-apis/revoke-token-api
openapi: https://juspay.io/in/docs/api/swagger?document=https%3A%2F%2Fjuspay.io%2Fin%2Fdocs%2Fdashboard%2Fdocs%2Foauth-20-flow-for-dashboard-apis%2Frevoke-token-api
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/dashboard/llms.txt
---

## API Version: default


# Revoke Token API



Invalidates an access token and its associated refresh token, ending the authorization. Once revoked, all subsequent API calls for that merchant-client authorization return `403`.## Endpoints:
- Sandbox: https://sandbox.portal.juspay.in/ec/v2/token/revoke

- Production: https://portal.juspay.in/ec/v2/token/revoke

## Request Type: 
POST

## Content-Type: 
application/json

## Headers:

#### Content-Type:
- Value: application/json
- Tags: String
## Sample Code Snippets:
### Sample Request:

#### Request Code Snippet:

```request
curl --location 'https://sandbox.portal.juspay.in/ec/v2/token/revoke' \
--header 'Content-Type: application/json' \
--data '{
     "client_id": "<client_id>",
    "client_secret": "<client_secret>",
    "token_type_hint" : "access_token",
    "token" : "oauthV2_user_8e35abd637c490db749835d24ac44dd52e238f14ef31d43e266cab17ef08997c86638877ad9c31d5c015d45f5d1a4c"
}'
```

### Sample Response:

#### Response:
```plaintext
{
    "message": "Token successfully revoked"
}
```

## Body Parameters:
### Basic Parameters:

#### client_id:
- Description: client ID from create client response
- Value: d45765c-4fa9-4deb-a10f-1588ccaf268
- Tags: String

#### client_secret:
- Description: client secret from create client response
- Value: 9073adb-21d2-49e8-b893-28a7b5879f8
- Tags: String

#### token_type_hint:
- Description: access_token | refresh_token
- Value: access_token
- Tags: String

#### token:
- Description: pass either access_token or refresh_token depending on the token_type_hint passed
- Value: oauthV2_user_8e35abd637c490db749835d24ac44dd52e238f14ef31d43e266cab17ef08997c86638877ad9c31d5c015d45f5d1a4c
- Tags: String
## API Responses:
### 200:

#### message:
- Value: Token successfully revoked
- Tags: String


---

## See Also

- [Generate/Refresh token API](https://juspay.io/in/docs/dashboard/docs/oauth-20-flow-for-dashboard-apis/generate-refresh-token-api)
- [Slack Notifications](https://juspay.io/in/docs/dashboard/docs/notifications/slack-notifications)
