# Hovi Connect API: EU Digital Identity

> Issue and verify SD-JWT, mDoc and JSON-LD credentials with OpenID4VC.

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

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

Version: v0.8.9

Integrate with the EU Digital Identity ecosystem using the Hovi API. This documentation covers credential issuance and verification via OID4VCI and OID4VP protocols, supporting SD-JWT (selective disclosure), mdoc (offline ISO standards), and JSON-LD (W3C linked data). Build robust identity solutions aligned with EUDI ARF and W3C standards.

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
  - `POST /organization/create-did`: Create Organization DID
  - `POST /organization/certificate/import`: Import Certificate
  - `GET /organization/certificate`: List Certificates
  - `GET /organization/certificate/{certificateId}`: Get Certificate
  - `DELETE /organization/certificate/{certificateId}`: Delete Certificate
  - `POST /organization/certificate/{certificateId}/set-default`: Set Default Certificate
  - `GET /organization/authorization-server`: List Authorization Servers
  - `POST /organization/authorization-server`: Add Authorization Server
  - `PATCH /organization/authorization-server/{authorizationServerId}`: Update Authorization Server
  - `DELETE /organization/authorization-server/{authorizationServerId}`: Remove Authorization Server
- Webhooks
  - `POST /webhook/add`: Add Webhook
  - `GET /webhook/`: Get All Webhooks
  - `DELETE /webhook/`: Remove Webhooks
  - `POST /webhook/rotate-secret`: Rotate Webhook Secret
- Credential Templates
  - `POST /credential-template/jsonld/create`: Create Template (JSON-LD)
  - `POST /credential-template/sd-jwt/create`: Create Template (SD-JWT)
  - `POST /credential-template/mdoc/create`: Create Template (mDoc)
  - `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/jsonld/offer`: Offer Credential (JSON-LD)
  - `POST /credential/sd-jwt/offer`: Offer Credential (SD-JWT)
  - `POST /credential/mdoc/offer`: Offer Credential (mDoc)
  - `POST /credential/revoke`: Revoke Credential
- Verification Templates
  - `POST /verification-template/jsonld/create`: Create Template (JSON-LD)
  - `POST /verification-template/sd-jwt/create`: Create Template (SD-JWT)
  - `POST /verification-template/mdoc/create`: Create Template (mDoc)
  - `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
  - `POST /verification/verify-response`: Verify DC API Verification Response
  - `GET /verification/proof-request`: Get Proof Requests
  - `GET /verification/proof-request/find`: Find Proof Request by Proof Exchange Id
- Organizational Wallet
  - `GET /wallet/credential`: Get Stored Credentials
  - `POST /wallet/credential/preview-offer`: Preview Credential Offer
  - `POST /wallet/openid/resolve-credential-authorization-request`: Resolve Credential Authorization Request
  - `POST /wallet/credential/accept-offer`: Accept Credential Offer
  - `DELETE /wallet/credential/delete`: Delete Stored Credential
  - `POST /wallet/verification/preview-request`: Preview Proof Request
  - `POST /wallet/verification/submit-presentation`: Submit Proof Presentation
  - `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

Organization endpoints allow the creation, deletion, and management of organizations (tenant accounts that act as issuers or verifiers) in the Hovi ecosystem. Organizations are essential entities that handle the majority of operations, including creating credential templates (predefined data structures for digital credentials), verification templates (rules defining what claims to request from users), issuing credentials (via OID4VCI protocol), and initiating verification proof requests (via OID4VP protocol).

### 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`)

Request payload to provision a new organization within the ecosystem (the data you send to create a new tenant account).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | The name of the organization (main display name for the tenant). |
| `label` | string | Yes | A short, URL-friendly label for the organization. |
| `secret` | string | Yes | Administrative secret key used for initial organization setup and security boundary mapping (the secret used for administrative operations). |
| `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 | Initial array of webhook destination URLs to register for the organization (HTTP callback URLs that will receive event notifications). |
| `dids` | array of object | No | Array of DIDs and their corresponding private keys to initialize the organization with (pre-existing DIDs you want to associate with this tenant). |
| `dids[].did` | string | No | Existing Decentralized Identifier to map to the organization (the DID you want to link to this tenant). |
| `dids[].privateKey` | string | No | Private cryptographic key associated with the DID for signing operations (the secret key for this DID). |
| `certificateSubject` | object | No | Optional. Subject of the signing certificate created for the organization, shown to wallets that check who issued or requested a credential. Invalid values are rejected with 400 before the organization is created. |
| `certificateSubject.commonName` | string | No | Name in the certificate, 1 to 64 characters without control characters. |
| `certificateSubject.countryCode` | string | No | ISO 3166-1 alpha-2 country code, for example `DE` or `FI`. Lowercase is accepted and converted to uppercase. Country names are not accepted. Defaults to `FI` when omitted. |
| `certificateSubject.organizationName` | string | No | Legal name of the organization (X.509 `O`), 1 to 64 characters without control characters. |
| `certificateSubject.organizationIdentifier` | string | No | Registration identifier of the organization (X.509 `organizationIdentifier`), 1 to 64 characters without control characters, in the format your trust framework requires, for example `VATDE-123456789` or `NTRDE-HRB123456`. |
| `certificateSubject.organizationalUnit` | string | No | Department or unit within the organization (X.509 `OU`), 1 to 64 characters without control characters. |

```json
{
  "name": "Acme Corp",
  "label": "acme-corp",
  "secret": "sk_test_51J9Z",
  "imageUrl": "https://acme-corp.com/logo.png",
  "webhooks": [
    "https://acme-corp.com/webhook1"
  ],
  "certificateSubject": {
    "commonName": "Acme Corp",
    "countryCode": "DE"
  },
  "dids": [
    {
      "did": "did:key:z6MkmVQoHFeAxy7BbtZkNbB1pucywFCGQJEHCnbLQ8FpJUa7",
      "privateKey": "fb8a68dc8b163e903f90558b8d80f839fe1cd3919e8fc5ec7d6a59bba68dcecd"
    }
  ]
}
```

**Responses**

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

Example `201` response:

```json
{
  "success": true,
  "response": {
    "organizationId": "99f009f6-aefa-4c13-bbe9-e5e314a64b1c",
    "tenantId": "99f009f6-aefa-4c13-bbe9-e5e314a64b1c",
    "setting": {
      "organizationName": "acme-corp",
      "defaultLabel": "acme-corp",
      "imageUrl": "https://acme-corp.com/acme-logo-color.png",
      "id": "99f009f6-aefa-4c13-bbe9-e5e314a64b1c"
    },
    "accessToken": "eyJhbGciOiJIUzI1NiJ9...",
    "dids": [
      {
        "did": "did:key:z6MkoMXChyU15xJkecBmhkbwiKXsUJ1qJR3QJdQDijp8is71",
        "method": "key",
        "privateKey": "KC7anZVWo2CiQDfcFXUvMDdWoerGc9L7"
      }
    ],
    "webhooks": [
      {
        "webhookId": "b1b8b362-7937-4f97-bc91-708472a9ddd6",
        "webhookUrl": "https://webhook1.com"
      }
    ],
    "x509Certificate": "-----BEGIN CERTIFICATE-----\nMIIBqDCCAU+gAwIBAgIRAIRAY0c1OngXGkDGcrB7XNEwCgYIKoZIzj0EAwIwMjEQ\nMA4GA1UEAxMHSG92aSBJRDELMAkGA1UEBhMCRkkxETAPBgNVBAgTCEhlbHNpbmtp\nMB4XDTI2MDQyNDEzNTEyNVoXDTM2MDQyNDEzNTEyNVowMjEQMA4GA1UEAxMHSG92\naSBJRDELMAkGA1UEBhMCRkkxETAPBgNVBAgTCEhlbHNpbmtpMFkwEwYHKoZIzj0C\nAQYIKoZIzj0DAQcDQgAEuXA1bX8uqoMv9pk9USi22mpkMeMoWi3V+Zr2JPEHu2Xi\nsnk7GjWFE4sH7kteoDvc45yczVlrSNP02BYmT+OkNKNGMEQwCwYDVR0PBAQDAgeA\nMBIGA1UdJQQLMAkGByiBjF0FAQIwIQYDVR0RBBowGIIWY29yZS1hZ2VudC1kZXYu\naG92aS5pZDAKBggqhkjOPQQDAgNHADBEAiBxHW7wRnFBlWzBglMnoiEeGKfv3pTv\n0prcCCi4anON2gIgSG5yMU7+nba76md4xbwHHv/tLxrFqsHIbL1FLHC+V2I=\n-----END CERTIFICATE-----"
  }
}
```

### 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": "125c82e6-c89c-4936-b88b-a7120e6605ec",
      "tenantId": "125c82e6-c89c-4936-b88b-a7120e6605ec",
      "ecosystemId": "3373e16a-1200-4358-b19d-6f7d2391fff4",
      "dids": [
        {
          "did": "did:key:zDnaecuqi2gU7kgSkqTuNT976LTbZjoKS1h8fnDk7qomJFbQg",
          "method": "key"
        }
      ],
      "name": "OpenID Org",
      "label": "openidorg",
      "image": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/openid-org-image-1777038682903.svg%2Bxml",
      "status": "active",
      "createdAt": "2026-04-24T13:51:25.610Z",
      "updatedAt": "2026-05-11T13:44:27.962Z",
      "openIdWellKnownCredentialIssuerUrl": "https://core-agent-dev.hovi.id/agent/oid4vci/534640b3-8eb3-4246-ad64-d2904189abdf/.well-known/openid-credential-issuer",
      "x509Certificate": "-----BEGIN CERTIFICATE-----\nMIIBqDCCAU+gAwIBAgIRAIRAY0c1OngXGkDGcrB7XNEwCgYIKoZIzj0EAwIwMjEQ\nMA4GA1UEAxMHSG92aSBJRDELMAkGA1UEBhMCRkkxETAPBgNVBAgTCEhlbHNpbmtp\nMB4XDTI2MDQyNDEzNTEyNVoXDTM2MDQyNDEzNTEyNVowMjEQMA4GA1UEAxMHSG92\naSBJRDELMAkGA1UEBhMCRkkxETAPBgNVBAgTCEhlbHNpbmtpMFkwEwYHKoZIzj0C\nAQYIKoZIzj0DAQcDQgAEuXA1bX8uqoMv9pk9USi22mpkMeMoWi3V+Zr2JPEHu2Xi\nsnk7GjWFE4sH7kteoDvc45yczVlrSNP02BYmT+OkNKNGMEQwCwYDVR0PBAQDAgeA\nMBIGA1UdJQQLMAkGByiBjF0FAQIwIQYDVR0RBBowGIIWY29yZS1hZ2VudC1kZXYu\naG92aS5pZDAKBggqhkjOPQQDAgNHADBEAiBxHW7wRnFBlWzBglMnoiEeGKfv3pTv\n0prcCCi4anON2gIgSG5yMU7+nba76md4xbwHHv/tLxrFqsHIbL1FLHC+V2I=\n-----END CERTIFICATE-----"
    }
  ]
}
```

### 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"
    }
  ]
}
```

### 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`)

Request payload to modify properties of an existing organization. Send only the fields you want to change.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `label` | string | No | Updated display label for the organization. |
| `imageUrl` | string (url) | No | URL pointing to the organization logo (the image shown for this organization in the dashboard). |
| `issuerInfo` | array of object | No | Optional. Attestations about the organization as a credential issuer, for example a registration certificate, shown to wallets as `issuer_info` (ETSI TS 119 472-3). Replaces any issuer info sent before; send `[]` to remove it. |
| `issuerInfo[].format` | string | Yes | Attestation format agreed with the wallet ecosystem, for example `registration_cert`. |
| `issuerInfo[].data` | one of: string, object | Yes | The attestation itself: a non-empty string, such as a signed JWT, or a JSON object. |
| `issuerInfo[].credentialTemplateIds` | array of string (uuid) | No | Optional. IDs of this organization's credential templates that the attestation applies to. Omit it to apply the attestation to every credential the organization issues; you do not need to list them. |

```json
{
  "label": "new label",
  "imageUrl": "https://new-acme-corp.com/new-logo.png",
  "issuerInfo": [
    {
      "format": "registration_cert",
      "data": "<signed registration certificate JWT>"
    }
  ]
}
```

**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`)

Request payload to invalidate current API tokens and issue a newly rotated access token (the data you send to refresh the authentication token for security).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accessToken` | string | Yes | The current active organizational Bearer JWT token to be revoked (the old token you want to invalidate). |
| `organizationSecret` | string | Yes | The administrative secret key required to authorize the security rotation (the secret needed to perform the rotation). |

```json
{
  "accessToken": "eyJhbGciOiJIUzI1NiJ9...",
  "organizationSecret": "sk_test_51J9Z"
}
```

**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`)

Request payload to permanently remove a organization and its data from the ecosystem (the data you send to delete a tenant account).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `organizationSecret` | string | Yes | The administrative secret key required to authorize the deletion of the organization (the secret needed to confirm deletion). |

```json
{
  "organizationSecret": "sk_test_51J9Z"
}
```

**Responses**

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

Example `200` response:

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

### Create Organization DID

`POST /organization/create-did`

This route allows for the creation of a did:web DID for a specific organization within an 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`)

Request payload to generate and register a new W3C Decentralized Identifier (the data you send to create a new DID for your organization).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `method` | string | Yes | The standard DID method to invoke (the method used to create this decentralized identifier). |
| `domain` | string (url) | Yes | The web domain required to resolve the identity when using the did:web method (the domain that will host the DID document). |
| `privateKey` | string | No | Optional private key to inject. If omitted, the system generates a new key pair (the secret key you want to use for this DID). |
| `encoding` | string | No | Encoding format for the provided private key (e.g., hex, base58) (the format of the private key you supplied). |
| `did` | string | No | The precise DID string to register, overriding automatic derivation if applicable (the exact DID you want to create). |
| `didDocument` | object | No | Custom W3C DID Document to associate with the created identity (the full public document containing verification keys). |
| `didDocument.@context` | array of string | No | JSON-LD context array defining the schema data models (the semantic context for the DID document). |
| `didDocument.id` | string | No | The identifier ID correlating the document to the subject DID (the DID this document describes). |
| `didDocument.verificationMethod` | array of object | No | Array mapping the public keys available for verification operations (the public keys that can be used to verify signatures from this DID). |
| `didDocument.verificationMethod[].id` | string | No | Fragment-based sub-identifier for the specific cryptographic key (the key identifier). |
| `didDocument.verificationMethod[].type` | string | No | The cryptographic protocol standard of the embedded key (the type of key). |
| `didDocument.verificationMethod[].controller` | string | No | The DID authority that controls this verification method (the DID that owns this key). |
| `didDocument.verificationMethod[].publicKeyJwk` | object | No |  |
| `didDocument.verificationMethod[].publicKeyJwk.kty` | string | No | JSON Web Key parameter indicating key type family (the cryptographic key family). |
| `didDocument.verificationMethod[].publicKeyJwk.kid` | string | No | The JSON Web Key identifier correlating the key (the unique key identifier). |
| `didDocument.verificationMethod[].publicKeyJwk.crv` | string | No | The specific cryptographic curve utilized by the key (the curve used). |
| `didDocument.verificationMethod[].publicKeyJwk.x` | string | No | Derived X coordinate on the cryptographic curve (part of the public key). |
| `didDocument.verificationMethod[].publicKeyJwk.y` | string | No | Derived Y coordinate on the cryptographic curve (part of the public key). |
| `didDocument.authentication` | array of string | No | References to verification methods valid for authenticating the DID controller (keys that prove control of the DID). |
| `didDocument.assertionMethod` | array of string | No | References to verification methods valid for issuing verifiable credentials (keys that can sign credentials). |

```json
{
  "method": "web",
  "domain": "https://acme-corp.com",
  "privateKey": "fb8a68dc8b163e903f90558b8d80f839fe1cd3919e8fc5ec7d6a59bba68dcecd",
  "encoding": "hex",
  "did": "did:web:acme-corp.com",
  "didDocument": {
    "@context": [
      "https://www.w3.org/ns/did/v1"
    ],
    "id": "did:web:acme-corp.com",
    "verificationMethod": [
      {
        "id": "did:web:acme-corp.com#zDnaeT3pw8f4Sj5iAG4A7ZdXak6oMidQm7v8C88zA5eNE5m61",
        "type": "JsonWebKey2020",
        "controller": "did:web:acme-corp.com",
        "publicKeyJwk": {
          "kty": "EC",
          "kid": "8b1fa8ae-7db4-4a37-95db-a8642b1cf70b",
          "crv": "P-256",
          "x": "JuccU4i7U6Gp6W3Y8FBHEbxhvsX1kcX0yuGocQxIRCI",
          "y": "xdC77HuK3l1p85RuekMH0K7wrot2k-PEJg0JdIW9-lQ"
        }
      }
    ],
    "authentication": [
      "did:web:acme-corp.com#zDnaeT3pw8f4Sj5iAG4A7ZdXak6oMidQm7v8C88zA5eNE5m61"
    ],
    "assertionMethod": [
      "did:web:acme-corp.com#zDnaeT3pw8f4Sj5iAG4A7ZdXak6oMidQm7v8C88zA5eNE5m61"
    ]
  }
}
```

**Responses**

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

Example `201` response:

```json
{
  "success": true,
  "response": {
    "method": "web",
    "did": "did:web:acme-corp.com",
    "privateKey": "4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d",
    "didDocument": {
      "@context": [
        "https://www.w3.org/ns/did/v1"
      ],
      "id": "did:web:acme-corp.com",
      "verificationMethod": [
        {
          "id": "did:web:acme-corp.com#zDnaeT3pw8f4Sj5iAG4A7ZdXak6oMidQm7v8C88zA5eNE5m61",
          "type": "JsonWebKey2020",
          "controller": "did:web:acme-corp.com",
          "publicKeyJwk": {
            "kty": "EC",
            "kid": "8b1fa8ae-7db4-4a37-95db-a8642b1cf70b",
            "crv": "P-256",
            "x": "JuccU4i7U6Gp6W3Y8FBHEbxhvsX1kcX0yuGocQxIRCI",
            "y": "xdC77HuK3l1p85RuekMH0K7wrot2k-PEJg0JdIW9-lQ"
          }
        }
      ],
      "authentication": [
        "did:web:acme-corp.com#zDnaeT3pw8f4Sj5iAG4A7ZdXak6oMidQm7v8C88zA5eNE5m61"
      ],
      "assertionMethod": [
        "did:web:acme-corp.com#zDnaeT3pw8f4Sj5iAG4A7ZdXak6oMidQm7v8C88zA5eNE5m61"
      ]
    }
  }
}
```

### Import Certificate

`POST /organization/certificate/import`

Import an EC P-256 signing certificate and matching private key for an organization. The imported certificate is stored alongside the existing ones. Unless `isDefault` is true, it is not set as the default: issuance and verification keep using the current default certificate of the organization. With `isDefault: true` the imported certificate becomes the default; if it cannot be set as the default, it is not kept and the request fails. A certificate imported without `isDefault` can be set as the default later with its `certificateId` from the response.

**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`)

Request payload for importing a certificate for an organization.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `certificate` | string | Yes | PEM-encoded X.509 signing certificate with an EC P-256 public key, a valid ISO 3166-1 alpha-2 subject country (C), digitalSignature Key Usage without keyCertSign or cRLSign, current validity dates, and no CA:TRUE Basic Constraints (CA certificates are not accepted). |
| `isDefault` | boolean | No | Set the imported certificate as the default of the organization. If it cannot be set as the default, it is not kept and the request fails. |
| `privateKey` | string | Yes | Unencrypted PKCS#8 PEM-encoded EC P-256 private key matching the certificate public key. |

```json
{
  "certificate": "-----BEGIN CERTIFICATE-----\nMIIB...sample...\n-----END CERTIFICATE-----",
  "privateKey": "-----BEGIN PRIVATE KEY-----\nMIIB...sample...\n-----END PRIVATE KEY-----"
}
```

**Responses**

- `200`: Success
- `400`: Unsupported network or invalid certificate or private key. See the response message for details.
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "message": "Certificate imported successfully.",
  "response": {
    "certificateId": "be35ff15-5a2e-4070-8944-4f0c11f51f88"
  }
}
```

### List Certificates

`GET /organization/certificate`

