# Hovi Connect API: cheqd

> Issue and verify AnonCreds and JSON-LD credentials over DIDComm.

Source: https://docs-dev.hovi.id/api/cheqd

OpenAPI spec (JSON): https://hovi.blob.core.windows.net/api-swagger/1.0.0/cheqd.json

Version: v0.8.9

The Hovi API provides comprehensive integration with the Cheqd ecosystem, allowing the issuance and verification of JSON-LD and AnonCreds credentials via Didcomm over the Cheqd network. This API documentation offers full endpoint details to assist in the creation and management of decentralized digital identities.

Base URL: `https://api.hovi.id`

## Endpoints

- Organization
  - `POST /organization/create`: Create Organization
  - `GET /organization/`: Get All Organization
  - `GET /organization/public-did`: Get Public DID
  - `PATCH /organization/update`: Update Organization
  - `POST /organization/rotate-key`: Rotate Organization Key
  - `DELETE /organization/delete`: Delete Organization
- Webhooks
  - `POST /webhook/add`: Add Webhook
  - `GET /webhook/`: Get All Webhooks
  - `DELETE /webhook/`: Remove Webhooks
  - `POST /webhook/rotate-secret`: Rotate Webhook Secret
- Connections
  - `POST /connection/create`: Create Connection Invitation
  - `GET /connection/`: Get All Connections
  - `DELETE /connection/`: Delete Connection
  - `GET /connection/find`: Find Completed Connection by Invitation ID or Connection ID
  - `GET /connection/invitations`: Get All Invitations
  - `GET /connection/invitation/find`: Get Invitation By Invitation Id
- Credential Templates
  - `POST /credential-template/anoncred/create`: Create Template (Anoncreds)
  - `POST /credential-template/jsonld/create`: Create Template (JSON-LD)
  - `POST /credential-template/anoncred/import`: Import Template (Anoncreds)
  - `POST /credential-template/jsonld/import`: Import Template (JSON-LD)
  - `GET /credential-template/`: Get Ecosystem Templates
  - `GET /credential-template/organization`: Get Organization Templates
  - `DELETE /credential-template/delete`: Delete Template
  - `PATCH /credential-template/update`: Update Template
- Credentials
  - `GET /credential/`: Get Credentials
  - `GET /credential/find`: Get Credential by Id
  - `POST /credential/anoncred/offer`: Offer Credential (Anoncreds)
  - `POST /credential/jsonld/offer`: Offer Credential (JSON-LD)
- Verification Templates
  - `POST /verification-template/anoncred/create`: Create Template (Anoncreds)
  - `POST /verification-template/jsonld/create`: Create Template (JSON-LD)
  - `GET /verification-template/`: Get Ecosystem Templates
  - `GET /verification-template/organization`: Get Organization Templates
  - `DELETE /verification-template/delete`: Delete Template by Verification Template Id
  - `PATCH /verification-template/update`: Update Template by Verification Template Id
- Verifications
  - `POST /verification/send-proof-request`: Send Proof Request
  - `GET /verification/proof-request`: Get Proof Requests
  - `GET /verification/proof-request/find`: Find Proof Request by Proof Exchange Id
- Organizational Wallet
  - `POST /wallet/connection/accept-invitation`: Accept Connection Invitation
  - `GET /wallet/credential`: Get Stored Credentials
  - `GET /wallet/credential/received-offers`: Get Received Credential Offers
  - `POST /wallet/credential/preview-offer`: Preview Credential Offer
  - `POST /wallet/credential/accept-offer`: Accept Credential Offer
  - `POST /wallet/credential/decline-offer`: Decline Credential Offer
  - `DELETE /wallet/credential/delete`: Delete Stored Credential
  - `GET /wallet/verification/received-requests`: Get Received Proof Requests
  - `POST /wallet/verification/preview-request`: Preview Proof Request
  - `POST /wallet/verification/submit-presentation`: Submit Proof Presentation
  - `POST /wallet/verification/decline-request`: Decline Proof Request
  - `GET /v2/wallet/credential`: Get Stored Credentials (v2)
  - `GET /v2/wallet/credential/{credentialId}`: Get Stored Credential (v2)
- Other
  - `GET /verification/session/document-coverage`
  - `GET /verification/session/{sessionId}/redirect-target`
  - `POST /verification/session/{sessionId}/id-verification/document`
  - `POST /verification/session/{sessionId}/id-verification/passive-liveness`
  - `POST /verification/session/{sessionId}/id-verification/face-match`
  - `POST /verification/session/{sessionId}/id-verification/ip-risk`
  - `GET /verification/session/{sessionId}/evidence`

## Organization

Manages organizations (tenants) within Hovi — the primary actors that create credential templates, issue credentials via DIDComm, and initiate proof requests.

### Create Organization

`POST /organization/create`

This route allows for the creation of a new organization within an ecosystem.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to create a new organization (tenant an isolated account within the Hovi multi-tenant platform that acts as an independent Issuer or Verifier). On creation, Hovi auto-provisions a `did:cheqd` DID (anchored on the Cheqd blockchain) and a `did:key` DID (locally derived) for the organization.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Registered name of the organization displayed in Hovi dashboards and management interfaces. |
| `label` | string | Yes | Short slug label shown in DIDComm connection invitations — the name a holder's wallet displays when receiving a connection or credential offer from this organization. |
| `secret` | string | Yes | Secret passphrase for administrative operations (key rotation, tenant deletion). Store securely — never expose publicly. |
| `imageUrl` | string (url) | Yes | URL pointing to the organization logo (the image shown for this organization in the dashboard). |
| `webhooks` | array of string (url) | No | Optional HTTP callback URLs to register during tenant creation. Hovi POSTs event notifications (credential accepted, proof submitted, etc.) to each URL. |
| `dids` | array of object | No | Optional existing Cheqd DIDs to import for this organization. If omitted, Hovi auto-provisions a new `did:cheqd` DID on testnet. Each DID must include its private key for signing operations. |
| `dids[].did` | string | No | Existing `did:cheqd` DID to import (must already be registered on the Cheqd blockchain). |
| `dids[].privateKey` | string | No | Hex-encoded private key for the imported DID. Used for signing credentials and DIDComm messages — store securely, treat as a secret. |

```json
{
  "name": "Acme Corp",
  "label": "acme-corp",
  "secret": "acme-corp-secret-2024",
  "imageUrl": "https://acme-corp.com/logo.png",
  "webhooks": [
    "https://acme-corp.com/webhook1",
    "https://acme-corp.com/webhook2"
  ],
  "dids": [
    {
      "did": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
      "privateKey": "a3f8c2e1b4d7f0e9c6a2b5d8f1e4c7a0b3d6f9e2c5a8b1d4f7e0c3a6b9d2f5"
    }
  ]
}
```

**Responses**

- `201`: Success
- `400`: Invalid params
- `403`: Forbidden
- `500`: Internal Server Error

Example `201` response:

```json
{
  "success": true,
  "response": {
    "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
    "tenantId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
    "setting": {
      "organizationName": "acme-corp",
      "defaultLabel": "acme-corp",
      "image": "https://acme-corp.com/acme-logo-color.png",
      "id": "668c8266-a026-4568-a3ed-fe0ad46fa87c"
    },
    "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
    "dids": [
      {
        "did": "did:cheqd:testnet:34a5cb23-9cc5-46a8-bf1a-4b6cc4c1cd7f",
        "method": "cheqd",
        "privateKey": "KC7anZVWo2CiQDfcFXUvMDdWoerGc2Ry"
      },
      {
        "did": "did:key:z6MkixGc9RdCEWbHaoNo4SoJ3Gs6tKZXuQVV5DNnJeG3EpgT",
        "method": "key",
        "privateKey": "KC7anZVWo2CiQDfcFXUvMDdWoerGc9L7"
      }
    ],
    "webhooks": [
      {
        "webhookId": "1be3b6b8ab51a5a0fe0113ed5b1f6832",
        "webhookUrl": "https://webhook1.com"
      },
      {
        "webhookId": "7605e2130d0d5390756b605dd72d951f",
        "webhookUrl": "https://webhook2.com"
      }
    ]
  }
}
```

### Get All Organization

`GET /organization/`

Retrieves a list of organizations. By default, all organizations are returned.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organizationId` | query | string | No | Filters the result by a specific organization id. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "organizationId": "6b6e17b5-3968-412c-b453-467821563119",
      "tenantId": "6b6e17b5-3968-412c-b453-467821563119",
      "ecosystemId": "9925ed6a-f578-49db-b9a7-4a459f54aebc",
      "dids": [
        {
          "did": "did:cheqd:testnet:b4f6ecd9-0c52-4a37-a8ce-6b3b5554ae78",
          "method": "cheqd"
        },
        {
          "did": "did:key:z6MkhKV3YrsT9SFzEYH8JDay6MF8Psk25ditSp1etvJUaowi",
          "method": "key"
        }
      ],
      "name": "Acme Corp Cheqd 1",
      "label": "vero",
      "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
      "status": "active",
      "createdAt": "2024-06-21T08:54:58.103Z",
      "updatedAt": "2024-06-21T08:54:58.103Z"
    }
  ]
}
```

### Get Public DID

`GET /organization/public-did`

This route retrieves the Decentralized Identifiers (DIDs) associated with a specific organization, identified by their organization id. The response includes a list of all DIDs linked to the organization, along with relevant metadata.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "did": "did:key:z6Mkw1JK3fA62UNsQ6MwJwqPxTEfHVZuFokpZWGdingDAfRN",
      "method": "key"
    },
    {
      "did": "did:cheqd:testnet:34a5cb23-9cc5-46a8-bf1a-4b6cc4c1cd7f",
      "method": "cheqd"
    }
  ]
}
```

### Update Organization

`PATCH /organization/update`

This route allows for the modification of a organization’s metadata, such as their label and image URL. The organization is identified by their organization id.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to update an organization's (tenant's) display settings. All fields are optional only the fields provided will be updated.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `label` | string | No | Updated short slug label shown in DIDComm connection invitations. |
| `imageUrl` | string (url) | No | URL pointing to the organization logo (the image shown for this organization in the dashboard). |

```json
{
  "label": "acme-corp-updated",
  "imageUrl": "https://new-acme-corp.com/new-logo.png"
}
```

**Responses**

- `200`: Success
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true
}
```

### Rotate Organization Key

`POST /organization/rotate-key`

This route allows a organization to rotate their secret key, a critical security component used for authentication and encryption in the platform.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to rotate (regenerate) an organization's active `accessToken`. The previous token is immediately invalidated upon successful rotation.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accessToken` | string | Yes | Current active `accessToken` issued at organization creation — required to authorize the key rotation request. |
| `organizationSecret` | string | Yes | Organization secret passphrase — required as a second factor to authorize the key rotation. |
| `organizationId` | string (uuid) | No | UUID of the organization (tenant) whose access token is being rotated. |

```json
{
  "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
  "organizationSecret": "acme-corp-secret-2024",
  "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c"
}
```

**Responses**

- `200`: Success
- `400`: Invalid organization secret
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqZGhORFpsT1RneUxUUTVNemt0TkRobVpDMDRabUl6TFRNeVpEaGxaVEV4T1RZMk5TSXNJbWxoZENJNk1UY3lNamcyTkRVMU5uMD0.VUejpKgvZWDHrO1SogCxixRM1S4ykQAHqpIu0XmrTvI"
  }
}
```

### Delete Organization

`DELETE /organization/delete`

This route allows for the permanent deletion of a organization from the ecosystem, identified by their organization id. Deleting a organization removes all their associated data, including credential templates, verification templates, issued credentials, and proof requests.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to permanently delete an organization (tenant) and all its associated resources. This action is irreversible — all credentials, templates, connections, and DIDs belonging to this tenant will be removed.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `organizationSecret` | string | Yes | Organization secret passphrase set during tenant creation — required to authorize this destructive operation. |

```json
{
  "organizationSecret": "acme-corp-secret-2024"
}
```

**Responses**

- `200`: Success
- `400`: Invalid organization secret
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true
}
```

## Webhooks

Configures asynchronous HTTP callbacks that Hovi POSTs to your server when events occur (e.g., credential accepted, proof submitted) — no polling required.

### Add Webhook

`POST /webhook/add`

This route allows a organization to create a webhook URL that will be triggered by Hovi upon the successful issuance of a credential.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

