# Cloud Wallet API

> Hosted wallets for your app's users.

Source: https://docs-dev.hovi.id/api/cloud-wallet

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

Version: v0.4.7

Hovi Cloud Wallet API enables seamless creation and management of digital wallets for verifiable credentials in the cloud. It is designed for flexibility, allowing integration with any system or platform through standard REST interfaces. Compatible across all Hovi-supported ecosystems, the API offers a secure, scalable, and developer-friendly way to issue, store, and present credentials, without the need for local storage or device dependency.

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

## Endpoints

- Wallet
  - `POST /wallet/create`: Create Wallet
  - `DELETE /wallet/delete`: Delete Wallet
  - `DELETE /wallet/admin/delete`: Admin Delete Wallet
  - `GET /wallet/`: Get All Created Wallets
- Connection
  - `GET /connection/`: Get All Connections
  - `POST /connection/accept-invitation`: Accept Out-of-Band Connection Invitation
  - `GET /connection/{connectionId}`: Get Connection By Id
- Credential
  - `POST /credential/resolve-authorization-request-uri`: Resolve OpenId Credential Authorization Request URI
  - `POST /credential/preview-offer`: Preview Credential Offer
  - `POST /credential/accept-offer`: Accept Credential Offer
  - `POST /credential/decline-offer`: Decline DIDComm Credential Offer
  - `GET /credential/received-offers`: Get All Received Credential Offers
  - `GET /credential/`: Get All Stored Credentials
  - `DELETE /credential/{credentialId}`: Delete Credential
  - `GET /v2/credential/`: Get Stored Credentials
  - `GET /v2/credential/{credentialId}`: Get Credential
- Proof
  - `POST /proof/preview-request`: Preview Proof Request
  - `POST /proof/submit-presentation`: Submit Proof Presentation
  - `GET /proof/`: Get All DIDComm Proof Requests
  - `GET /proof/{proofExchangeId}`: Get Proof Request by ID
  - `POST /proof/decline-request`: Decline DIDComm Proof Request
- Webhook
  - `POST /webhook/register`: Register Webhook
  - `GET /webhook/`: Get Webhooks
  - `DELETE /webhook/`: Delete Webhook
  - `POST /webhook/rotate-secret`: Rotate Webhook Secret

## Wallet

Wallet endpoints allow the creation, management, and deletion of wallets for storing and managing digital credentials.

### Create Wallet

`POST /wallet/create`

This route is used to create a new wallet.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-api-key` | header | string | Yes | Cloud wallet API key for authentication. Can be found from studio's cloud wallet section Example: `cw-openId-test-eyJhbGciOi....NxAIqH49PvSjzzk` |

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

Request payload to provision a new cloud wallet (the data you send to create a wallet that stores and manages verifiable credentials).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `label` | string | Yes | Human-readable name for the wallet (the friendly label shown to identify this wallet). |
| `secret` | string | Yes | Secret passphrase used to secure the wallet and to recover it later (keep this confidential; it acts as the wallet key). |

```json
{
  "label": "Patient Info Wallet",
  "secret": "e8a0012c-17e7-439d-a390-81a54c3fa09c"
}
```

**Responses**

- `201`: Wallet created successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `201` response:

```json
{
  "success": true,
  "response": {
    "id": "77255e50-41d9-473e-824f-89f6cad390d6",
    "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhibaJKWkNJNklqYzNNalUxWlRVd0xUUXhaRGt0TkRjelpTMDRNalJtTFRnNVpqWmpZV1F6T1RCa05pSXNJbWxoZENJNk1UYzByakkwTURFNU1YMD0.bA04OItcJYMjzJ7uRMcfiqxMMpjHrRlD9fGgFgnhlY4",
    "did": "did:key:z6MkwB4N3z1pAtmzVC3pa3khHJvw9bg44PGFmvwnFSVFVDeP",
    "seed": "eilIhLrvjg5XDc4asaNs4uvT5O0ipRoS6"
  }
}
```

### Delete Wallet

`DELETE /wallet/delete`

This route is used to delete a wallet.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Wallet deleted successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

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

### Admin Delete Wallet

`DELETE /wallet/admin/delete`

Deletes a specific wallet by Ecosystem Admin. Requires Authorization header authentication.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-api-key` | header | string | Yes | Cloud wallet API key for authentication. Can be found from studio's cloud wallet section Example: `cw-openId-test-eyJhbGciOi....NxAIqH49PvSjzzk` |

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

Request payload to delete a specific wallet as an ecosystem admin.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `walletId` | string (uuid) | Yes | Unique identifier of the wallet to delete (the UUID assigned to this wallet). |

```json
{
  "walletId": "77255e50-41d9-473e-824f-89f6cad390d6"
}
```

**Responses**

- `200`: Wallet deleted successfully.
- `401`: Unauthorized request
- `403`: Forbidden
- `404`: Wallet not found
- `500`: Internal server error.

Example `200` response:

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

### Get All Created Wallets

`GET /wallet/`

This route is used to get a list of created wallets per ecosystem.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-api-key` | header | string | Yes | Cloud wallet API key for authentication. Can be found from studio's cloud wallet section Example: `cw-openId-test-eyJhbGciOi....NxAIqH49PvSjzzk` |

**Responses**

- `200`: Wallet retrieved successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "walletId": "77255e50-41d9-473e-824f-89f6cad390d6",
      "label": "Employee Wallet",
      "did": "did:key:z6MkwB4N3z1pAtmzVC3pa3khHJvw9bg44PGFmvwnFSVFVDeP",
      "walletStatus": "active",
      "createdAt": "2025-03-18T09:30:00.000Z"
    }
  ]
}
```

## Connection

Connection endpoints facilitate the establishment and management of connections between wallets, enabling secure communication and data exchange.

### Get All Connections

`GET /connection/`