List the signing certificates of an organization. Each item contains the certificate ID, the PEM-encoded certificate, whether it is the default, and when it was created and last updated. The organization signs issuance and verification with its default certificate. The certificate chain is not included; to retrieve it, use Get Certificate with its `certificateId`.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `isDefault` | query | string | No |  |
| `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`: Unsupported network or invalid isDefault value.
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "certificateId": "be35ff15-5a2e-4070-8944-4f0c11f51f88",
      "isDefault": true,
      "createdAt": "string",
      "updatedAt": "string",
      "certificate": "-----BEGIN CERTIFICATE-----\nMIIB...sample...\n-----END CERTIFICATE-----"
    }
  ]
}
```

### Get Certificate

`GET /organization/certificate/{certificateId}`

Get one signing certificate of an organization, including the PEM-encoded certificate and, when present, its certificate chain.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `certificateId` | path | string | Yes | Certificate ID returned by the list or import endpoints. |
| `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`: Unsupported network or invalid certificateId.
- `404`: The organization has no certificate with this ID.
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "certificateId": "string",
    "isDefault": true,
    "createdAt": "string",
    "updatedAt": "string",
    "certificate": "string",
    "chain": [
      "string"
    ]
  }
}
```

### Delete Certificate

`DELETE /organization/certificate/{certificateId}`

Delete a certificate that is not the default of the organization. Deletion cannot be undone. Verification requests that were already sent keep working. To delete the default certificate, set another certificate as the default first.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `certificateId` | path | string | Yes | Certificate ID returned by the list or import endpoints. |
| `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`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `certificateId` | any | No |  |

```json
{
  "certificateId": "any"
}
```

**Responses**

- `200`: Success
- `400`: Unsupported network, invalid certificateId, or the certificate could not be deleted, for example because it does not exist or is the default.
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "certificateId": "be35ff15-5a2e-4070-8944-4f0c11f51f88",
    "isDefault": true,
    "createdAt": "string",
    "updatedAt": "string"
  }
}
```

### Set Default Certificate

`POST /organization/certificate/{certificateId}/set-default`

Make a certificate the default of the organization. New issuance and verification requests are signed with the default certificate. The certificate must be within its validity dates, and its private key must match it. Setting the current default again succeeds without changes.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `certificateId` | path | string | Yes | Certificate ID returned by the list or import endpoints. |
| `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`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `certificateId` | any | No |  |

```json
{
  "certificateId": "any"
}
```

**Responses**

- `200`: Success
- `400`: Unsupported network, invalid certificateId, or the certificate could not be set as the default, for example because it does not exist, is expired or its private key does not match.
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "certificateId": "be35ff15-5a2e-4070-8944-4f0c11f51f88",
    "isDefault": true,
    "createdAt": "string",
    "updatedAt": "string"
  }
}
```

### List Authorization Servers

`GET /organization/authorization-server`

List the external authorization servers of the organization. Client secrets are not 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` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

**Responses**

- `200`: Success
- `400`: Unsupported network.
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "authorizationServerId": "3f1c2a9e-7b4d-4e8a-9c1f-2d6e8b0a4c57",
      "issuer": "https://login.example.com",
      "clientId": "<client-id>",
      "scopes": [
        "openid",
        "profile",
        "email"
      ],
      "walletRedirectUris": [
        "https://wallet.example.com/callback"
      ],
      "callbackUrl": "https://agent.example.com/oid4vci/<issuer-id>/redirect",
      "createdAt": "string",
      "updatedAt": "string"
    }
  ]
}
```

### Add Authorization Server

`POST /organization/authorization-server`

Add an external OAuth 2.0 authorization server to the organization for the authorization code flow. Wallets authorize with the organization, which sends the user on to this server to sign in. An organization can have at most 5 authorization servers. The client secret is not returned by any 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`)

An external OAuth 2.0 / OpenID Connect authorization server that users sign in with during the authorization code flow. Wallets authorize with the organization, which sends the user on to this server to sign in. In the client you create at the server for the organization, register the `callbackUrl` returned by this endpoint as a redirect URI. The server must publish discovery metadata whose `issuer` exactly matches `issuer`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `issuer` | string (url) | Yes | Issuer identifier of the authorization server, exactly as the `issuer` value in its `/.well-known/openid-configuration` (not the discovery, authorize or token URL). Must use https. Surrounding spaces are removed and the scheme and host are saved in lowercase; the path is kept as sent. Each issuer can be added to an organization only once, ignoring case and a trailing slash, and it cannot be the organization's own credential issuer URL. |
| `clientAuthentication` | object | Yes | Client credentials of the organization at the authorization server. The client secret is never returned. |
| `clientAuthentication.clientId` | string | Yes | Client ID. |
| `clientAuthentication.clientSecret` | string | Yes | Client secret. |
| `scopes` | array of string | No | Optional. Default scopes requested from the authorization server when the user signs in. They decide which user claims the server returns, in its ID token or from its userinfo endpoint, for example `profile` for `given_name` and `family_name`, or `email` for `email`. `openid` is always added. Values must not contain spaces, double quotes or backslashes. A credential offer can override them with `signInScopes`. |
| `walletRedirectUris` | array of string | No | Optional. Default wallet redirect URIs allowed for the sign-in; a wallet's `redirect_uri` must match one exactly. When omitted, any wallet redirect URI is allowed. A credential offer can override them. |

```json
{
  "issuer": "https://login.example.com",
  "clientAuthentication": {
    "clientId": "<client-id>",
    "clientSecret": "<client-secret>"
  },
  "scopes": [
    "profile",
    "email"
  ],
  "walletRedirectUris": [
    "https://wallet.example.com/callback"
  ]
}
```

**Responses**

- `201`: Created
- `400`: Unsupported network, invalid configuration, the issuer is already configured, or the organization already has 5 authorization servers. See the response message for details.
- `500`: Internal Server Error

Example `201` response:

```json
{
  "success": true,
  "response": {
    "authorizationServerId": "3f1c2a9e-7b4d-4e8a-9c1f-2d6e8b0a4c57",
    "issuer": "https://login.example.com",
    "clientId": "<client-id>",
    "scopes": [
      "openid",
      "profile",
      "email"
    ],
    "walletRedirectUris": [
      "https://wallet.example.com/callback"
    ],
    "callbackUrl": "https://agent.example.com/oid4vci/<issuer-id>/redirect",
    "createdAt": "string",
    "updatedAt": "string"
  }
}
```

### Update Authorization Server

`PATCH /organization/authorization-server/{authorizationServerId}`

Change the default scopes and wallet redirect URIs used by credential offers through an authorization server.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `authorizationServerId` | path | string | Yes | Authorization server ID returned by the add or list endpoints. |
| `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`)

Set at least one field. A field that is sent replaces the current value.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `scopes` | array of string | No | Default scopes requested from the authorization server when the user signs in. They decide which user claims the server returns, in its ID token or from its userinfo endpoint. `openid` is always added. |
| `walletRedirectUris` | array of string | No | Default wallet redirect URIs allowed for the sign-in. Send `null` to allow any wallet redirect URI. |

```json
{
  "scopes": [
    "profile",
    "email"
  ]
}
```

**Responses**

- `200`: Success
- `400`: Unsupported network, invalid authorizationServerId, or invalid values. See the response message for details.
- `404`: The organization has no authorization server with this ID.
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "authorizationServerId": "3f1c2a9e-7b4d-4e8a-9c1f-2d6e8b0a4c57",
    "issuer": "https://login.example.com",
    "clientId": "<client-id>",
    "scopes": [
      "openid",
      "profile",
      "email"
    ],
    "walletRedirectUris": [
      "https://wallet.example.com/callback"
    ],
    "callbackUrl": "https://agent.example.com/oid4vci/<issuer-id>/redirect",
    "createdAt": "string",
    "updatedAt": "string"
  }
}
```

### Remove Authorization Server

`DELETE /organization/authorization-server/{authorizationServerId}`

Remove an external authorization server from the organization. Credential offers created through it can no longer be used; credentials already issued are not affected.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `authorizationServerId` | path | string | Yes | Authorization server ID returned by the add or list endpoints. |
| `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`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `issuer` | any | No |  |

```json
{
  "issuer": "any"
}
```

**Responses**

- `200`: Success
- `400`: Unsupported network or invalid authorizationServerId.
- `404`: The organization has no authorization server with this ID.
- `500`: Internal Server Error

Example `200` response:

```json
{
  "success": true,
  "response": {
    "authorizationServerId": "3f1c2a9e-7b4d-4e8a-9c1f-2d6e8b0a4c57",
    "issuer": "https://login.example.com",
    "clientId": "<client-id>",
    "scopes": [
      "openid",
      "profile",
      "email"
    ],
    "walletRedirectUris": [
      "https://wallet.example.com/callback"
    ],
    "callbackUrl": "https://agent.example.com/oid4vci/<issuer-id>/redirect",
    "createdAt": "string",
    "updatedAt": "string"
  }
}
```

## Webhooks

Webhook endpoints allow organizations to configure webhooks (HTTP callback URLs) to receive asynchronous event notifications (e.g., successful OID4VCI issuance of a credential or successful OID4VP verification of a presentation).

### 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": "b1b8b362-7937-4f97-bc91-708472a9ddd6",
    "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": "b1b8b362-7937-4f97-bc91-708472a9ddd6",
      "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"
    }
  ]
}
```

### 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`)

Request payload to remove an existing webhook listener (the data you send to delete a webhook subscription).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `webhookId` | string | Yes | Unique identifier of the webhook subscription to delete (the ID of the webhook you want to remove). |

```json
{
  "webhookId": "b1b8b362-7937-4f97-bc91-708472a9ddd6"
}
```

**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`)

Request payload to rotate the signing secret for an existing webhook. A signing secret is generated automatically.

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

```json
{
  "webhookId": "b1b8b362-7937-4f97-bc91-708472a9ddd6"
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "webhookId": "b1b8b362-7937-4f97-bc91-708472a9ddd6",
    "webhookSecret": "your-new-webhook-secret"
  }
}
```

## Credential Templates

Credential templates endpoints enable organizations to define the schema (data structure), metadata, and visual rendering properties for credentials prior to issuance via the OID4VCI protocol.

### 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`)

Request payload to create a new W3C JSON-LD credential template for OID4VCI issuance (the data you send to create a credential blueprint using the JSON-LD format).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Display name identifying the credential template (the human-readable name for this template). |
| `version` | string | Yes | Semantic version tag denoting the schema configuration state (the version number for this template). |
| `description` | string | Yes | Functional description defining the template usage (explains the purpose of this credential type). |
| `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 | Attribute name used when supplying or requesting credential values. |
| `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 | Logical type identifier of the credential. This value defines the semantic classification of the credential and is mapped to the appropriate type field depending on the credential format (e.g., `type` in W3C JSON-LD credentials or `vct` in SD-JWT credentials). |
| `categoryId` | string (uuid) | No | Grouping category identifier for the template. |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |
| `credentialTheme` | object | No | Metadata for visual rendering of the Verifiable Credential in a digital wallet. Complies with EUDI ARF display guidelines (controls how the credential card appears in mobile wallet applications). |
| `credentialTheme.title` | string | No | Display title for the credential card in the wallet. If omitted, the credential-template name is used. |
| `credentialTheme.description` | string | No | Short descriptive text shown to the holder (additional context displayed on the credential card). |
| `credentialTheme.textColor` | string | No | Hex color code for the primary text overlay. If omitted, `#000000` is used. |
| `credentialTheme.backgroundImageUrl` | string (url) | No | URL pointing to the background image used on the credential card. If omitted, a standard background image may be used. |
| `credentialTheme.backgroundImageAlt` | string | No | Accessibility alt-text for the background image (text description for screen readers). |
| `credentialTheme.logoUrl` | string (url) | No | URL pointing to the issuing entity's official logo. If both logo fields are omitted, the organization's logo may be used. Required when `logoAlt` is provided. |
| `credentialTheme.logoAlt` | string | No | Accessibility alt-text for the logo image. If omitted when `logoUrl` is provided, the organization's display name is used. |
| `credentialTheme.locale` | string | No | Language and region identifier for localization (the locale used for displaying text on the credential card). |
| `credentialTheme.backgroundColor` | string | No | Hex color code for the credential card background (the background color used on the credential card in wallets). |
| `credentialScope` | string | No | Optional. Scope wallets use to request this credential, for ecosystems that define their own scope values. If omitted, one is generated from the credential type. Must not contain spaces, double quotes or backslashes, and cannot be changed after the template is created. |
| `dataRetentionConsent` | boolean | No | Controls whether credential data is stored after issuance completes. When `true` (default), credential data is retained. When `false`, credential data is not stored after issuance completes. |

`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:** `data:image/png;base64,<payload>`, `data:image/jpeg;base64,<payload>`. **Maximum size:** 20 KB |

`categoryId`: Grouping category identifier for the 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
{
  "name": "Patient ID",
  "version": "1.0.0",
  "description": "Patient ID Card",
  "attributes": [
    {
      "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"
    },
    {
      "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",
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "image": "https://acme-corp.com/patient.png",
  "credentialTheme": {
    "title": "University Degree Record",
    "description": "Official proof of university graduation and degree attainment.",
    "textColor": "#ffffff",
    "backgroundColor": "#1a365d",
    "backgroundImageUrl": "https://acme-corp.com/logo.png",
    "backgroundImageAlt": "University seal watermark background",
    "logoUrl": "https://hovi.id/assets/university-logo.png",
    "logoAlt": "University official crest",
    "locale": "en-US"
  }
}
```

**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": "6abee076-3ca5-48c8-b331-d2c826fca46b",
    "schemaId": "b9669528-ffd0-443d-bdf4-0d5e60401c3a",
    "ecosystemId": "3373e16a-1200-4358-b19d-6f7d2391fff4",
    "tenantId": "125c82e6-c89c-4936-b88b-a7120e6605ec",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "name": "Mango PatientID 0440",
    "version": "1.0.0",
    "description": "Patient ID Card",
    "type": "jsonld",
    "image": "https://acme-corp.com/patient.png",
    "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",
        "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
              }
            ]
          }
        ]
      }
    ],
    "credentialConfigurationId": "mango_patientid_0440_1.0.0_json_ld",
    "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreich7jbtyeyhrrwfvlqdlyosvtrp7t5fbseusu5nolxj3lfypvaak4",
    "schemaContext": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreichhvkyu26u23porsoorptgyonbbafeyiin5knbqtmjesatrhnmvq",
    "schemaType": "Patient_Record",
    "createdAt": "2026-05-15T11:38:53.030Z",
    "updatedAt": "2026-05-15T11:38:53.030Z"
  }
}
```

### Create Template (SD-JWT)

`POST /credential-template/sd-jwt/create`

This route is used to create a SD-JWT credential template for a organization. The SD-JWT credential template allows the organization to define the attributes, types, labels, and conditions under which the credential can be issued.

**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`)

Request payload to create a new IETF SD-JWT credential template enabling selective disclosure (the data you send to create a credential blueprint using the SD-JWT format that supports selective disclosure).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string (uuid) | No | Grouping category identifier for the template. |
| `name` | string | Yes | Display name identifying the credential template (the human-readable name for this template). |
| `version` | string | Yes | Semantic version tag denoting the schema configuration state (the version number for this template). |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |
| `description` | string | Yes | Functional description defining the template usage (explains the purpose of this credential type). |
| `credentialTheme` | object | No | Metadata for visual rendering of the Verifiable Credential in a digital wallet. Complies with EUDI ARF display guidelines (controls how the credential card appears in mobile wallet applications). |
| `credentialTheme.title` | string | No | Display title for the credential card in the wallet. If omitted, the credential-template name is used. |
| `credentialTheme.description` | string | No | Short descriptive text shown to the holder (additional context displayed on the credential card). |
| `credentialTheme.textColor` | string | No | Hex color code for the primary text overlay. If omitted, `#000000` is used. |
| `credentialTheme.backgroundImageUrl` | string (url) | No | URL pointing to the background image used on the credential card. If omitted, a standard background image may be used. |
| `credentialTheme.backgroundImageAlt` | string | No | Accessibility alt-text for the background image (text description for screen readers). |
| `credentialTheme.logoUrl` | string (url) | No | URL pointing to the issuing entity's official logo. If both logo fields are omitted, the organization's logo may be used. Required when `logoAlt` is provided. |
| `credentialTheme.logoAlt` | string | No | Accessibility alt-text for the logo image. If omitted when `logoUrl` is provided, the organization's display name is used. |
| `credentialTheme.locale` | string | No | Language and region identifier for localization (the locale used for displaying text on the credential card). |
| `attributes` | array of object | Yes | List of credential attribute claims outlining which properties support SD-JWT disclosure masking (the data fields that support selective disclosure). |
| `attributes[].name` | string | No | Attribute name used when supplying or requesting credential values. |
| `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). |
| `attributes[].authorization` | boolean | No | OpenID only. When `true`, offers using the authorization code flow fill this attribute from the user's sign-in at the authorization server, so it can be left out of `credentialValues`. The name must match the sign-in claim exactly, for example `given_name` or `email`. Top-level attributes only. |
| `attributes[].namespace` | string | No | Namespace containing this mdoc data element (for example, `org.iso.18013.5.1`). Specify it only for top-level attributes, not for nested attributes. |
| `attributes[].attributes` | array of object | No | Data elements contained in this object claim. Nested attributes inherit the namespace of their top-level attribute and must not specify `namespace`. |
| `attributes[].attributes[].name` | string | No | Attribute name used when supplying or requesting credential values. |
| `attributes[].attributes[].type` | string: `string`, `number`, `boolean`, `image`, `date`, `object` | No | Data type of the attribute (the expected format for the claim value). |
| `attributes[].attributes[].label` | string | No | Human-readable label for display in wallet UIs (the friendly name shown to end users). |
| `attributes[].attributes[].description` | string | No | Semantic description of the attribute claim (explains the meaning and purpose of this data field). |
| `attributes[].attributes[].required` | boolean: `true`, `false` | No | Indicates if this attribute is mandatory (whether the claim must be provided during issuance or verification). |
| `attributes[].attributes[].authorization` | boolean | No | OpenID only. When `true`, offers using the authorization code flow fill this attribute from the user's sign-in at the authorization server, so it can be left out of `credentialValues`. The name must match the sign-in claim exactly, for example `given_name` or `email`. Top-level attributes only. |
| `attributes[].attributes[].namespace` | string | No | Namespace containing this mdoc data element (for example, `org.iso.18013.5.1`). Specify it only for top-level attributes, not for nested attributes. |
| `attributes[].attributes[].attributes` | array of object | No | Data elements contained in this object claim. Nested attributes inherit the namespace of their top-level attribute and must not specify `namespace`. |
| `attributes[].disclosurable` | boolean: `true`, `false` | No | Indicates if this attribute supports selective disclosure (whether the holder can choose to reveal only this field). |
| `schemaType` | string | Yes | Logical type identifier of the credential. This value defines the semantic classification of the credential and is mapped to the appropriate type field depending on the credential format (e.g., `type` in W3C JSON-LD credentials or `vct` in SD-JWT credentials). |
| `supportRevocation` | boolean: `true`, `false` | No | Flag indicating if the issued credentials require cryptographic revocation status tracking (whether revocation is enabled for credentials from this template). |
| `credentialScope` | string | No | Optional. Scope wallets use to request this credential, for ecosystems that define their own scope values. If omitted, one is generated from the credential type. Must not contain spaces, double quotes or backslashes, and cannot be changed after the template is created. |
| `dataRetentionConsent` | boolean | No | Controls whether credential data is stored after issuance completes. When `true` (default), credential data is retained. When `false`, credential data is not stored after issuance completes. |
| `sdJwtHeader` | string: `dc+sd-jwt`, `vc+sd-jwt` | No | The media type (`typ`) header used inside the Selective Disclosure JWT (SD-JWT). You must use `dc+sd-jwt` IETF based or `vc+sd-jwt` W3c based. This tells the system how to read the credential and its hidden claims. |

`categoryId`: Grouping category identifier for the 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

`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:** `data:image/png;base64,<payload>`, `data:image/jpeg;base64,<payload>`. **Maximum size:** 20 KB |

