---
title: "Revoke a token"
method: POST
path: "/auth/revoke"
tags: ["Access tokens"]
---

# Revoke a token

`POST /auth/revoke`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/auth/revoke`
- Auth: HTTP bearer

Revoke an existing token immediately.

## Headers

- `x-monite-version` string, required

## Request body

- object
  - `client_id` string, uuid, required: Your partner [client ID](https://docs.monite.com/get-started/credentials#get-credentials) obtained from the "API Credentials" section of Monite Partner Portal. Note that the sandbox and production environment use different client IDs.
  - `client_secret` string, required: Your partner [client secret](https://docs.monite.com/get-started/credentials#get-credentials) obtained from the "API Credentials" section of Monite Partner Portal. Note that the sandbox and production environment use different client secrets.
  - `token` string, required: The token to revoke.

## Response `200`

Successful Response

- MessageResponse
  - `message` string, required

## Other responses

- `401`: The `Authorization` header is missing or contains an invalid or expired access token. See [Authentication](https://docs.monite.com/api/concepts/authentication) to learn how to authenticate API calls.
- `422`: Validation Error
- `429`: API rate limit has been exceeded. Check the response headers for the rate limit information.

---

[API](https://skmtc.dev/monite/apis/monite-2.md) - [All operations](https://skmtc.dev/monite/apis/monite-2/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-2/revisions/4299ccf95edb?raw)