This route is used to get all connections.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Connections retrieved successfully
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "connectionId": "c44fb75f-85a8-40cc-a9c0-60f48bc837d5",
      "invitationId": "a11bde0c-63f0-41bd-9a60-73acace9628d",
      "connectionProtocol": "https://didcomm.org/didexchange/1.x",
      "state": "completed",
      "role": "requester",
      "accept": "auto",
      "theirDid": "did:peer:4zQmZ3D2mcdjEb48r1cT9JqK6z6S9L5sPbtY3LE5PRAJwvqL:zgRJGCEoHxZ6jTuF6Fk667S8ALo2f6kAcF3zvQvz3qEcqoue93rPDXevNqcipgMkBheEpoh8bR8hybSZT3qJELApAJWD3wEX3WKuZTFeHbGaySQRAHVMwEjTZqtvWZWTDM37UW5CBrTdLES81oLoqzhG5xCovWQQBWbYZhw5LKLCHTL82jYQmN7ooosyfFwXEpbmWM1v6r8B3uhptpMUirJeeUZDCmLcm167WJcuhnUGB6ABRaopiC9tXzap99xqoAuD3iw5tSzLf4ypTmbG8qkq79sEhRvHjPojLnFTsEeC1ARimk2zsGJjaqTn79GYR3RhiFXyJbkknpG4tz7VMShEF6frjgsGug7vxqz5Qri4U9jtYwBY3yVVPAV2FGRQFFZ2kVwRtzRzk5TX7LexfGiQj1ERusk1uPxrgeotiqREnmLap9zGkSDLDkK7LroSJqCCTkejsV95s47cwezYFiyc3tkKxnE3oEQMscKgWgFbTSnrtTaabziYAx4MSrGYPuT5GD8FaxQJPcmgxqdGuFGJZ5uUgNoHth4g8Poctd2zYVjQsxuxXQgv8nhkbHRFzcE3teyf3BWXrbtfRTAmM3gavKgnmojKFXeixHLQWwLU92ocgeaH8H7Baz8XkA5nYpmhjva5WBSYbTvsvX6k5MDzjN",
      "threadId": "e2a35bf9-7666-4eb2-9fef-1c8ac622c6ad",
      "myDid": "did:peer:4zQmSq4QW7FeVrPeiePK4RTq75Qare5cdejtQAacvkKKmhds:z3DT1Foi4HThq6zpbYF1jT1Ym7ZTMzJVeF71f8p6oYhY1y6jez3d9FQ7vFu2toCJ5Vp9LCgHNBjupco6BVPQuQ9k6Q62BWDfiWmQbb66syw5T3ZSmHAtfPdY3dnR1vmwcaSLRMeUPMn5247NErKALX7Vszu4TK1dn1wE9rrsojvuZWa5Ak8dpR9ZfPrAsZ9p2aMuAZP8R3JsGUZMpLaanvZEKFCLtJQ9cDiJMfNTG2XPHUFshKoMRrmAPNfhZzR59CD1bbKmmKM7syaZCLKPyZviXHxbamNRPPmSurcMuq94hR1SdUdZ5vvfntSMPtF3NFhrBN1ftb3SkS4yuxsQVPhkqrc2embHhoKRKCJe56WQTUGvrzALZSs1fuTTxCcaHVy1NRVnv9KEStZPbXEdmQ4tXzrFisKPk31t42ZdsfFU9EY5STYdM3gPAburWRY3AKEhBconX2xGgX4MLF5rgD58T2Qyvk2XAA5yn4iEhpYcyPkzqQvKtVEj32n3Xk8i9rdB2fhkARGWihPNvr8mcK7Y36wqAquREKvPv5RYZfmy5MTEUsqQrUARMJDYMNpWPDLoQGhqwBAMLpJPbe9agQyYpyMoUVQNERte2Kya7xFUdYxiiNehUu8EUCwutWEDBsmmYcz7ywUKgQVBSKSkX5QbXBM9ujN9YpCg5Ta",
      "theirLabel": "Cheqd Org",
      "imageUrl": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-org-image-1783421744164.svg%2Bxml",
      "createdAt": "2026-07-07T11:19:24.175Z",
      "updatedAt": "2026-07-07T11:19:24.426Z",
      "id": "c44fb75f-85a8-40cc-a9c0-60f48bc837d5"
    }
  ]
}
```

### Accept Out-of-Band Connection Invitation

`POST /connection/accept-invitation`

This route is used to accept didcomm out-of-band connection invitation.

**Related holder webhook**
After this operation, Hovi notifies the cloud wallet when the DIDComm connection request is sent and again when the connection is completed:

- [Connection Event](#tag/webhook-events/webhook/POST/holder-connection-request-sent)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to accept a connection invitation received from another agent (the data you send to establish a connection).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `protocol` | string: `didcomm` | Yes | Communication protocol used for the invitation (currently didcomm). |
| `invitation` | string | Yes | Out-of-band invitation URL or encoded invitation payload to accept. |
| `label` | string | No | Optional label to associate with the newly created connection. |

```json
{
  "protocol": "didcomm",
  "invitation": "https://studio.hovi.id/connection?oob=eyJAdHlwZSI6Imh0dHBzOi8vzGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvaS4xL2ludml0YXRpb24iLCJAaWQiOiI0Nzg4ZmM3ZS0wYWM0LTQwYjAtOTczNi05M2ViMmQ0MWEwNDMiLCJsYWJlbCI6InRlc3QtbGFiZWwtNjQzMDIiLCJhY2NlcHQiOlsiZGlkY29tbS9haXAxIiwiZGlkY29tbS9haXAyO2Vudj1yZmMxOSJdLCJoYW5kc2hha2VfcHJvdG9jb2xzIjpbImh0dHBzOi8vZGlkY29tbS5vcmcvZGlkZXhjaGFuZ2UvMS4xIiwiaHR0cHM6Ly9kaWRjb21tLm9yZy9jb25uZWN0aW9ucy8xLjAiXSwic2VydmljZXMiOlt7ImlkIjoiI2lubGluZS0wIiwic2VydmljZUVuZHBvaW50IjoiaHR0cHM6Ly9jb3JlLWFnZW50LWRldi5ob3ZpLmlkL2FnZW50IiwidHlwZSI6ImRpZC1jb21tdW5pY2F0aW9uIiwicmVjaXBpZW50S2V5cyI6WyJkaWQ6a2V5Ono2TWt3NkF1eWVBU0FNcFg2cGExNWFKeHphSzFoZnF6SkRadUZSb0NuQnhEbVRmVSJdLCJyb3V0aW5nS2V5cyI6W119XSwiaW1hZ2VVcmwiOiJodHRwczovL2xvcmVtZmxpY2tyLmNvbS82NDAvNDgwIn0",
  "label": "Patient Info Wallet"
}
```

**Responses**

- `200`: Connection invitation accepted successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "invitationId": "0fd2cb08-cfdf-48ca-a8ca-2716e3c6c747",
    "connectionId": "03cd162e-119f-4567-b2a1-f0d447cd1759",
    "state": "pending",
    "theirLabel": "Indicio Organization",
    "imageUrl": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/indicio-organization-image-1783423471805.svg%2Bxml"
  }
}
```