`attributes[].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:** `data:image/png;base64,<payload>`, `data:image/jpeg;base64,<payload>`. **Maximum size:** 20 KB |

```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",
  "credentialTheme": {
    "title": "credential title",
    "description": "credential description",
    "textColor": "hex color code",
    "backgroundImageUrl": "credential background image url",
    "backgroundImageAlt": "credential background image alt text",
    "logoUrl": "credential logo url",
    "logoAlt": "credential logo alt text",
    "locale": "en"
  },
  "attributes": [
    {
      "name": "age",
      "label": "Age",
      "type": "number",
      "description": "Age of the patient"
    },
    {
      "name": "isVerified",
      "label": "Verified Status",
      "type": "boolean",
      "description": "Indicates whether the user is verified"
    },
    {
      "name": "profileImage",
      "label": "Profile Image",
      "type": "image",
      "description": "Profile picture of the user"
    },
    {
      "name": "birthDate",
      "label": "Birth Date",
      "type": "date",
      "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)"
    },
    {
      "name": "address",
      "label": "Address",
      "type": "object",
      "description": "Structured address information",
      "attributes": [
        {
          "name": "street",
          "label": "Street",
          "type": "string"
        },
        {
          "name": "city",
          "label": "City",
          "type": "string"
        }
      ]
    }
  ],
  "schemaType": "Patient Record",
  "supportRevocation": true,
  "sdJwtHeader": "dc+sd-jwt"
}
```

**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": "dfafcd07-888a-477e-ae74-bd1823471ac5",
    "ecosystemId": "3373e16a-1200-4358-b19d-6f7d2391fff4",
    "tenantId": "125c82e6-c89c-4936-b88b-a7120e6605ec",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "name": "Patient ID 1234",
    "version": "1.0.1",
    "description": "Patient ID Card",
    "type": "sd-jwt",
    "image": "https://acme-corp.com/patient.png",
    "attributes": [
      {
        "name": "age",
        "label": "Age",
        "type": "number",
        "description": "Age of the patient",
        "required": true
      },
      {
        "name": "isVerified",
        "label": "Verified Status",
        "type": "boolean",
        "description": "Indicates whether the user is verified",
        "required": true
      },
      {
        "name": "profileImage",
        "label": "Profile Image",
        "type": "image",
        "description": "Profile picture of the user",
        "required": true
      },
      {
        "name": "birthDate",
        "label": "Birth Date",
        "type": "date",
        "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
        "required": true
      },
      {
        "name": "address",
        "label": "Address",
        "type": "object",
        "description": "Structured address information",
        "required": true,
        "attributes": [
          {
            "name": "street",
            "label": "Street",
            "type": "string",
            "required": true
          },
          {
            "name": "city",
            "label": "City",
            "type": "string",
            "required": true
          }
        ]
      }
    ],
    "credentialConfigurationId": "patient_id_1234_1.0.1_sd_jwt",
    "schemaType": "Patient_Record",
    "sdJwtHeader": "dc+sd-jwt",
    "supportRevocation": true,
    "createdAt": "2026-05-18T02:18:10.483Z",
    "updatedAt": "2026-05-18T02:18:10.483Z"
  }
}
```

### Create Template (mDoc)

`POST /credential-template/mdoc/create`

This route is used to create a mDoc credential template for a organization. The mDoc credential template allows the organization to define the attributes, types, labels, and conditions under which the credential can be issued.

**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`)

Defines an ISO/IEC 18013-5 or ISO/IEC 18013-7 mdoc credential template. Every top-level attribute must specify `namespace`. Nested attributes must not specify `namespace`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Display name identifying the credential template (the human-readable name for this template). |
| `categoryId` | string (uuid) | No | Grouping category identifier for the template. |
| `version` | string | Yes | Semantic version tag denoting the schema configuration state (the version number for this template). |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |
| `description` | string | Yes | Functional description defining the template usage (explains the purpose of this credential type). |
| `credentialTheme` | object | No | Metadata for visual rendering of the Verifiable Credential in a digital wallet. Complies with EUDI ARF display guidelines (controls how the credential card appears in mobile wallet applications). |
| `credentialTheme.title` | string | No | Display title for the credential card in the wallet. If omitted, the credential-template name is used. |
| `credentialTheme.description` | string | No | Short descriptive text shown to the holder (additional context displayed on the credential card). |
| `credentialTheme.textColor` | string | No | Hex color code for the primary text overlay. If omitted, `#000000` is used. |
| `credentialTheme.backgroundImageUrl` | string (url) | No | URL pointing to the background image used on the credential card. If omitted, a standard background image may be used. |
| `credentialTheme.backgroundImageAlt` | string | No | Accessibility alt-text for the background image (text description for screen readers). |
| `credentialTheme.logoUrl` | string (url) | No | URL pointing to the issuing entity's official logo. If both logo fields are omitted, the organization's logo may be used. Required when `logoAlt` is provided. |
| `credentialTheme.logoAlt` | string | No | Accessibility alt-text for the logo image. If omitted when `logoUrl` is provided, the organization's display name is used. |
| `credentialTheme.locale` | string | No | Language and region identifier for localization (the locale used for displaying text on the credential card). |
| `credentialTheme.backgroundColor` | string | No | Hex color code for the credential card background (the background color used on the credential card in wallets). |
| `attributes` | array of object | Yes | Credential claims included in the mdoc. Every top-level attribute must specify `namespace`. Nested attributes must not specify `namespace`. |
| `attributes[].name` | string | Yes | Attribute name used when supplying or requesting credential values. |
| `attributes[].type` | string: `string`, `number`, `boolean`, `image`, `date`, `object` | Yes | 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). |
| `attributes[].namespace` | string | Yes | Namespace containing this mdoc data element (for example, `org.iso.18013.5.1`). Specify it only for top-level attributes, not for nested attributes. |
| `docType` | string | Yes | The standardized document type identifier defined by ISO/IEC 18013-5, ISO/IEC 18013-7 (e.g., org.iso.18013.5.1.mDL for mobile driving licenses). |
| `credentialScope` | string | No | Optional. Scope wallets use to request this credential, for ecosystems that define their own scope values. If omitted, one is generated from the credential type. Must not contain spaces, double quotes or backslashes, and cannot be changed after the template is created. |
| `dataRetentionConsent` | boolean | No | Controls whether credential data is stored after issuance completes. When `true` (default), credential data is retained. When `false`, credential data is not stored after issuance completes. |

`categoryId`: Grouping category identifier for the 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

`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:** `data:image/png;base64,<payload>`, `data:image/jpeg;base64,<payload>`. **Maximum size:** 20 KB |

```json
{
  "name": "Name of the credential",
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "version": "1.0.1",
  "image": "https://acme-corp.com/patient.png",
  "description": "Patient ID Card",
  "credentialTheme": {
    "title": "University Degree Record",
    "description": "Official proof of university graduation and degree attainment.",
    "textColor": "#ffffff",
    "backgroundColor": "#1a365d",
    "backgroundImageUrl": "https://acme-corp.com/logo.png",
    "backgroundImageAlt": "University seal watermark background",
    "logoUrl": "https://hovi.id/assets/university-logo.png",
    "logoAlt": "University official crest",
    "locale": "en-US"
  },
  "attributes": [
    {
      "name": "age",
      "namespace": "org.iso.18013.5.1",
      "label": "Age",
      "type": "number",
      "description": "Age of the patient",
      "required": true
    },
    {
      "name": "isVerified",
      "namespace": "org.iso.18013.5.1",
      "label": "Verified Status",
      "type": "boolean",
      "description": "Indicates whether the user is verified"
    },
    {
      "name": "profileImage",
      "namespace": "org.iso.18013.5.1",
      "label": "Profile Image",
      "type": "image",
      "description": "Profile picture of the user"
    },
    {
      "name": "birthDate",
      "namespace": "org.iso.18013.5.1",
      "label": "Birth Date",
      "type": "date",
      "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)"
    },
    {
      "name": "address",
      "namespace": "org.iso.18013.5.1",
      "label": "Address",
      "type": "object",
      "description": "Structured address information",
      "attributes": [
        {
          "name": "street",
          "label": "Street",
          "type": "string"
        },
        {
          "name": "city",
          "label": "City",
          "type": "string"
        }
      ]
    }
  ],
  "docType": "org.example.UniversityDegree"
}
```

**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": "5825e21f-41c1-4f10-b887-6c2d9375c91f",
    "ecosystemId": "3373e16a-1200-4358-b19d-6f7d2391fff4",
    "tenantId": "125c82e6-c89c-4936-b88b-a7120e6605ec",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "name": "Name of the credential",
    "version": "1.0.1",
    "description": "Patient ID Careed",
    "type": "mdoc",
    "image": "https://acme-corp.com/patient.png",
    "attributes": [
      {
        "name": "age",
        "namespace": "org.iso.18013.5.1",
        "label": "Age",
        "type": "number",
        "description": "Age of the patient",
        "required": true
      },
      {
        "name": "isVerified",
        "namespace": "org.iso.18013.5.1",
        "label": "Verified Status",
        "type": "boolean",
        "description": "Indicates whether the user is verified",
        "required": true
      },
      {
        "name": "profileImage",
        "namespace": "org.iso.18013.5.1",
        "label": "Profile Image",
        "type": "image",
        "description": "Profile picture of the user",
        "required": true
      },
      {
        "name": "birthDate",
        "namespace": "org.iso.18013.5.1",
        "label": "Birth Date",
        "type": "date",
        "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
        "required": true
      },
      {
        "name": "address",
        "namespace": "org.iso.18013.5.1",
        "label": "Address",
        "type": "object",
        "description": "Structured address information",
        "required": true,
        "attributes": [
          {
            "name": "street",
            "label": "Street",
            "type": "string",
            "required": true
          },
          {
            "name": "city",
            "label": "City",
            "type": "string",
            "required": true
          }
        ]
      }
    ],
    "credentialConfigurationId": "name_of_the_credential_1.0.1_mdoc",
    "docType": "org.example.UniversityDegree",
    "createdAt": "2026-05-18T02:26:34.032Z",
    "updatedAt": "2026-05-18T02:26:34.032Z"
  }
}
```

### 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`)

Request payload to generate a new template based on an external W3C JSON-LD schema URL (the data you send to import an existing JSON-LD schema as a template).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string (uuid) | No | Grouping category identifier for the template. |
| `schemaUrl` | string (url) | Yes | The external resolution URL pointing to the JSON Schema or JSON-LD context file (the URL of the schema you want to import). |
| `image` | string (url) | No | URL pointing to the credential logo (the image shown for this credential). |

`categoryId`: Grouping category identifier for the 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
{
  "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": "Template based on imported W3C schema models.",
    "type": "jsonld",
    "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
    "attributes": [
      {
        "name": "university",
        "type": "string",
        "label": "University Name",
        "description": "Official registered name of the issuing university.",
        "required": true
      }
    ],
    "schemaUrl": "https://hovi.id/schemas/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": "0cddab8e-3313-4726-b0f4-5fdb889cf1f6",
      "schemaId": "4bd7b3e5-26e5-4348-bc26-82fa23948bb3",
      "ecosystemId": "3373e16a-1200-4358-b19d-6f7d2391fff4",
      "tenantId": "125c82e6-c89c-4936-b88b-a7120e6605ec",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "name": "Patient ID 3",
      "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",
          "required": true
        },
        {
          "name": "name",
          "label": "Name",
          "type": "string",
          "description": "Age of the patient",
          "required": true
        },
        {
          "name": "isMarried",
          "label": "Married",
          "type": "boolean",
          "description": "Age of the patient"
        }
      ],
      "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreibs3xrtikbo36xqkxubjtstqopndvgltdfjndd2indap4sef2gctu",
      "schemaContext": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreihs57aj3sdsbhta2cipf4mltv2gjqpncw3gyxb65kyefmvewz3jn4",
      "schemaType": "Patient Record",
      "createdAt": "2026-05-05T12:03:26.733Z",
      "updatedAt": "2026-05-05T12:03:26.733Z"
    }
  ]
}
```

### 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": "0cddab8e-3313-4726-b0f4-5fdb889cf1f6",
      "schemaId": "4bd7b3e5-26e5-4348-bc26-82fa23948bb3",
      "ecosystemId": "3373e16a-1200-4358-b19d-6f7d2391fff4",
      "tenantId": "125c82e6-c89c-4936-b88b-a7120e6605ec",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "name": "Patient ID 3",
      "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",
          "required": true
        },
        {
          "name": "name",
          "label": "Name",
          "type": "string",
          "description": "Age of the patient",
          "required": true
        },
        {
          "name": "isMarried",
          "label": "Married",
          "type": "boolean",
          "description": "Age of the patient"
        }
      ],
      "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreibs3xrtikbo36xqkxubjtstqopndvgltdfjndd2indap4sef2gctu",
      "schemaContext": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreihs57aj3sdsbhta2cipf4mltv2gjqpncw3gyxb65kyefmvewz3jn4",
      "schemaType": "Patient Record",
      "createdAt": "2026-05-05T12:03:26.733Z",
      "updatedAt": "2026-05-05T12:03:26.733Z"
    }
  ]
}
```

### 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`)

Request payload to delete a specific credential template (the data you send to permanently remove a credential blueprint).

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

```json
{
  "credentialTemplateId": "9636b597-cbe2-492a-bf92-87641729e6e4"
}
```

**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`)

Payload for updating an existing credential template configuration (the data you send to update a credential blueprint).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialTemplateId` | string (uuid) | Yes | Unique identifier of the credential template to update (the ID of the template you want to change). |
| `categoryId` | string (uuid) | No | Grouping category identifier for the template. |
| `image` | string (url) | No | Updated URL for the visual mapping thumbnail (the new image shown in the dashboard for this template). |
| `dataRetentionConsent` | boolean | No | Controls whether credential data is stored after issuance completes. When `true` (default), credential data is retained. When `false`, credential data is not stored after issuance completes. |
| `credentialTheme` | object | No | Metadata for visual rendering of the Verifiable Credential in a digital wallet. Complies with EUDI ARF display guidelines (controls how the credential card appears in mobile wallet applications). |
| `credentialTheme.title` | string | No | Display title for the credential card in the wallet. If omitted, the credential-template name is used. |
| `credentialTheme.description` | string | No | Short descriptive text shown to the holder (additional context displayed on the credential card). |
| `credentialTheme.textColor` | string | No | Hex color code for the primary text overlay. If omitted, `#000000` is used. |
| `credentialTheme.backgroundImageUrl` | string (url) | No | URL pointing to the background image used on the credential card. If omitted, a standard background image may be used. |
| `credentialTheme.backgroundImageAlt` | string | No | Accessibility alt-text for the background image (text description for screen readers). |
| `credentialTheme.logoUrl` | string (url) | No | URL pointing to the issuing entity's official logo. If both logo fields are omitted, the organization's logo may be used. Required when `logoAlt` is provided. |
| `credentialTheme.logoAlt` | string | No | Accessibility alt-text for the logo image. If omitted when `logoUrl` is provided, the organization's display name is used. |
| `credentialTheme.locale` | string | No | Language and region identifier for localization (the locale used for displaying text on the credential card). |
| `credentialTheme.backgroundColor` | string | No | Hex color code for the credential card background (the background color used on the credential card in wallets). |

`categoryId`: Grouping category identifier for the 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`: Updated URL for the visual mapping thumbnail (the new image shown in the dashboard for this template).

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

```json
{
  "credentialTemplateId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
  "dataRetentionConsent": false,
  "credentialTheme": {
    "title": "University Degree Record",
    "description": "Official proof of university graduation and degree attainment.",
    "textColor": "#ffffff",
    "backgroundColor": "#1a365d",
    "backgroundImageUrl": "https://acme-corp.com/logo.png",
    "backgroundImageAlt": "University seal watermark background",
    "logoUrl": "https://hovi.id/assets/university-logo.png",
    "logoAlt": "University official crest",
    "locale": "en-US"
  }
}
```

**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

Credential endpoints manage the lifecycle of verifiable credentials, allowing organizations to issue (via OpenID4VCI protocol) and revoke credentials based on defined templates.

### 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": "22f8b749-ac18-446c-816d-b13fad91dad9",
      "state": "done",
      "credentialType": "jsonld",
      "role": "issuer",
      "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vci%2F534640b3-8eb3-4246-ad64-d2904189abdf%2Foffers%2F56f676c9-5636-43e8-801e-124861d07aba",
      "isRevoked": false,
      "createdAt": "2026-05-11T13:44:27.941Z",
      "updatedAt": "2026-05-11T13:44:54.825Z"
    },
    {
      "credentialExchangeId": "9efe3b8e-6efe-4b7a-8e0d-4569690dc853",
      "state": "done",
      "credentialType": "sd-jwt",
      "role": "issuer",
      "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vci%2F534640b3-8eb3-4246-ad64-d2904189abdf%2Foffers%2F6fc8ca1b-2df8-4635-9872-17fe4ce9b68b",
      "isRevoked": false,
      "createdAt": "2026-04-27T09:42:31.984Z",
      "updatedAt": "2026-04-27T09:42:52.739Z"
    },
    {
      "credentialExchangeId": "4c0ac093-62c6-4714-867f-3f5a3ef6665a",
      "state": "pending",
      "credentialType": "sd-jwt",
      "role": "issuer",
      "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vci%2F534640b3-8eb3-4246-ad64-d2904189abdf%2Foffers%2Fa211f8f3-f195-405a-8ad1-e317a5f85abf",
      "isRevoked": false,
      "createdAt": "2026-04-27T09:42:22.926Z",
      "updatedAt": "2026-04-27T09:42:22.926Z"
    }
  ]
}
```

### 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": "22f8b749-ac18-446c-816d-b13fad91dad9",
      "state": "done",
      "credentialType": "jsonld",
      "role": "issuer",
      "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vci%2F534640b3-8eb3-4246-ad64-d2904189abdf%2Foffers%2F56f676c9-5636-43e8-801e-124861d07aba",
      "isRevoked": false,
      "createdAt": "2026-05-11T13:44:27.941Z",
      "updatedAt": "2026-05-11T13:44:54.825Z"
    }
  ]
}
```

### 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.

**Related webhook events**

After the holder accepts this offer and issuance completes, Hovi sends an asynchronous openid-issuance-session event to the issuer organization’s registered webhook URL:

- [Credential Issued](#tag/webhook-events/webhook/post/open-id-issuance-completed)

**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`)

Request payload to initialize the OpenID4VCI exchange sequence for issuing a W3C JSON-LD credential (the data you send to start the issuance of a JSON-LD credential using the OID4VCI protocol).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialTemplateId` | string (uuid) | Yes | Unique identifier of the JSON-LD template defining the credential schema (the template that defines the structure of the credential). |
| `credentialValues` | object | Yes | Key-value pairs representing the specific data claims to map against the JSON-LD context (the actual data values for the credential). |
| `codeflow` | string: `pre-authorized`, `authorization` | No | How the wallet gets the credential. `pre-authorized`: the wallet redeems the offer directly, optionally with a transaction code (`preAuthorizedCodeflowConfig`). `authorization`: the user first signs in with one of the organization's authorization servers. Send `authorizationCodeflowConfig.authorizationServerId` with an ID from `POST` or `GET /organization/authorization-server`; the offer is rejected with 400 when it is missing. |
| `preAuthorizedCodeflowConfig` | object | No |  |
| `preAuthorizedCodeflowConfig.useTransactionCode` | boolean: `true`, `false` | No | Flag enabling an out-of-band transaction PIN requirement during wallet redemption (whether a PIN is required to accept the credential). |
| `preAuthorizedCodeflowConfig.transactionCode` | object | No |  |
| `preAuthorizedCodeflowConfig.transactionCode.description` | string | No | Contextual prompt displayed to the holder defining how the code will be delivered (the message shown to the holder about the PIN). |
| `preAuthorizedCodeflowConfig.transactionCode.length` | integer | No | Numeric character length of the transaction PIN. Defaults to 6 when omitted. Must be between 6 and 10. |
| `authorizationCodeflowConfig` | object | No | Required when `codeflow` is `authorization`. The user signs in with the selected authorization server before the wallet receives the credential. Template attributes marked `authorization: true` are filled from the user's sign-in (ID token, then userinfo); their names must match the claim names exactly, for example `given_name` or `email`, and the matching scopes must be requested. A required attribute that the sign-in does not return makes issuance fail after the user signs in. |
| `authorizationCodeflowConfig.authorizationServerId` | string (uuid) | Yes | ID of one of the organization's authorization servers, from the add or list authorization server endpoints. |
| `authorizationCodeflowConfig.issuerState` | string | No | Optional. Your own value linking the sign-in to this offer. Must be unique for each offer. Generated when omitted. |
| `authorizationCodeflowConfig.signInScopes` | array of string | No | Optional. Scopes requested from the authorization server when the user signs in, for this offer only, instead of the server's defaults. They decide which user claims the server returns, in its ID token or from its userinfo endpoint. `openid` is always added. Values must not contain spaces, double quotes or backslashes. |
| `authorizationCodeflowConfig.offerScope` | string | No | Optional. Scopes put in the offer's `authorization_code` grant. Defaults to the offered credential's scope. |
| `authorizationCodeflowConfig.walletRedirectUris` | array of string | No | Optional. Wallet redirect URIs allowed for this offer only, instead of the server's defaults. |

```json
{
  "credentialTemplateId": "acabc49f-b8e1-4a43-aa55-bba2e262e8ac",
  "credentialValues": {
    "fullName": "John Doe",
    "age": 30,
    "isVerified": true,
    "profileImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO7Zk9sAAAAASUVORK5CYII=",
    "dateOfBirth": "1995-08-15",
    "address": {
      "street": "123 Main Street",
      "postalCode": 1207
    },
    "organization": {
      "organizationName": "Tech Corp Ltd",
      "department": {
        "departmentName": "Engineering",
        "employeeCount": 45
      }
    }
  },
  "codeflow": "pre-authorized",
  "preAuthorizedCodeflowConfig": {
    "useTransactionCode": true,
    "transactionCode": {
      "description": "description about how the transaction code is sent to the holder",
      "length": 6
    }
  }
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "createdAt": "2026-05-18T03:05:51.815Z",
    "updatedAt": "2026-05-18T03:05:51.816Z",
    "credentialExchangeId": "46236fbd-0709-471c-8365-a65e449ad1e4",
    "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vci%2F6e2816ee-fd0f-4323-a9b3-e30daaadfa52%2Foffers%2F232d93b1-8387-466f-b006-d55cc603eee5",
    "isRevoked": false,
    "state": "pending",
    "role": "issuer",
    "credentialType": "jsonld",
    "transactionCode": "9086",
    "credentialOfferUrl": "https://studio-dev.hovi.id/credential?data=eyJ1cmkiOiJvcGVuaWQtY3JlZGVudGlhbC1vZmZlcjovLz9jcmVkZW50aWFsX29mZmVyX3VyaT1odHRwcyUzQSUyRiUyRmNvcmUtYWdlbnQtZGV2LmhvdmkuaWQlMkZhZ2VudCUyRm9pZDR2Y2klMkY2ZTI4MTZlZS1mZDBmLTQzMjMtYTliMy1lMzBkYWFhZGZhNTIlMkZvZmZlcnMlMkYyMzJkOTNiMS04Mzg3LTQ2NmYtYjAwNi1kNTVjYzYwM2VlZTUiLCJuYW1lIjoiRXVkbyBPcmciLCJpbWFnZSI6Imh0dHBzOi8vaG92aWRldmVsb3BtZW50LmJsb2IuY29yZS53aW5kb3dzLm5ldC9zdHVkaW8tYXNzZXRzL3RlbmFudHMvaW1hZ2VzL2V1ZG8tb3JnLWltYWdlLTE3NzkwNzE0OTc1ODkuc3ZnJTJCeG1sIiwiZWNvc3lzdGVtSWQiOiIwMzk5ODMzMS05NDI2LTQxYTEtOTlhNy0wOWY5ZDFhZjY4ZGMifQ=="
  }
}
```

### Offer Credential (SD-JWT)

`POST /credential/sd-jwt/offer`

This route is used to create an offer for a SD-JWT credential based on a credential template. The SD-JWT credential allows for selective disclosure of attributes, meaning that recipients can choose which information to share during the verification process.

**Related webhook events**

After the holder accepts this offer and issuance completes, Hovi sends an asynchronous openid-issuance-session event to the issuer organization’s registered webhook URL:

- [Credential Issued](#tag/webhook-events/webhook/post/open-id-issuance-completed)

**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`)

