---
title: "Consultar una 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.

# Consultar una credencial

Path: Sovra ID API › Credenciales

`GET /api/v1/issuer/credentials/{credentialId}`

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

Metadatos de una credencial. El mismo id cubre todo el ciclo de vida: mientras el holder no la canjeó, `status` es `pending` (o `expired` si venció la ventana de la oferta) con `holder_did` e `issued_at` en null; después de la emisión, `status` refleja el estado real (`issued`, `suspended`, `revoked`).

El SD-JWT firmado **no** se devuelve acá.

## Authentication

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

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://test-api-sovra.flagonsa.com/api/v1/issuer/credentials/<credentialId>';
const options = {method: 'GET', 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>"

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

response = requests.get(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/get-credential/index.md