### Get Connection By Id

`GET /connection/{connectionId}`

This route is used to get connection by id.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `connectionId` | path | string | Yes | Unique identifier of the DIDComm connection record used to exchange credentials and proof requests. Here it is used to retrieve a proof request by `connectionId`. Example: `a4508d13-33ca-4100-ab39-605401e54961` |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Connection fetched successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "connectionId": "c44fb75f-85a8-40cc-a9c0-60f48bc837d5",
      "invitationId": "a11bde0c-63f0-41bd-9a60-73acace9628d",
      "connectionProtocol": "https://didcomm.org/didexchange/1.x",
      "state": "completed",
      "role": "requester",
      "accept": "auto",
      "theirDid": "did:peer:4zQmZ3D2mcdjEb48r1cT9JqK6z6S9L5sPbtY3LE5PRAJwvqL:zgRJGCEoHxZ6jTuF6Fk667S8ALo2f6kAcF3zvQvz3qEcqoue93rPDXevNqcipgMkBheEpoh8bR8hybSZT3qJELApAJWD3wEX3WKuZTFeHbGaySQRAHVMwEjTZqtvWZWTDM37UW5CBrTdLES81oLoqzhG5xCovWQQBWbYZhw5LKLCHTL82jYQmN7ooosyfFwXEpbmWM1v6r8B3uhptpMUirJeeUZDCmLcm167WJcuhnUGB6ABRaopiC9tXzap99xqoAuD3iw5tSzLf4ypTmbG8qkq79sEhRvHjPojLnFTsEeC1ARimk2zsGJjaqTn79GYR3RhiFXyJbkknpG4tz7VMShEF6frjgsGug7vxqz5Qri4U9jtYwBY3yVVPAV2FGRQFFZ2kVwRtzRzk5TX7LexfGiQj1ERusk1uPxrgeotiqREnmLap9zGkSDLDkK7LroSJqCCTkejsV95s47cwezYFiyc3tkKxnE3oEQMscKgWgFbTSnrtTaabziYAx4MSrGYPuT5GD8FaxQJPcmgxqdGuFGJZ5uUgNoHth4g8Poctd2zYVjQsxuxXQgv8nhkbHRFzcE3teyf3BWXrbtfRTAmM3gavKgnmojKFXeixHLQWwLU92ocgeaH8H7Baz8XkA5nYpmhjva5WBSYbTvsvX6k5MDzjN",
      "threadId": "e2a35bf9-7666-4eb2-9fef-1c8ac622c6ad",
      "myDid": "did:peer:4zQmSq4QW7FeVrPeiePK4RTq75Qare5cdejtQAacvkKKmhds:z3DT1Foi4HThq6zpbYF1jT1Ym7ZTMzJVeF71f8p6oYhY1y6jez3d9FQ7vFu2toCJ5Vp9LCgHNBjupco6BVPQuQ9k6Q62BWDfiWmQbb66syw5T3ZSmHAtfPdY3dnR1vmwcaSLRMeUPMn5247NErKALX7Vszu4TK1dn1wE9rrsojvuZWa5Ak8dpR9ZfPrAsZ9p2aMuAZP8R3JsGUZMpLaanvZEKFCLtJQ9cDiJMfNTG2XPHUFshKoMRrmAPNfhZzR59CD1bbKmmKM7syaZCLKPyZviXHxbamNRPPmSurcMuq94hR1SdUdZ5vvfntSMPtF3NFhrBN1ftb3SkS4yuxsQVPhkqrc2embHhoKRKCJe56WQTUGvrzALZSs1fuTTxCcaHVy1NRVnv9KEStZPbXEdmQ4tXzrFisKPk31t42ZdsfFU9EY5STYdM3gPAburWRY3AKEhBconX2xGgX4MLF5rgD58T2Qyvk2XAA5yn4iEhpYcyPkzqQvKtVEj32n3Xk8i9rdB2fhkARGWihPNvr8mcK7Y36wqAquREKvPv5RYZfmy5MTEUsqQrUARMJDYMNpWPDLoQGhqwBAMLpJPbe9agQyYpyMoUVQNERte2Kya7xFUdYxiiNehUu8EUCwutWEDBsmmYcz7ywUKgQVBSKSkX5QbXBM9ujN9YpCg5Ta",
      "theirLabel": "Cheqd Org",
      "imageUrl": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-org-image-1783421744164.svg%2Bxml",
      "createdAt": "2026-07-07T11:19:24.175Z",
      "updatedAt": "2026-07-07T11:19:24.426Z",
      "id": "c44fb75f-85a8-40cc-a9c0-60f48bc837d5"
    }
  ]
}
```

## Credential

Credential endpoints facilitate the management of verifiable credentials, including offer preview, offer acceptance and deletion.

### Resolve OpenId Credential Authorization Request URI

`POST /credential/resolve-authorization-request-uri`

This route is used to resolve an OpenId Credential Authorization Request URI.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to resolve the authorization request URI for a credential offer that uses the authorization code flow.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `protocol` | string: `openid` | Yes | Communication protocol of the offer (either openid or didcomm). |
| `credentialOfferUri` | string | No | Credential offer URI for which to resolve the authorization request. |
| `clientId` | string | No | OAuth2 client identifier used for the authorization request. |
| `redirectUri` | string | No | Redirect URI to which the authorization server returns the user. |
| `scope` | array of string | No | OAuth2 scopes to request. If omitted, scopes are taken from the credential offer. |
| `walletAttestationJwt` | string | No | Wallet attestation JWT presented during the authorization request. |

```json
{
  "protocol": "openid",
  "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fcore-agent.hovi.id%2Fagent%2Foid4vci%2F8025d737-bd05-44fa-9201-52c1b1f6d608%2Foffers%2F614f3bc9-f278-465f-80bz-53086ec60325",
  "clientId": "acme-corp-client-id",
  "redirectUri": "https://wallet.acme-corp.id/callback"
}
```

**Responses**

- `200`: URI resolved successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "authorizationFlow": "Oauth2Redirect",
    "authorizationRequestUrl": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608/authorize?client_id=hovi-cloud-wallet&redirect_uri=https%3A%2F%2Fwallet.hovi.id%2Fcallback&response_type=code&scope=openid"
  }
}
```