Request payload to initialize the OpenID4VCI exchange sequence for issuing an IETF SD-JWT verifiable credential (the data you send to start the issuance of an SD-JWT credential using the OID4VCI protocol).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialTemplateId` | string (uuid) | Yes | Unique identifier of the SD-JWT template defining the credential schema and masking logic (the template that defines the structure and selective disclosure rules). |
| `credentialValues` | object | Yes | Key-value pairs representing the data claims to map into the SD-JWT disclosures arrays (the actual data values for the credential). |
| `codeflow` | string: `pre-authorized`, `authorization` | No | How the wallet gets the credential. `pre-authorized`: the wallet redeems the offer directly, optionally with a transaction code (`preAuthorizedCodeflowConfig`). `authorization`: the user first signs in with one of the organization's authorization servers. Send `authorizationCodeflowConfig.authorizationServerId` with an ID from `POST` or `GET /organization/authorization-server`; the offer is rejected with 400 when it is missing. |
| `preAuthorizedCodeflowConfig` | object | No |  |
| `preAuthorizedCodeflowConfig.useTransactionCode` | boolean: `true`, `false` | No | Flag enabling an out-of-band transaction PIN requirement during wallet redemption (whether a PIN is required to accept the credential). |
| `preAuthorizedCodeflowConfig.transactionCode` | object | No |  |
| `preAuthorizedCodeflowConfig.transactionCode.description` | string | No | Contextual prompt defining how the holder should access their PIN (the message shown to the holder about the PIN). |
| `preAuthorizedCodeflowConfig.transactionCode.length` | integer | No | Numeric character length of the transaction PIN. Defaults to 6 when omitted. Must be between 6 and 10. |
| `authorizationCodeflowConfig` | object | No | Required when `codeflow` is `authorization`. The user signs in with the selected authorization server before the wallet receives the credential. Template attributes marked `authorization: true` are filled from the user's sign-in (ID token, then userinfo); their names must match the claim names exactly, for example `given_name` or `email`, and the matching scopes must be requested. A required attribute that the sign-in does not return makes issuance fail after the user signs in. |
| `authorizationCodeflowConfig.authorizationServerId` | string (uuid) | Yes | ID of one of the organization's authorization servers, from the add or list authorization server endpoints. |
| `authorizationCodeflowConfig.issuerState` | string | No | Optional. Your own value linking the sign-in to this offer. Must be unique for each offer. Generated when omitted. |
| `authorizationCodeflowConfig.signInScopes` | array of string | No | Optional. Scopes requested from the authorization server when the user signs in, for this offer only, instead of the server's defaults. They decide which user claims the server returns, in its ID token or from its userinfo endpoint. `openid` is always added. Values must not contain spaces, double quotes or backslashes. |
| `authorizationCodeflowConfig.offerScope` | string | No | Optional. Scopes put in the offer's `authorization_code` grant. Defaults to the offered credential's scope. |
| `authorizationCodeflowConfig.walletRedirectUris` | array of string | No | Optional. Wallet redirect URIs allowed for this offer only, instead of the server's defaults. |

```json
{
  "credentialTemplateId": "e6f6f78d-7f7e-4559-84a0-f0e7a1c198ce",
  "credentialValues": {
    "age": 28,
    "isVerified": true,
    "profileImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO7Zk9sAAAAASUVORK5CYII=",
    "birthDate": "1996-05-12",
    "address": {
      "street": "221B Baker Street",
      "city": "London"
    }
  },
  "codeflow": "pre-authorized",
  "preAuthorizedCodeflowConfig": {
    "useTransactionCode": true,
    "transactionCode": {
      "description": "description about how the transaction code is sent to the holder",
      "length": 6
    }
  }
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "createdAt": "2024-07-08T09:28:43.781Z",
    "updatedAt": "2024-07-08T09:28:43.782Z",
    "credentialExchangeId": "b3ec12dd-e04e-47ff-b14d-87e7ec4d5a59",
    "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https...",
    "isRevoked": false,
    "state": "pending",
    "transactionCode": "1470",
    "role": "issuer",
    "credentialType": "sd-jwt",
    "credentialOfferUrl": "https://hovi.id/credential?data=eyJ1cm..."
  }
}
```

### Offer Credential (mDoc)

`POST /credential/mdoc/offer`

This route is used to create an offer for a mDoc credential based on a credential template.

**Related webhook events**

After the holder accepts this offer and issuance completes, Hovi sends an asynchronous openid-issuance-session event to the issuer organization’s registered webhook URL:

- [Credential Issued](#tag/webhook-events/webhook/post/open-id-issuance-completed)

**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`)

Issues an ISO/IEC 18013-5 or ISO/IEC 18013-7 mdoc credential. Group `credentialValues` under the namespaces defined by the credential template.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialTemplateId` | string (uuid) | Yes | Unique identifier of the mdoc template defining the CBOR mapping constraints (the template that defines the structure of the credential). |
| `credentialValues` | object | Yes | Claim values grouped under their corresponding namespaces from the credential template. |
| `issuanceMetadata` | object | No | Optional mdoc validity settings. Omitted fields use the default values. If either validFrom or validUntil is provided, both must be provided. |
| `issuanceMetadata.validFrom` | string (date-time) | No | Optional ISO 8601 date or datetime when the credential becomes valid. Required when validUntil is provided. |
| `issuanceMetadata.validUntil` | string (date-time) | No | Optional ISO 8601 date or datetime when the credential expires. Required when validFrom is provided. |
| `issuanceMetadata.expectedUpdate` | string (date-time) | No | Optional ISO 8601 date or datetime indicating when the credential is expected to be updated. |
| `codeflow` | string: `pre-authorized`, `authorization` | No | How the wallet gets the credential. `pre-authorized`: the wallet redeems the offer directly, optionally with a transaction code (`preAuthorizedCodeflowConfig`). `authorization`: the user first signs in with one of the organization's authorization servers. Send `authorizationCodeflowConfig.authorizationServerId` with an ID from `POST` or `GET /organization/authorization-server`; the offer is rejected with 400 when it is missing. |
| `preAuthorizedCodeflowConfig` | object | No |  |
| `preAuthorizedCodeflowConfig.useTransactionCode` | boolean: `true`, `false` | No | Flag enabling an out-of-band transaction PIN requirement during wallet redemption (whether a PIN is required to accept the credential). If false `transactionCode` is not needed. |
| `authorizationCodeflowConfig` | object | No | Required when `codeflow` is `authorization`. The user signs in with the selected authorization server before the wallet receives the credential. Template attributes marked `authorization: true` are filled from the user's sign-in (ID token, then userinfo); their names must match the claim names exactly, for example `given_name` or `email`, and the matching scopes must be requested. A required attribute that the sign-in does not return makes issuance fail after the user signs in. |
| `authorizationCodeflowConfig.authorizationServerId` | string (uuid) | Yes | ID of one of the organization's authorization servers, from the add or list authorization server endpoints. |
| `authorizationCodeflowConfig.issuerState` | string | No | Optional. Your own value linking the sign-in to this offer. Must be unique for each offer. Generated when omitted. |
| `authorizationCodeflowConfig.signInScopes` | array of string | No | Optional. Scopes requested from the authorization server when the user signs in, for this offer only, instead of the server's defaults. They decide which user claims the server returns, in its ID token or from its userinfo endpoint. `openid` is always added. Values must not contain spaces, double quotes or backslashes. |
| `authorizationCodeflowConfig.offerScope` | string | No | Optional. Scopes put in the offer's `authorization_code` grant. Defaults to the offered credential's scope. |
| `authorizationCodeflowConfig.walletRedirectUris` | array of string | No | Optional. Wallet redirect URIs allowed for this offer only, instead of the server's defaults. |

```json
{
  "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
  "credentialValues": {
    "org.iso.18013.5.1": {
      "age": 35,
      "isVerified": false,
      "profileImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO7Zk9sAAAAASUVORK5CYII=",
      "birthDate": "1989-11-20",
      "address": {
        "street": "742 Evergreen Terrace",
        "city": "Springfield"
      }
    }
  },
  "codeflow": "pre-authorized",
  "preAuthorizedCodeflowConfig": {
    "useTransactionCode": false
  },
  "issuanceMetadata": {
    "validFrom": "2024-01-01T00:00:00.000Z",
    "validUntil": "2025-01-01T00:00:00.000Z",
    "expectedUpdate": "2024-06-01T00:00:00.000Z"
  }
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "createdAt": "2026-05-18T03:19:00.509Z",
    "updatedAt": "2026-05-18T03:19:00.509Z",
    "credentialExchangeId": "c4d80763-2a1b-4a68-940f-1ab4b1d68173",
    "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vci%2F6e2816ee-fd0f-4323-a9b3-e30daaadfa52%2Foffers%2Fcb938333-2581-4f28-ac37-925c6e74e190",
    "isRevoked": false,
    "state": "pending",
    "role": "issuer",
    "credentialType": "mdoc",
    "credentialOfferUrl": "https://studio-dev.hovi.id/credential?data=eyJ1cmkiOiJvcGVuaWQtY3JlZGVudGlhbC1vZmZlcjovLz9jcmVkZW50aWFsX29mZmVyX3VyaT1odHRwcyUzQSUyRiUyRmNvcmUtYWdlbnQtZGV2LmhvdmkuaWQlMkZhZ2VudCUyRm9pZDR2Y2klMkY2ZTI4MTZlZS1mZDBmLTQzMjMtYTliMy1lMzBkYWFhZGZhNTIlMkZvZmZlcnMlMkZjYjkzODMzMy0yNTgxLTRmMjgtYWMzNy05MjVjNmU3NGUxOTAiLCJuYW1lIjoiRXVkbyBPcmciLCJpbWFnZSI6Imh0dHBzOi8vaG92aWRldmVsb3BtZW50LmJsb2IuY29yZS53aW5kb3dzLm5ldC9zdHVkaW8tYXNzZXRzL3RlbmFudHMvaW1hZ2VzL2V1ZG8tb3JnLWltYWdlLTE3NzkwNzE0OTc1ODkuc3ZnJTJCeG1sIiwiZWNvc3lzdGVtSWQiOiIwMzk5ODMzMS05NDI2LTQxYTEtOTlhNy0wOWY5ZDFhZjY4ZGMifQ=="
  }
}
```

### Revoke Credential

`POST /credential/revoke`

This route is used to revoke a credential 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`)

Request payload to invalidate a previously issued verifiable credential (the data you send to revoke a credential so it can no longer be used).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialExchangeId` | string (uuid) | Yes | Unique identifier of the credential issuance transaction target for revocation (the ID of the credential you want to revoke). |

```json
{
  "credentialExchangeId": "ee9ae693-c2c8-4f4c-aeb1-0c63d2d83179"
}
```

**Responses**

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

Example `200` response:

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

## Verification Templates

Verification templates define the format for presentation requests (DIF Presentation Exchange definitions used in the OID4VP protocol), specifying the exact claims required from credential holders.

### 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`)

Request payload to generate a new OpenID4VP verification template specifying mandatory JSON-LD credential claims.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Human-readable name of the verification template. |
| `version` | string | Yes | Semantic version string for this template. |
| `description` | string | Yes | Plain-text description of the verification criteria. |
| `categoryId` | string (uuid) | No | Industry/sector category identifier. |
| `image` | string (url) | No | URL of the image displayed on the verification request screen. |
| `requestedAttributes` | array of object | Yes | Array of specific claim fields requested from the holder. Supports nested object attributes. All requested attributes are required for verification. |
| `requestedAttributes[].name` | string | No | Attribute name used when requesting credential values. |
| `requestedAttributes[].type` | string: `string`, `number`, `boolean`, `image`, `date`, `object` | No | Data type of the requested attribute. |
| `requestedAttributes[].label` | string | No | Human-readable label displayed in wallet UIs. |
| `requestedAttributes[].description` | string | No | Semantic description of the requested attribute. |
| `requestedAttributes[].attributes` | array of object | No | Nested sub-attributes for object-type claims. |
| `requestedAttributes[].namespace` | string | No | Data-element namespace for this root requested attribute (e.g., org.iso.18013.5.1). Nested attributes must not include `namespace`. |
| `restrictions` | object | No | Optional constraints to filter acceptable credentials. |
| `restrictions.credentialTemplateId` | string (uuid) | No | Restricts accepted credentials to those from this specific template. Each requested attribute must exist on that template. |
| `restrictions.issuerDid` | string | No | Restricts accepted credentials to those issued by this specific DID. |
| `restrictions.schemaType` | string | No | Restricts accepted credentials to those with this schema type. |
| `restrictions.schemaUrl` | string (url) | No | DIF Presentation Exchange constraint requiring credentials to match this schema URL. |
| `dataRetentionConsent` | boolean | No | Controls whether the verified presentation is stored after verification completes. When `true` (default), the verified presentation is retained. When `false`, the verified presentation is not stored and verified data is delivered via webhook instead. Setting this to `false` requires at least one webhook to be registered for the organization. |

`categoryId`: Industry/sector category identifier.

**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 of the image displayed on the verification request screen.

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

```json
{
  "name": "Enterprise employee verification template",
  "version": "1.0.0",
  "description": "Verification template for confirming employee identity, address, and organizational information within an enterprise system.",
  "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
  "image": "https://enterprise.example.com/assets/employee-verification.png",
  "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
            }
          ]
        }
      ]
    }
  ],
  "restrictions": {
    "credentialTemplateId": "4a3e9374-3738-4922-981d-8ada221e0b47",
    "issuerDid": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
    "schemaType": "age_name",
    "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreiejh6hozztuwgqxmd2rwfcpnsucdbae5slhpwn735nh43n7qc3j64"
  }
}
```

**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": "ffabbe77-8667-406e-b4ec-8f5e5c28bdaf",
    "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
    "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
    "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
    "credentialTemplateId": "4a3e9374-3738-4922-981d-8ada221e0b47",
    "name": "Enterprise employee verification template",
    "image": "https://enterprise.example.com/assets/employee-verification.png",
    "version": "1.0.0",
    "description": "Verification template for confirming employee identity, address, and organizational information within an enterprise system.",
    "schemaTypeRestriction": "age_name",
    "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/bafkreiejh6hozztuwgqxmd2rwfcpnsucdbae5slhpwn735nh43n7qc3j64",
    "issuerDidRestriction": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
    "createdAt": "2026-05-18T03:39:39.201Z",
    "updatedAt": "2026-05-18T03:39:39.201Z"
  }
}
```

### Create Template (SD-JWT)

`POST /verification-template/sd-jwt/create`

This route allows a organization to create a SD-JWT verification template, outlining the policy for verifying issued SD-JWT 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`)

Request payload to create a new OpenID4VP verification template designed for extracting selectively disclosed claims from SD-JWT credentials.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string (uuid) | No | Industry/sector category identifier. |
| `name` | string | Yes | Human-readable name of the verification template. |
| `version` | string | Yes | Semantic version string for this template. |
| `description` | string | Yes | Plain-text description of the verification criteria. |
| `image` | string (url) | No | URL of the image displayed on the verification request screen. |
| `requestedAttributes` | array of object | No | Array of specific selectively disclosable claim fields requested from the holder. Supports nested object attributes. All requested attributes are required for verification. |
| `requestedAttributes[].name` | string | No | Attribute name used when requesting credential values. |
| `requestedAttributes[].type` | string: `string`, `number`, `boolean`, `image`, `date`, `object` | No | Data type of the requested attribute. |
| `requestedAttributes[].label` | string | No | Human-readable label displayed in wallet UIs. |
| `requestedAttributes[].description` | string | No | Semantic description of the requested attribute. |
| `requestedAttributes[].attributes` | array of object | No | Nested sub-attributes for object-type claims. |
| `requestedAttributes[].namespace` | string | No | Data-element namespace for this root requested attribute (e.g., org.iso.18013.5.1). Nested attributes must not include `namespace`. |
| `transactionData` | array of object | No | Optional. Transaction details the holder must approve when sharing their credential, for example a payment. Define each type once with its fields; each proof request from this template then only sends the values. Fields can be `string`, `number` or `object`. Field names may only contain letters, numbers and underscores. `defaultValue` is used when a request leaves the field out. |
| `transactionData[].type` | string | Yes | Type of the transaction, for example `payment`. The holder's wallet must support this type. |
| `transactionData[].attributes` | array of object | Yes |  |
| `transactionData[].attributes[].name` | string | Yes |  |
| `transactionData[].attributes[].type` | string: `string`, `number`, `object` | Yes |  |
| `transactionData[].attributes[].required` | boolean | No |  |
| `transactionData[].attributes[].defaultValue` | any | No | Only for `string` and `number` fields. |
| `transactionData[].attributes[].attributes` | array of object | No | Fields of an `object`. |
| `limit_disclosure` | boolean: `true`, `false` | No | DIF Presentation Exchange setting enforcing omission of unrequested SD-JWT claims. |
| `dataRetentionConsent` | boolean | No | Controls whether the verified presentation is stored after verification completes. When `true` (default), the verified presentation is retained. When `false`, the verified presentation is not stored and verified data is delivered via webhook instead. Setting this to `false` requires at least one webhook to be registered for the organization. |
| `restrictions` | object | No | Optional constraints to filter acceptable credentials. |
| `restrictions.credentialTemplateId` | string (uuid) | No | Restricts accepted credentials to those from this specific template. Each requested attribute must exist on that template. |
| `restrictions.issuerDid` | string | No | Restricts accepted credentials to those issued by this specific DID. |
| `restrictions.schemaType` | string | No | Restricts accepted credentials to those with this schema type. |

`categoryId`: Industry/sector category identifier.

**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 of the image displayed on the verification request screen.