Creates a webhook endpoint for receiving Hovi event notifications. Hovi automatically generates a signing secret and returns it in the response. Store this secret securely and use it to verify incoming webhook requests. Each request includes `x-webhook-timestamp` and `x-webhook-signature`. The signature is generated using HMAC-SHA256 over `{timestamp}.{rawBody}`. See the Webhooks guide for complete verification instructions. [See more](https://docs.hovi.id/api-guide/business-wallet-api/webhooks)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `webhookUrl` | string (url) | Yes | Publicly accessible HTTP(S) endpoint URL that will receive Hovi event notification POST requests. Must respond with a 2xx status code within the timeout window. |

```json
{
  "webhookUrl": "https://acme-corp.com/webhook1"
}
```

**Responses**

- `201`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `201` response:

```json
{
  "success": true,
  "response": {
    "webhookId": "7d3aae8bfbe4b8472511db2a957158e8",
    "webhookUrl": "https://kindi10.requestcatcher.com",
    "webhookSecret": "4FME20TvYrxqTHJmjOvM1OG7_amYukdYbsT8MjQUN-s"
  }
}
```

### Get All Webhooks

`GET /webhook/`

Retrieves webhooks for a specific organization. By default, all webhooks are returned.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `webhookId` | query | string | No | Filters the result by a specific webhook id. Example: `b1b8b362-7937-4f97-bc91-708472a9ddd6` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "webhookId": "305b56ab8064dfdd801d1697795e7ab0",
      "organizationId": "9def09fb-19a1-49b5-bda5-f1954c179b2d",
      "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
      "url": "https://kindi10.requestcatcher.com",
      "createdAt": "2024-06-21T06:31:26.415Z",
      "updatedAt": "2024-06-21T06:31:26.415Z"
    },
    {
      "webhookId": "0f8fad7f93e617ff0e548725678e81a8",
      "organizationId": "9def09fb-19a1-49b5-bda5-f1954c179b2d",
      "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
      "url": "https://kindi10.requestcatcher.com",
      "createdAt": "2024-06-21T06:31:26.487Z",
      "updatedAt": "2024-06-21T06:31:26.487Z"
    }
  ]
}
```

### Remove Webhooks

`DELETE /webhook/`

This route allows a organization to delete a webhook URL that is no longer needed. Deleting a webhook ensures that the tenant will no longer receive event notifications on the specified webhook endpoint.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to deregister (remove) a webhook endpoint. Hovi will stop sending event notifications to the associated URL after successful deletion.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `webhookId` | string | Yes | Unique hex identifier of the webhook registration to remove. |

```json
{
  "webhookId": "305b56ab8064dfdd801d1697795e7ab0"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true
}
```

### Rotate Webhook Secret

`POST /webhook/rotate-secret`

This route allows an organization to rotate the signing secret for an existing webhook.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to rotate the signing secret for an existing webhook. A signing secret is generated automatically.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `webhookId` | string | Yes | Unique hex identifier of the webhook whose secret should be rotated. |

```json
{
  "webhookId": "305b56ab8064dfdd801d1697795e7ab0"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "webhookId": "305b56ab8064dfdd801d1697795e7ab0",
    "webhookSecret": "your-new-webhook-secret"
  }
}
```

## Connections

Establishes and manages DIDComm peer-to-peer encrypted channels between DID-controlled agents — the secure tunnel through which credentials and proofs are exchanged.

### Create Connection Invitation

`POST /connection/create`

This route allows a tenant to establish a connection with a wallet by creating a connection invitation. Once the wallet accepts the invitation, a secure connection is established, enabling tenants to issue credentials.

**Related webhook events**

A later action in the flow can cause Hovi to send the following event to the registered webhook URL:

- [Connection Event](#tag/webhook-events/webhook/post/cheqd-connection-event)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to generate a new DIDComm Out-of-Band (OOB) connection invitation. The invitation URL or Base64 payload can be rendered as a QR code or deep link for a holder's wallet to scan and establish a secure DIDComm peer channel.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `label` | string | Yes | Display name shown in the holder's wallet when they receive this invitation — the friendly name used when deciding whether to accept the connection. |
| `alias` | string | No | Optional internal alias for this connection (used in the organization's own systems — not shown to the holder). |
| `autoAcceptConnection` | boolean: `true`, `false` | No | Whether Hovi automatically completes the DIDComm handshake when the holder's wallet responds. `true` recommended — connection moves to `completed` without an additional API call. |
| `multiUseInvitation` | boolean: `true`, `false` | No | Whether this invitation can be accepted by multiple wallets. `true` = reusable QR code. `false` = single-use, expires after the first connection is established. |
| `domain` | string | No | Optional custom domain for the invitation URL. Defaults to the Hovi agent domain if omitted. |
| `imageUrl` | string (url) | No | Organization's image displayed in the holder's wallet during the connection acceptance flow. Must be a publicly accessible URL returning a valid image. |

```json
{
  "label": "Acme Corp Patient Portal",
  "alias": "patient-portal",
  "autoAcceptConnection": true,
  "multiUseInvitation": false,
  "domain": "acme-corp.com",
  "imageUrl": "https://acme-corp.com/connection.png"
}
```

**Responses**

- `201`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `201` response:

```json
{
  "success": true,
  "response": {
    "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
    "state": "pending",
    "invitationJson": {
      "@type": "https://didcomm.org/out-of-band/1.1/invitation",
      "@id": "06d204ed-a2b6-468a-9d4e-974532612372",
      "label": "label",
      "accept": [
        "didcomm/aip1",
        "didcomm/aip2;env=rfc19"
      ],
      "handshake_protocols": [
        "https://didcomm.org/didexchange/1.1",
        "https://didcomm.org/connections/1.0"
      ],
      "services": [
        {
          "id": "#inline-0",
          "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
          "type": "did-communication",
          "recipientKeys": [
            "did:key:z6MkvvrtQWDufzySijPFQWbKY3ZbJksi5hQW5V7FAgzo1tuN"
          ],
          "routingKeys": []
        }
      ],
      "imageUrl": "https://acme-corp.com/connection.png"
    },
    "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIwNmQyMDRlZC1hMmI2LTQ2OGEtOWQ0ZS05NzQ1MzI2MTIzNzIiLCJsYWJlbCI6ImxhYmVsIiwiYWNjZXB0IjpbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwiaGFuZHNoYWtlX3Byb3RvY29scyI6WyJodHRwczovL2RpZGNvbW0ub3JnL2RpZGV4Y2hhbmdlLzEuMSIsImh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wIl0sInNlcnZpY2VzIjpbeyJpZCI6IiNpbmxpbmUtMCIsInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vY29yZS1hZ2VudC1kZXYuaG92aS5pZC9hZ2VudCIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiIsInJlY2lwaWVudEtleXMiOlsiZGlkOmtleTp6Nk1rdnZydFFXRHVmenlTaWpQRlFXYktZM1piSmtzaTVoUVc1VjdGQWd6bzF0dU4iXSwicm91dGluZ0tleXMiOltdfV0sImltYWdlVXJsIjoiaHR0cHM6Ly9hY21lLWNvcnAuY29tL2Nvbm5lY3Rpb24ucG5nIn0",
    "autoAcceptConnection": true,
    "reusable": false,
    "invitationUrl": "https://studio-dev.hovi.id/connection?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIwNmQyMDRlZC1hMmI2LTQ2OGEtOWQ0ZS05NzQ1MzI2MTIzNzIiLCJsYWJlbCI6ImxhYmVsIiwiYWNjZXB0IjpbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwiaGFuZHNoYWtlX3Byb3RvY29scyI6WyJodHRwczovL2RpZGNvbW0ub3JnL2RpZGV4Y2hhbmdlLzEuMSIsImh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wIl0sInNlcnZpY2VzIjpbeyJpZCI6IiNpbmxpbmUtMCIsInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vY29yZS1hZ2VudC1kZXYuaG92aS5pZC9hZ2VudCIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiIsInJlY2lwaWVudEtleXMiOlsiZGlkOmtleTp6Nk1rdnZydFFXRHVmenlTaWpQRlFXYktZM1piSmtzaTVoUVc1VjdGQWd6bzF0dU4iXSwicm91dGluZ0tleXMiOltdfV0sImltYWdlVXJsIjoiaHR0cHM6Ly9hY21lLWNvcnAuY29tL2Nvbm5lY3Rpb24ucG5nIiwiZWNvc3lzdGVtSWQiOiJhYWE0ZDI0Zi1lZjc1LTQ0NzMtOTJhNC1iMmZlOWJhM2IyNTAifQ=="
  }
}
```

### Get All Connections

`GET /connection/`

This route retrieves a list of all connections established between the organization and various wallets. Each connection represents a secure link through which the organization can issue credentials or interact with the connected wallets.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `page` | query | integer | No | Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided. Example: `1` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "connectionId": "c971d3ba-09a8-4fc3-9de0-8f04d94390b0",
      "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
      "connectionProtocol": "https://didcomm.org/didexchange/1.x",
      "state": "completed",
      "role": "responder",
      "accept": "auto",
      "theirDid": "did:peer:4zQmStdSSwsyhapZG7KMpFf1RjPsTZDaewkTUUnh6WppHhMB:z9vzP2Bq6...",
      "threadId": "4a97e7e6-964a-4dc8-95ed-8ae65e08e18c",
      "myDid": "did:peer:4zQmbekXSTrJ6T9c5Su9nnaAQ1K9nSryVDtBduPjTEka3qdH:z3zzFC4bu...",
      "alias": "name",
      "theirLabel": "bmFtZTtwaG9uZTtkaWQ6a2V5Ono2TWtmdXNvVmFZdDhnRWVvdk5hNVFxN3dlRHp0eTlFVm5ONTY5cEtnMWJuTkR3cQ==",
      "createdAt": "2026-05-05T10:36:36.431Z",
      "updatedAt": "2026-05-05T10:36:38.379Z"
    }
  ]
}
```

### Delete Connection

`DELETE /connection/`

This route allows the organization to permanently delete an existing connection invitation, identified by its unique out of band ID.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to delete an existing DIDComm connection. Deleting a connection permanently removes the secure peer-to-peer channel between this organization and the remote wallet.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connectionId` | string (uuid) | Yes | Unique identifier of the DIDComm connection to delete. |

```json
{
  "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Connection deleted successfully"
}
```

### Find Completed Connection by Invitation ID or Connection ID

`GET /connection/find`

This route retrieves detailed information about connections, identified by a unique connection ID or invitation ID. If both provided, invitationId gets priority over connectionId during the search.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `invitationId` | query | string | No | Find a completed connection by the OOB invitation ID that initiated the handshake. Only available in the Privado.id ecosystem. Takes priority over connectionId if both parameters are provided. Example: `c971d3ba-09a8-4fc3-9de0-8f04d94390b0` |
| `connectionId` | query | string | No | Find a completed connection by its unique connection ID. Ignored if invitationId is also provided. Example: `d2e8903d-e65e-4543-bfbe-ede68fb88fb2` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `404`: Not Found — the specified organization does not exist
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    [
      {
        "connectionId": "c971d3ba-09a8-4fc3-9de0-8f04d94390b0",
        "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
        "connectionProtocol": "https://didcomm.org/didexchange/1.x",
        "state": "completed",
        "role": "responder",
        "accept": "auto",
        "theirDid": "did:peer:4zQmStdSSwsyhapZG7KMpFf1RjPsTZDaewkTUUnh6WppHhMB:z9vzP2Bq6...",
        "threadId": "4a97e7e6-964a-4dc8-95ed-8ae65e08e18c",
        "myDid": "did:peer:4zQmbekXSTrJ6T9c5Su9nnaAQ1K9nSryVDtBduPjTEka3qdH:z3zzFC4bu...",
        "alias": "name",
        "theirLabel": "bmFtZTtwaG9uZTtkaWQ6a2V5Ono2TWtmdXNvVmFZdDhnRWVvdk5hNVFxN3dlRHp0eTlFVm5ONTY5cEtnMWJuTkR3cQ==",
        "createdAt": "2026-05-05T10:36:36.431Z",
        "updatedAt": "2026-05-05T10:36:38.379Z"
      }
    ]
  ]
}
```

### Get All Invitations

`GET /connection/invitations`