### Preview Credential Offer

`POST /credential/preview-offer`

This route is used to preview an Credential Offer. Protocols supported: didcomm, openid. Didcomm protocol requires credentialId and openid protocol requires credentialOfferUri.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to preview a credential offer before accepting it (the data you send to see what a credential offer contains).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `protocol` | string: `openid`, `didcomm` | Yes | Communication protocol of the offer (either openid or didcomm). |
| `credentialOfferUri` | string | No | Credential offer URI to preview (used for the openid protocol). |
| `credentialExchangeId` | string (uuid) | No | Credential exchange identifier to preview (used for the didcomm protocol). |
| `connectionId` | string (uuid) | No | Connection identifier associated with the offer (used for the didcomm protocol). |

```json
{
  "protocol": "didcomm",
  "credentialExchangeId": "b5ef2f1f-454d-4ecc-aa11-2ca027f59843",
  "connectionId": "a4508d13-33ca-4100-ab39-605401e54961"
}
```

**Responses**

- `200`: Credential offer previewed successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentialType": "vc+sd-jwt",
    "communicationProtocol": "openid",
    "attributes": {
      "fullName": "Ernest Block",
      "age": "18"
    },
    "metadata": {
      "issuer": {
        "endpoint": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608",
        "name": "Business-focused zero administration framework",
        "logo": {
          "url": "https://loremflickr.com/640/480",
          "alt": "Corwin and Sons"
        }
      },
      "credential": {
        "name": "Patient Info",
        "description": "Proof of Patient Id",
        "textColor": "#f2f500",
        "backgroundImage": {
          "url": "https://images.pexels.com/photos/956999/milky-way-starry-sky-night-sky-star-956999.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
        },
        "logo": {
          "url": "https://loremflickr.com/640/480",
          "alt": "Schowalter, Wolff and Crona"
        }
      },
      "claims": {
        "name": {
          "path": [
            "name"
          ],
          "mandatory": true,
          "labels": {
            "default": "Name"
          },
          "originalDisplay": [
            {
              "name": "Name"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "name"
            ],
            "display": [
              {
                "name": "Name"
              }
            ],
            "mandatory": true
          }
        },
        "age": {
          "path": [
            "age"
          ],
          "mandatory": true,
          "labels": {
            "default": "Age"
          },
          "originalDisplay": [
            {
              "name": "Age"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "age"
            ],
            "display": [
              {
                "name": "Age"
              }
            ],
            "mandatory": true
          }
        }
      }
    },
    "codeflow": "pre-authorized",
    "transactionCodeInfo": {
      "codeRequired": true,
      "length": 4,
      "description": "Enter the code sent to your email"
    }
  }
}
```

### Accept Credential Offer

`POST /credential/accept-offer`

This route is used to accept an Credential Offer. Protocols supported: didcomm, openid. Didcomm protocol requires credentialId and openid protocol requires credentialOfferUri.

**Related holder webhook**
After the accepted DIDComm credential is stored, Hovi sends the following event to the cloud wallet webhook:

- [Credential Stored](#tag/webhook-events/webhook/POST/holder-credential-exchange)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to accept a credential offer and receive the credential into the wallet (the data you send to complete issuance).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `protocol` | string: `openid`, `didcomm` | Yes | Communication protocol of the offer (either openid or didcomm). |
| `credentialOfferUri` | string | No | Credential offer URI to accept (used for the openid protocol). |
| `credentialExchangeId` | string (uuid) | No | Credential exchange identifier to accept (used for the didcomm protocol). |
| `codeflow` | string: `pre-authorized`, `authorization` | No | Issuance code flow to use (either pre-authorized or authorization). |
| `preAuthorizedFlowOptions` | object | No | Options used when accepting via the pre-authorized code flow. |
| `preAuthorizedFlowOptions.transactionCode` | string | No | Transaction code entered by the holder to authorize issuance. |
| `authorizationFlowOptions` | object | No | Options used when accepting via the authorization code flow. |
| `authorizationFlowOptions.code` | string | Yes | Authorization code returned by the authorization server. |

```json
{
  "protocol": "openid",
  "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fcore-agent.hovi.id%2Fagent%2Foid4vci%2F8025d737-bd05-44fa-9201-52c1b1f6d608%2Foffers%2F614f3bc9-f278-465f-80bz-53086ec60325",
  "codeflow": "pre-authorized",
  "preAuthorizedFlowOptions": {
    "transactionCode": "2412"
  }
}
```

**Responses**

- `200`: Credential offer accepted successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "id": "2552b099-d5b0-4f7f-83bc-00b3956b9cea",
    "communicationProtocol": "openid",
    "credentialType": "vc+sd-jwt",
    "attributes": {
      "age": "30",
      "name": "Miss Owen Fritsch"
    },
    "metadata": {
      "issuer": {
        "endpoint": "https://temp-dev-core-credo-agent.koyeb.app/agent/oid4vci/3edb50dd-10a4-48a3-8934-f91106cdd640",
        "name": "Customizable zero administration time-frame",
        "logo": {
          "url": "https://loremflickr.com/640/480",
          "alt": "Schowalter, Wolff and Crona"
        }
      },
      "credential": {
        "name": "Patient Info",
        "description": "Proof of Patient Id",
        "textColor": "#f2f500",
        "backgroundImage": {
          "url": "https://images.pexels.com/photos/956999/milky-way-starry-sky-night-sky-star-956999.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
        },
        "logo": {
          "url": "https://loremflickr.com/640/480",
          "alt": "Schowalter, Wolff and Crona"
        }
      },
      "claims": {
        "name": {
          "path": [
            "name"
          ],
          "mandatory": true,
          "labels": {
            "default": "Name"
          },
          "originalDisplay": [
            {
              "name": "Name"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "name"
            ],
            "display": [
              {
                "name": "Name"
              }
            ],
            "mandatory": true
          }
        },
        "age": {
          "path": [
            "age"
          ],
          "mandatory": true,
          "labels": {
            "default": "Age"
          },
          "originalDisplay": [
            {
              "name": "Age"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "age"
            ],
            "display": [
              {
                "name": "Age"
              }
            ],
            "mandatory": true
          }
        }
      }
    },
    "issuanceDate": "2026-07-20T11:47:36.816Z",
    "type": "PatientRecordSD",
    "issuer": "did:key:zDnaeXbPv7WMQSakiieDuySVGBxYPQzXeA5prLLmGutiBxAaY",
    "createdAt": "2025-12-23T06:28:38.664Z"
  }
}
```