**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.0",
  "description": "Digital patient identity verification template used by hospitals and healthcare providers.",
  "image": "https://acme-corp.com/patient.png",
  "requestedAttributes": [
    {
      "name": "age",
      "label": "Age",
      "type": "number",
      "description": "Age of the patient",
      "required": true
    },
    {
      "name": "isVerified",
      "label": "Verified Status",
      "type": "boolean",
      "description": "Indicates whether the user is verified",
      "required": true
    },
    {
      "name": "profileImage",
      "label": "Profile Image",
      "type": "image",
      "description": "Profile picture of the user",
      "required": true
    },
    {
      "name": "birthDate",
      "label": "Birth Date",
      "type": "date",
      "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
      "required": true
    },
    {
      "name": "address",
      "label": "Address",
      "type": "object",
      "description": "Structured address information",
      "required": true,
      "attributes": [
        {
          "name": "street",
          "label": "Street",
          "type": "string",
          "required": true
        },
        {
          "name": "city",
          "label": "City",
          "type": "string"
        }
      ]
    }
  ],
  "limit_disclosure": true,
  "restrictions": {
    "credentialTemplateId": "e6f6f78d-7f7e-4559-84a0-f0e7a1c198ce",
    "issuerDid": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
    "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": {
    "verificationTemplateId": "7cf23b3f-0839-48e2-9791-c37f3330a489",
    "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
    "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "credentialTemplateId": "e6f6f78d-7f7e-4559-84a0-f0e7a1c198ce",
    "name": "Patient ID",
    "image": "https://acme-corp.com/patient.png",
    "version": "1.0.0",
    "description": "Digital patient identity verification template used by hospitals and healthcare providers.",
    "schemaTypeRestriction": "Patient_Record",
    "type": "sd-jwt",
    "requestedAttributes": [
      {
        "name": "age",
        "label": "Age",
        "type": "number",
        "description": "Age of the patient",
        "required": true
      },
      {
        "name": "isVerified",
        "label": "Verified Status",
        "type": "boolean",
        "description": "Indicates whether the user is verified",
        "required": true
      },
      {
        "name": "profileImage",
        "label": "Profile Image",
        "type": "image",
        "description": "Profile picture of the user",
        "required": true
      },
      {
        "name": "birthDate",
        "label": "Birth Date",
        "type": "date",
        "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
        "required": true
      },
      {
        "name": "address",
        "label": "Address",
        "type": "object",
        "description": "Structured address information",
        "required": true,
        "attributes": [
          {
            "name": "street",
            "label": "Street",
            "type": "string",
            "required": true
          },
          {
            "name": "city",
            "label": "City",
            "type": "string",
            "required": true
          }
        ]
      }
    ],
    "limit_disclosure": true,
    "issuerDidRestriction": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
    "createdAt": "2026-05-18T03:46:01.789Z",
    "updatedAt": "2026-05-18T03:46:01.789Z"
  }
}
```

### Create Template (mDoc)

`POST /verification-template/mdoc/create`

This route allows a organization to create a mDoc verification template, outlining the policy for verifying issued mDoc 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`)

Request payload to generate a new OpenID4VP verification template for ISO/IEC 18013-5 mdoc credentials.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `categoryId` | string (uuid) | No | Industry/sector category identifier. |
| `name` | string | Yes | Human-readable name of the verification template. |
| `version` | string | Yes | Semantic version string for this template. |
| `description` | string | Yes | Plain-text description of the verification criteria. |
| `image` | string (url) | No | URL of the image displayed on the verification request screen. |
| `requestedAttributes` | array of object | No | CBOR data elements requested from the mdoc. Each top-level attribute specifies its namespace; nested attributes inherit that namespace and must not specify `namespace`. All listed attributes are required for verification. |
| `requestedAttributes[].name` | string | No | Attribute name used when requesting credential values. |
| `requestedAttributes[].type` | string: `string`, `number`, `boolean`, `image`, `date`, `object` | No | Data type of the requested attribute. |
| `requestedAttributes[].label` | string | No | Human-readable label displayed in wallet UIs. |
| `requestedAttributes[].description` | string | No | Semantic description of the requested attribute. |
| `requestedAttributes[].attributes` | array of object | No | Nested sub-attributes for object-type claims. |
| `requestedAttributes[].namespace` | string | No | Data-element namespace for this root requested attribute (e.g., org.iso.18013.5.1). Nested attributes must not include `namespace`. |
| `limit_disclosure` | boolean: `true`, `false` | No | Enforces omission of unrequested mdoc attributes. |
| `dataRetentionConsent` | boolean | No | Controls whether the verified presentation is stored after verification completes. When `true` (default), the verified presentation is retained. When `false`, the verified presentation is not stored and verified data is delivered via webhook instead. Setting this to `false` requires at least one webhook to be registered for the organization. |
| `restrictions` | object | No | Optional constraints to filter acceptable mdoc credentials. |
| `restrictions.credentialTemplateId` | string (uuid) | No | Restricts accepted credentials to those issued from this credential template. |
| `restrictions.docType` | string | No | ISO/IEC 18013-5 document type identifier (e.g., org.iso.18013.5.1.mDL for mobile driving licenses). |

`categoryId`: Industry/sector category identifier.

**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 of the image displayed on the verification request screen.

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

```json
{
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "name": "patient-verification-template",
  "version": "1.0.0",
  "description": "Verification template for validating patient identity and healthcare registration information.",
  "image": "https://acme-corp.com/patient.png",
  "requestedAttributes": [
    {
      "name": "age",
      "namespace": "org.iso.18013.5.1",
      "label": "Age",
      "type": "number",
      "description": "Age of the patient"
    },
    {
      "name": "isVerified",
      "namespace": "org.iso.18013.5.1",
      "label": "Verified Status",
      "type": "boolean",
      "description": "Indicates whether the user is verified"
    },
    {
      "name": "profileImage",
      "namespace": "org.iso.18013.5.1",
      "label": "Profile Image",
      "type": "image",
      "description": "Profile picture of the user"
    },
    {
      "name": "birthDate",
      "namespace": "org.iso.18013.5.1",
      "label": "Birth Date",
      "type": "date",
      "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)"
    },
    {
      "name": "address",
      "namespace": "org.iso.18013.5.1",
      "label": "Address",
      "type": "object",
      "description": "Structured address information",
      "attributes": [
        {
          "name": "street",
          "label": "Street",
          "type": "string"
        },
        {
          "name": "city",
          "label": "City",
          "type": "string"
        }
      ]
    }
  ],
  "restrictions": {
    "docType": "org.hospital.PatientRecord"
  }
}
```

**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": "43aa1b6d-37a0-46fd-a2c7-032b8b1f1836",
    "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
    "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
    "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
    "credentialTemplateId": "28fe39c6-5b6d-4549-ae06-3d62328c801c",
    "name": "patient-verification-template",
    "image": "https://acme-corp.com/patient.png",
    "version": "1.0.0",
    "description": "Verification template for validating patient identity and healthcare registration information.",
    "type": "mdoc",
    "requestedAttributes": [
      {
        "name": "age",
        "namespace": "org.iso.18013.5.1",
        "label": "Age",
        "type": "number",
        "description": "Age of the patient",
        "required": true
      },
      {
        "name": "isVerified",
        "namespace": "org.iso.18013.5.1",
        "label": "Verified Status",
        "type": "boolean",
        "description": "Indicates whether the user is verified",
        "required": true
      },
      {
        "name": "profileImage",
        "namespace": "org.iso.18013.5.1",
        "label": "Profile Image",
        "type": "image",
        "description": "Profile picture of the user",
        "required": true
      },
      {
        "name": "birthDate",
        "namespace": "org.iso.18013.5.1",
        "label": "Birth Date",
        "type": "date",
        "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
        "required": true
      },
      {
        "name": "address",
        "namespace": "org.iso.18013.5.1",
        "label": "Address",
        "type": "object",
        "description": "Structured address information",
        "required": true,
        "attributes": [
          {
            "name": "street",
            "label": "Street",
            "type": "string",
            "required": true
          },
          {
            "name": "city",
            "label": "City",
            "type": "string",
            "required": true
          }
        ]
      }
    ],
    "limit_disclosure": true,
    "docType": "org.example.UniversityDegree",
    "createdAt": "2026-05-18T03:55:55.470Z",
    "updatedAt": "2026-05-18T03:55:55.470Z"
  }
}
```

### 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": "ffabbe77-8667-406e-b4ec-8f5e5c28bdaf",
      "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
      "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
      "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
      "credentialTemplateId": "4a3e9374-3738-4922-981d-8ada221e0b47",
      "name": "Enterprise employee verification template",
      "image": "https://enterprise.example.com/assets/employee-verification.png",
      "version": "1.0.0",
      "description": "Verification template for confirming employee identity, address, and organizational information within an enterprise system.",
      "schemaTypeRestriction": "age_name",
      "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/bafkreiejh6hozztuwgqxmd2rwfcpnsucdbae5slhpwn735nh43n7qc3j64",
      "issuerDidRestriction": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
      "createdAt": "2026-05-18T03:39:39.201Z",
      "updatedAt": "2026-05-18T03:39:39.201Z"
    },
    {
      "verificationTemplateId": "7cf23b3f-0839-48e2-9791-c37f3330a489",
      "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
      "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "credentialTemplateId": "e6f6f78d-7f7e-4559-84a0-f0e7a1c198ce",
      "name": "Patient ID",
      "image": "https://acme-corp.com/patient.png",
      "version": "1.0.0",
      "description": "Digital patient identity verification template used by hospitals and healthcare providers.",
      "schemaTypeRestriction": "Patient_Record",
      "type": "sd-jwt",
      "requestedAttributes": [
        {
          "name": "age",
          "label": "Age",
          "type": "number",
          "description": "Age of the patient",
          "required": true
        },
        {
          "name": "isVerified",
          "label": "Verified Status",
          "type": "boolean",
          "description": "Indicates whether the user is verified",
          "required": true
        },
        {
          "name": "profileImage",
          "label": "Profile Image",
          "type": "image",
          "description": "Profile picture of the user",
          "required": true
        },
        {
          "name": "birthDate",
          "label": "Birth Date",
          "type": "date",
          "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
          "required": true
        },
        {
          "name": "address",
          "label": "Address",
          "type": "object",
          "description": "Structured address information",
          "required": true,
          "attributes": [
            {
              "name": "street",
              "label": "Street",
              "type": "string",
              "required": true
            },
            {
              "name": "city",
              "label": "City",
              "type": "string",
              "required": true
            }
          ]
        }
      ],
      "limit_disclosure": true,
      "issuerDidRestriction": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
      "createdAt": "2026-05-18T03:46:01.789Z",
      "updatedAt": "2026-05-18T03:46:01.789Z"
    },
    {
      "verificationTemplateId": "43aa1b6d-37a0-46fd-a2c7-032b8b1f1836",
      "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
      "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "credentialTemplateId": "28fe39c6-5b6d-4549-ae06-3d62328c801c",
      "name": "patient-verification-template",
      "image": "https://acme-corp.com/patient.png",
      "version": "1.0.0",
      "description": "Verification template for validating patient identity and healthcare registration information.",
      "type": "mdoc",
      "requestedAttributes": [
        {
          "name": "age",
          "namespace": "org.iso.18013.5.1",
          "label": "Age",
          "type": "number",
          "description": "Age of the patient",
          "required": true
        },
        {
          "name": "isVerified",
          "namespace": "org.iso.18013.5.1",
          "label": "Verified Status",
          "type": "boolean",
          "description": "Indicates whether the user is verified",
          "required": true
        },
        {
          "name": "profileImage",
          "namespace": "org.iso.18013.5.1",
          "label": "Profile Image",
          "type": "image",
          "description": "Profile picture of the user",
          "required": true
        },
        {
          "name": "birthDate",
          "namespace": "org.iso.18013.5.1",
          "label": "Birth Date",
          "type": "date",
          "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
          "required": true
        },
        {
          "name": "address",
          "namespace": "org.iso.18013.5.1",
          "label": "Address",
          "type": "object",
          "description": "Structured address information",
          "required": true,
          "attributes": [
            {
              "name": "street",
              "label": "Street",
              "type": "string",
              "required": true
            },
            {
              "name": "city",
              "label": "City",
              "type": "string",
              "required": true
            }
          ]
        }
      ],
      "limit_disclosure": true,
      "docType": "org.example.UniversityDegree",
      "createdAt": "2026-05-18T03:55:55.470Z",
      "updatedAt": "2026-05-18T03:55:55.470Z"
    }
  ]
}
```

### 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": "ffabbe77-8667-406e-b4ec-8f5e5c28bdaf",
      "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
      "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
      "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
      "credentialTemplateId": "4a3e9374-3738-4922-981d-8ada221e0b47",
      "name": "Enterprise employee verification template",
      "image": "https://enterprise.example.com/assets/employee-verification.png",
      "version": "1.0.0",
      "description": "Verification template for confirming employee identity, address, and organizational information within an enterprise system.",
      "schemaTypeRestriction": "age_name",
      "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/bafkreiejh6hozztuwgqxmd2rwfcpnsucdbae5slhpwn735nh43n7qc3j64",
      "issuerDidRestriction": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
      "createdAt": "2026-05-18T03:39:39.201Z",
      "updatedAt": "2026-05-18T03:39:39.201Z"
    },
    {
      "verificationTemplateId": "7cf23b3f-0839-48e2-9791-c37f3330a489",
      "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
      "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "credentialTemplateId": "e6f6f78d-7f7e-4559-84a0-f0e7a1c198ce",
      "name": "Patient ID",
      "image": "https://acme-corp.com/patient.png",
      "version": "1.0.0",
      "description": "Digital patient identity verification template used by hospitals and healthcare providers.",
      "schemaTypeRestriction": "Patient_Record",
      "type": "sd-jwt",
      "requestedAttributes": [
        {
          "name": "age",
          "label": "Age",
          "type": "number",
          "description": "Age of the patient",
          "required": true
        },
        {
          "name": "isVerified",
          "label": "Verified Status",
          "type": "boolean",
          "description": "Indicates whether the user is verified",
          "required": true
        },
        {
          "name": "profileImage",
          "label": "Profile Image",
          "type": "image",
          "description": "Profile picture of the user",
          "required": true
        },
        {
          "name": "birthDate",
          "label": "Birth Date",
          "type": "date",
          "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
          "required": true
        },
        {
          "name": "address",
          "label": "Address",
          "type": "object",
          "description": "Structured address information",
          "required": true,
          "attributes": [
            {
              "name": "street",
              "label": "Street",
              "type": "string",
              "required": true
            },
            {
              "name": "city",
              "label": "City",
              "type": "string",
              "required": true
            }
          ]
        }
      ],
      "limit_disclosure": true,
      "issuerDidRestriction": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
      "createdAt": "2026-05-18T03:46:01.789Z",
      "updatedAt": "2026-05-18T03:46:01.789Z"
    },
    {
      "verificationTemplateId": "43aa1b6d-37a0-46fd-a2c7-032b8b1f1836",
      "ecosystemId": "03998331-9426-41a1-99a7-09f9d1af68dc",
      "tenantId": "56b07f6e-d3c8-4738-8169-cec1a4c74a9a",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "credentialTemplateId": "28fe39c6-5b6d-4549-ae06-3d62328c801c",
      "name": "patient-verification-template",
      "image": "https://acme-corp.com/patient.png",
      "version": "1.0.0",
      "description": "Verification template for validating patient identity and healthcare registration information.",
      "type": "mdoc",
      "requestedAttributes": [
        {
          "name": "age",
          "namespace": "org.iso.18013.5.1",
          "label": "Age",
          "type": "number",
          "description": "Age of the patient",
          "required": true
        },
        {
          "name": "isVerified",
          "namespace": "org.iso.18013.5.1",
          "label": "Verified Status",
          "type": "boolean",
          "description": "Indicates whether the user is verified",
          "required": true
        },
        {
          "name": "profileImage",
          "namespace": "org.iso.18013.5.1",
          "label": "Profile Image",
          "type": "image",
          "description": "Profile picture of the user",
          "required": true
        },
        {
          "name": "birthDate",
          "namespace": "org.iso.18013.5.1",
          "label": "Birth Date",
          "type": "date",
          "description": "Date of birth in ISO 8601 format (YYYY-MM-DD)",
          "required": true
        },
        {
          "name": "address",
          "namespace": "org.iso.18013.5.1",
          "label": "Address",
          "type": "object",
          "description": "Structured address information",
          "required": true,
          "attributes": [
            {
              "name": "street",
              "label": "Street",
              "type": "string",
              "required": true
            },
            {
              "name": "city",
              "label": "City",
              "type": "string",
              "required": true
            }
          ]
        }
      ],
      "limit_disclosure": true,
      "docType": "org.example.UniversityDegree",
      "createdAt": "2026-05-18T03:55:55.470Z",
      "updatedAt": "2026-05-18T03:55:55.470Z"
    }
  ]
}
```

### 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`)

Request payload to permanently remove an existing verification template definition (the data you send to delete a verification rule set).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `verificationTemplateId` | string (uuid) | Yes | Unique identifier of the verification template targeted for deletion (the ID of the template you want to delete). |

```json
{
  "verificationTemplateId": "9636b597-cbe2-492a-bf92-87641729e6e4"
}
```

**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`)

Payload for modifying an existing verification template (the data you send to update a verification rule set).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `verificationTemplateId` | string (uuid) | Yes | Unique identifier of the verification template to update (the ID of the template you want to change). |
| `categoryId` | string (uuid) | No | Grouping category identifier for the template. |
| `name` | string | No | Updated display name for the verification template (the new human-readable name). |
| `description` | string | No | Updated description defining the verification criteria (the new explanation of why this verification is needed). |
| `image` | string (url) | No | Updated URL for the visual mapping thumbnail (the new image shown in the dashboard for this template). |
| `dataRetentionConsent` | boolean | No | Controls whether the verified presentation is stored after verification completes. When `true` (default), the verified presentation is retained. When `false`, the verified presentation is not stored and verified data is delivered via webhook instead. Setting this to `false` requires at least one webhook to be registered for the organization. |

`categoryId`: Grouping category identifier for the 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`: Updated URL for the visual mapping thumbnail (the new image shown in the dashboard for this template).

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

```json
{
  "verificationTemplateId": "419333f3-7f4f-419c-b8a5-0ff3941c95d5",
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "name": "name",
  "description": "description",
  "image": "https://hovi.id/image.png",
  "dataRetentionConsent": false
}
```

**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

Verification endpoints allow organizations to verify credentials (via the OpenID4VP protocol) against predefined Verification Templates.

### 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 a presentation and verification completes, Hovi sends an asynchronous openid-verification-session event to the verifier organization’s registered webhook URL:

