---
title: "Invalidate Tokens"
method: POST
path: "/v2/databases/{db_id}/auth/revoke"
tags: ["Database (v2)"]
---

# Invalidate Tokens

`POST /v2/databases/{db_id}/auth/revoke`

## Request

- Base URL: `https://api.bunny.net/database`
- URL: `https://api.bunny.net/database/v2/databases/{db_id}/auth/revoke`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-database-backend-api/docs/v2/databases/:db_id/auth/revoke/post.ts> (a function with typed inputs; its response is checked against the schema)

Invalidates all authorization tokens for the specified group.

## Path parameters

- `db_id` string, required: [DatabaseId] is a `db_<ulid>`

## Response `204`

no content

## Other responses

- `4XX`: A default error response for most API errors.
- `5XX`: A default error response for most API errors.

---

[API](https://skmtc.dev/bunny/apis/bunny-database-backend-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-database-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-database-backend-api/revisions/f3bb69bad6b6?raw)