### Decline DIDComm Credential Offer

`POST /credential/decline-offer`

This route is used to decline an Credential Offer using didcomm protocol. This route is not supported for openid protocol.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to decline a pending credential offer (the data you send to reject an incoming credential).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `protocol` | string: `didcomm` | Yes | Communication protocol of the offer (currently didcomm). |
| `credentialId` | string (uuid) | Yes | Identifier of the credential offer to decline. |

```json
{
  "protocol": "didcomm",
  "credentialId": "551d4177-c82e-4682-b3ff-3a0414635e88"
}
```

**Responses**

- `200`: Credential offer declined successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "_tags": {
      "connectionId": "64f7f6db-b974-4e09-8e0b-d1a70819ded6",
      "role": "holder",
      "state": "offer-received",
      "threadId": "9f8825e0-2e2d-4a09-badf-e57ce5c05a85"
    },
    "metadata": {},
    "credentials": [],
    "id": "551d4177-c82e-4682-b3ff-3a0414635e88",
    "createdAt": "2025-03-18T09:16:06.290Z",
    "state": "declined",
    "role": "holder",
    "connectionId": "64f7f6db-b974-4e09-8e0b-d1a70819ded6",
    "threadId": "9f8825e0-2e2d-4a09-badf-e57ce5c05a85",
    "protocolVersion": "v2",
    "updatedAt": "2025-03-18T09:18:46.762Z"
  }
}
```

### Get All Received Credential Offers

`GET /credential/received-offers`

This route is used to retrieve all received Didcomm Credential Offers.

**Related incoming holder webhook**
This GET operation does not trigger a webhook. A credential offer can arrive asynchronously and produce this event before it appears in the returned records:

- [Credential Offer Received](#tag/webhook-events/webhook/POST/holder-credential-exchange)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Credential offers retrieved successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "credentialExchangeId": "7fa31628-6fc6-4e58-94da-366989e36120",
      "state": "pending",
      "role": "holder",
      "connectionId": "c44fb75f-85a8-40cc-a9c0-60f48bc837d5",
      "threadId": "548bbefc-2822-4f63-b0b5-cb52c1397ea6",
      "createdAt": "2026-07-07T11:42:34.907Z",
      "updatedAt": "2026-07-07T11:42:34.907Z",
      "id": "7fa31628-6fc6-4e58-94da-366989e36120"
    },
    {
      "id": "9476f9b6-e8d3-4df3-ac4f-adf3754aa660",
      "createdAt": "2026-07-07T11:44:59.450Z",
      "updatedAt": "2026-07-07T11:44:59.474Z",
      "communicationProtocol": "didcomm",
      "credentialType": "ldp_vc",
      "issuer": "did:cheqd:testnet:dd387cf8-5e50-4acc-87ef-462ac064c292",
      "name": "Anoncreds",
      "schemaId": "did:cheqd:testnet:dd387cf8-5e50-4acc-87ef-462ac064c292/resources/51791cd5-3ada-42c1-a2f1-f3dd21e97206",
      "credentialDefinitionId": "did:cheqd:testnet:dd387cf8-5e50-4acc-87ef-462ac064c292/resources/f1897447-d0dc-42b6-9156-db8760f684ba",
      "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-07-07T11:44:59.398252404Z",
      "attributes": {
        "fullName": "Ernest Block",
        "age": 18
      },
      "metadata": {
        "issuer": {
          "name": "Cheqd Org",
          "logo": {
            "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-org-image-1783421744164.svg%2Bxml",
            "alt": "Cheqd Org"
          }
        },
        "credential": {}
      }
    }
  ]
}
```

### Get All Stored Credentials

`GET /credential/`

> Deprecated.