- [Presentation Verified](#tag/webhook-events/webhook/post/open-id-presentation-verified)

**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`)

Create a proof request using exactly one of the following request forms.

**Single verification template**

- `verificationTemplateId` is required.
- `credentialQueries` and `credentialRequirement` are not allowed.
- Provide template transaction values through the root `transactionData` property.

**Multiple verification templates (`credentialQueries`)**

- `credentialQueries` is required and must contain between one and twenty queries with unique IDs.
- Root `verificationTemplateId` and root `transactionData` are not allowed.
- Provide transaction values inside each credential query.
- Omitting `credentialRequirement` requires all queries.
- With `credentialRequirement.mode: all`, all queries are required and `groups` is not allowed.
- With `credentialRequirement.mode: any`, any one query is accepted and `groups` is not allowed.
- With `credentialRequirement.mode: group`, `groups` is required and every group must be satisfied.

Credential queries are available only in OpenID ecosystems for `dc+sd-jwt` and `mso_mdoc`, including mixed formats.

Either form can include `verifierInfo` to send verifier attestations, such as a registration certificate, to the wallet, and `certificateId` to sign the request with a certificate other than the default.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `verificationTemplateId` | string (uuid) | No | Verification template to use for a single-template request. Cannot be combined with credentialQueries or credentialRequirement. |
| `credentialQueries` | array of object | No | One to twenty credential queries with unique IDs. OpenID only; supports dc+sd-jwt and mso_mdoc templates. Use templates from the current ecosystem that your API key can access. |
| `credentialQueries[].id` | string | Yes | Unique, case-sensitive identifier for this credential query within the request. |
| `credentialQueries[].verificationTemplateId` | string (uuid) | Yes | Verification template defining the requested claims and restrictions for this query. |
| `credentialQueries[].transactionData` | array of object | No | Required when the verification template defines transactions, and not allowed otherwise. Provide one entry for every configured transaction type. Omitted fields use the template defaults. Supported only for dc+sd-jwt. With credentialQueries, transaction-bearing queries must belong to an all requirement group; separate groups may use any. |
| `credentialQueries[].transactionData[].type` | string | Yes |  |
| `credentialRequirement` | object | No | Optional with credentialQueries. Omitting this object requires all queries. Use group to mix mandatory all and any groups. Alternative bundles and nested groups may be supported in a future release. |
| `credentialRequirement.mode` | string: `all`, `any`, `group` | Yes | all requires every query. any accepts one query. group requires every group to be satisfied by its own all or any rule. When this object is supplied, mode is required. |
| `credentialRequirement.groups` | array of object | No | Required only with mode: group. Every query must belong to exactly one group, and every group must be satisfied. |
| `credentialRequirement.groups[].mode` | string: `all`, `any` | Yes | all requires every query in the group; any accepts one. Queries in any groups cannot supply transaction data or reference templates that define it, including singleton groups. |
| `credentialRequirement.groups[].queryIds` | array of string | Yes | Existing case-sensitive credential query IDs. IDs cannot repeat within or across groups, and every query must be included. |
| `transactionData` | array of object | No | Required when the verification template defines transactions, and not allowed otherwise. Provide one entry for every configured transaction type. Omitted fields use the template defaults. Supported only for dc+sd-jwt. With credentialQueries, transaction-bearing queries must belong to an all requirement group; separate groups may use any. When using verificationTemplateId, provide transaction values here. With credentialQueries, provide transactionData inside each query item. |
| `transactionData[].type` | string | Yes |  |
| `verifierInfo` | array of object | No | Optional. Attestations about you as the verifier, for example a registration certificate, sent to the wallet with the request. The wallet decides how to use them, for example to show who is asking or to check that you may request the credentials. Each item applies to the whole request and contains only `format` and `data`. Available for both OpenID request forms when every requested credential is `dc+sd-jwt` or `mso_mdoc`; requests using other credential types are rejected. |
| `verifierInfo[].format` | string | Yes | Attestation format agreed with the wallet ecosystem, for example `registration_cert`. |
| `verifierInfo[].data` | one of: string, object | Yes | The attestation itself: a non-empty string, such as a signed JWT, or a JSON object. |
| `certificateId` | string (uuid) | No | Optional. ID of the organization certificate that signs this proof request, as returned by List Certificates or Import Certificate. The wallet sees this certificate as the verifier. When omitted, the default certificate of the organization signs the request. Selecting a certificate does not change the default. Must be a UUID, otherwise the request is rejected with 400. The certificate must belong to the organization and be within its validity dates, and the organization must also have a valid default certificate; otherwise the request is rejected with 400 `Failed to send proof request`. Available for both OpenID request forms. |
| `dcApiEnabled` | boolean | No | Enable Digital Credentials API mode. Requires non-empty dcApiExpectedOrigins. Available for both OpenID request forms. |
| `dcApiExpectedOrigins` | array of string (uri) | No | HTTPS origins allowed to deliver the DC API verification response. Required when dcApiEnabled is true. |

```json
{
  "credentialQueries": [
    {
      "id": "identity",
      "verificationTemplateId": "419333f3-7f4f-419c-b8a5-0ff3941c95d5"
    },
    {
      "id": "licence",
      "verificationTemplateId": "4a0c9778-8b74-4186-96ee-7b772d82ad0b"
    }
  ]
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "proofExchangeId": "0a6af7f2-02af-41f5-b97d-8e0195519836",
    "verificationUri": "openid4vp://?client_id=x509_hash%3AotyANgRukPoTeeXz6cmfeqictwQ4BZ0kUthhUfaUIlM&request_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vp%2F26895c8b-1d1c-40b7-b4ea-f8a1a4e516c0%2Fauthorization-requests%2F5f2bd1b7-da9b-4571-a0dc-7e2f7d17bcff",
    "state": "pending",
    "role": "verifier",
    "isVerified": false,
    "createdAt": "2026-05-18T04:03:45.526Z",
    "updatedAt": "2026-05-18T04:03:45.526Z",
    "verificationUrl": "https://studio-dev.hovi.id/verification?data=eyJ1cmkiOiJvcGVuaWQ0dnA6Ly8/Y2xpZW50X2lkPXg1MDlfaGFzaCUzQW90eUFOZ1J1a1BvVGVlWHo2Y21mZXFpY3R3UTRCWjBrVXRoaFVmYVVJbE0mcmVxdWVzdF91cmk9aHR0cHMlM0ElMkYlMkZjb3JlLWFnZW50LWRldi5ob3ZpLmlkJTJGYWdlbnQlMkZvaWQ0dnAlMkYyNjg5NWM4Yi0xZDFjLTQwYjctYjRlYS1mOGExYTRlNTE2YzAlMkZhdXRob3JpemF0aW9uLXJlcXVlc3RzJTJGNWYyYmQxYjctZGE5Yi00NTcxLWEwZGMtN2UyZjdkMTdiY2ZmIiwibmFtZSI6IkV1ZG8gT3JnIiwiaW1hZ2UiOiJodHRwczovL2hvdmlkZXZlbG9wbWVudC5ibG9iLmNvcmUud2luZG93cy5uZXQvc3R1ZGlvLWFzc2V0cy90ZW5hbnRzL2ltYWdlcy9ldWRvLW9yZy1pbWFnZS0xNzc5MDcxNDk3NTg5LnN2ZyUyQnhtbCIsImVjb3N5c3RlbUlkIjoiMDM5OTgzMzEtOTQyNi00MWExLTk5YTctMDlmOWQxYWY2OGRjIn0=",
    "authorizationRequestUri": "openid4vp://?client_id=x509_hash%3AotyANgRukPoTeeXz6cmfeqictwQ4BZ0kUthhUfaUIlM&request_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vp%2F26895c8b-1d1c-40b7-b4ea-f8a1a4e516c0%2Fauthorization-requests%2F5f2bd1b7-da9b-4571-a0dc-7e2f7d17bcff"
  }
}
```

### Verify DC API Verification Response

`POST /verification/verify-response`

This route is used to verify the DC API verification response returned by the wallet after the holder completes the verification flow. Submit the response payload along with the proof exchange ID and origin to validate the presentation server-side.

**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`)

Request payload to verify the DC API verification response for an active proof exchange. Submit the wallet response after the holder completes the verification flow, along with the proof exchange ID and origin, to validate the presentation server-side. **OpenID network only.**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `proofExchangeId` | string (uuid) | Yes | Identifier of the proof exchange session returned when the proof request was created (same as `proofExchangeId` from send proof request). |
| `origin` | string (uri) | Yes | HTTPS origin of the caller delivering the response (must start with `https://`); used to validate the DC API / browser context. |
| `verificationResponse` | object | Yes | Verification response payload from the wallet (format depends on the flow; typically a JWT string or serialized response object as produced by the holder client). |
| `verificationResponse.response` | string | No | Verification response payload from the wallet (format depends on the flow; typically a JWT string or serialized response object as produced by the holder client). |

```json
{
  "proofExchangeId": "2b8b84fe-a639-44b5-8360-a70b753c03ed",
  "origin": "https://wallet.example.com",
  "verificationResponse": {
    "response": "eyJraWQiOiJiY2U3OTVkYi03Nzg4LTQ4..."
  }
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "parsedPresentation": {
      "credentialFormat": "dc+sd-jwt",
      "claims": {
        "family_name": "Korhonen"
      }
    },
    "presentation": {
      "7f7a3176-69a0-40e9-994c-575a00f41e2e": [
        {
          "compact": "eyJ0eXAiOiJkYytzZC1qd3QiLCJhbGc...",
          "claimFormat": "dc+sd-jwt",
          "header": {
            "typ": "dc+sd-jwt",
            "alg": "ES256",
            "kid": "#zDnaemoK8Ui4BpvYCNBXDCtCM7UvUiDDup7oeNctxrJ2WS8fn"
          },
          "prettyClaims": {
            "vct": "urn:eudi:pid:1",
            "family_name": "Korhonen"
          }
        }
      ]
    },
    "presentationResult": {
      "can_be_satisfied": true,
      "credential_matches": {
        "7f7a3176-69a0-40e9-994c-575a00f41e2e": {
          "success": true,
          "credential_query_id": "7f7a3176-69a0-40e9-994c-575a00f41e2e",
          "valid_credentials": [
            {
              "success": true,
              "input_credential_index": 0,
              "claims": {
                "success": true,
                "valid_claim_sets": [
                  {
                    "success": true,
                    "output": {
                      "family_name": "Korhonen"
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    }
  }
}
```

