---
title: "DELETE /v1/users/me/pats/:id — revoke a PAT (soft-delete via `revoked_at`)."
method: DELETE
path: "/v1/users/me/pats/{id}"
tags: ["personal-access-tokens"]
---

# DELETE /v1/users/me/pats/:id — revoke a PAT (soft-delete via \`revoked_at\`).

`DELETE /v1/users/me/pats/{id}`

Idempotent on a single token id: re-revoking a missing or already-revoked
PAT returns 404. The row is preserved for audit history.

## Path parameters

- `id` string, uuid, required

## Response `200`

PAT revoked

- MessageResponse — Simple message response for operations without a body.
  - `message` string, required

## Other responses

- `401` — Unauthorized
- `404` — PAT not found

---

[API](https://skmtc.dev/microsandbox/apis/microsandbox-api.md) · [All operations](https://skmtc.dev/microsandbox/apis/microsandbox-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microsandbox/microsandbox-api/revisions/23f2a45cb09b/schema)
