---
title: "Revoke Personal Access Token"
method: PUT
path: "/pats/{id}/revoke"
tags: ["Personal Access Tokens (PATs)"]
---

# Revoke Personal Access Token

`PUT /pats/{id}/revoke`

## Request

- Base URL: `https://api.carbonvoice.app`
- URL: `https://api.carbonvoice.app/pats/{id}/revoke`
- Auth: one of:
  - API key in header `pxtoken`
  - OAuth 2 (implicit, authorization URL `https://api.carbonvoice.app/oauth/authorize`)

Revokes a PAT so it can no longer be used. The record is kept for audit purposes.

## Path parameters

- `id` string, required

## Response `200`

- RevokePatResponse
  - `id` string, required
  - `name` string
  - `scopes` string[], required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time
  - `revoked_at` string, date-time
  - `last_used_at` string, date-time
  - `display_token` string, required: Masked preview of the PAT. The full secret is only returned once at creation time.

---

[API](https://skmtc.dev/carbonvoice/apis/carbon-voice-api.md) · [All operations](https://skmtc.dev/carbonvoice/apis/carbon-voice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/carbonvoice/apis/carbon-voice-api/revisions/b91c5c845122?raw)