### 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` | 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": [
    {
      "proofExchangeId": "0a6af7f2-02af-41f5-b97d-8e0195519836",
      "state": "pending",
      "role": "verifier",
      "isVerified": false,
      "hasTransactionData": true,
      "verificationUri": "openid4vp://?client_id=x509_hash%3AotyANgRukPoTeeXz6cmfeqictwQ4BZ0kUthhUfaUIlM&request_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vp%2F26895c8b-1d1c-40b7-b4ea-f8a1a4e516c0%2Fauthorization-requests%2F5f2bd1b7-da9b-4571-a0dc-7e2f7d17bcff",
      "message": "Presentation is sent to the verifier.",
      "createdAt": "2026-05-18T04:03:45.560Z",
      "updatedAt": "2026-05-18T04:03:45.560Z",
      "id": "0a6af7f2-02af-41f5-b97d-8e0195519836"
    }
  ]
}
```

### 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": {
    "proofExchangeId": "0a6af7f2-02af-41f5-b97d-8e0195519836",
    "state": "done",
    "role": "verifier",
    "isVerified": true,
    "verificationUri": "openid4vp://?client_id=x509_hash%3AotyANgRukPoTeeXz6cmfeqictwQ4BZ0kUthhUfaUIlM&request_uri=https%3A%2F%2Fcore-agent-dev.hovi.id%2Fagent%2Foid4vp%2F26895c8b-1d1c-40b7-b4ea-f8a1a4e516c0%2Fauthorization-requests%2F5f2bd1b7-da9b-4571-a0dc-7e2f7d17bcff",
    "message": "Presentation has been verified successfully.",
    "createdAt": "2026-05-18T04:03:45.560Z",
    "updatedAt": "2026-05-18T04:10:10.294Z",
    "id": "0a6af7f2-02af-41f5-b97d-8e0195519836",
    "hasTransactionData": true,
    "transactionData": [
      {
        "index": 0,
        "type": "payment",
        "credentialId": "cc255d0a-26cb-485e-a408-cc13c6a996c6",
        "data": {
          "payment_data": {
            "payee": "Merchant Ltd",
            "currency": "EUR",
            "amount": 23.58
          }
        },
        "hash": "fOBUSQvo46yQO-wRwXBcGqvnbKIueISEL961_Sjd4do",
        "hashAlg": "sha-256"
      }
    ],
    "presentation": {
      "query": {
        "credentials": [
          {
            "id": "cc255d0a-26cb-485e-a408-cc13c6a996c6",
            "require_cryptographic_holder_binding": true,
            "multiple": false,
            "format": "mso_mdoc",
            "claims": [
              {
                "intent_to_retain": false,
                "path": [
                  "org.iso.18013.5.1",
                  "age"
                ]
              },
              {
                "intent_to_retain": false,
                "path": [
                  "org.iso.18013.5.1",
                  "isVerified"
                ]
              },
              {
                "intent_to_retain": false,
                "path": [
                  "org.iso.18013.5.1",
                  "profileImage"
                ]
              },
              {
                "intent_to_retain": false,
                "path": [
                  "org.iso.18013.5.1",
                  "birthDate"
                ]
              },
              {
                "intent_to_retain": false,
                "path": [
                  "org.iso.18013.5.1",
                  "address"
                ]
              },
              {
                "intent_to_retain": false,
                "path": [
                  "org.iso.18013.5.1",
                  "address"
                ]
              },
              {
                "intent_to_retain": false,
                "path": [
                  "org.iso.18013.5.1",
                  "address"
                ]
              }
            ],
            "meta": {
              "doctype_value": "org.example.UniversityDegree"
            }
          }
        ],
        "credential_sets": [
          {
            "options": [
              [
                "cc255d0a-26cb-485e-a408-cc13c6a996c6"
              ]
            ],
            "required": true
          }
        ]
      },
      "presentations": {
        "cc255d0a-26cb-485e-a408-cc13c6a996c6": [
          {
            "base64Url": "uQADZ3ZlcnNpb25jMS4waWRvY3VtZW50c4GjZ2RvY1R5cGV4HG9yZy5leGFtcGxlLlVuaXZlcnNpdHlEZWdyZWVsaXNzdWVyU2lnbmVkuQACam5hbWVTcGFjZXOhcFVuaXZlcnNpdHlEZWdyZWWF2BhYWaRoZGlnZXN0SUQAcWVsZW1lbnRJZGVudGlmaWVyY2FnZWxlbGVtZW50VmFsdWUYI2ZyYW5kb21YIHWjb-XkYInj1lec5S1Ow58ope8VY_sB4XsTyCjaHMsE2BhYX6RoZGlnZXN0SUQBcWVsZW1lbnRJZGVudGlmaWVyamlzVmVyaWZpZWRsZWxlbWVudFZhbHVl9GZyYW5kb21YIGI2YTbTinLAKfW5y_YIwP6KoB55AbXaqDzQejPSrzg52BhY1KRoZGlnZXN0SUQCcWVsZW1lbnRJZGVudGlmaWVybHByb2ZpbGVJbWFnZWxlbGVtZW50VmFsdWV4cmRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBQUVBQUFBQkNBUUFBQUMxSEF3Q0FBQUFDMGxFUVZSNDJtUDgveDhBQXdNQ0FPN1prOXNBQUFBQVNVVk9SSzVDWUlJPWZyYW5kb21YIKZDPQ085pyafvkbqsbLhRTOmL7g3SUjgxRz5Gs6c6D62BhYaKRoZGlnZXN0SUQDcWVsZW1lbnRJZGVudGlmaWVyaWJpcnRoRGF0ZWxlbGVtZW50VmFsdWVqMTk4OS0xMS0yMGZyYW5kb21YIHfNE_5l5kuaxCSo3qJjykd9l-6R6O-hRWpB28pU0xmL2BhYjKRoZGlnZXN0SUQEcWVsZW1lbnRJZGVudGlmaWVyZ2FkZHJlc3NsZWxlbWVudFZhbHVluQACZnN0cmVldHU3NDIgRXZlcmdyZWVuIFRlcnJhY2VkY2l0eWtTcHJpbmdmaWVsZGZyYW5kb21YIK9EsFZcsgNbRboiRURZ7clTwGVXSqzMLXH8ar91hgI_amlzc3VlckF1dGiEQ6EBJqIEWCQ0YWVkZmVlMy1jYTA3LTQzY2UtYjA0Yi03OTNmZmQ0ZjZjYzMYIVkBrDCCAagwggFOoAMCAQICEAmfK1-pxJsEIetzdWFkeAswCgYIKoZIzj0EAwIwMjEQMA4GA1UEAxMHSG92aSBJRDELMAkGA1UEBhMCRkkxETAPBgNVBAgTCEhlbHNpbmtpMB4XDTI2MDUxODAyMzEzOVoXDTM2MDUxODAyMzEzOVowMjEQMA4GA1UEAxMHSG92aSBJRDELMAkGA1UEBhMCRkkxETAPBgNVBAgTCEhlbHNpbmtpMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEtpGKGMR0KkI1yI7jPAPHb9h7SpGHm0i3hPk_oDOhax_0PNEA2a_GjYYKp97NnrN_lzD7GZkzuDJ_x7zDXv2dpqNGMEQwCwYDVR0PBAQDAgeAMBIGA1UdJQQLMAkGByiBjF0FAQIwIQYDVR0RBBowGIIWY29yZS1hZ2VudC1kZXYuaG92aS5pZDAKBggqhkjOPQQDAgNIADBFAiEA1MrEifn9bo7aiWpbrrjP9NnDg9TtCYsc32W-Adg301oCIBJ9OA65WsVa6pQKZtBTPVsrE0nRverOW5YphsDziyv-WQIc2BhZAhe5AAZndmVyc2lvbmMxLjBvZGlnZXN0QWxnb3JpdGhtZ1NIQS0yNTZsdmFsdWVEaWdlc3RzoXBVbml2ZXJzaXR5RGVncmVlpQBYIF2Tug_qi3CPICdTV7Z62jVGXkl5ORd_LZm249xppbtpAVgg4sJZR1xF52-FDmTk4rxoOFxbK0U91grpgc4H5GpuwTQCWCAInKYUDTk3lZm42pvRencCONMG-XZpU9AHWjc5m2DVxANYIGTjl22fCgTC8PwMGwZVmsRvi2EmZM0NfDJPkRMxlKnBBFggrl14vo-Ei9AKpRd_Wo-yIWXPvQW5Xeo88FUBqEfm7HltZGV2aWNlS2V5SW5mb7kAAWlkZXZpY2VLZXmlAQICeCQyZWU3Y2YxZi04YmM5LTQyMWMtYTA4Mi05NTUyMTNmODUyMWUgASFYIBiBS7wmpDuRxxM9M691WjAfopc52C7mTBUDzhrIf4okIlggEIsZvKIYmxZAmZqr0S0fXeQmcIAmCAgdbCrLlyCuE9FnZG9jVHlwZXgcb3JnLmV4YW1wbGUuVW5pdmVyc2l0eURlZ3JlZWx2YWxpZGl0eUluZm-5AANmc2lnbmVkwHQyMDI2LTA1LTE4VDA0OjA5OjQxWml2YWxpZEZyb23AdDIwMjYtMDUtMThUMDQ6MDk6NDFaanZhbGlkVW50aWzAdDIwMjctMDUtMThUMDQ6MDk6NDFaWED8kbcEUd-d9WsEwszW5MUdHyX19up-e4_UhJbfGGeSUKgiieW0xTsYCbCNm3NpvkyGeO6xXTuJbWnBrgwIw3EgbGRldmljZVNpZ25lZLkAAmpuYW1lU3BhY2Vz2BhBoGpkZXZpY2VBdXRouQABb2RldmljZVNpZ25hdHVyZYRDoQEmoQRYJDJlZTdjZjFmLThiYzktNDIxYy1hMDgyLTk1NTIxM2Y4NTIxZfZYQOwSe2rgbnNMOXIp1RcMkdcuFVreyG5XBHg1kJFXoiH27CiZOaxpEeiDYVQLPOeNOwCbxI4FMuATGb4rVxJC_mxmc3RhdHVzAA",
            "documents": [
              {
                "issuerSignedDocument": {
                  "docType": "org.example.UniversityDegree",
                  "issuerSigned": {
                    "nameSpaces": {},
                    "issuerAuth": {
                      "unprotectedHeaders": {},
                      "protectedHeaders": {},
                      "_signature": {
                        "type": "Buffer",
                        "data": [
                          252,
                          145,
                          183,
                          4,
                          81,
                          223,
                          157,
                          245,
                          107,
                          4,
                          194,
                          204,
                          214,
                          228,
                          197,
                          29,
                          31,
                          37,
                          245,
                          246,
                          234,
                          126,
                          123,
                          143,
                          212,
                          132,
                          150,
                          223,
                          24,
                          103,
                          146,
                          80,
                          168,
                          34,
                          137,
                          229,
                          180,
                          197,
                          59,
                          24,
                          9,
                          176,
                          141,
                          155,
                          115,
                          105,
                          190,
                          76,
                          134,
                          120,
                          238,
                          177,
                          93,
                          59,
                          137,
                          109,
                          105,
                          193,
                          174,
                          12,
                          8,
                          195,
                          113,
                          32
                        ]
                      },
                      "payload": {
                        "type": "Buffer",
                        "data": [
                          216,
                          24,
                          89,
                          2,
                          23,
                          185,
                          0,
                          6,
                          103,
                          118,
                          101,
                          114,
                          115,
                          105,
                          111,
                          110,
                          99,
                          49,
                          46,
                          48,
                          111,
                          100,
                          105,
                          103,
                          101,
                          115,
                          116,
                          65,
                          108,
                          103,
                          111,
                          114,
                          105,
                          116,
                          104,
                          109,
                          103,
                          83,
                          72,
                          65,
                          45,
                          50,
                          53,
                          54,
                          108,
                          118,
                          97,
                          108,
                          117,
                          101,
                          68,
                          105,
                          103,
                          101,
                          115,
                          116,
                          115,
                          161,
                          112,
                          85,
                          110,
                          105,
                          118,
                          101,
                          114,
                          115,
                          105,
                          116,
                          121,
                          68,
                          101,
                          103,
                          114,
                          101,
                          101,
                          165,
                          0,
                          88,
                          32,
                          93,
                          147,
                          186,
                          15,
                          234,
                          139,
                          112,
                          143,
                          32,
                          39,
                          83,
                          87,
                          182,
                          122,
                          218,
                          53,
                          70,
                          94,
                          73,
                          121,
                          57,
                          23,
                          127,
                          45,
                          153,
                          182,
                          227,
                          220,
                          105,
                          165,
                          187,
                          105,
                          1,
                          88,
                          32,
                          226,
                          194,
                          89,
                          71,
                          92,
                          69,
                          231,
                          111,
                          133,
                          14,
                          100,
                          228,
                          226,
                          188,
                          104,
                          56,
                          92,
                          91,
                          43,
                          69,
                          61,
                          214,
                          10,
                          233,
                          129,
                          206,
                          7,
                          228,
                          106,
                          110,
                          193,
                          52,
                          2,
                          88,
                          32,
                          8,
                          156,
                          166,
                          20,
                          13,
                          57,
                          55,
                          149,
                          153,
                          184,
                          218,
                          155,
                          209,
                          122,
                          119,
                          2,
                          56,
                          211,
                          6,
                          249,
                          118,
                          105,
                          83,
                          208,
                          7,
                          90,
                          55,
                          57,
                          155,
                          96,
                          213,
                          196,
                          3,
                          88,
                          32,
                          100,
                          227,
                          151,
                          109,
                          159,
                          10,
                          4,
                          194,
                          240,
                          252,
                          12,
                          27,
                          6,
                          85,
                          154,
                          196,
                          111,
                          139,
                          97,
                          38,
                          100,
                          205,
                          13,
                          124,
                          50,
                          79,
                          145,
                          19,
                          49,
                          148,
                          169,
                          193,
                          4,
                          88,
                          32,
                          174,
                          93,
                          120,
                          190,
                          143,
                          132,
                          139,
                          208,
                          10,
                          165,
                          23,
                          127,
                          90,
                          143,
                          178,
                          33,
                          101,
                          207,
                          189,
                          5,
                          185,
                          93,
                          234,
                          60,
                          240,
                          85,
                          1,
                          168,
                          71,
                          230,
                          236,
                          121,
                          109,
                          100,
                          101,
                          118,
                          105,
                          99,
                          101,
                          75,
                          101,
                          121,
                          73,
                          110,
                          102,
                          111,
                          185,
                          0,
                          1,
                          105,
                          100,
                          101,
                          118,
                          105,
                          99,
                          101,
                          75,
                          101,
                          121,
                          165,
                          1,
                          2,
                          2,
                          120,
                          36,
                          50,
                          101,
                          101,
                          55,
                          99,
                          102,
                          49,
                          102,
                          45,
                          56,
                          98,
                          99,
                          57,
                          45,
                          52,
                          50,
                          49,
                          99,
                          45,
                          97,
                          48,
                          56,
                          50,
                          45,
                          57,
                          53,
                          53,
                          50,
                          49,
                          51,
                          102,
                          56,
                          53,
                          50,
                          49,
                          101,
                          32,
                          1,
                          33,
                          88,
                          32,
                          24,
                          129,
                          75,
                          188,
                          38,
                          164,
                          59,
                          145,
                          199,
                          19,
                          61,
                          51,
                          175,
                          117,
                          90,
                          48,
                          31,
                          162,
                          151,
                          57,
                          216,
                          46,
                          230,
                          76,
                          21,
                          3,
                          206,
                          26,
                          200,
                          127,
                          138,
                          36,
                          34,
                          88,
                          32,
                          16,
                          139,
                          25,
                          188,
                          162,
                          24,
                          155,
                          22,
                          64,
                          153,
                          154,
                          171,
                          209,
                          45,
                          31,
                          93,
                          228,
                          38,
                          112,
                          128,
                          38,
                          8,
                          8,
                          29,
                          108,
                          42,
                          203,
                          151,
                          32,
                          174,
                          19,
                          209,
                          103,
                          100,
                          111,
                          99,
                          84,
                          121,
                          112,
                          101,
                          120,
                          28,
                          111,
                          114,
                          103,
                          46,
                          101,
                          120,
                          97,
                          109,
                          112,
                          108,
                          101,
                          46,
                          85,
                          110,
                          105,
                          118,
                          101,
                          114,
                          115,
                          105,
                          116,
                          121,
                          68,
                          101,
                          103,
                          114,
                          101,
                          101,
                          108,
                          118,
                          97,
                          108,
                          105,
                          100,
                          105,
                          116,
                          121,
                          73,
                          110,
                          102,
                          111,
                          185,
                          0,
                          3,
                          102,
                          115,
                          105,
                          103,
                          110,
                          101,
                          100,
                          192,
                          116,
                          50,
                          48,
                          50,
                          54,
                          45,
                          48,
                          53,
                          45,
                          49,
                          56,
                          84,
                          48,
                          52,
                          58,
                          48,
                          57,
                          58,
                          52,
                          49,
                          90,
                          105,
                          118,
                          97,
                          108,
                          105,
                          100,
                          70,
                          114,
                          111,
                          109,
                          192,
                          116,
                          50,
                          48,
                          50,
                          54,
                          45,
                          48,
                          53,
                          45,
                          49,
                          56,
                          84,
                          48,
                          52,
                          58,
                          48,
                          57,
                          58,
                          52,
                          49,
                          90,
                          106,
                          118,
                          97,
                          108,
                          105,
                          100,
                          85,
                          110,
                          116,
                          105,
                          108,
                          192,
                          116,
                          50,
                          48,
                          50,
                          55,
                          45,
                          48,
                          53,
                          45,
                          49,
                          56,
                          84,
                          48,
                          52,
                          58,
                          48,
                          57,
                          58,
                          52,
                          49,
                          90
                        ]
                      }
                    }
                  },
                  "deviceSigned": {
                    "nameSpaces": {},
                    "deviceAuth": {
                      "deviceSignature": {
                        "unprotectedHeaders": {},
                        "protectedHeaders": {},
                        "_signature": {
                          "type": "Buffer",
                          "data": [
                            236,
                            18,
                            123,
                            106,
                            224,
                            110,
                            115,
                            76,
                            57,
                            114,
                            41,
                            213,
                            23,
                            12,
                            145,
                            215,
                            46,
                            21,
                            90,
                            222,
                            200,
                            110,
                            87,
                            4,
                            120,
                            53,
                            144,
                            145,
                            87,
                            162,
                            33,
                            246,
                            236,
                            40,
                            153,
                            57,
                            172,
                            105,
                            17,
                            232,
                            131,
                            97,
                            84,
                            11,
                            60,
                            231,
                            141,
                            59,
                            0,
                            155,
                            196,
                            142,
                            5,
                            50,
                            224,
                            19,
                            25,
                            190,
                            43,
                            87,
                            18,
                            66,
                            254,
                            108
                          ]
                        },
                        "payload": null
                      }
                    }
                  }
                },
                "base64Url": "uQACam5hbWVTcGFjZXOhcFVuaXZlcnNpdHlEZWdyZWWF2BhYWaRoZGlnZXN0SUQAcWVsZW1lbnRJZGVudGlmaWVyY2FnZWxlbGVtZW50VmFsdWUYI2ZyYW5kb21YIHWjb-XkYInj1lec5S1Ow58ope8VY_sB4XsTyCjaHMsE2BhYX6RoZGlnZXN0SUQBcWVsZW1lbnRJZGVudGlmaWVyamlzVmVyaWZpZWRsZWxlbWVudFZhbHVl9GZyYW5kb21YIGI2YTbTinLAKfW5y_YIwP6KoB55AbXaqDzQejPSrzg52BhY1KRoZGlnZXN0SUQCcWVsZW1lbnRJZGVudGlmaWVybHByb2ZpbGVJbWFnZWxlbGVtZW50VmFsdWV4cmRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBQUVBQUFBQkNBUUFBQUMxSEF3Q0FBQUFDMGxFUVZSNDJtUDgveDhBQXdNQ0FPN1prOXNBQUFBQVNVVk9SSzVDWUlJPWZyYW5kb21YIKZDPQ085pyafvkbqsbLhRTOmL7g3SUjgxRz5Gs6c6D62BhYaKRoZGlnZXN0SUQDcWVsZW1lbnRJZGVudGlmaWVyaWJpcnRoRGF0ZWxlbGVtZW50VmFsdWVqMTk4OS0xMS0yMGZyYW5kb21YIHfNE_5l5kuaxCSo3qJjykd9l-6R6O-hRWpB28pU0xmL2BhYjKRoZGlnZXN0SUQEcWVsZW1lbnRJZGVudGlmaWVyZ2FkZHJlc3NsZWxlbWVudFZhbHVluQACZnN0cmVldHU3NDIgRXZlcmdyZWVuIFRlcnJhY2VkY2l0eWtTcHJpbmdmaWVsZGZyYW5kb21YIK9EsFZcsgNbRboiRURZ7clTwGVXSqzMLXH8ar91hgI_amlzc3VlckF1dGiEQ6EBJqIEWCQ0YWVkZmVlMy1jYTA3LTQzY2UtYjA0Yi03OTNmZmQ0ZjZjYzMYIVkBrDCCAagwggFOoAMCAQICEAmfK1-pxJsEIetzdWFkeAswCgYIKoZIzj0EAwIwMjEQMA4GA1UEAxMHSG92aSBJRDELMAkGA1UEBhMCRkkxETAPBgNVBAgTCEhlbHNpbmtpMB4XDTI2MDUxODAyMzEzOVoXDTM2MDUxODAyMzEzOVowMjEQMA4GA1UEAxMHSG92aSBJRDELMAkGA1UEBhMCRkkxETAPBgNVBAgTCEhlbHNpbmtpMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEtpGKGMR0KkI1yI7jPAPHb9h7SpGHm0i3hPk_oDOhax_0PNEA2a_GjYYKp97NnrN_lzD7GZkzuDJ_x7zDXv2dpqNGMEQwCwYDVR0PBAQDAgeAMBIGA1UdJQQLMAkGByiBjF0FAQIwIQYDVR0RBBowGIIWY29yZS1hZ2VudC1kZXYuaG92aS5pZDAKBggqhkjOPQQDAgNIADBFAiEA1MrEifn9bo7aiWpbrrjP9NnDg9TtCYsc32W-Adg301oCIBJ9OA65WsVa6pQKZtBTPVsrE0nRverOW5YphsDziyv-WQIc2BhZAhe5AAZndmVyc2lvbmMxLjBvZGlnZXN0QWxnb3JpdGhtZ1NIQS0yNTZsdmFsdWVEaWdlc3RzoXBVbml2ZXJzaXR5RGVncmVlpQBYIF2Tug_qi3CPICdTV7Z62jVGXkl5ORd_LZm249xppbtpAVgg4sJZR1xF52-FDmTk4rxoOFxbK0U91grpgc4H5GpuwTQCWCAInKYUDTk3lZm42pvRencCONMG-XZpU9AHWjc5m2DVxANYIGTjl22fCgTC8PwMGwZVmsRvi2EmZM0NfDJPkRMxlKnBBFggrl14vo-Ei9AKpRd_Wo-yIWXPvQW5Xeo88FUBqEfm7HltZGV2aWNlS2V5SW5mb7kAAWlkZXZpY2VLZXmlAQICeCQyZWU3Y2YxZi04YmM5LTQyMWMtYTA4Mi05NTUyMTNmODUyMWUgASFYIBiBS7wmpDuRxxM9M691WjAfopc52C7mTBUDzhrIf4okIlggEIsZvKIYmxZAmZqr0S0fXeQmcIAmCAgdbCrLlyCuE9FnZG9jVHlwZXgcb3JnLmV4YW1wbGUuVW5pdmVyc2l0eURlZ3JlZWx2YWxpZGl0eUluZm-5AANmc2lnbmVkwHQyMDI2LTA1LTE4VDA0OjA5OjQxWml2YWxpZEZyb23AdDIwMjYtMDUtMThUMDQ6MDk6NDFaanZhbGlkVW50aWzAdDIwMjctMDUtMThUMDQ6MDk6NDFaWED8kbcEUd-d9WsEwszW5MUdHyX19up-e4_UhJbfGGeSUKgiieW0xTsYCbCNm3NpvkyGeO6xXTuJbWnBrgwIw3Eg"
              }
            ]
          }
        ]
      },
      "presentationResult": {
        "can_be_satisfied": true,
        "credential_sets": [
          {
            "options": [
              [
                "cc255d0a-26cb-485e-a408-cc13c6a996c6"
              ]
            ],
            "required": true,
            "matching_options": [
              [
                "cc255d0a-26cb-485e-a408-cc13c6a996c6"
              ]
            ]
          }
        ],
        "credential_matches": {
          "cc255d0a-26cb-485e-a408-cc13c6a996c6": {
            "success": true,
            "credential_query_id": "cc255d0a-26cb-485e-a408-cc13c6a996c6",
            "valid_credentials": [
              {
                "success": true,
                "input_credential_index": 0,
                "trusted_authorities": {
                  "success": true
                },
                "meta": {
                  "success": true,
                  "output": {
                    "credential_format": "mso_mdoc",
                    "doctype": "org.example.UniversityDegree",
                    "cryptographic_holder_binding": true
                  }
                },
                "claims": {
                  "success": true,
                  "valid_claim_sets": [
                    {
                      "success": true,
                      "output": {
                        "org.iso.18013.5.1": {
                          "age": 35,
                          "isVerified": false,
                          "profileImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO7Zk9sAAAAASUVORK5CYII=",
                          "birthDate": "1989-11-20",
                          "address": {}
                        }
                      },
                      "valid_claim_indexes": [
                        0,
                        1,
                        2,
                        3,
                        4,
                        5,
                        6
                      ]
                    }
                  ],
                  "valid_claims": [
                    {
                      "success": true,
                      "claim_index": 0,
                      "output": {
                        "org.iso.18013.5.1": {
                          "age": 35
                        }
                      }
                    },
                    {
                      "success": true,
                      "claim_index": 1,
                      "output": {
                        "org.iso.18013.5.1": {
                          "isVerified": false
                        }
                      }
                    },
                    {
                      "success": true,
                      "claim_index": 2,
                      "output": {
                        "UniversityDegree": {
                          "profileImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO7Zk9sAAAAASUVORK5CYII="
                        }
                      }
                    },
                    {
                      "success": true,
                      "claim_index": 3,
                      "output": {
                        "org.iso.18013.5.1": {
                          "birthDate": "1989-11-20"
                        }
                      }
                    },
                    {
                      "success": true,
                      "claim_index": 4,
                      "output": {
                        "org.iso.18013.5.1": {
                          "address": {}
                        }
                      }
                    },
                    {
                      "success": true,
                      "claim_index": 5,
                      "output": {
                        "org.iso.18013.5.1": {
                          "address": {}
                        }
                      }
                    },
                    {
                      "success": true,
                      "claim_index": 6,
                      "output": {
                        "org.iso.18013.5.1": {
                          "address": {}
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      }
    },
    "verificationUrl": "https://studio-dev.hovi.id/verification?data=eyJ1cmkiOiJvcGVuaWQ0dnA6Ly8/Y2xpZW50X2lkPXg1MDlfaGFzaCUzQW90eUFOZ1J1a1BvVGVlWHo2Y21mZXFpY3R3UTRCWjBrVXRoaFVmYVVJbE0mcmVxdWVzdF91cmk9aHR0cHMlM0ElMkYlMkZjb3JlLWFnZW50LWRldi5ob3ZpLmlkJTJGYWdlbnQlMkZvaWQ0dnAlMkYyNjg5NWM4Yi0xZDFjLTQwYjctYjRlYS1mOGExYTRlNTE2YzAlMkZhdXRob3JpemF0aW9uLXJlcXVlc3RzJTJGNWYyYmQxYjctZGE5Yi00NTcxLWEwZGMtN2UyZjdkMTdiY2ZmIiwibmFtZSI6IkV1ZG8gT3JnIiwiaW1hZ2UiOiJodHRwczovL2hvdmlkZXZlbG9wbWVudC5ibG9iLmNvcmUud2luZG93cy5uZXQvc3R1ZGlvLWFzc2V0cy90ZW5hbnRzL2ltYWdlcy9ldWRvLW9yZy1pbWFnZS0xNzc5MDcxNDk3NTg5LnN2ZyUyQnhtbCIsImVjb3N5c3RlbUlkIjoiMDM5OTgzMzEtOTQyNi00MWExLTk5YTctMDlmOWQxYWY2OGRjIn0="
  }
}
```

## Organizational Wallet

Organizational Wallet endpoints enable organizations to accept credential offers (via OID4VCI), and submit OpenID4VP proof presentations.