Deprecated: use GET /v2/credential to list the stored Credentials and GET /v2/credential/{credentialId} to retrieve one. This route is used to retrieve all stored Credentials.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Credentials retrieved successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "id": "252e8f87-f5f3-450b-a772-5a51f87c9dd7",
      "createdAt": "2025-03-18T09:06:17.491Z",
      "updatedAt": "2025-03-18T09:06:17.491Z",
      "communicationProtocol": "openid",
      "credentialType": "vc+sd-jwt",
      "issuer": "did:key:z6MkkXxeGTt6GZvQ8RvuCGckgtvVLJD8RSmH4EZm9jug6JFo",
      "holder": "did:key:z6MksAC7hNLTsBEirsh35pNruC6ZdmH5czE3UTSWCSyQbear#z6MksAC7hNLTsBEirsh35pNruC6ZdmH5czE3UTSWCSyQbear",
      "type": "Employee Record Credential",
      "name": "Employee Record Credential",
      "attributes": {
        "family_name": "John Doe",
        "email": "john.doe@example.com",
        "employee_id": "emp-123456",
        "given_name": "John",
        "issued_at": "2025-03-18T09:06:17.491Z",
        "department": "Engineering"
      },
      "metadata": {
        "issuer": {
          "endpoint": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608",
          "name": "Business-focused zero administration framework",
          "logo": {
            "url": "https://loremflickr.com/640/480",
            "alt": "Corwin and Sons"
          }
        },
        "credential": {
          "name": "Employee Record Credential",
          "textColor": "#000000",
          "backgroundImage": {
            "url": "https://hovi.blob.core.windows.net/studio-assets/default-images/credentialTemplateTheme.jpg"
          },
          "logo": {
            "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/eu-org-image-1782979616602.svg%2Bxml",
            "alt": "EU Org"
          }
        },
        "claims": {
          "given_name": {
            "path": [
              "given_name"
            ],
            "mandatory": true,
            "labels": {
              "default": "Given Name"
            },
            "originalDisplay": [
              {
                "name": "Given Name"
              }
            ],
            "originalClaim": {
              "path": [
                "given_name"
              ],
              "display": [
                {
                  "name": "Given Name"
                }
              ],
              "mandatory": true
            }
          },
          "family_name": {
            "path": [
              "family_name"
            ],
            "mandatory": true,
            "labels": {
              "default": "Family Name"
            },
            "originalDisplay": [
              {
                "name": "Family Name"
              }
            ],
            "originalClaim": {
              "path": [
                "family_name"
              ],
              "display": [
                {
                  "name": "Family Name"
                }
              ],
              "mandatory": true
            }
          },
          "email": {
            "path": [
              "email"
            ],
            "mandatory": true,
            "labels": {
              "default": "Email"
            },
            "originalDisplay": [
              {
                "name": "Email"
              }
            ],
            "originalClaim": {
              "path": [
                "email"
              ],
              "display": [
                {
                  "name": "Email"
                }
              ],
              "mandatory": true
            }
          },
          "employee_id": {
            "path": [
              "employee_id"
            ],
            "mandatory": true,
            "labels": {
              "default": "Employee Id"
            },
            "originalDisplay": [
              {
                "name": "Employee Id"
              }
            ],
            "originalClaim": {
              "path": [
                "employee_id"
              ],
              "display": [
                {
                  "name": "Employee Id"
                }
              ],
              "mandatory": true
            }
          },
          "department": {
            "path": [
              "department"
            ],
            "mandatory": true,
            "labels": {
              "default": "Department"
            },
            "originalDisplay": [
              {
                "name": "Department"
              }
            ],
            "originalClaim": {
              "path": [
                "department"
              ],
              "display": [
                {
                  "name": "Department"
                }
              ],
              "mandatory": true
            }
          },
          "issued_at": {
            "path": [
              "issued_at"
            ],
            "mandatory": true,
            "labels": {
              "default": "Issued At"
            },
            "originalDisplay": [
              {
                "name": "Issued At"
              }
            ],
            "originalClaim": {
              "path": [
                "issued_at"
              ],
              "display": [
                {
                  "name": "Issued At"
                }
              ],
              "mandatory": true
            }
          }
        }
      }
    }
  ]
}
```

### Delete Credential

`DELETE /credential/{credentialId}`

This route is used to delete a stored Credential.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `credentialId` | path | string | Yes | Unique identifier of the stored credential to retrieve, present, or delete from the wallet. Example: `403c8b56-f69e-4d58-a918-a84572f18b8e` |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Credential deleted successfully.
- `401`: Unauthorized request
- `404`: Credential not found.
- `500`: Internal server error.

Example `200` response:

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

### Get Stored Credentials

`GET /v2/credential/`

This route is used to retrieve the stored Credentials of 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 Credential route to retrieve one Credential with its attributes.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `page` | query | integer | No | Page to return, starting at 1. Defaults to 1. |
| `limit` | query | integer | No | Number of Credentials per page. Defaults to 20, and can be at most 100. |
| `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 (ISO 8601). |
| `endDate` | query | string | No | Only return Credentials stored on or before this date (ISO 8601). |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Credentials retrieved successfully.
- `400`: Invalid paging or filter value.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "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 Credential

`GET /v2/credential/{credentialId}`