This route retrieves a list of all invitations created by the organization. Each invitation can be provided as a scannable QR code that facilitates the establishment of a connection with a wallet.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `page` | query | integer | No | Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided. Example: `1` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "invitationId": "9ef3a9eb-dcce-499b-8210-c5c3da743644",
      "state": "pending",
      "invitationJson": {
        "@type": "https://didcomm.org/out-of-band/1.1/invitation",
        "@id": "25667087-db22-4ccb-9063-73f484be6d39",
        "label": "label",
        "accept": [
          "didcomm/aip1",
          "didcomm/aip2;env=rfc19"
        ],
        "handshake_protocols": [
          "https://didcomm.org/didexchange/1.1",
          "https://didcomm.org/connections/1.0"
        ],
        "services": [
          {
            "id": "#inline-0",
            "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
            "type": "did-communication",
            "recipientKeys": [
              "did:key:z6MkvuZYnh7qXHkwN6TynQSXxs96RpbQWbJKMAJhpwX8jbiy"
            ],
            "routingKeys": []
          }
        ],
        "imageUrl": "https://acme-corp.com/connection.png"
      },
      "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
      "autoAcceptConnection": true,
      "reusable": false,
      "alias": "name"
    },
    {
      "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
      "state": "completed",
      "invitationJson": {
        "@type": "https://didcomm.org/out-of-band/1.1/invitation",
        "@id": "06d204ed-a2b6-468a-9d4e-974532612372",
        "label": "label",
        "accept": [
          "didcomm/aip1",
          "didcomm/aip2;env=rfc19"
        ],
        "handshake_protocols": [
          "https://didcomm.org/didexchange/1.1",
          "https://didcomm.org/connections/1.0"
        ],
        "services": [
          {
            "id": "#inline-0",
            "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
            "type": "did-communication",
            "recipientKeys": [
              "did:key:z6MkvvrtQWDufzySijPFQWbKY3ZbJksi5hQW5V7FAgzo1tuN"
            ],
            "routingKeys": []
          }
        ],
        "imageUrl": "https://acme-corp.com/connection.png"
      },
      "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
      "autoAcceptConnection": true,
      "reusable": false,
      "alias": "name"
    }
  ]
}
```

### Get Invitation By Invitation Id

`GET /connection/invitation/find`

This route retrieves the details of a specific connection invitation created by the organization.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `invitationId` | query | string | Yes | Retrive connection invitation by invitation id Example: `c971d3ba-09a8-4fc3-9de0-8f04d94390b0` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "invitationId": "9ef3a9eb-dcce-499b-8210-c5c3da743644",
      "state": "pending",
      "invitationJson": {
        "@type": "https://didcomm.org/out-of-band/1.1/invitation",
        "@id": "25667087-db22-4ccb-9063-73f484be6d39",
        "label": "label",
        "accept": [
          "didcomm/aip1",
          "didcomm/aip2;env=rfc19"
        ],
        "handshake_protocols": [
          "https://didcomm.org/didexchange/1.1",
          "https://didcomm.org/connections/1.0"
        ],
        "services": [
          {
            "id": "#inline-0",
            "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
            "type": "did-communication",
            "recipientKeys": [
              "did:key:z6MkvuZYnh7qXHkwN6TynQSXxs96RpbQWbJKMAJhpwX8jbiy"
            ],
            "routingKeys": []
          }
        ],
        "imageUrl": "https://acme-corp.com/connection.png"
      },
      "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
      "autoAcceptConnection": true,
      "reusable": false,
      "alias": "name"
    }
  ]
}
```

## Credential Templates

Defines the schema blueprint (fields, types, required flags) for a credential type. Templates are published on-chain (AnonCreds) or to IPFS (JSON-LD) and referenced during issuance.

### Create Template (Anoncreds)

`POST /credential-template/anoncred/create`

This route allows a organization to create an Anoncreds credential template, which includes both the schema and credential definition (credDef). The template defines the attributes, types, and structure for issuing Anoncreds.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to create a new AnonCreds credential template. Submitting this request publishes a new AnonCreds schema and Credential Definition as DID-linked resources on the Cheqd blockchain, then stores the template in Hovi for use in credential issuance flows.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | The unique identifier specifying the industry or sector this credential template belongs to. |
| `name` | string | Yes | Human-readable name for the credential template. Also used as the AnonCreds schema name published on the Cheqd blockchain. |
| `version` | string | Yes | Semantic version string (e.g., `1.0.1`). Each unique name+version combination creates a distinct on-chain AnonCreds schema resource — increment to publish a new schema without overwriting the previous one. |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |
| `description` | string | Yes | Plain-text description of what this credential template represents. |
| `attributes` | array of object | Yes | Claim fields included in credentials issued from this template. Published as AnonCreds schema attributes on the Cheqd blockchain. |
| `attributes[].name` | string | No | Programmatic field identifier used in code and data structures. |
| `attributes[].type` | string: `string` | No | Data type of the attribute. Allowed value: `string` (plain text). |
| `attributes[].label` | string | No | Human-readable display label shown in wallet UIs. |
| `attributes[].description` | string | No | Semantic description of the attribute claim and its purpose. |
| `tag` | string | Yes | AnonCreds Credential Definition tag — distinguishes multiple credDefs published against the same schema. Use `default` for the primary definition. |

`categoryId`: The unique identifier specifying the industry or sector this credential template belongs to.

**Supported Categories:**
| Category Name | Category ID |
| :--- | :--- |
| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |
| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |
| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |
| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |
| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |
| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |
| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |

`image`: URL pointing to the credential logo (the image shown for this credential).

**File Requirements:**
* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`
* **Maximum Size:** 3 MB

```json
{
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "name": "Patient ID",
  "version": "1.0.1",
  "image": "https://acme-corp.com/patient.png",
  "description": "Patient ID Card",
  "attributes": [
    {
      "name": "name",
      "label": "Name",
      "type": "string",
      "description": "Name of the patient",
      "required": true
    },
    {
      "name": "age",
      "label": "Age",
      "type": "string",
      "description": "Age of the patient",
      "required": true
    }
  ],
  "tag": "default"
}
```

**Responses**

- `201`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `201` response:

```json
{
  "success": true,
  "response": {
    "credentialTemplateId": "48b70e41-b427-46d7-ab42-950a0ea0a16d",
    "schemaId": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/f41c4612-6ada-40bc-8d81-e2cd5b0155a9",
    "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
    "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "name": "Patient ID",
    "version": "1.0.1",
    "description": "Patient ID Card",
    "type": "anoncreds",
    "image": "https://acme-corp.com/patient.png",
    "attributes": [
      {
        "name": "age",
        "label": "Age",
        "type": "string",
        "description": "Age of the patient",
        "required": true
      }
    ],
    "tag": "default",
    "credDef": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/61731cbb-0c8d-402c-a0d8-7b1eb0fff9d3",
    "createdAt": "2026-05-05T11:27:00.160Z",
    "updatedAt": "2026-05-05T11:27:00.160Z"
  }
}
```

### Create Template (JSON-LD)

`POST /credential-template/jsonld/create`

This route enables a organization to create a JSON-LD credential template, specifying the schema type, attributes, and structure for issuing JSON-LD credentials.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to create a new JSON-LD credential template. Submitting this request generates and publishes a JSON-LD schema context document (uploaded to IPFS via Pinata), then stores the template in Hovi for use in W3C Verifiable Credential issuance flows.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | The unique identifier specifying the industry or sector this credential template belongs to. |
| `name` | string | Yes | Human-readable name for the credential template. |
| `version` | string | Yes | Semantic version string for the credential template. |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |
| `description` | string | Yes | Plain-text description of what this credential template represents. |
| `attributes` | array of object | Yes | List of credential attribute claims mapped to the JSON-LD schema (the data fields that will be part of credentials issued from this template). |
| `attributes[].name` | string | No | Internal programmatic identifier for the attribute (used in code and data structures to reference this claim). |
| `attributes[].type` | string: `string`, `number`, `boolean`, `image`, `date`, `object` | No | Data type of the attribute (the expected format for the claim value). |
| `attributes[].label` | string | No | Human-readable label for display in wallet UIs (the friendly name shown to end users). |
| `attributes[].description` | string | No | Semantic description of the attribute claim (explains the meaning and purpose of this data field). |
| `attributes[].required` | boolean: `true`, `false` | No | Indicates if this attribute is mandatory (whether the claim must be provided during issuance or verification). |
| `schemaType` | string | Yes | JSON-LD credential type string — sets the `@type` value embedded in issued credentials. Use PascalCase without spaces (e.g., `PatientRecord`). |

`categoryId`: The unique identifier specifying the industry or sector this credential template belongs to.

**Supported Categories:**
| Category Name | Category ID |
| :--- | :--- |
| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |
| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |
| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |
| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |
| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |
| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |
| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |

`image`: URL pointing to the credential logo (the image shown for this credential).

**File Requirements:**
* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`
* **Maximum Size:** 3 MB

`attributes[].type`: Data type of the attribute (the expected format for the claim value).

**Type Constraints:**
| Type | Description |
| :--- | :--- |
| `string` | Plain text value |
| `number` | Numeric value (integer or float) |
| `boolean` | True or false value |
| `date` | ISO 8601 date string (YYYY-MM-DD) |
| `object` | Nested object with sub-attributes |
| `image` | Base64-encoded image. **Supported formats:** `image/jpeg`, `image/jpg`, `image/png`. **Maximum size:** 20 KB |

```json
{
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "name": "Patient ID 2",
  "version": "1.0.1",
  "image": "https://acme-corp.com/patient.png",
  "description": "Patient ID Card",
  "attributes": [
    {
      "name": "fullName",
      "type": "string",
      "label": "Full Name",
      "description": "Full legal name",
      "required": true
    },
    {
      "name": "age",
      "type": "number",
      "label": "Age",
      "description": "Age of the user",
      "required": true
    },
    {
      "name": "isVerified",
      "type": "boolean",
      "label": "Verification Status",
      "description": "Indicates whether the user is verified",
      "required": true
    },
    {
      "name": "profileImage",
      "type": "image",
      "label": "Profile Image",
      "description": "Profile picture of the user"
    },
    {
      "name": "dateOfBirth",
      "type": "date",
      "label": "Date of Birth",
      "description": "Birth date of the user"
    },
    {
      "name": "address",
      "type": "object",
      "label": "Address Information",
      "description": "Primary address details",
      "attributes": [
        {
          "name": "street",
          "type": "string",
          "label": "Street",
          "description": "Street address"
        },
        {
          "name": "postalCode",
          "type": "number",
          "label": "Postal Code",
          "description": "ZIP or postal code"
        }
      ]
    },
    {
      "name": "organization",
      "type": "object",
      "label": "Organization Information",
      "description": "Organization related details",
      "attributes": [
        {
          "name": "organizationName",
          "type": "string",
          "label": "Organization Name",
          "description": "Name of the organization"
        },
        {
          "name": "department",
          "type": "object",
          "label": "Department Information",
          "description": "Nested department details",
          "attributes": [
            {
              "name": "departmentName",
              "type": "string",
              "label": "Department Name",
              "description": "Name of the department"
            },
            {
              "name": "employeeCount",
              "type": "number",
              "label": "Employee Count",
              "description": "Number of employees in the department"
            }
          ]
        }
      ]
    }
  ],
  "schemaType": "Patient Record"
}
```

**Responses**

- `201`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `201` response:

```json
{
  "success": true,
  "response": {
    "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
    "schemaId": "7471bb29-e875-4462-996a-69b2379a5049",
    "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
    "organizationId": "71192baf-49c4-40e4-8e8d-66606a44ff8b",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "name": "University Degree",
    "version": "2.0.11",
    "description": "University Degree credential template",
    "type": "jsonld",
    "attributes": [
      {
        "name": "university",
        "type": "object",
        "label": "University title",
        "description": "name of the university",
        "required": true,
        "attributes": [
          {
            "name": "batch",
            "type": "object",
            "label": "Batch title",
            "description": "batch of the student",
            "required": true,
            "attributes": [
              {
                "name": "passingYear",
                "type": "integer",
                "label": "PassingYear title",
                "description": "passing year of the student",
                "required": true
              }
            ]
          },
          {
            "name": "branch",
            "type": "string",
            "label": "Branch",
            "description": "branch of the university",
            "required": true
          }
        ]
      },
      {
        "name": "fullName",
        "type": "string",
        "label": "Full Name",
        "description": "full name of the student",
        "required": true
      }
    ],
    "schemaUrl": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
    "schemaContext": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
    "schemaType": "University Degree Record",
    "createdAt": "2024-08-06T07:05:43.386Z",
    "updatedAt": "2024-08-06T07:05:43.386Z"
  }
}
```

