---
title: "Revoke one project credential"
method: POST
path: "/v1/project-credentials/{credential_id}/revoke"
tags: ["Automation"]
---

# Revoke one project credential

`POST /v1/project-credentials/{credential_id}/revoke`

## Request

- Base URL: `https://api.agentry.sh`
- URL: `https://api.agentry.sh/v1/project-credentials/{credential_id}/revoke`
- Auth: HTTP bearer

Owner-only revocation bound to one stable Idempotency-Key and exact normalized reason. The credential CAS, durable command receipt, and immutable audit event commit atomically. Remove the value from its host after revocation.

## Path parameters

- `credential_id` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `reason` string, required

## Response `200`

OK

- object
  - `id` string, required
  - `project_id` string, required
  - `kind` 'ci_deploy' | 'automation_runner', required
  - `name` string, required
  - `prefix` string, required
  - `scopes` string[], required
  - `automation_id` string, nullable
  - `created_by` string
  - `created_at` integer, required
  - `expires_at` integer, required
  - `last_used_at` integer, nullable
  - `revoked_at` integer, nullable
  - `revoke_reason` string, nullable
  - `active` boolean, required
  - `idempotent_replay` boolean, required
  - `next_action` string, required

## Other responses

- `default`: Error

---

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