This route is used to retrieve one stored Credential with its attributes and the display labels of its claims.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `credentialId` | path | string | Yes | Unique identifier of the stored credential to retrieve, present, or delete from the wallet. Example: `403c8b56-f69e-4d58-a918-a84572f18b8e` |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Credential retrieved successfully.
- `401`: Unauthorized request
- `404`: Credential not found.
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "id": "252e8f87-f5f3-450b-a772-5a51f87c9dd7",
    "createdAt": "2025-03-18T09:06:17.491Z",
    "updatedAt": "2025-03-18T09:06:17.491Z",
    "claimFormat": "dc+sd-jwt",
    "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"
          }
        }
      }
    }
  }
}
```

## Proof

Proof endpoints facilitate the generation and verification of cryptographic proofs using verifiable credentials, ensuring data integrity and authenticity.

### Preview Proof Request

`POST /proof/preview-request`

Preview a proof request. OpenID DCQL previews include matching credentials by query ID and mandatory all/any groups. DIDComm requires proofExchangeId and connectionId; OpenID requires proofRequestUri.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to preview a proof (presentation) request and the credentials that can satisfy it.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `protocol` | string: `didcomm`, `openid` | Yes | Communication protocol of the proof request (didcomm or openid). |
| `proofExchangeId` | string (uuid) | No | Identifier of the proof exchange (used for the didcomm protocol). |
| `connectionId` | string (uuid) | No | Identifier of the associated connection (used for the didcomm protocol). |
| `proofRequestUri` | string | No | Proof request URI to preview (used for the openid protocol). |
| `origin` | string (uri) | No | HTTPS origin of the OpenID4VP Digital Credentials API (DC API) verifier (relying party). Required for dc_api and dc_api.jwt response modes; must match the verifier expected_origins. Used for the openid protocol only. |

```json
{
  "protocol": "didcomm",
  "proofExchangeId": "797fbc10-2810-44ea-9c1b-7d70833ea12e",
  "connectionId": "a4508d13-33ca-4100-ab39-605401e54961"
}
```

**Responses**

- `200`: Proof request previewed successfully.
- `400`: Invalid credential selection or unsupported credential requirements.
- `401`: Unauthorized request
- `500`: Internal server error.
- `502`: Matching credentials could not be loaded for this request.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentials": [
      {
        "credentialId": "5362a21e-9aec-4f9b-b66e-fdfb96a70294",
        "credentialType": "dc+sd-jwt",
        "communicationProtocol": "openid",
        "attributes": {
          "given_name": "Alice",
          "reference": "identity-c1"
        }
      },
      {
        "credentialId": "613bf782-b151-4f2b-aae9-b6c245307beb",
        "credentialType": "dc+sd-jwt",
        "communicationProtocol": "openid",
        "attributes": {
          "given_name": "Alice",
          "reference": "identity-c2"
        }
      },
      {
        "credentialId": "9bc4c4db-1f05-47d2-892a-3471862f1e01",
        "credentialType": "mso_mdoc",
        "communicationProtocol": "openid",
        "attributes": {
          "org.iso.18013.5.1": {
            "family_name": "Doe"
          }
        }
      },
      {
        "credentialId": "96424e70-d1ca-4912-8fc4-2687c5daef66",
        "credentialType": "dc+sd-jwt",
        "communicationProtocol": "openid",
        "attributes": {
          "given_name": "Alice",
          "reference": "passport"
        }
      }
    ],
    "credentialsByQueryId": {
      "identity": [
        {
          "credentialId": "5362a21e-9aec-4f9b-b66e-fdfb96a70294",
          "credentialType": "dc+sd-jwt",
          "communicationProtocol": "openid",
          "attributes": {
            "given_name": "Alice",
            "reference": "identity-c1"
          }
        },
        {
          "credentialId": "613bf782-b151-4f2b-aae9-b6c245307beb",
          "credentialType": "dc+sd-jwt",
          "communicationProtocol": "openid",
          "attributes": {
            "given_name": "Alice",
            "reference": "identity-c2"
          }
        }
      ],
      "licence": [
        {
          "credentialId": "9bc4c4db-1f05-47d2-892a-3471862f1e01",
          "credentialType": "mso_mdoc",
          "communicationProtocol": "openid",
          "attributes": {
            "org.iso.18013.5.1": {
              "family_name": "Doe"
            }
          }
        }
      ],
      "passport": [
        {
          "credentialId": "96424e70-d1ca-4912-8fc4-2687c5daef66",
          "credentialType": "dc+sd-jwt",
          "communicationProtocol": "openid",
          "attributes": {
            "given_name": "Alice",
            "reference": "passport"
          }
        }
      ]
    },
    "credentialRequirements": [
      {
        "required": true,
        "mode": "all",
        "queryIds": [
          "identity"
        ]
      },
      {
        "required": true,
        "mode": "any",
        "queryIds": [
          "licence",
          "passport"
        ]
      }
    ],
    "dcql": {
      "credentials": [
        {
          "id": "identity",
          "format": "dc+sd-jwt",
          "meta": {
            "vct_values": [
              "urn:example:identity"
            ]
          }
        },
        {
          "id": "licence",
          "format": "mso_mdoc",
          "meta": {
            "doctype_value": "org.iso.18013.5.1.mDL"
          }
        },
        {
          "id": "passport",
          "format": "dc+sd-jwt",
          "meta": {
            "vct_values": [
              "urn:example:passport"
            ]
          }
        }
      ],
      "credential_sets": [
        {
          "required": true,
          "options": [
            [
              "identity"
            ]
          ]
        },
        {
          "required": true,
          "options": [
            [
              "licence"
            ],
            [
              "passport"
            ]
          ]
        }
      ]
    },
    "metadata": {
      "verifier": {
        "name": "Example verifier"
      }
    }
  }
}
```

### Submit Proof Presentation

`POST /proof/submit-presentation`

Submit a proof presentation. For OpenID DCQL, use selectedCredentials to choose one matching credential per query and satisfy every required group. DIDComm requires proofExchangeId; OpenID requires proofRequestUri.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Submit a proof presentation. For OpenID DCQL, select one matching wallet credential per chosen query and satisfy every required group. Use credentialId for a single-query request, selectedCredentials for query-based selections, or omit both for automatic selection. Query-based selections require OpenID DCQL. Alternative bundles within a group and transaction data referencing optional queries return HTTP 400.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `protocol` | string: `didcomm`, `openid` | Yes | Communication protocol of the proof request (didcomm or openid). |
| `proofExchangeId` | string (uuid) | No | Identifier of the proof exchange (used for the didcomm protocol). |
| `proofRequestUri` | string | No | Proof request URI (used for the openid protocol). |
| `credentialId` | string (uuid) | No | Wallet credential ID for a single-query OpenID DCQL request, a Presentation Exchange request, or a DIDComm request. For multiple DCQL queries, use selectedCredentials or omit both selection fields for automatic selection. |
| `selectedCredentials` | array of object | No | OpenID DCQL only. Include one matching credential for every query in each all group and one alternative for each any group. Query IDs must be unique. Use either credentialId or selectedCredentials. Choose a candidate using its credentialId from credentialsByQueryId. |
| `selectedCredentials[].id` | string | Yes | Credential query ID from the proof preview. |
| `selectedCredentials[].credentialId` | string | Yes | ID of a matching credential in the wallet. |
| `origin` | string (uri) | No | HTTPS origin of the OpenID4VP Digital Credentials API (DC API) verifier (relying party). Required for dc_api and dc_api.jwt response modes; must match the verifier expected_origins. Used for the openid protocol only. |