### Import Template (Anoncreds)

`POST /credential-template/anoncred/import`

This route allows a organization to import an Anoncreds credential template by providing the schema ID. The specified schema is retrieved from the ledger and imported into the ecosystem, where it is converted into a credential template.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to import an existing AnonCreds credential template from the Cheqd blockchain. Allows an organization to re-use a schema and Credential Definition already published on Cheqd by any party, without re-publishing to the blockchain.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | The unique identifier specifying the industry or sector this credential template belongs to. |
| `schemaId` | string | Yes | Full DID-linked resource URL of the existing AnonCreds schema on the Cheqd blockchain to import (e.g., `did:cheqd:testnet:<id>/anoncreds/v0/SCHEMA/<name>/<version>`). |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |
| `description` | string | Yes | Plain-text description of what this imported credential template represents. |
| `tag` | string | Yes | AnonCreds Credential Definition tag to use with this imported schema. Use `default` for the primary definition. |

`categoryId`: The unique identifier specifying the industry or sector this credential template belongs to.

**Supported Categories:**
| Category Name | Category ID |
| :--- | :--- |
| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |
| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |
| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |
| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |
| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |
| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |
| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |

`image`: URL pointing to the credential logo (the image shown for this credential).

**File Requirements:**
* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`
* **Maximum Size:** 3 MB

```json
{
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "schemaId": "did:cheqd:testnet:TcXjZEBCzN1pgoqgvqwTxU/anoncreds/v0/SCHEMA/Patient Credential/2.0.2",
  "image": "https://acme-corp.com/patient.png",
  "description": "Patient ID Card",
  "tag": "default"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
    "schemaId": "did:cheqd:testnet:TcXjZEBCzN1pgoqgvqwTxU/anoncreds/v0/SCHEMA/Patient Credential/2.0.2",
    "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
    "organizationId": "71192baf-49c4-40e4-8e8d-66606a44ff8b",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "name": "Patient Credential",
    "version": "2.0.2",
    "description": "Patient Credential Template",
    "type": "anoncreds",
    "attributes": [
      {
        "name": "name",
        "label": "Name",
        "type": "string",
        "description": "Name of the patient",
        "required": true
      },
      {
        "name": "age",
        "label": "Age",
        "type": "string",
        "description": "Age of the patient",
        "required": true
      }
    ],
    "tag": "v1",
    "createdAt": "2024-08-06T06:43:45.301Z",
    "updatedAt": "2024-08-06T06:43:45.301Z"
  }
}
```

### Import Template (JSON-LD)

`POST /credential-template/jsonld/import`

This route enables a organization to import a JSON-LD credential template by providing the schema URL. The schema is fetched from the provided URL, validated, and then resolved into a credential template within the ecosystem.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to import an existing JSON-LD credential template by referencing a publicly hosted schema URL. Allows an organization to issue credentials conforming to an existing JSON-LD schema without creating a new one.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | The unique identifier specifying the industry or sector this credential template belongs to. |
| `schemaUrl` | string (url) | Yes | Publicly accessible URL of the existing JSON-LD schema document to import (typically an IPFS gateway or hovi.id schema URL). Hovi fetches this URL to resolve the schema's `@context` and attribute definitions. |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |

`categoryId`: The unique identifier specifying the industry or sector this credential template belongs to.

**Supported Categories:**
| Category Name | Category ID |
| :--- | :--- |
| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |
| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |
| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |
| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |
| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |
| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |
| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |

`image`: URL pointing to the credential logo (the image shown for this credential).

**File Requirements:**
* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`
* **Maximum Size:** 3 MB.

```json
{
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "schemaUrl": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
  "image": "https://acme-corp.com/patient.png"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
    "schemaId": "ceff35e7-8625-40f3-a0f3-316784593e29",
    "ecosystemId": "c9ba491b-988f-481d-9c33-a5cc5aaff4ed",
    "organizationId": "99f009f6-aefa-4c13-bbe9-e5e314a64b1c",
    "categoryId": "2e5f483f-8970-4c5e-baf7-991ff24c120d",
    "name": "University Degree",
    "version": "2.0.2",
    "description": "University Degree credential template",
    "type": "jsonld",
    "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
    "attributes": [
      {
        "name": "university",
        "type": "object",
        "label": "University title",
        "description": "name of the university",
        "required": true,
        "attributes": [
          {
            "name": "batch",
            "type": "object",
            "label": "Batch title",
            "description": "batch of the student",
            "required": true,
            "attributes": [
              {
                "name": "passingYear",
                "type": "integer",
                "label": "PassingYear title",
                "description": "passing year of the student",
                "required": true
              }
            ]
          },
          {
            "name": "branch",
            "type": "string",
            "label": "Branch",
            "description": "branch of the university",
            "required": true
          }
        ]
      },
      {
        "name": "fullName",
        "type": "string",
        "label": "Full Name",
        "description": "full name of the student",
        "required": true
      }
    ],
    "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/QmRF7nnhYTsWu8sqA2jeLWbWP9LuuARS9RrWsL2akvwD7v",
    "schemaType": "University Degree",
    "createdAt": "2024-08-12T11:21:32.464Z",
    "updatedAt": "2024-08-12T11:21:32.464Z"
  }
}
```

### Get Ecosystem Templates

`GET /credential-template/`

This route retrieves all credential templates or find a specific credential template by the credential template id. The templates provide a detailed structure of the credentials, including the attributes, their types, and requirements, as defined in the schema.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `credentialTemplateId` | query | string | No | By default, this endpoint returns a list of all your credential templates from current Ecosystem. You can pass a specific credentialTemplateId (in UUID format) here to filter the results and retrieve details for only that single credential template. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "credentialTemplateId": "13f587ac-23f7-49ef-b339-acb7cc39a3cd",
      "schemaId": "cbeff78d-a860-41e1-b8aa-4cc5e812d396",
      "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
      "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
      "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
      "name": "Patient ID",
      "version": "1.0.1",
      "description": "Patient ID Card",
      "type": "jsonld",
      "image": "https://acme-corp.com/patient.png",
      "attributes": [
        {
          "name": "age",
          "label": "Age",
          "type": "number",
          "description": "Age of the patient"
        }
      ],
      "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreig5pt7ewvszdulkyxmestp5i4aixhvzqexnihqqfdjwon5jojab2y",
      "schemaContext": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreigzaewsrztegxqh6rwydo76mnx2wceyrsmbvdzrzhscdsposkahfy",
      "schemaType": "Patient Record",
      "createdAt": "2026-05-01T05:24:17.583Z",
      "updatedAt": "2026-05-01T05:24:17.583Z"
    },
    {
      "credentialTemplateId": "48b70e41-b427-46d7-ab42-950a0ea0a16d",
      "schemaId": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/f41c4612-6ada-40bc-8d81-e2cd5b0155a9",
      "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
      "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "name": "Patient ID",
      "version": "1.0.1",
      "description": "Patient ID Card",
      "type": "anoncreds",
      "image": "https://acme-corp.com/patient.png",
      "attributes": [
        {
          "name": "age",
          "label": "Age",
          "type": "string",
          "description": "Age of the patient",
          "required": true
        }
      ],
      "tag": "default",
      "credDef": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/61731cbb-0c8d-402c-a0d8-7b1eb0fff9d3",
      "createdAt": "2026-05-05T11:27:00.160Z",
      "updatedAt": "2026-05-05T11:27:00.160Z"
    }
  ]
}
```

### Get Organization Templates

`GET /credential-template/organization`

This route retrieves all credential templates or find a specific credential template by the credential template id created by an organization.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `credentialTemplateId` | query | string | No | By default, this endpoint returns a list of all your credential templates from current organization. You can pass a specific credentialTemplateId (in UUID format) here to filter the results and retrieve details for only that single credential template. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "credentialTemplateId": "13f587ac-23f7-49ef-b339-acb7cc39a3cd",
      "schemaId": "cbeff78d-a860-41e1-b8aa-4cc5e812d396",
      "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
      "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
      "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
      "name": "Patient ID",
      "version": "1.0.1",
      "description": "Patient ID Card",
      "type": "jsonld",
      "image": "https://acme-corp.com/patient.png",
      "attributes": [
        {
          "name": "age",
          "label": "Age",
          "type": "number",
          "description": "Age of the patient"
        }
      ],
      "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreig5pt7ewvszdulkyxmestp5i4aixhvzqexnihqqfdjwon5jojab2y",
      "schemaContext": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreigzaewsrztegxqh6rwydo76mnx2wceyrsmbvdzrzhscdsposkahfy",
      "schemaType": "Patient Record",
      "createdAt": "2026-05-01T05:24:17.583Z",
      "updatedAt": "2026-05-01T05:24:17.583Z"
    },
    {
      "credentialTemplateId": "48b70e41-b427-46d7-ab42-950a0ea0a16d",
      "schemaId": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/f41c4612-6ada-40bc-8d81-e2cd5b0155a9",
      "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
      "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "name": "Patient ID",
      "version": "1.0.1",
      "description": "Patient ID Card",
      "type": "anoncreds",
      "image": "https://acme-corp.com/patient.png",
      "attributes": [
        {
          "name": "age",
          "label": "Age",
          "type": "string",
          "description": "Age of the patient",
          "required": true
        }
      ],
      "tag": "default",
      "credDef": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/61731cbb-0c8d-402c-a0d8-7b1eb0fff9d3",
      "createdAt": "2026-05-05T11:27:00.160Z",
      "updatedAt": "2026-05-05T11:27:00.160Z"
    }
  ]
}
```

### Delete Template

`DELETE /credential-template/delete`

This route allows a organization to delete a specific credential template by providing the credential template ID. The specified template is removed from the ecosystem, ensuring that it is no longer available for issuing credentials.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to permanently delete a credential template from Hovi. Note: this removes the Hovi record only — the AnonCreds schema and Credential Definition previously published to the Cheqd blockchain remain on-chain and cannot be deleted.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialTemplateId` | string (uuid) | Yes | Unique identifier of the credential template to delete. |

```json
{
  "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Credential template deleted successfully"
}
```

### Update Template

`PATCH /credential-template/update`

This route allows a organization to update a specific credential template by providing the schema ID. The specified template is updated with the new details provided by the organization, ensuring that the credential template remains accurate and up-to-date.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to update an existing credential template's display metadata. Note: the underlying AnonCreds schema and Credential Definition on the Cheqd blockchain cannot be modified — only Hovi-side display fields (image, category) can be updated.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialTemplateId` | string (uuid) | Yes | Unique identifier of the credential template to update. |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | Updated industry or sector category identifier for this credential template. |
| `image` | string (url) | No | Updated URL of the credential card background image displayed in the holder's wallet. Must be a publicly accessible URL; recommended formats: PNG or JPEG. |

`categoryId`: Updated industry or sector category identifier for this credential template.

**Supported Categories:**
| Category Name | Category ID |
| :--- | :--- |
| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |
| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |
| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |
| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |
| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |
| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |
| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |

```json
{
  "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "image": "https://acme-corp.com/updated-patient.png"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Credential Template updated successfully"
}
```

## Credentials

Issues cryptographically signed Verifiable Credentials to holders over DIDComm, based on a defined Credential Template. Supports AnonCreds and JSON-LD formats.

### Get Credentials

`GET /credential/`

This route retrieves a list of all verifiable credentials issued by the organization.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `page` | query | integer | No | Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided. Example: `1` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "credentialExchangeId": "bef411df-d4b9-490b-8128-040290563198",
      "state": "abandoned",
      "role": "issuer",
      "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
      "threadId": "08f42c1a-db9b-494a-8b62-e95af7618022",
      "createdAt": "2026-05-06T09:51:39.622Z",
      "updatedAt": "2026-05-06T09:53:29.969Z"
    },
    {
      "credentialExchangeId": "0726b92f-737e-4098-9e86-bb3854617289",
      "state": "done",
      "role": "issuer",
      "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
      "threadId": "8c7a3a93-9ebb-4f9b-bb4c-59f6bce390bf",
      "createdAt": "2026-05-06T09:51:14.335Z",
      "updatedAt": "2026-05-06T09:51:29.910Z"
    },
    {
      "credentialExchangeId": "4639128e-02f2-48d1-9df7-69de69012ca6",
      "state": "processing",
      "role": "issuer",
      "connectionId": "9ef593a1-2830-481e-9e3e-22d00e22b7b2",
      "threadId": "a580584a-d63b-4d39-9f0d-6a59aeb32a04",
      "createdAt": "2026-05-01T08:45:22.529Z",
      "updatedAt": "2026-05-01T08:45:22.529Z"
    }
  ]
}
```

### Get Credential by Id

`GET /credential/find`

This route retrieves detailed information about a specific verifiable credential issued by the organization, identified by its unique credential exchange ID.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `credentialExchangeId` | query | string | Yes | Retrive detailed record credential by credential exchange id Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "credentialExchangeId": "bef411df-d4b9-490b-8128-040290563198",
      "state": "abandoned",
      "role": "issuer",
      "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
      "threadId": "08f42c1a-db9b-494a-8b62-e95af7618022",
      "createdAt": "2026-05-06T09:51:39.622Z",
      "updatedAt": "2026-05-06T09:53:29.969Z"
    }
  ]
}
```

