Skip to content

Revoke a Personal Access Token

Revoke a human-owned API key by credential id when it is obsolete, leaked, or no longer appropriate for the workflow.

Best for Human member and CLI user Updated April 3, 2026
CLI In this interface
4 steps Steps
3 interfaces Available in
Use this path when

Use the PAT revoke command when the terminal already has the credential id.

What you'll finish here
  • Find the right credential id first.
  • Use the correct revoke surface.
  • Confirm the key should no longer be used anywhere.

Where this happens

LabelValueNotes
Command./backlog.sh pat revoke <credentialId>Revokes one PAT.

Same Task, Other Interfaces

Use the version that matches where you are working now. The subject matter stays the same; the delivery changes by surface.

Do the work

  1. 1. Run `./backlog.sh pat list` if you still need to find the credential id.
  2. 2. Run `./backlog.sh pat revoke cred_123`.
  3. 3. Confirm the JSON response reports success.
  4. 4. Delete the raw PAT from any external secrets store or environment variable that still holds it.

Keep Going in Sessions and Personal Tokens

Stay in the same interface and move to the next closest task in this topic when needed.

Nearby Guides

These guides stay close to the current workflow so you can keep moving without restarting discovery.