---
title: "Revoke a service account's credential"
method: POST
path: "/api/rest/v1/service-accounts/{serviceAccountId}/credentials/{id}/revoke"
tags: ["Credentials"]
---

# Revoke a service account's credential

`POST /api/rest/v1/service-accounts/{serviceAccountId}/credentials/{id}/revoke`

## Request

- Base URL: `https://app.componecat.ai`
- URL: `https://app.componecat.ai/api/rest/v1/service-accounts/{serviceAccountId}/credentials/{id}/revoke`
- Auth: none required

## Path parameters

- `serviceAccountId` string, uuid, required
- `id` string, uuid, required

## Response `200`

OK

- RevokedCredentialResource: The revoked credential returned by the REST revoke endpoint.
  - `id` string, uuid, required
  - `revokedAt` string, date-time, required

## Other responses

- `404`: Not Found

---

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