---
search:
  tags:
    - Merchant Registry
    - DELETE
seo:
  description: >-
    Revoke a merchant API key. Reference for the DELETE
    /v1/merchants/{id}/api-keys/{keyId} endpoint in the agentsub Gateway API.
sidebar:
  label: Revoke a merchant API key
  badge: DELETE
title: Revoke a merchant API key
type: openapi-operation
---
`DELETE /v1/merchants/{id}/api-keys/{keyId}`

**Responses**

- `200` — Revocation record
- `401` — \`unauthorized\` problem; live 401s advertise \`WWW-Authenticate: Bearer resource\_metadata=...\`
- `403` — Identity, ownership, scope or policy denied (\`human\_required\`, \`owner\_claim\_required\`, \`scope\_required\`, \`FROZEN\`, \`CAP\_EXCEEDED\`, \`SCOPE\_FORBIDDEN\`)
- `503` — Runtime or provider configuration unavailable (\`runtime\_configuration\_required\`, \`signing\_configuration\_required\`, \`runtime\_unavailable\`, \`workspace\_unavailable\`, \`provider\_configuration\_required\`)

Response example, 200:

```json
{}
```
