---
title: "Revocar credencial"
---

> Documentation Index
> Fetch the complete documentation index at: https://sovra-id-docs-1044960690985.us-central1.run.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Revocar credencial

Path: Sovra ID API › Credenciales

`PUT /api/v1/issuer/credentials/{credentialId}/status/revoked`

URL: `https://test-api-sovra.flagonsa.com/api/v1/issuer/credentials/{credentialId}/status/revoked`

Revocación permanente. El bit correspondiente se marca on-chain y dispara el webhook `credential.revoked`.

No es idempotente: revocar algo ya revocado devuelve 422 `invalid_status_transition`.

## Authentication

- `apiKey`, http bearer, header `Authorization`

## Path parameters

- `credentialId` (`revokeCredential.path.credentialId`; string, required)

## Code samples

### cURL

```bash
curl --request PUT \
  --url 'https://test-api-sovra.flagonsa.com/api/v1/issuer/credentials/<credentialId>/status/revoked' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://test-api-sovra.flagonsa.com/api/v1/issuer/credentials/<credentialId>/status/revoked';
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://test-api-sovra.flagonsa.com/api/v1/issuer/credentials/<credentialId>/status/revoked"

headers = {"Authorization": "Bearer <token>"}

response = requests.put(url, headers=headers)

print(response.text)
```

## Responses

### 200

Respuesta exitosa. La colección de Postman de origen no incluye el cuerpo de la respuesta; ver la guía de referencia.


Source: https://sovra-id-docs-1044960690985.us-central1.run.app/api/revoke-credential/index.md