### 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": "050b7ed8-c107-42c3-9040-715cdbaa6bf2",
      "createdAt": "2026-05-18T03:24:12.443Z",
      "updatedAt": "2026-05-18T03:24:12.443Z",
      "communicationProtocol": "openid",
      "credentialType": "dc+sd-jwt",
      "issuer": "did:key:zDnaecidxomEyMrKHoN223nyAoAEczjGnF4awcadhmcNa7DVx",
      "type": "Patient_Record",
      "attributes": {
        "status": {
          "status_list": {
            "uri": "https://dev-token-status-list.koyeb.app/statuslist/56b07f6e-d3c8-4738-8169-cec1a4c74a9a/31f9ee62-5e9e-4299-9c7b-fca7c78a3e0f",
            "idx": 0
          }
        },
        "age": 28,
        "isVerified": true,
        "profileImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO7Zk9sAAAAASUVORK5CYII=",
        "birthDate": "1996-05-12",
        "address": {
          "street": "221B Baker Street",
          "city": "London"
        }
      },
      "metadata": {
        "issuer": {
          "endpoint": "https://core-agent-dev.hovi.id/agent/oid4vci/6e2816ee-fd0f-4323-a9b3-e30daaadfa52",
          "name": "eudoorg",
          "logo": {
            "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/eudo-org-image-1779071497589.svg%2Bxml",
            "alt": "Eudo Org"
          }
        },
        "credential": {
          "name": "University Degree Record",
          "description": "Official proof of university graduation and degree attainment.",
          "textColor": "#ffffff",
          "backgroundImage": {
            "url": "https://acme-corp.com/logo.png",
            "alt": "University seal watermark background"
          },
          "logo": {
            "url": "https://hovi.id/assets/university-logo.png",
            "alt": "University official crest"
          }
        },
        "claims": {
          "age": {
            "path": [
              "age"
            ],
            "mandatory": true,
            "labels": {
              "default": "Age"
            },
            "originalDisplay": [
              {
                "name": "Age"
              }
            ],
            "originalClaim": {
              "path": [
                "age"
              ],
              "display": [
                {
                  "name": "Age"
                }
              ],
              "mandatory": true
            }
          },
          "isVerified": {
            "path": [
              "isVerified"
            ],
            "mandatory": true,
            "labels": {
              "default": "Verified Status"
            },
            "originalDisplay": [
              {
                "name": "Verified Status"
              }
            ],
            "originalClaim": {
              "path": [
                "isVerified"
              ],
              "display": [
                {
                  "name": "Verified Status"
                }
              ],
              "mandatory": true
            }
          },
          "profileImage": {
            "path": [
              "profileImage"
            ],
            "mandatory": true,
            "labels": {
              "default": "Profile Image"
            },
            "originalDisplay": [
              {
                "name": "Profile Image"
              }
            ],
            "originalClaim": {
              "path": [
                "profileImage"
              ],
              "display": [
                {
                  "name": "Profile Image"
                }
              ],
              "mandatory": true
            }
          },
          "birthDate": {
            "path": [
              "birthDate"
            ],
            "mandatory": true,
            "labels": {
              "default": "Birth Date"
            },
            "originalDisplay": [
              {
                "name": "Birth Date"
              }
            ],
            "originalClaim": {
              "path": [
                "birthDate"
              ],
              "display": [
                {
                  "name": "Birth Date"
                }
              ],
              "mandatory": true
            }
          },
          "address": {
            "path": [
              "address"
            ],
            "mandatory": true,
            "labels": {
              "default": "Address"
            },
            "originalDisplay": [
              {
                "name": "Address"
              }
            ],
            "originalClaim": {
              "path": [
                "address"
              ],
              "display": [
                {
                  "name": "Address"
                }
              ],
              "mandatory": true
            }
          },
          "address.street": {
            "path": [
              "address",
              "street"
            ],
            "mandatory": true,
            "labels": {
              "default": "Street"
            },
            "originalDisplay": [
              {
                "name": "Street"
              }
            ],
            "originalClaim": {
              "path": [
                "address",
                "street"
              ],
              "display": [
                {
                  "name": "Street"
                }
              ],
              "mandatory": true
            }
          },
          "address.city": {
            "path": [
              "address",
              "city"
            ],
            "mandatory": true,
            "labels": {
              "default": "City"
            },
            "originalDisplay": [
              {
                "name": "City"
              }
            ],
            "originalClaim": {
              "path": [
                "address",
                "city"
              ],
              "display": [
                {
                  "name": "City"
                }
              ],
              "mandatory": true
            }
          }
        }
      }
    },
    {
      "id": "9bc4c4db-1f05-47d2-892a-3471862f1e01",
      "createdAt": "2026-05-18T04:09:41.951Z",
      "updatedAt": "2026-05-18T04:09:41.951Z",
      "communicationProtocol": "openid",
      "credentialType": "mso_mdoc",
      "name": "org.example.UniversityDegree",
      "type": "org.example.UniversityDegree",
      "attributes": {
        "org.iso.18013.5.1": {
          "age": 35,
          "isVerified": false,
          "profileImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO7Zk9sAAAAASUVORK5CYII=",
          "birthDate": "1989-11-20",
          "address": {
            "street": "742 Evergreen Terrace",
            "city": "Springfield"
          }
        }
      },
      "issuanceDate": "2026-05-18T04:09:41.000Z",
      "expirationDate": "2027-05-18T04:09:41.000Z",
      "issuer": "-----BEGIN CERTIFICATE-----\nMIIBqDCCAU6gAwIBAgIQCZ8rX6nEmwQh63N1YWR4CzAKBggqhkjOPQQDAjAyMRAw\nDgYDVQQDEwdIb3ZpIElEMQswCQYDVQQGEwJGSTERMA8GA1UECBMISGVsc2lua2kw\nHhcNMjYwNTE4MDIzMTM5WhcNMzYwNTE4MDIzMTM5WjAyMRAwDgYDVQQDEwdIb3Zp\nIElEMQswCQYDVQQGEwJGSTERMA8GA1UECBMISGVsc2lua2kwWTATBgcqhkjOPQIB\nBggqhkjOPQMBBwNCAAS2kYoYxHQqQjXIjuM8A8dv2HtKkYebSLeE+T+gM6FrH/Q8\n0QDZr8aNhgqn3s2es3+XMPsZmTO4Mn/HvMNe/Z2mo0YwRDALBgNVHQ8EBAMCB4Aw\nEgYDVR0lBAswCQYHKIGMXQUBAjAhBgNVHREEGjAYghZjb3JlLWFnZW50LWRldi5o\nb3ZpLmlkMAoGCCqGSM49BAMCA0gAMEUCIQDUysSJ+f1ujtqJaluuuM/02cOD1O0J\nixzfZb4B2DfTWgIgEn04DrlaxVrqlApm0FM9WysTSdG96s5blimGwPOLK/4=\n-----END CERTIFICATE-----\n",
      "metadata": {
        "issuer": {
          "endpoint": "https://core-agent-dev.hovi.id/agent/oid4vci/6e2816ee-fd0f-4323-a9b3-e30daaadfa52",
          "name": "eudoorg",
          "logo": {
            "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/eudo-org-image-1779071497589.svg%2Bxml",
            "alt": "Eudo Org"
          }
        },
        "credential": {
          "name": "University Degree Record",
          "description": "Official proof of university graduation and degree attainment.",
          "textColor": "#ffffff",
          "backgroundImage": {
            "url": "https://acme-corp.com/logo.png",
            "alt": "University seal watermark background"
          },
          "logo": {
            "url": "https://hovi.id/assets/university-logo.png",
            "alt": "University official crest"
          }
        },
        "claims": {
          "org.iso.18013.5.1.age": {
            "path": [
              "org.iso.18013.5.1",
              "age"
            ],
            "mandatory": true,
            "labels": {
              "default": "Age"
            },
            "originalDisplay": [
              {
                "name": "Age"
              }
            ],
            "originalClaim": {
              "path": [
                "org.iso.18013.5.1",
                "age"
              ],
              "display": [
                {
                  "name": "Age"
                }
              ],
              "mandatory": true
            }
          },
          "org.iso.18013.5.1.isVerified": {
            "path": [
              "org.iso.18013.5.1",
              "isVerified"
            ],
            "mandatory": true,
            "labels": {
              "default": "Verified Status"
            },
            "originalDisplay": [
              {
                "name": "Verified Status"
              }
            ],
            "originalClaim": {
              "path": [
                "org.iso.18013.5.1",
                "isVerified"
              ],
              "display": [
                {
                  "name": "Verified Status"
                }
              ],
              "mandatory": true
            }
          },
          "org.iso.18013.5.1.profileImage": {
            "path": [
              "org.iso.18013.5.1",
              "profileImage"
            ],
            "mandatory": true,
            "labels": {
              "default": "Profile Image"
            },
            "originalDisplay": [
              {
                "name": "Profile Image"
              }
            ],
            "originalClaim": {
              "path": [
                "org.iso.18013.5.1",
                "profileImage"
              ],
              "display": [
                {
                  "name": "Profile Image"
                }
              ],
              "mandatory": true
            }
          },
          "org.iso.18013.5.1.birthDate": {
            "path": [
              "org.iso.18013.5.1",
              "birthDate"
            ],
            "mandatory": true,
            "labels": {
              "default": "Birth Date"
            },
            "originalDisplay": [
              {
                "name": "Birth Date"
              }
            ],
            "originalClaim": {
              "path": [
                "org.iso.18013.5.1",
                "birthDate"
              ],
              "display": [
                {
                  "name": "Birth Date"
                }
              ],
              "mandatory": true
            }
          },
          "org.iso.18013.5.1.address": {
            "path": [
              "org.iso.18013.5.1",
              "address"
            ],
            "mandatory": true,
            "labels": {
              "default": "Address"
            },
            "originalDisplay": [
              {
                "name": "Address"
              }
            ],
            "originalClaim": {
              "path": [
                "org.iso.18013.5.1",
                "address"
              ],
              "display": [
                {
                  "name": "Address"
                }
              ],
              "mandatory": true
            }
          },
          "org.iso.18013.5.1.address.street": {
            "path": [
              "org.iso.18013.5.1",
              "address",
              "street"
            ],
            "mandatory": true,
            "labels": {
              "default": "Street"
            },
            "originalDisplay": [
              {
                "name": "Street"
              }
            ],
            "originalClaim": {
              "path": [
                "org.iso.18013.5.1",
                "address",
                "street"
              ],
              "display": [
                {
                  "name": "Street"
                }
              ],
              "mandatory": true
            }
          },
          "org.iso.18013.5.1.address.city": {
            "path": [
              "org.iso.18013.5.1",
              "address",
              "city"
            ],
            "mandatory": true,
            "labels": {
              "default": "City"
            },
            "originalDisplay": [
              {
                "name": "City"
              }
            ],
            "originalClaim": {
              "path": [
                "org.iso.18013.5.1",
                "address",
                "city"
              ],
              "display": [
                {
                  "name": "City"
                }
              ],
              "mandatory": true
            }
          }
        }
      }
    }
  ]
}
```

### 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`)

Request payload to parse and preview the metadata arrays inherent inside an unaccepted credential offer URI (the data you send to see what a credential offer contains before accepting it).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialOfferUri` | string | Yes | The OpenID4VCI protocol URI string parsing the credential metadata context array (the offer URI you want to preview). |

```json
{
  "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https..."
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentialType": "jwt_vc_json-ld",
    "communicationProtocol": "openid",
    "attributes": {
      "fullName": "",
      "age": "",
      "isVerified": "",
      "profileImage": "",
      "dateOfBirth": "",
      "address": {
        "street": "",
        "postalCode": ""
      },
      "organization": {
        "organizationName": "",
        "department": {
          "departmentName": "",
          "employeeCount": ""
        }
      }
    },
    "metadata": {
      "issuer": {
        "endpoint": "https://core-agent-dev.hovi.id/agent/oid4vci/6e2816ee-fd0f-4323-a9b3-e30daaadfa52",
        "name": "eudoorg",
        "logo": {
          "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/eudo-org-image-1779071497589.svg%2Bxml",
          "alt": "Eudo Org"
        }
      },
      "credential": {
        "name": "Mango PatientID 046640",
        "description": "Patient ID Card",
        "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/eudo-org-image-1779071497589.svg%2Bxml",
          "alt": "Eudo Org"
        }
      },
      "claims": {
        "fullName": {
          "path": [
            "fullName"
          ],
          "mandatory": true,
          "labels": {
            "default": "Full Name"
          },
          "originalDisplay": [
            {
              "name": "Full Name"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "fullName"
            ],
            "display": [
              {
                "name": "Full Name"
              }
            ],
            "mandatory": true
          }
        },
        "age": {
          "path": [
            "age"
          ],
          "mandatory": true,
          "labels": {
            "default": "Age"
          },
          "originalDisplay": [
            {
              "name": "Age"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "age"
            ],
            "display": [
              {
                "name": "Age"
              }
            ],
            "mandatory": true
          }
        },
        "isVerified": {
          "path": [
            "isVerified"
          ],
          "mandatory": true,
          "labels": {
            "default": "Verification Status"
          },
          "originalDisplay": [
            {
              "name": "Verification Status"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "isVerified"
            ],
            "display": [
              {
                "name": "Verification Status"
              }
            ],
            "mandatory": true
          }
        },
        "profileImage": {
          "path": [
            "profileImage"
          ],
          "mandatory": false,
          "labels": {
            "default": "Profile Image"
          },
          "originalDisplay": [
            {
              "name": "Profile Image"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "profileImage"
            ],
            "display": [
              {
                "name": "Profile Image"
              }
            ],
            "mandatory": false
          }
        },
        "dateOfBirth": {
          "path": [
            "dateOfBirth"
          ],
          "mandatory": true,
          "labels": {
            "default": "Date of Birth"
          },
          "originalDisplay": [
            {
              "name": "Date of Birth"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "dateOfBirth"
            ],
            "display": [
              {
                "name": "Date of Birth"
              }
            ],
            "mandatory": true
          }
        },
        "address": {
          "path": [
            "address"
          ],
          "mandatory": true,
          "labels": {
            "default": "Address Information"
          },
          "originalDisplay": [
            {
              "name": "Address Information"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "address"
            ],
            "display": [
              {
                "name": "Address Information"
              }
            ],
            "mandatory": true
          }
        },
        "address.street": {
          "path": [
            "address",
            "street"
          ],
          "mandatory": true,
          "labels": {
            "default": "Street"
          },
          "originalDisplay": [
            {
              "name": "Street"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "address",
              "street"
            ],
            "display": [
              {
                "name": "Street"
              }
            ],
            "mandatory": true
          }
        },
        "address.postalCode": {
          "path": [
            "address",
            "postalCode"
          ],
          "mandatory": true,
          "labels": {
            "default": "Postal Code"
          },
          "originalDisplay": [
            {
              "name": "Postal Code"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "address",
              "postalCode"
            ],
            "display": [
              {
                "name": "Postal Code"
              }
            ],
            "mandatory": true
          }
        },
        "organization": {
          "path": [
            "organization"
          ],
          "mandatory": true,
          "labels": {
            "default": "Organization Information"
          },
          "originalDisplay": [
            {
              "name": "Organization Information"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "organization"
            ],
            "display": [
              {
                "name": "Organization Information"
              }
            ],
            "mandatory": true
          }
        },
        "organization.organizationName": {
          "path": [
            "organization",
            "organizationName"
          ],
          "mandatory": true,
          "labels": {
            "default": "Organization Name"
          },
          "originalDisplay": [
            {
              "name": "Organization Name"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "organization",
              "organizationName"
            ],
            "display": [
              {
                "name": "Organization Name"
              }
            ],
            "mandatory": true
          }
        },
        "organization.department": {
          "path": [
            "organization",
            "department"
          ],
          "mandatory": true,
          "labels": {
            "default": "Department Information"
          },
          "originalDisplay": [
            {
              "name": "Department Information"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "organization",
              "department"
            ],
            "display": [
              {
                "name": "Department Information"
              }
            ],
            "mandatory": true
          }
        },
        "organization.department.departmentName": {
          "path": [
            "organization",
            "department",
            "departmentName"
          ],
          "mandatory": true,
          "labels": {
            "default": "Department Name"
          },
          "originalDisplay": [
            {
              "name": "Department Name"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "organization",
              "department",
              "departmentName"
            ],
            "display": [
              {
                "name": "Department Name"
              }
            ],
            "mandatory": true
          }
        },
        "organization.department.employeeCount": {
          "path": [
            "organization",
            "department",
            "employeeCount"
          ],
          "mandatory": false,
          "labels": {
            "default": "Employee Count"
          },
          "originalDisplay": [
            {
              "name": "Employee Count"
            }
          ],
          "originalClaim": {
            "path": [
              "credentialSubject",
              "organization",
              "department",
              "employeeCount"
            ],
            "display": [
              {
                "name": "Employee Count"
              }
            ],
            "mandatory": false
          }
        }
      }
    },
    "codeflow": "pre-authorized",
    "transactionCodeInfo": {
      "codeRequired": true,
      "length": 6,
      "description": "description about how the transaction code is sent to the holder"
    }
  }
}
```

### Resolve Credential Authorization Request

`POST /wallet/openid/resolve-credential-authorization-request`

This route resolves a credential authorization request and returns the credential authorization request details.

**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`)

Payload to resolve an authorization request for a credential offer in the OID4VCI flow (the data you send to handle the authorization step in the credential issuance flow).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialOfferUri` | string | Yes | OpenID4VCI credential offer URI (the offer URI you are resolving). |
| `clientId` | string | Yes | Client identifier for the authorization server (your DID used as the client). |
| `redirectUri` | string (url) | Yes | Redirect URI for the OAuth2 authorization callback (the callback URL for the authorization flow). |
| `scope` | array of string | No | Optional OAuth scopes for the authorization request. When omitted, scopes are taken from the credential offer. |
| `walletAttestationJwt` | string | No | Optional wallet attestation JWT presented during the authorization request. |

```json
{
  "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https...",
  "clientId": "did:web:client.example.com",
  "redirectUri": "https://client.example.com/cb",
  "scope": [
    "openid4vc:credential"
  ],
  "walletAttestationJwt": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9..."
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "authorizationRequestUrl": "https://auth.example.com/authorize?client_id=did%3Aweb%3Aclient.example.com&redirect_uri=https%3A%2F%2Fclient.example.com%2Fcb&request_uri=https%3A%2F%2Fissuer.example.com%2Foid4vci%2Fpar%2Fabc123"
  }
}
```

### 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.

**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`)

Request payload executed by an organizational wallet to process and accept an inbound OID4VCI credential offer (the data you send from the wallet side to accept a credential offer).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `codeflow` | string: `pre-authorized`, `authorization` | Yes | The selected OIDC flow, such as 'pre-authorized' or 'authorization' (the authentication flow used to accept the credential). |
| `credentialOfferUri` | string | Yes | The OpenID4VCI protocol URI string received containing the offer configuration (the offer URI you received from the issuer). |
| `preAuthorizedFlowOptions` | object | No |  |
| `preAuthorizedFlowOptions.transactionCode` | string | No | The numeric transaction PIN optionally mapped for pre-authorized redemptions (the PIN needed to accept the credential in pre-authorized flow). |
| `authorizationFlowOptions` | object | No |  |
| `authorizationFlowOptions.code` | string | No | The generated authorization code appended matching the OIDC specification criteria (the authorization code received in the flow). |

```json
{
  "codeflow": "pre-authorized",
  "credentialOfferUri": "openid-credential-offer://?credential_offer_uri=https...",
  "preAuthorizedFlowOptions": {
    "transactionCode": "1234"
  },
  "authorizationFlowOptions": {
    "code": "SplxlOBeZQQYbYS6WxSbIA"
  }
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "message": "Credential offer accepted 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`)

Request payload to logically delete a verifiable credential record housed within the organizational wallet (the data you send to remove a stored credential from the wallet).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialId` | string (uuid) | Yes | Unique identifier of the localized credential record designated for purge processing (the ID of the credential you want to delete). |

```json
{
  "credentialId": "5362a21e-9aec-4f9b-b66e-fdfb96a70294"
}
```

**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"
}
```

### 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`)

Request payload to preview an OpenID4VP proof request without submitting a response (the data you send to see what a verification request contains before responding).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `proofRequestUri` | string | Yes | The raw OpenID4VP URI string that contains the presentation request payload (the verification request URI you want to preview). |
| `origin` | string (uri) | No | Optional HTTPS origin of the wallet/browser context for **Digital Credentials API** (`dc_api` / `dc_api.jwt`) proof requests. Must start with `https://`. |

```json
{
  "proofRequestUri": "openid4vp://?request_uri=https...",
  "origin": "https://wallet.example.com"
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": {
    "credentials": [
      {
        "credentialType": "mso_mdoc",
        "communicationProtocol": "openid",
        "credentialId": "9bc4c4db-1f05-47d2-892a-3471862f1e01",
        "type": "org.example.UniversityDegree",
        "attributes": {
          "org.iso.18013.5.1": {
            "family_name": "Doe"
          },
          "org.iso.18013.5.1.aamva": {
            "domestic_driving_privileges": "C"
          }
        },
        "issuanceDate": "2026-05-18T04:09:41.951Z"
      }
    ],
    "credentialsByQueryId": {
      "7d88c908-3b3f-413d-9dc5-a3a8b7905899": [
        {
          "credentialId": "9bc4c4db-1f05-47d2-892a-3471862f1e01",
          "credentialType": "mso_mdoc",
          "attributes": {
            "org.iso.18013.5.1": {
              "family_name": "Doe"
            }
          }
        }
      ]
    },
    "credentialRequirements": [
      {
        "required": true,
        "mode": "all",
        "queryIds": [
          "7d88c908-3b3f-413d-9dc5-a3a8b7905899"
        ]
      }
    ],
    "dcql": {
      "credential_sets": [
        {
          "required": true,
          "options": [
            [
              "7d88c908-3b3f-413d-9dc5-a3a8b7905899"
            ]
          ]
        }
      ],
      "credentials": [
        {
          "id": "7d88c908-3b3f-413d-9dc5-a3a8b7905899",
          "format": "mso_mdoc",
          "meta": {
            "doctype_value": "org.example.UniversityDegree"
          },
          "claims": [
            {
              "path": [
                "org.iso.18013.5.1",
                "age"
              ],
              "intent_to_retain": false
            },
            {
              "path": [
                "org.iso.18013.5.1",
                "isVerified"
              ],
              "intent_to_retain": false
            },
            {
              "path": [
                "org.iso.18013.5.1",
                "profileImage"
              ],
              "intent_to_retain": false
            },
            {
              "path": [
                "org.iso.18013.5.1",
                "birthDate"
              ],
              "intent_to_retain": false
            },
            {
              "path": [
                "org.iso.18013.5.1",
                "address"
              ],
              "intent_to_retain": false
            },
            {
              "path": [
                "org.iso.18013.5.1",
                "address",
                "street"
              ],
              "intent_to_retain": false
            },
            {
              "path": [
                "org.iso.18013.5.1",
                "address",
                "city"
              ],
              "intent_to_retain": false
            }
          ]
        }
      ]
    },
    "transactionData": [
      {
        "entry": {
          "transactionData": {
            "type": "payment",
            "payment_data": {
              "payee": "Merchant Ltd",
              "currency": "EUR",
              "amount": 23.58
            },
            "credential_ids": [
              "7d88c908-3b3f-413d-9dc5-a3a8b7905899"
            ],
            "transaction_data_hashes_alg": [
              "sha-256"
            ]
          },
          "encoded": "eyJ0eXBlIjoicGF5bWVudCIsInBheW1lbnRfZGF0YSI6ey4uLn19",
          "transactionDataIndex": 0
        },
        "matchedCredentialIds": [
          "7d88c908-3b3f-413d-9dc5-a3a8b7905899"
        ]
      }
    ],
    "metadata": {
      "verifier": {
        "name": "eudoorg",
        "logo": {
          "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/eudo-org-image-1779071497589.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.

**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`)

Submit a presentation using credentialId for a single query, selectedCredentials for explicit query selections, or automatic credential selection when neither is provided. Use only one selection form. Multiple mandatory groups are supported; each group must require all its queries or any one query. Alternative bundles within a group are not supported. Optional credential sets are excluded; optional-only requests remain valid. Transaction data referencing an optional query and unsupported combinations return HTTP 400. Preview transaction details before submitting; transaction values come from the proof request.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `proofRequestUri` | string | Yes | OpenID4VP proof request URI. |
| `credentialId` | string | No | Wallet credential ID for a DCQL request containing exactly one query, or for a Presentation Exchange request. Optional queries count toward the query total. |
| `selectedCredentials` | array of object | No | Choose at most one matching wallet credential for each query ID. Include every query required by an all group and one query for each any group. Your selection must satisfy every required group. Available only for OpenID requests using DCQL. |
| `selectedCredentials[].id` | string | Yes | Query ID returned in the proof request preview. |
| `selectedCredentials[].credentialId` | string | Yes | ID of a matching credential in the holder wallet. |
| `origin` | string (uri) | No | HTTPS wallet/browser origin for Digital Credentials API requests. |

```json
{
  "proofRequestUri": "openid4vp://?request_uri=https...",
  "selectedCredentials": [
    {
      "id": "identity",
      "credentialId": "5362a21e-9aec-4f9b-b66e-fdfb96a70294"
    },
    {
      "id": "licence",
      "credentialId": "9bc4c4db-1f05-47d2-892a-3471862f1e01"
    }
  ]
}
```

**Responses**

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

Example `200` response:

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

### 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