### Offer Credential (Anoncreds)

`POST /credential/anoncred/offer`

This route enables the organization to create an Anoncreds credential offer, initiating the credential issuance process within the ecosystem. The issuance relies on a credential template that defines the attributes, types, and requirements for the credential.

**Related webhook events**

After the holder accepts or declines this AnonCred offer, Hovi sends the corresponding credential-exchange outcome to the issuer organization’s registered webhook URL:

- [Credential Exchange Event](#tag/webhook-events/webhook/post/cheqd-credential-exchange-event)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to issue an AnonCreds Verifiable Credential to a holder over an existing DIDComm connection. The credential offer is sent directly to the holder's wallet via the DIDComm peer channel — no QR code or OID4VCI offer URL is used for AnonCreds issuance on Cheqd.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connectionId` | string (uuid) | Yes | Established DIDComm connection to the holder's wallet over which the credential offer will be sent (must be in `completed` state). |
| `credentialTemplateId` | string (uuid) | Yes | AnonCreds credential template to use for this issuance — defines which on-chain schema and Credential Definition on Cheqd will be used to sign the credential. |
| `credentialValues` | object | Yes | Key-value map of attribute names to their values for this specific credential instance. Keys must match the template attribute names. All AnonCreds values must be strings (e.g., `"30"` not `30`). |
| `comment` | string | No | Optional human-readable comment attached to the credential offer for internal tracking or holder context. |

```json
{
  "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
  "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
  "credentialValues": {
    "name": "John Doe",
    "age": "30"
  },
  "comment": "Issuing patient ID credential for registered patient."
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentialExchangeId": "f37925e9-1fb7-4e82-b9ef-377899e8e364",
    "threadId": "4a2ffa5e-e3b4-47c4-bb5d-234e07a498ce",
    "state": "offer-sent",
    "createdAt": "2024-08-06T12:51:38.283Z",
    "updatedAt": "2024-08-06T12:51:43.811Z",
    "connectionId": "a046a360-f1df-4c32-8e91-9e30ee95ae7b",
    "role": "issuer"
  }
}
```

### Offer Credential (JSON-LD)

`POST /credential/jsonld/offer`

This route allows the organization to generate a credential offer using the JSON-LD format. The credential issuance is based on a credential template that specifies the necessary attributes, types, and requirements.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to issue a W3C JSON-LD Verifiable Credential to a holder over an existing DIDComm connection. The credential is signed using the organization's `did:cheqd` DID and delivered to the holder's wallet via the DIDComm peer channel.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connectionId` | string (uuid) | Yes | Established DIDComm connection to the holder's wallet (must be in `completed` state). |
| `holderDid` | string | Yes | The holder's DID — set as `credentialSubject.id` in the issued W3C JSON-LD credential. Typically the holder's `did:key` or `did:peer` DID from their wallet. |
| `credentialTemplateId` | string (uuid) | Yes | JSON-LD credential template to use — defines the schema context URL and `@type` embedded in the signed W3C Verifiable Credential. |
| `credentialValues` | object | Yes | Key-value map of attribute names to their values. Keys must match the template attribute names. |
| `comment` | string | No | Optional human-readable comment attached to the credential offer. |

```json
{
  "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
  "holderDid": "did:key:z6MkhKV3YrsT9SFzEYH8JDay6MF8Psk25ditSp1etvJUaowi",
  "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
  "credentialValues": {
    "name": "John Doe",
    "age": "30"
  },
  "comment": "Issuing university degree credential for graduating student."
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentialExchangeId": "0b461bdc-15d5-4551-852d-9f8d4cf91450",
    "threadId": "3aad12ed-dac9-46d9-a3d9-507a3c5b490f",
    "state": "pending",
    "createdAt": "2024-08-06T13:33:37.144Z",
    "updatedAt": "2024-08-06T13:33:40.142Z",
    "connectionId": "a046a360-f1df-4c32-8e91-9e30ee95ae7b",
    "role": "issuer"
  }
}
```

## Verification Templates

Defines Presentation Request blueprints (DIF Presentation Exchange) specifying which credential types and attributes a verifier requires from a holder during the OID4VP flow.

### Create Template (Anoncreds)

`POST /verification-template/anoncred/create`

This route allows a organization to create an Anoncreds verification template, which defines the policy for verifying the issued Anoncreds. The organization can specify the requested attributes, predicates, and restrictions in the template.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to create a new AnonCreds verification template (a proof request blueprint specifying which AnonCreds credential attributes to request, which zero-knowledge predicates to enforce, and on-chain schema/issuer restrictions for the Cheqd network).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | The unique identifier specifying the industry or sector this verification template belongs to. |
| `name` | string | Yes | Human-readable name for the verification template. |
| `version` | string | Yes | Semantic version string for the verification template. |
| `description` | string | Yes | Plain-text description of what this verification template checks. |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |
| `requestedAttributes` | array of object | No | Credential attributes (claims) the Verifier is requesting the holder to disclose in their AnonCreds proof presentation. All requested attributes are required for verification. |
| `requestedAttributes[].name` | string | No | Credential attribute name to request from the holder. |
| `requestedAttributes[].label` | string | No | Human-readable display label shown in the holder's wallet. |
| `requestedAttributes[].type` | string | No | Data type of this attribute. |
| `requestedAttributes[].description` | string | No | Optional description of this attribute. |
| `requestedAttributes[].attributes` | array of object | No | Nested sub-attributes for object-type claims. |
| `requestedPredicates` | array of object | No | Zero-knowledge predicates to enforce — conditions the holder proves about their attributes without revealing raw values (e.g., proving `age >= 18` without disclosing the actual value). |
| `requestedPredicates[].name` | string | No | Credential attribute name this predicate applies to. |
| `requestedPredicates[].p_type` | string: `>=`, `<=`, `>`, `<` | No | Comparison operator for the zero-knowledge predicate. |
| `requestedPredicates[].p_value` | number | No | Threshold value the attribute is compared against. |
| `restrictions` | array of object | No | AnonCreds proof restrictions constraining which credentials can satisfy this proof request. Each object can specify `issuer_id` (only accept credentials from this Cheqd DID) and/or `schema_id` (only accept credentials issued against this on-chain schema URL). Multiple restriction objects are OR-ed together. |
| `restrictions[].issuer_id` | string | No | Restricts accepted credentials to those signed by this specific issuer DID on the Cheqd network. |
| `restrictions[].schema_id` | string | No | Restricts accepted credentials to those issued against this specific AnonCreds schema resource URL on Cheqd. |
| `nonRevokeInterval` | object | No | Optional non-revocation interval — the time window during which the credential must have been non-revoked on the Cheqd StatusList2021 on-chain registry. If omitted, revocation status is not checked. |
| `nonRevokeInterval.from` | number | No | Start of the non-revocation interval as a Unix epoch timestamp in milliseconds. |
| `nonRevokeInterval.to` | number | No | End of the non-revocation interval as a Unix epoch timestamp in milliseconds. |

`categoryId`: The unique identifier specifying the industry or sector this verification template belongs to.

**Supported Categories:**
| Category Name | Category ID |
| :--- | :--- |
| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |
| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |
| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |
| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |
| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |
| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |
| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |

`image`: URL pointing to the credential logo (the image shown for this credential).

**File Requirements:**
* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`
* **Maximum Size:** 3 MB

```json
{
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "name": "Patient ID",
  "version": "1.0.1",
  "description": "Patient ID Card Verification",
  "image": "https://acme-corp.com/patient.png",
  "requestedAttributes": [
    {
      "name": "name",
      "label": "Name",
      "type": "string",
      "description": "Name of the patient"
    },
    {
      "name": "age",
      "label": "Age",
      "type": "string",
      "description": "Age of the patient"
    }
  ],
  "requestedPredicates": [
    {
      "name": "age",
      "p_type": ">=",
      "p_value": 18
    }
  ],
  "restrictions": [
    {
      "issuer_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
      "schema_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L/anoncreds/v0/SCHEMA/Patient ID/1.0.3"
    },
    {
      "issuer_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L"
    }
  ],
  "nonRevokeInterval": {
    "from": 0,
    "to": 1818287379415
  }
}
```

**Responses**

- `201`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `201` response:

```json
{
  "success": true,
  "response": {
    "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
    "ecosystemId": "9925ed6a-f578-49db-b9a7-4a459f54aebc",
    "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "name": "Patient ID Verification",
    "image": "https://picsum.photos/200",
    "version": "2.0.9",
    "description": "Patient ID Card Verification",
    "type": "anoncreds",
    "requestedAttributes": [
      {
        "name": "name",
        "label": "Name",
        "type": "string",
        "description": "Name of the patient",
        "required": true
      },
      {
        "name": "age",
        "label": "Age",
        "type": "string",
        "description": "Age of the patient",
        "required": true
      }
    ],
    "requestedPredicates": [
      {
        "name": "age",
        "p_type": ">=",
        "p_value": 18
      }
    ],
    "restrictions": [
      {
        "schema_id": "did:cheqd:testnet:234b3606-7b4f-4303-9ace-081fc277cb15/resources/519e45c0-7a6b-4075-b5f7-79828a77f364"
      }
    ],
    "nonRevokeInterval": {
      "from": 0,
      "to": 1818287379415
    },
    "createdAt": "2024-08-07T11:14:50.241Z",
    "updatedAt": "2024-08-07T11:14:50.241Z"
  }
}
```

### Create Template (JSON-LD)

`POST /verification-template/jsonld/create`

This route allows a organization to create a JSON-LD verification template, outlining the policy for verifying issued JSON-LD credentials.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to create a new JSON-LD verification template (a proof request blueprint targeting W3C JSON-LD Verifiable Credentials restricts accepted credentials by schema URL, issuer DID, or credential template rather than on-chain AnonCreds identifiers).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | The unique identifier specifying the industry or sector this verification template belongs to. |
| `name` | string | Yes | Human-readable name for the verification template. |
| `version` | string | Yes | Semantic version string for the verification template. |
| `description` | string | Yes | Plain-text description of what this verification template checks. |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |
| `requestedAttributes` | array of object | No | JSON-LD credential attributes the Verifier is requesting the holder to disclose. All requested attributes are required for verification. |
| `requestedAttributes[].name` | string | No | Credential attribute name to request from the holder. |
| `requestedAttributes[].label` | string | No | Human-readable display label shown in the holder's wallet. |
| `requestedAttributes[].type` | string | No | Data type of this attribute. |
| `requestedAttributes[].description` | string | No | Optional description of this attribute. |
| `requestedAttributes[].attributes` | array of object | No | Nested sub-attributes for object-type claims. |
| `restrictions` | object | No | Defines which JSON-LD credentials can satisfy this proof request. All provided fields are AND-ed together. |
| `restrictions.credentialTemplateId` | string (uuid) | No | Restricts accepted credentials to those issued from this specific Hovi credential template ID. |
| `restrictions.issuerDid` | string | No | Restricts accepted credentials to those signed by this specific issuer DID on the Cheqd network. |
| `restrictions.schemaType` | string | No | Restricts accepted credentials to those whose JSON-LD `@type` matches this schema type string. |
| `restrictions.schemaUrl` | string (url) | No | Restricts accepted credentials to those issued against this specific JSON-LD schema URL. |

`categoryId`: The unique identifier specifying the industry or sector this verification template belongs to.

**Supported Categories:**
| Category Name | Category ID |
| :--- | :--- |
| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |
| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |
| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |
| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |
| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |
| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |
| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |

`image`: URL pointing to the credential logo (the image shown for this credential).

