---
title: "RevokeByToken"
slug: "revokebytoken"
abstract: "How to revoke an API key with a specific token."
---
# RevokeByToken

The *RevokeByToken* endpoint revokes an API key that is identified by its token.

| Relative Route | `/revokebytoken` |
| --- | --- |
| HTTP Verb | `PUT` |

## Header

The following header is required:

| Name | Format | Description |
| --- | --- | --- |
| `X-GQL-Token` | string | The token of the key to revoke. |

## Response

The response is a boolean value indicating whether the key was revoked successfully.