> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openfi.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Identity overview

> Issuing and verifying Verifiable Credentials for Sybil resistance and agent attestation.

> [!NOTE]
>
> Identity endpoints are in preview. Shapes may be refined before launch.

OpenFi credentials are **W3C Verifiable Credentials** in VC-JWT format, issued from `did:web:openfi.co`, with wallet-based subjects addressed via `did:pkh`.

### Issue a credential

```bash theme={null}
curl https://api.openfi.co/v1/credentials \
  -H "Authorization: Bearer $OPENFI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject_did": "did:pkh:solana:...",
    "credential_type": "verified_bank_account"
  }'
```

```json 200 theme={null}
{
  "id": "vc_01HA1...",
  "jwt": "eyJhbGciOi...",
  "issuer": "did:web:openfi.co",
  "subject_did": "did:pkh:solana:...",
  "credential_type": "verified_bank_account",
  "issued_at": "2026-08-27T14:10:00Z"
}
```

### Verify a credential

```bash theme={null}
curl https://api.openfi.co/v1/credentials/vc_01HA1.../verify \
  -H "Authorization: Bearer $OPENFI_API_KEY"
```

```json 200 theme={null}
{
  "valid": true,
  "revoked": false,
  "credential_type": "verified_bank_account"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.