**File Requirements:**
* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`
* **Maximum Size:** 3 MB

```json
{
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "name": "Patient ID",
  "version": "1.0.1",
  "description": "Patient ID Card Verification",
  "image": "https://acme-corp.com/patient.png",
  "requestedAttributes": [
    {
      "name": "fullName",
      "type": "string",
      "label": "Full Name",
      "description": "Full legal name"
    },
    {
      "name": "age",
      "type": "number",
      "label": "Age",
      "description": "Age of the user"
    },
    {
      "name": "isVerified",
      "type": "boolean",
      "label": "Verification Status",
      "description": "Indicates whether the user is verified"
    },
    {
      "name": "profileImage",
      "type": "image",
      "label": "Profile Image",
      "description": "Profile picture of the user",
      "required": false
    },
    {
      "name": "dateOfBirth",
      "type": "date",
      "label": "Date of Birth",
      "description": "Birth date of the user",
      "required": true
    },
    {
      "name": "address",
      "type": "object",
      "label": "Address Information",
      "description": "Primary address details",
      "required": true,
      "attributes": [
        {
          "name": "street",
          "type": "string",
          "label": "Street",
          "description": "Street address",
          "required": true
        },
        {
          "name": "postalCode",
          "type": "number",
          "label": "Postal Code",
          "description": "ZIP or postal code",
          "required": true
        }
      ]
    },
    {
      "name": "organization",
      "type": "object",
      "label": "Organization Information",
      "description": "Organization related details",
      "required": true,
      "attributes": [
        {
          "name": "organizationName",
          "type": "string",
          "label": "Organization Name",
          "description": "Name of the organization",
          "required": true
        },
        {
          "name": "department",
          "type": "object",
          "label": "Department Information",
          "description": "Nested department details",
          "required": true,
          "attributes": [
            {
              "name": "departmentName",
              "type": "string",
              "label": "Department Name",
              "description": "Name of the department",
              "required": true
            },
            {
              "name": "employeeCount",
              "type": "number",
              "label": "Employee Count",
              "description": "Number of employees in the department",
              "required": false
            }
          ]
        }
      ]
    }
  ],
  "restrictions": {
    "credentialTemplateId": "68ca8867-7352-4b7a-95f4-0682e827f048",
    "issuerDid": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
    "schemaType": "mango",
    "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreic2polspfhmjo2e3i5znztnf376lgk2iyxo6gfco6q2gfxxk5hqrq"
  }
}
```

**Responses**

- `201`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `201` response:

```json
{
  "success": true,
  "response": {
    "verificationTemplateId": "da919b71-2b03-424a-9cc5-52a9e1eb1e46",
    "ecosystemId": "7ad26921-6d9e-4e9a-a0d4-f7e5a4c1e6ca",
    "tenantId": "e3448b05-fdd5-4a80-90dc-3b3e061f9209",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "credentialTemplateId": "68ca8867-7352-4b7a-95f4-0682e827f048",
    "name": "Patient ID",
    "image": "https://acme-corp.com/patient.png",
    "version": "1.0.1",
    "description": "Patient ID Card Verification",
    "schemaTypeRestriction": "mango",
    "type": "jsonld",
    "requestedAttributes": [
      {
        "name": "fullName",
        "type": "string",
        "label": "Full Name",
        "description": "Full legal name",
        "required": true
      },
      {
        "name": "age",
        "type": "number",
        "label": "Age",
        "description": "Age of the user",
        "required": true
      },
      {
        "name": "isVerified",
        "type": "boolean",
        "label": "Verification Status",
        "description": "Indicates whether the user is verified",
        "required": true
      },
      {
        "name": "profileImage",
        "type": "image",
        "label": "Profile Image",
        "description": "Profile picture of the user",
        "required": false
      },
      {
        "name": "dateOfBirth",
        "type": "date",
        "label": "Date of Birth",
        "description": "Birth date of the user",
        "required": true
      },
      {
        "name": "address",
        "type": "object",
        "label": "Address Information",
        "description": "Primary address details",
        "required": true,
        "attributes": [
          {
            "name": "street",
            "type": "string",
            "label": "Street",
            "description": "Street address",
            "required": true
          },
          {
            "name": "postalCode",
            "type": "number",
            "label": "Postal Code",
            "description": "ZIP or postal code",
            "required": true
          }
        ]
      },
      {
        "name": "organization",
        "type": "object",
        "label": "Organization Information",
        "description": "Organization related details",
        "required": true,
        "attributes": [
          {
            "name": "organizationName",
            "type": "string",
            "label": "Organization Name",
            "description": "Name of the organization",
            "required": true
          },
          {
            "name": "department",
            "type": "object",
            "label": "Department Information",
            "description": "Nested department details",
            "required": true,
            "attributes": [
              {
                "name": "departmentName",
                "type": "string",
                "label": "Department Name",
                "description": "Name of the department",
                "required": true
              },
              {
                "name": "employeeCount",
                "type": "number",
                "label": "Employee Count",
                "description": "Number of employees in the department",
                "required": false
              }
            ]
          }
        ]
      }
    ],
    "schemaUrlRestriction": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreic2polspfhmjo2e3i5znztnf376lgk2iyxo6gfco6q2gfxxk5hqrq",
    "issuerDidRestriction": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
    "createdAt": "2026-05-08T13:25:01.007Z",
    "updatedAt": "2026-05-08T13:25:01.007Z"
  }
}
```

### Get Ecosystem Templates

`GET /verification-template/`

Retrieves verification templates from the current ecosystem. By default, all verification templates are returned.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `verificationTemplateId` | query | string | No | Filters the result by a specific verification template id. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "verificationTemplateId": "937b53aa-5bfd-4011-b23a-69bf28320c3e",
      "ecosystemId": "f5bcdbab-e462-4508-b764-700648d72123",
      "tenantId": "0ca67144-adba-468c-ad59-3c91604bb6f2",
      "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
      "credentialTemplateId": "fe89514d-3b23-42dd-8e11-a7f74e39eac4",
      "name": "JSONLD Verification",
      "version": "1.0.0",
      "description": "N/A",
      "schemaTypeRestriction": "jsonld.creden",
      "type": "jsonld",
      "requestedAttributes": [
        {
          "name": "name",
          "label": "Name",
          "type": "string",
          "description": "",
          "required": true
        }
      ],
      "schemaUrlRestriction": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreifi3qupvhxbv47af2abpfzmrxqouql2z5akocsbllvjnrrczczwba",
      "issuerDidRestriction": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
      "createdAt": "2026-05-06T10:49:54.406Z",
      "updatedAt": "2026-05-06T10:49:54.406Z"
    },
    {
      "verificationTemplateId": "16777af1-9e96-4b86-9477-d513decc7e5f",
      "ecosystemId": "f5bcdbab-e462-4508-b764-700648d72123",
      "tenantId": "0ca67144-adba-468c-ad59-3c91604bb6f2",
      "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
      "name": "Marraige Verify",
      "version": "1.0.0",
      "description": "N/A",
      "type": "anoncreds",
      "requestedAttributes": [
        {
          "name": "name",
          "label": "Name",
          "type": "string",
          "description": "",
          "required": true
        }
      ],
      "restrictions": [
        {
          "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
          "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
        }
      ],
      "createdAt": "2026-05-06T10:50:35.424Z",
      "updatedAt": "2026-05-06T10:50:35.424Z"
    }
  ]
}
```

### Get Organization Templates

`GET /verification-template/organization`

Retrieves verification templates for a specific organization. By default, all verification templates are returned.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `verificationTemplateId` | query | string | No | Filters the result by a specific verification template id for a specific organization. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "verificationTemplateId": "937b53aa-5bfd-4011-b23a-69bf28320c3e",
      "ecosystemId": "f5bcdbab-e462-4508-b764-700648d72123",
      "tenantId": "0ca67144-adba-468c-ad59-3c91604bb6f2",
      "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
      "credentialTemplateId": "fe89514d-3b23-42dd-8e11-a7f74e39eac4",
      "name": "JSONLD Verification",
      "version": "1.0.0",
      "description": "N/A",
      "schemaTypeRestriction": "jsonld.creden",
      "type": "jsonld",
      "requestedAttributes": [
        {
          "name": "name",
          "label": "Name",
          "type": "string",
          "description": "",
          "required": true
        }
      ],
      "schemaUrlRestriction": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreifi3qupvhxbv47af2abpfzmrxqouql2z5akocsbllvjnrrczczwba",
      "issuerDidRestriction": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
      "createdAt": "2026-05-06T10:49:54.406Z",
      "updatedAt": "2026-05-06T10:49:54.406Z"
    },
    {
      "verificationTemplateId": "16777af1-9e96-4b86-9477-d513decc7e5f",
      "ecosystemId": "f5bcdbab-e462-4508-b764-700648d72123",
      "tenantId": "0ca67144-adba-468c-ad59-3c91604bb6f2",
      "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
      "name": "Marraige Verify",
      "version": "1.0.0",
      "description": "N/A",
      "type": "anoncreds",
      "requestedAttributes": [
        {
          "name": "name",
          "label": "Name",
          "type": "string",
          "description": "",
          "required": true
        }
      ],
      "restrictions": [
        {
          "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
          "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
        }
      ],
      "createdAt": "2026-05-06T10:50:35.424Z",
      "updatedAt": "2026-05-06T10:50:35.424Z"
    }
  ]
}
```

### Delete Template by Verification Template Id

`DELETE /verification-template/delete`

This route is used to delete a specific verification template by its unique id.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to permanently delete a verification template. Deleted templates cannot be used in future proof requests.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `verificationTemplateId` | string (uuid) | Yes | Unique identifier of the verification template to delete. |

```json
{
  "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Verification Template deleted successfully"
}
```

### Update Template by Verification Template Id

`PATCH /verification-template/update`

This route is used to update a specific verification template by its unique id.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to update an existing verification template's metadata. All fields except `verificationTemplateId` are optional — only the fields provided will be updated.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `verificationTemplateId` | string (uuid) | Yes | Unique identifier of the verification template to update. |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | Updated industry or sector category identifier for this verification template. |
| `name` | string | No | Updated human-readable name for the verification template. |
| `description` | string | No | Updated plain-text description of what this verification template checks. |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |

`categoryId`: Updated industry or sector category identifier for this verification template.

**Supported Categories:**
| Category Name | Category ID |
| :--- | :--- |
| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |
| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |
| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |
| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |
| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |
| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |
| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |

`image`: URL pointing to the credential logo (the image shown for this credential).

**File Requirements:**
* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`
* **Maximum Size:** 3 MB

```json
{
  "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "name": "Updated Patient ID Verification",
  "description": "Updated description for patient ID verification",
  "image": "https://acme-corp.com/updated-patient.png"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Verification Template updated successfully"
}
```

## Verifications

Sends proof requests to holders and validates their cryptographically signed presentations against a Verification Template via OID4VP or DIDComm.

### Send Proof Request

`POST /verification/send-proof-request`

Create a proof request for a credential holder using verification template.

**Related webhook events**

After the holder submits or declines this AnonCred proof request, Hovi sends the corresponding proof-exchange outcome to the verifier organization’s registered webhook URL:

