---
title: "Revoke one of your tokens"
method: DELETE
path: "/access-tokens/{id}"
tags: ["Access tokens"]
---

# Revoke one of your tokens

`DELETE /access-tokens/{id}`

## Request

- Base URL: `https://gorest.co.in/public/v3`
- URL: `https://gorest.co.in/public/v3/access-tokens/{id}`
- Auth: HTTP bearer

The token stops working at once, and so do the tokens it made, and theirs. A token may revoke itself. The primary token cannot be revoked (409); refresh it on the site instead.

## Response `204`

Revoked.

## Other responses

- `400`: A parameter is wrong, unknown or out of range.
- `401`: No token, or the token is wrong, expired or revoked.
- `403`: The token lacks the scope this operation needs.
- `404`: No such item, or not one this token may see.
- `409`: The change clashes with another row, such as an email you already use.
- `429`: Over the rate limit; wait `Retry-After` seconds.
- `500`: Something failed on the server.

---

[API](https://skmtc.dev/gorest/apis/gorest-api-v3.md) - [All operations](https://skmtc.dev/gorest/apis/gorest-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/gorest/apis/gorest-api-v3/revisions/89aa429755a6?raw)