```json
{
  "protocol": "didcomm",
  "proofExchangeId": "797fbc10-2810-44ea-9c1b-7d70833ea12e",
  "credentialId": "403c8b56-f69e-4d58-a918-a84572f18b8e"
}
```

**Responses**

- `200`: Proof presentation submitted successfully.
- `400`: Invalid credential selection or unsupported credential requirements.
- `401`: Unauthorized request
- `500`: Internal server error.
- `502`: Matching credentials could not be loaded for this request.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "authorizationResponse": {
      "vp_token": {
        "pid-credential": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9..."
      }
    }
  }
}
```

### Get All DIDComm Proof Requests

`GET /proof/`

This route is used to get all proof didcomm requests.

**Related incoming holder webhook**
This GET operation does not trigger a webhook. A proof request can arrive asynchronously and produce this event before it appears in the returned records:

- [Proof Request Received](#tag/webhook-events/webhook/POST/holder-proof-request-received)

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Proof requests retrieved successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "_tags": {
        "connectionId": "64f7f6db-b974-4e09-8e0b-d1a70819ded6",
        "role": "prover",
        "state": "request-received",
        "threadId": "696efbb2-729d-44a4-ba68-344279f636fd"
      },
      "metadata": {},
      "id": "b487e5ee-c2dc-4e93-b9b9-c1ee2b001c8e",
      "createdAt": "2025-03-18T09:23:11.133Z",
      "protocolVersion": "v2",
      "state": "request-received",
      "role": "prover",
      "connectionId": "64f7f6db-b974-4e09-8e0b-d1a70819ded6",
      "threadId": "696efbb2-729d-44a4-ba68-344279f636fd",
      "updatedAt": "2025-03-18T09:23:11.167Z"
    }
  ]
}
```

### Get Proof Request by ID

`GET /proof/{proofExchangeId}`

This route is used to get a proof request by id.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `proofExchangeId` | path | string | Yes | Unique identifier of the proof exchange record created for a verification request. Here it is used to retrieve a proof request by `proofExchangeId`. Example: `797fbc10-2810-44ea-9c1b-7d70833ea12e` |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Proof request retrieved successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "request": {
      "anoncreds": {
        "name": "Patient ID",
        "version": "1.0.1",
        "nonce": "873130175267224263651861",
        "requested_attributes": {
          "attributes": {
            "names": [
              "name"
            ],
            "restrictions": [
              {
                "schema_id": "did:cheqd:testnet:0e411e10-2379-466a-858c-338e1696df78/resources/f9a7079b-a93f-4dcc-be64-9881f691f2e2"
              }
            ]
          }
        },
        "requested_predicates": {
          "0_age": {
            "name": "age",
            "p_type": ">=",
            "p_value": 18
          }
        }
      }
    }
  }
}
```

### Decline DIDComm Proof Request

`POST /proof/decline-request`

This route is used to decline a proof request using didcomm protocol. This route is not supported for openid protocol.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to decline a pending proof (presentation) request.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `protocol` | string: `didcomm` | Yes | Communication protocol of the proof request (currently didcomm). |
| `proofExchangeId` | string | Yes | Identifier of the proof exchange to decline. |

```json
{
  "protocol": "didcomm",
  "proofExchangeId": "797fbc10-2810-44ea-9c1b-7d70833ea12e"
}
```

**Responses**

- `200`: Proof request declined successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

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

## Webhook

Webhook endpoints allow the registration and management of webhooks for real-time notifications and updates.

### Register Webhook

`POST /webhook/register`

This route is used to register a webhook.

**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/studio-guide/webhooks#verify-webhook-signaturess)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `webhookUrl` | string (url) | Yes | HTTP callback URL that will receive event notifications. |

```json
{
  "webhookUrl": "https://api.partner.hovi.id/webhooks/cloud-wallet"
}
```

**Responses**

- `201`: Webhook registered successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `201` response:

```json
{
  "success": true,
  "response": {
    "message": "Webhooks registered successfully",
    "webhookId": "27f98567-dcd2-4fc2-966d-a3195b54f983",
    "webhookUrl": "https://example.com/webhook",
    "webhookSecret": "-s71NA6EhypIYFhR8_TAQyS52bglyF44_ZVU-QhL6H0"
  }
}
```

### Get Webhooks

`GET /webhook/`

This route is used to get registered webhooks.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

**Responses**

- `200`: Webhook retrieved successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "webhookUrl": "https://api.partner.hovi.id/webhooks/cloud-wallet",
      "webhookId": "551d4177-c82e-4682-b3ff-3a0414635e88"
    }
  ]
}
```

### Delete Webhook

`DELETE /webhook/`

This route is used to delete a webhook.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to delete a previously registered webhook URL.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `webhookUrl` | string (url) | Yes | HTTP callback URL of the webhook to delete. |

```json
{
  "webhookUrl": "https://api.partner.hovi.id/webhooks/cloud-wallet"
}
```

**Responses**

- `200`: Webhook deleted successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

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

### Rotate Webhook Secret

`POST /webhook/rotate-secret`

This route is used to rotate the signing secret for a registered webhook.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | Yes | Wallet access token. Must be prefixed with "Bearer ". Example: `Bearer YOUR_WALLET_ACCESS_TOKEN` |

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

Request payload to rotate the secret key for an existing webhook.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `webhookId` | string (uuid) | Yes | Identifier of the webhook to rotate the secret for. |

```json
{
  "webhookId": "551d4177-c82e-4682-b3ff-3a0414635e88"
}
```

**Responses**

- `200`: Webhook secret rotated successfully.
- `401`: Unauthorized request
- `500`: Internal server error.

Example `200` response:

```json
{
  "success": true,
  "response": {
    "webhookId": "551d4177-c82e-4682-b3ff-3a0414635e88",
    "webhookUrl": "https://example.com/webhook",
    "webhookSecret": "dGhpcy1pcy1hLXNlY3JldA"
  }
}
```