- [Proof Exchange Event](#tag/webhook-events/webhook/post/cheqd-proof-exchange-event)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to send a DIDComm proof request to a holder over an established connection, using a previously created verification template as the blueprint for the proof request.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `verificationTemplateId` | string (uuid) | Yes | Verification template to use as the proof request blueprint — defines which attributes to request and which ZK predicates to enforce. |
| `connectionId` | string (uuid) | Yes | Established DIDComm connection to the holder's wallet over which the proof request will be sent (must be in `completed` state). |
| `comment` | string | No | Optional human-readable comment attached to the proof request providing context to the holder about why their credentials are being requested. |

```json
{
  "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
  "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
  "comment": "Please present your Patient ID credential for age verification."
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "success": true,
    "proofExchangeId": "f5fd17c7-c086-401e-b136-ff71f318fe26",
    "role": "verifier",
    "threadId": "94256329-cd46-453f-bf2d-de5fe7d694eb",
    "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
    "createdAt": "2026-05-06T11:14:25.108Z",
    "updatedAt": "2026-05-06T11:14:25.160Z"
  }
}
```

### Get Proof Requests

`GET /verification/proof-request`

This route retrieves all proof requests initiated by a specific organization. Proof requests are used to verify credentials that have been issued to credential holders.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `state` | query | string: `pending`, `done`, `abandoned`, `processing` | No | Filter proof requests by state Example: `pending` |
| `page` | query | integer | No | Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided. Example: `1` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "createdAt": "2026-05-06T11:14:37.281Z",
      "updatedAt": "2026-05-06T11:19:10.911Z",
      "proofExchangeId": "149c7644-85e3-48cb-b653-aa5658af05c0",
      "state": "done",
      "role": "prover",
      "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
      "threadId": "94256329-cd46-453f-bf2d-de5fe7d694eb",
      "message": "Presentation has been sent to the verifier.",
      "id": "149c7644-85e3-48cb-b653-aa5658af05c0"
    }
  ]
}
```

### Find Proof Request by Proof Exchange Id

`GET /verification/proof-request/find`

This route retrieves a specific proof request by its proof exchange id. The proof request contains details about the verification process initiated by the tenant.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `proofExchangeId` | query | string | Yes | Specifies the proof exchange id used to retrieve a specific proof request. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "presentationExchange": {
      "request": {
        "anoncreds": {
          "name": "Marraige Verify",
          "version": "1.0.0",
          "nonce": "629623163721925277152498",
          "requested_attributes": {
            "attributes": {
              "names": [
                "name"
              ],
              "restrictions": [
                {
                  "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                  "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
                }
              ]
            }
          },
          "requested_predicates": {}
        }
      },
      "presentation": {
        "anoncreds": {
          "proof": {
            "proofs": [
              {
                "primary_proof": {
                  "eq_proof": {
                    "revealed_attrs": {
                      "name": "110909631494363614841019466881080619555213164441753954522258074678232602091602"
                    },
                    "a_prime": "28219381433699465865860161187350965011011764565407049913419358159617440379360270461106624939162428917489903541805726435412647638818182418486849430176740795397829763477941602010009846084808873453711458152900118066002123177313432363464855030873833619909517187691287719789255197124762129431533977632820074950618164317694474448906875745846988364888696636521563448879325066023371172046664686656671442929931497239692000468180975860509774250694750259160835135559166842154078735040257778945565691866406423960943763439965203407419926539922716848499185678098024854807840463292926169103974773116732113622502637667398199556903912",
                    "e": "179415805829373183388762631689424483196498138492048881332287270173084268669347927614283268988844504869897835828040143376676369973005394092",
                    "v": "442782358903142818252274971540323088894575600800929368104611151167988025121583013911693023586619346642945312750745126355525581687312776909187415968615155539903066418799873742007831026639555960858618763423228717994003543714729440067841389302467912258074901045634643257984461248146878991891629826342061418451135061949540792052096613109807188246541717704179534975802421678964313789532579625209561763314623203719752958116991270335224453569261263717177912253020319509615856782153110155573366746824577748716288803774468242968970471559265090798922365706773102291164484452134945460486322563814203267555278033560256300360929753137923472513952854956813478245734251365043629514163240746363129042572896304993259434391660229917024746873189533435214328081426525985652763512386706752316052692189770369243032712883947014496760109771413489257129386180158564786786145139324115614018460710301674329470988362381323486724093146783449848792071",
                    "m": {
                      "master_secret": "8991949145955376442114161433962104058406669833208904522565537017452995756931689603381149408333570524051041471738385143331174903624673553245542463650275469678785791697066019919222"
                    },
                    "m2": "987821921757040307979801637440657223131761589315952895352946113713242802235653047664791710170502011821947347500735655717773951213291162251696901629442724474578273012898826211720139126009903691996790346134175567814365076120080288027636779922112685704444982160726178573690347698161762696777105162740927137621141451274048533209249819790237595000880995949641071911466025503833008328845303962685513024228407036298683599748251348796787039661779816794012966125205353547906546665125243042938288184238815817077437837453272547990839654462237867113863695482457952486311217797345198263128250295328170611030371488305141219380304983130018777756887307748578403207052687169355226304601114954804104507258693192610240893131097638975869826275046391386"
                  },
                  "ge_proofs": []
                },
                "non_revoc_proof": null
              }
            ],
            "aggregated_proof": {
              "c_hash": "16337627914427780086991507782677245413829574722212186613296600252405804641083",
              "c_list": [
                [
                  223,
                  138,
                  98,
                  42,
                  71,
                  61,
                  123,
                  48,
                  219,
                  194,
                  133,
                  70,
                  213,
                  245,
                  167,
                  197,
                  127,
                  119,
                  202,
                  110,
                  7,
                  48,
                  14,
                  237,
                  181,
                  56,
                  251,
                  158,
                  36,
                  206,
                  49,
                  40,
                  190,
                  128,
                  120,
                  47,
                  61,
                  167,
                  178,
                  14,
                  93,
                  220,
                  99,
                  203,
                  36,
                  146,
                  105,
                  210,
                  225,
                  149,
                  77,
                  207,
                  247,
                  196,
                  161,
                  226,
                  197,
                  145,
                  223,
                  116,
                  73,
                  215,
                  249,
                  76,
                  225,
                  54,
                  153,
                  90,
                  35,
                  91,
                  210,
                  73,
                  108,
                  214,
                  65,
                  40,
                  238,
                  135,
                  17,
                  150,
                  132,
                  130,
                  186,
                  153,
                  26,
                  229,
                  15,
                  145,
                  33,
                  133,
                  100,
                  185,
                  52,
                  212,
                  151,
                  219,
                  14,
                  155,
                  13,
                  112,
                  57,
                  108,
                  236,
                  43,
                  77,
                  48,
                  145,
                  237,
                  211,
                  86,
                  88,
                  166,
                  13,
                  13,
                  83,
                  85,
                  125,
                  196,
                  87,
                  78,
                  65,
                  219,
                  87,
                  62,
                  45,
                  79,
                  6,
                  223,
                  149,
                  27,
                  11,
                  170,
                  68,
                  88,
                  247,
                  135,
                  112,
                  40,
                  98,
                  69,
                  173,
                  194,
                  106,
                  236,
                  207,
                  206,
                  210,
                  151,
                  165,
                  30,
                  83,
                  238,
                  13,
                  204,
                  52,
                  245,
                  249,
                  210,
                  129,
                  103,
                  146,
                  190,
                  69,
                  200,
                  226,
                  10,
                  95,
                  203,
                  187,
                  167,
                  210,
                  48,
                  90,
                  4,
                  249,
                  88,
                  154,
                  71,
                  236,
                  154,
                  72,
                  108,
                  110,
                  99,
                  62,
                  203,
                  172,
                  212,
                  48,
                  156,
                  33,
                  165,
                  214,
                  128,
                  222,
                  33,
                  24,
                  10,
                  146,
                  189,
                  66,
                  213,
                  227,
                  157,
                  253,
                  87,
                  75,
                  194,
                  62,
                  165,
                  144,
                  242,
                  138,
                  167,
                  236,
                  37,
                  240,
                  95,
                  131,
                  128,
                  103,
                  107,
                  152,
                  252,
                  212,
                  47,
                  239,
                  96,
                  83,
                  163,
                  205,
                  157,
                  11,
                  20,
                  252,
                  167,
                  158,
                  1,
                  15,
                  70,
                  144,
                  95,
                  112,
                  186,
                  83,
                  225,
                  230,
                  153,
                  253,
                  67,
                  67,
                  17,
                  7,
                  231,
                  19,
                  232
                ]
              ]
            }
          },
          "requested_proof": {
            "revealed_attrs": {},
            "revealed_attr_groups": {
              "attributes": {
                "sub_proof_index": 0,
                "values": {
                  "name": {
                    "raw": "siam",
                    "encoded": "110909631494363614841019466881080619555213164441753954522258074678232602091602"
                  }
                }
              }
            },
            "self_attested_attrs": {},
            "unrevealed_attrs": {},
            "predicates": {}
          },
          "identifiers": [
            {
              "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
              "cred_def_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/067a6740-c062-4f22-9457-62a945f5744f",
              "rev_reg_id": null,
              "timestamp": null
            }
          ]
        }
      }
    },
    "createdAt": "2026-05-06T10:51:22.539Z",
    "updatedAt": "2026-05-06T10:53:05.754Z",
    "proofExchangeId": "240550a6-0038-45c7-a0a8-0d274e95c67e",
    "state": "done",
    "role": "verifier",
    "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
    "threadId": "0e95b40d-38fb-4d63-9a5b-fd2b62ad292f",
    "isVerified": true,
    "message": "Presentation received and verified"
  }
}
```

## Organizational Wallet

Manages the organization's on-platform agent wallet — handles DIDComm connections, accepts inbound credential offers, and submits proof presentations on behalf of the organization.

### Accept Connection Invitation

`POST /wallet/connection/accept-invitation`

This route allows a organization to accept a connection invitation. Once accepted, the connection is established, enabling the organization to receive credentials to the organizations

**Related webhook events**

A later action in the flow can cause Hovi to send the following event to the registered webhook URL:

- [Connection Event](#tag/webhook-events/webhook/post/cheqd-connection-event)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required for the organizational wallet to accept an inbound DIDComm OOB connection invitation from another party. Initiates the DIDComm DID Exchange handshake from the acceptor's side, establishing a new secure peer channel.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `invitationUrl` | string (url) | Yes | Full DIDComm OOB invitation URL to accept. The `oob` query parameter contains the Base64-encoded invitation — copy directly from the `invitationUrl` field of a `CreateConnectionResponse`. |
| `label` | string | No | This organization's label presented to the inviting party during the DIDComm handshake — the name the inviter's system will see for this connection. |
| `alias` | string | No | Optional internal alias for this connection in the organizational wallet's own systems — not visible to the other party. |
| `imageUrl` | string (url) | No | Optional URL of this organization's logo image to share with the inviting party during the connection handshake. |

```json
{
  "invitationUrl": "https://hovi.id/agent?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIxN2Q3NjhjYS05MTFiLTQ1ZDMtOGM4MC04YzZiYjdmMDhmODIifQ==",
  "label": "Acme Corp",
  "alias": "acme-corp-connection",
  "imageUrl": "https://acme-corp.com/logo.png"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "invitationId": "41eb5887-f058-4a83-9e33-0da43e6b0ca3",
    "connectionId": "5bbfc16d-d9d0-45a2-baa8-04717ee353e3",
    "state": "peding",
    "theirLabel": "Cheqd Test Org",
    "alias": "my-connection",
    "imageUrl": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
  }
}
```

### Get Stored Credentials

`GET /wallet/credential`

> Deprecated.

Deprecated: use GET /v2/wallet/credential to list the stored credentials and GET /v2/wallet/credential/{credentialId} to retrieve one. This route retrieves all stored credentials from the wallet.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `page` | query | integer | No | Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided. Example: `1` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "credentials": [
    {
      "id": "42bd9d1c-c6a0-4967-a75e-acb2fab08030",
      "createdAt": "2026-05-06T10:52:52.235Z",
      "updatedAt": "2026-05-06T10:52:52.249Z",
      "communicationProtocol": "didcomm",
      "credentialType": "ldp_vc",
      "issuer": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368",
      "name": "Marraige Certificate",
      "schemaId": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
      "credentialDefinitionId": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/067a6740-c062-4f22-9457-62a945f5744f",
      "context": [
        "https://www.w3.org/2018/credentials/v1",
        "https://w3id.org/security/data-integrity/v2",
        {
          "@vocab": "https://www.w3.org/ns/credentials/issuer-dependent#"
        }
      ],
      "issuanceDate": "2026-05-06T10:52:52.197007135Z",
      "attributes": {
        "name": "siam"
      },
      "metadata": {
        "issuer": {
          "name": "Cheqd Test Org",
          "logo": {
            "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml",
            "alt": "Cheqd Test Org"
          }
        },
        "credential": {}
      }
    }
  ]
}
```

### Get Received Credential Offers

`GET /wallet/credential/received-offers`

This route retrieves all pending didcomm credential offers.

**Related incoming webhook**

Calling this GET endpoint does not trigger a webhook. It lists records that may previously have produced the following incoming event for the holder organization:

- [Credential Exchange Event](#tag/webhook-events/webhook/post/cheqd-credential-exchange-event)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `state` | query | string: `pending`, `done`, `processing` | No | Filter credential offers by state Example: `pending` |
| `page` | query | integer | No | Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided. Example: `1` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "credentials": [
    {
      "credentialExchangeId": "dab97ae7-03b6-4ac6-9db3-171c24b3cd7b",
      "state": "processing",
      "role": "holder",
      "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
      "threadId": "e8f1636a-be08-443d-b87f-25f2614d71ea",
      "createdAt": "2026-05-06T10:26:45.757Z",
      "updatedAt": "2026-05-06T10:52:36.309Z"
    },
    {
      "credentialExchangeId": "5f6a7f26-294c-4570-af88-228a0256d991",
      "state": "done",
      "role": "holder",
      "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
      "threadId": "25c5dace-0776-48fb-a68c-d17b601e26c6",
      "createdAt": "2026-05-06T10:19:55.290Z",
      "updatedAt": "2026-05-06T10:52:52.472Z"
    },
    {
      "credentialExchangeId": "2b1cb14a-ec16-46a0-85a9-d14ee1bf3021",
      "state": "processing",
      "role": "holder",
      "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
      "threadId": "fc50b146-132f-44f5-a2eb-baa39b94c993",
      "createdAt": "2026-05-06T07:31:40.147Z",
      "updatedAt": "2026-05-06T07:31:47.588Z"
    }
  ]
}
```

### Preview Credential Offer

`POST /wallet/credential/preview-offer`

This route allows the organization to preview a credential offer before storing it in wallet.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to preview the contents of an inbound credential offer before accepting or declining it. Returns the credential's type, attributes, issuer DID, and issuance metadata so the organization can make an informed decision.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialExchangeId` | string (uuid) | Yes | Unique identifier of the credential exchange record to preview. |
| `connectionId` | string (uuid) | Yes | UUID of the DIDComm connection over which this credential offer was received. |

```json
{
  "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f",
  "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
}
```

**Responses**

- `200`: Success
- `401`: Unauthorized
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentialType": "ldp_vc",
    "communicationProtocol": "didcomm",
    "type": "jsonld.creden",
    "name": "jsonld.creden",
    "attributes": {
      "name": "John Doe"
    },
    "issuer": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
    "issuanceDate": "2026-05-06T10:26:45.375Z",
    "holder": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
    "context": [
      "https://www.w3.org/2018/credentials/v1",
      "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreifi3qupvhxbv47af2abpfzmrxqouql2z5akocsbllvjnrrczczwba"
    ],
    "metadata": {
      "issuer": {
        "alias": "my-connection",
        "name": "Cheqd Test Org",
        "logo": {
          "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
        }
      }
    }
  }
}
```

### Accept Credential Offer

`POST /wallet/credential/accept-offer`

This route allows the organization to accept a credential offer. The offer is identified by its unique credential exchange ID.

**Related webhook events**

After storing the credential, the holder organization receives the credential-stored event at its registered webhook URL:

- [Credential Exchange Event](#tag/webhook-events/webhook/post/cheqd-credential-exchange-event)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required for the organizational wallet to accept an inbound credential offer from an Issuer. Accepting triggers the DIDComm Issue Credential protocol — the Issuer signs and delivers the credential to the organizational wallet.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialExchangeId` | string (uuid) | Yes | Unique identifier of the credential exchange record for the offer to accept (obtained from the credential offer webhook notification or by listing credential exchanges). |

```json
{
  "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f"
}
```

**Responses**

- `200`: Success
- `401`: Unauthorized
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Credential offer accepted successfully."
}
```

### Decline Credential Offer

`POST /wallet/credential/decline-offer`

This route allows the organization to decline a credential offer. The offer is identified by its unique credential exchange ID.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required for the organizational wallet to decline (reject) an inbound credential offer from an Issuer. The credential exchange will move to `abandoned` state.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialExchangeId` | string (uuid) | Yes | Unique identifier of the credential exchange record for the offer to decline. |

```json
{
  "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f"
}
```

**Responses**

- `200`: Success
- `401`: Unauthorized
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Credential offer declined successfully."
}
```

### Delete Stored Credential

`DELETE /wallet/credential/delete`

This route allows the organization to delete a stored credential by its unique credential ID.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to delete a stored Verifiable Credential from the organizational wallet. Removes the credential from local storage — does not affect the on-chain credential definition or revocation registry.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialId` | string (uuid) | Yes | Unique identifier of the stored credential record to delete from the organizational wallet. |

```json
{
  "credentialId": "54c157b7-7819-4818-8098-04a5e1ed9b81"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Credential deleted successfully"
}
```

### Get Received Proof Requests

`GET /wallet/verification/received-requests`

This route retrieves all pending proof requests.

**Related incoming webhook**

Calling this GET endpoint does not trigger a webhook. It lists records that may previously have produced the following incoming event for the holder organization:

- [Proof Exchange Event](#tag/webhook-events/webhook/post/cheqd-proof-exchange-event)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `state` | query | string: `pending`, `done`, `processing` | No | Filter proof requests by state Example: `pending` |
| `page` | query | integer | No | Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided. Example: `1` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "createdAt": "2026-05-06T11:14:37.281Z",
      "updatedAt": "2026-05-06T11:19:10.911Z",
      "proofExchangeId": "149c7644-85e3-48cb-b653-aa5658af05c0",
      "state": "done",
      "role": "prover",
      "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
      "threadId": "94256329-cd46-453f-bf2d-de5fe7d694eb",
      "message": "Presentation has been sent to the verifier.",
      "id": "149c7644-85e3-48cb-b653-aa5658af05c0"
    }
  ]
}
```

### Preview Proof Request

`POST /wallet/verification/preview-request`

This route allows credential holder to preview a proof request before sending presentation to verifier. The preview provides an overview of the attributes and conditions that will be included in the proof request.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required to preview the details of an inbound proof request before accepting or declining it. Returns the requested attributes, zero-knowledge predicates, and the presentation definition so the organization can review what credentials will be shared.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `proofExchangeId` | string (uuid) | Yes | Unique identifier of the proof exchange session to preview. |
| `connectionId` | string (uuid) | Yes | UUID of the DIDComm connection over which this proof request was received. |

```json
{
  "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
  "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
}
```

**Responses**

- `200`: Success
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentials": [],
    "presentationDefinition": {
      "name": "Marraige Verify",
      "version": "1.0.0",
      "nonce": "208751094815570559888756",
      "requested_attributes": {
        "attributes": {
          "names": [
            "name"
          ],
          "restrictions": [
            {
              "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
              "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
            }
          ]
        }
      },
      "requested_predicates": {}
    },
    "metadata": {
      "verifier": {
        "alias": "my-connection",
        "name": "Cheqd Test Org",
        "logo": {
          "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
        }
      }
    }
  }
}
```

### Submit Proof Presentation

`POST /wallet/verification/submit-presentation`

This route allows a organization to submit presentation against a proof request by credential holder. The proof request defines the attributes and conditions that the credential holder must satisfy in its presentation.

**Related webhook events**

After submitting the presentation, the holder organization receives the presentation-sent event at its registered webhook URL:

- [Proof Exchange Event](#tag/webhook-events/webhook/post/cheqd-proof-exchange-event)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required for the organizational wallet to submit a Verifiable Presentation (a cryptographically signed response containing selected credentials or derived proofs that satisfy the Verifier's requested attributes and predicates) in response to an inbound proof request.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `proofExchangeId` | string (uuid) | Yes | Unique identifier of the proof exchange session to respond to. |
| `credentialId` | string (uuid) | No | Optional UUID of the specific stored credential to use in the presentation. If omitted, Hovi automatically selects the best matching credential from the wallet that satisfies the proof request requirements. |

```json
{
  "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
  "credentialId": "54c157b7-7819-4818-8098-04a5e1ed9b81"
}
```

**Responses**

- `200`: Success
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Presentation submitted successfully."
}
```

### Decline Proof Request

`POST /wallet/verification/decline-request`

This route allows a organization to decline a proof request that has been sent to a credential holder. Declining a proof request indicates that the organization does not wish to proceed with the verification process for the specified credential.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Request body** (`application/json`)

The data required for the organizational wallet to decline (reject) an inbound proof request from a Verifier. The proof exchange will move to `abandoned` state and the Verifier will be notified.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `proofExchangeId` | string (uuid) | Yes | Unique identifier of the proof exchange session to decline. |

```json
{
  "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5"
}
```

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Proof request declined successfully."
}
```

### Get Stored Credentials (v2)

`GET /v2/wallet/credential`

This route retrieves the credentials stored in the wallet, one page at a time and newest first. Each credential is returned with its issuer and display metadata, without its attributes. Use the Get Stored Credential route to retrieve one credential with its attributes.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `page` | query | integer | No | Page to return, starting at 1. Defaults to 1. Example: `1` |
| `limit` | query | integer | No | Number of credentials per page. Defaults to 20, and can be at most 100. Example: `20` |
| `connectionId` | query | string | No | Only return credentials received over this DIDComm connection. |
| `startDate` | query | string | No | Only return credentials stored on or after this date (YYYY-MM-DD). Example: `2026-01-01` |
| `endDate` | query | string | No | Only return credentials stored on or before this date (YYYY-MM-DD). Example: `2026-01-31` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "credentials": [
    {
      "id": "252e8f87-f5f3-450b-a772-5a51f87c9dd7",
      "claimFormat": "dc+sd-jwt",
      "createdAt": "2025-03-18T09:06:17.491Z",
      "metadata": {
        "issuer": {
          "endpoint": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608",
          "name": "Acme Corp",
          "logo": {
            "url": "https://acme-corp.id/logo.png",
            "alt": "Acme Corp logo"
          }
        },
        "credential": {
          "name": "Employee Record Credential",
          "description": "Proof of employment at Acme Corp",
          "textColor": "#FFFFFF",
          "backgroundImage": {
            "url": "https://acme-corp.id/card.png"
          }
        }
      }
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 1,
    "totalPages": 1,
    "hasNextPage": false,
    "hasPreviousPage": false
  }
}
```

### Get Stored Credential (v2)

`GET /v2/wallet/credential/{credentialId}`

This route retrieves one credential stored in the wallet, with its attributes and the display labels of its claims.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `credentialId` | path | string | Yes | Credential ID, as returned by the Get Stored Credentials route. |
| `x-organization-id` | header | string | Yes | The unique identifier of the organization (tenant) in UUID format. Example: `123e4567-e89b-12d3-a456-426614174000` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not found
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "credential": {
    "id": "252e8f87-f5f3-450b-a772-5a51f87c9dd7",
    "claimFormat": "dc+sd-jwt",
    "createdAt": "2025-03-18T09:06:17.491Z",
    "updatedAt": "2025-03-18T09:06:17.491Z",
    "issuer": "did:key:z6MkkXxeGTt6GZvQ8RvuCGckgtvVLJD8RSmH4EZm9jug6JFo",
    "attributes": {
      "given_name": "John",
      "family_name": "Doe",
      "employee_id": "emp-123456"
    },
    "metadata": {
      "issuer": {
        "endpoint": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608",
        "name": "Acme Corp",
        "logo": {
          "url": "https://acme-corp.id/logo.png",
          "alt": "Acme Corp logo"
        }
      },
      "credential": {
        "name": "Employee Record Credential",
        "description": "Proof of employment at Acme Corp"
      },
      "claims": {
        "given_name": {
          "path": [
            "given_name"
          ],
          "mandatory": true,
          "labels": {
            "default": "Given Name"
          }
        }
      }
    }
  }
}
```

## Other

### GET /verification/session/document-coverage

`GET /verification/session/document-coverage`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `default`: No description

### GET /verification/session/{sessionId}/redirect-target

`GET /verification/session/{sessionId}/redirect-target`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sessionId` | path | string | Yes |  |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `500`: Internal Server Error

### POST /verification/session/{sessionId}/id-verification/document

`POST /verification/session/{sessionId}/id-verification/document`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sessionId` | path | string | Yes |  |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `500`: Internal Server Error

### POST /verification/session/{sessionId}/id-verification/passive-liveness

`POST /verification/session/{sessionId}/id-verification/passive-liveness`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sessionId` | path | string | Yes |  |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `500`: Internal Server Error

### POST /verification/session/{sessionId}/id-verification/face-match

`POST /verification/session/{sessionId}/id-verification/face-match`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sessionId` | path | string | Yes |  |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `500`: Internal Server Error

### POST /verification/session/{sessionId}/id-verification/ip-risk

`POST /verification/session/{sessionId}/id-verification/ip-risk`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sessionId` | path | string | Yes |  |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `500`: Internal Server Error

### GET /verification/session/{sessionId}/evidence

`GET /verification/session/{sessionId}/evidence`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sessionId` | path | string | Yes |  |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `default`: No description
