# Hovi Connect API: Microsoft Entra

> Issue and verify JWT-VC credentials for Microsoft Authenticator.

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

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

Version: v0.8.9

Integrate with the Microsoft Entra Verified ID ecosystem using the Hovi API. Supports issuance and verification of JWT-VC credentials via the OID4VCI and OID4VP protocols. Build and manage enterprise-grade digital identity solutions aligned with W3C Verifiable Credential 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
- 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/jwt-vc/create`: Create Template (JWT-VC)
  - `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/jwt-vc/offer`: Offer Credential (JWT-VC)
- Verification Templates
  - `POST /verification-template/jwt-vc/create`: Create Template (JWT-VC)
  - `GET /verification-template/`: Get Ecosystem Templates
  - `GET /verification-template/organization`: Get Organization Templates
  - `DELETE /verification-template/delete`: Delete Template by Verification Template Id
  - `PATCH /verification-template/update`: Update Template by Verification Template Id
- Verifications
  - `POST /verification/send-proof-request`: Send Proof Request
  - `GET /verification/proof-request`: Get Proof Requests
  - `GET /verification/proof-request/find`: Find Proof Request by Proof Exchange Id
  - `GET /verification/proof-response/find`: Find Proof Response by Presentation Id
- Other
  - `GET /verification/session/document-coverage`
  - `GET /verification/session/{sessionId}/redirect-target`
  - `POST /verification/session/{sessionId}/id-verification/document`
  - `POST /verification/session/{sessionId}/id-verification/passive-liveness`
  - `POST /verification/session/{sessionId}/id-verification/face-match`
  - `POST /verification/session/{sessionId}/id-verification/ip-risk`
  - `GET /verification/session/{sessionId}/evidence`

## Organization

Manages organizations (tenants) within Hovi — the primary entities that create credential templates, issue JWT-VC credentials via OID4VCI, and initiate OID4VP verification flows.

### Create Organization

`POST /organization/create`

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

**Parameters**

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

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

The data required to create a new organization (tenant). On creation, Hovi auto-provisions a `did:web` DID with its DID Document and Well-Known DID Configuration payloads for Entra domain validation.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Registered name of the organization displayed in Hovi Studio and credential/presentation request UIs. |
| `label` | string | Yes | Short slug label used in credential offers and presentation request screens shown to the holder. |
| `secret` | string | Yes | Secret passphrase for administrative operations (key rotation, tenant deletion). Store securely — never expose publicly. |
| `imageUrl` | string (url) | Yes | URL of the organization's logo shown in Hovi Studio and holder wallet UIs. |
| `webhooks` | array of string (url) | No | Optional HTTP callback URLs to register during tenant creation. Hovi POSTs event notifications to each URL. |

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

**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",
    "createdAt": "2024-08-08T06:40:20.151Z",
    "updatedAt": "2024-08-08T06:40:20.151Z",
    "setting": {
      "organizationName": "acme-corp",
      "defaultLabel": "acme-corp",
      "imageUrl": "https://acme-corp.com/acme-logo-color.png",
      "id": "99f009f6-aefa-4c13-bbe9-e5e314a64b1c"
    },
    "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqazVaakF3T1dZMkxXRmxabUV0TkdNeE15MWlZbVU1TFdVMVpUTXhOR0UyTkdJeFl5SXNJbWxoZENJNk1UY3lNekE1T1RJeU9IMD0.wpmj0C-Pcjsk-pg42_SPqMhCmKibdI6A6Kxq4gBG6hk",
    "dids": [
      {
        "did": "did:web:your-did.com",
        "method": "web",
        "signingKeys": [
          "your-signing-key-urls-stored-in-key-vault"
        ],
        "document": {
          "payload": {
            "@context": [
              "https://www.w3.org/ns/did/v1",
              "https://w3id.org/security/suites/jws-2020/v1"
            ],
            "id": "did:web:your-did.com",
            "verificationMethod": [
              {
                "id": "did:web:your-did.com#zDnaeT3pw8f4Sj5iAG4A7ZdXak6oMidQm7v8C88zA5eNE5m61"
              }
            ]
          },
          "publishOn": "https://your-did.com/.well-known/did.json"
        },
        "wellKnownConfig": {
          "payload": {},
          "publishOn": "https://your-did.com/.well-known/did-configuration.json"
        }
      }
    ],
    "webhooks": [
      {
        "webhookId": "8556a0d3e81571e71a29e6ef85592c0e",
        "webhookUrl": "https://webhook1.com"
      },
      {
        "webhookId": "1733324555b130efaa81de966d779cd6",
        "webhookUrl": "https://webhook2.com"
      }
    ]
  }
}
```

### Get All Organization

`GET /organization/`

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

**Parameters**

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

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "organizationId": "6b6e17b5-3968-412c-b453-467821563119",
      "ecosystemId": "9925ed6a-f578-49db-b9a7-4a459f54aebc",
      "dids": [
        {
          "did": "did:web:entra.hovi.id",
          "method": "web"
        }
      ],
      "name": "Acme Corp OpenId 1",
      "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
      "label": "acme-corp",
      "status": "active",
      "createdAt": "2024-06-21T08:54:58.103Z",
      "openIdWellKnownCredentialIssuerUrl": "https://hovi.id/agent/oid4vci/154090aa-6d09-4ac3-b1e1-62ec4912314d4/.well-known/openid-credential-issuer",
      "updatedAt": "2024-06-21T08:54:58.103Z"
    }
  ]
}
```

### Get Public DID

`GET /organization/public-did`

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

**Parameters**

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

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "response": [
    {
      "did": "did:web:entra.hovi.id",
      "method": "web"
    }
  ]
}
```

### Update Organization

`PATCH /organization/update`

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

**Parameters**

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

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

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `label` | string | No | Updated short slug label used in credential offers and presentation request screens. |
| `imageUrl` | string (url) | No | Updated URL of the organization's logo. |

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

**Responses**

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

Example `200` response:

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

### Rotate Organization Key

`POST /organization/rotate-key`

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

**Parameters**

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

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

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accessToken` | string | Yes | Current active `accessToken` — required to authorize the key rotation request. |
| `organizationSecret` | string | Yes | Organization secret passphrase — required as a second factor to authorize the key rotation. |

```json
{
  "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
  "organizationSecret": "acme-corp-secret-2024"
}
```

**Responses**

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

Example `200` response:

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

### Delete Organization

`DELETE /organization/delete`

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

**Parameters**

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

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

The data required to permanently delete an organization and all its associated resources. This action is irreversible.

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

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

**Responses**

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

Example `200` response:

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

## Webhooks

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

### Add Webhook

`POST /webhook/add`

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

**Parameters**

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

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

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

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

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

**Responses**

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

Example `201` response:

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

### Get All Webhooks

`GET /webhook/`

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

**Parameters**

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

**Responses**

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

Example `200` response:

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

### Remove Webhooks

`DELETE /webhook/`

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

**Parameters**

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

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

The data required to deregister a webhook endpoint. Hovi will stop sending event notifications to the associated URL.

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

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

**Responses**

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

Example `200` response:

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

### Rotate Webhook Secret

`POST /webhook/rotate-secret`

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

**Parameters**

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

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

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

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

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

**Responses**

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

Example `200` response:

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

## Credential Templates

Defines the schema and claim structure for JWT-VC credentials backed by Microsoft Entra Verified ID contracts. Templates are referenced during OID4VCI issuance flows.

### Create Template (JWT-VC)

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

This route allows a organization to create a JWT-VC (JSON Web Token - Verifiable Credential) template, which defines the structure, attributes, and schema for issuing JWT-VC credentials. The template includes essential details such as the schema name, version, and the attributes that will be part of the credential, ensuring that the issued credentials are consistent and adhere to the predefined standard. This route is critical for organizations who need to issue compact, web-friendly credentials that are easy to share and verify across different platforms within the Self-Sovereign Identity ecosystem.

**Parameters**

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

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

The data required to create a new JWT-VC credential template backed by a Microsoft Entra Verified ID contract. Submitting this request provisions the Entra contract and stores the template in Hovi for OID4VCI issuance flows.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Human-readable name for the credential template. Used as the Entra contract display name. |
| `version` | string | Yes | Semantic version string for the credential template. |
| `image` | string (url) | No | URL of the credential card image displayed in the holder's wallet. |
| `description` | string | Yes | Plain-text description of the credential type. |
| `attributes` | array of object | Yes | JWT `credentialSubject` claim definitions. Each attribute becomes a claimable field during OID4VCI issuance and a selectively requestable claim during OID4VP verification. |
| `attributes[].name` | string | No | Programmatic claim identifier used in the JWT `credentialSubject`. |
| `attributes[].type` | string: `string`, `number`, `boolean` | No | Data type of the claim value. |
| `attributes[].label` | string | No | Human-readable display label shown in wallet UIs. |
| `attributes[].description` | string | No | Semantic description of the claim field. |
| `attributes[].required` | boolean: `true`, `false` | No | Whether this claim must be provided during issuance. |
| `schemaType` | string | Yes | JWT-VC credential type string — embedded as the `type` claim in issued credentials and used as the `schemaTypeRestriction` in verification templates. Use PascalCase without spaces. |
| `credentialTheme` | object | No | Visual rendering metadata for the JWT-VC card displayed in Entra-compatible holder wallets. |
| `credentialTheme.title` | string | No | Display title shown on the credential card in the wallet. If omitted, the credential-template name is used. |
| `credentialTheme.description` | string | No | Short descriptive text shown on the credential card. |
| `credentialTheme.issuedBy` | string | No | Issuing organization name displayed on the credential card. If omitted, the organization's display name is used. |
| `credentialTheme.textColor` | string | No | Hex color code for the card text overlay. If omitted, `#000000` is used. |
| `credentialTheme.backgroundColor` | string | No | Hex color code for the card background. |
| `credentialTheme.logoUrl` | string (url) | No | URL of the issuer's logo image. 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. |
| `supportRevocation` | boolean: `true`, `false` | No | Whether issued credentials support revocation status checking via the Entra revocation endpoint. |

`image`: URL of the credential card image displayed in the holder's wallet.

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

```json
{
  "$ref": "#/components/examples/createJwtVcCredentialTemplate"
}
```

**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": "38fb278d-57cf-6bb3-0400-37214bddc258",
    "ecosystemId": "4cdecbf2-135a-4c1d-9819-2b7fe5e82b7c",
    "organizationId": "c33599c4-e73a-27f9-8d1e-266574b25bf1",
    "name": "Patient ID",
    "version": "1.0.2",
    "description": "Patient ID Card",
    "type": "jwt",
    "image": "https://acme-corp.com/patient.png",
    "attributes": [
      {
        "name": "name",
        "label": "Name",
        "type": "string",
        "description": "Name of the patient",
        "required": true
      },
      {
        "name": "age",
        "label": "Age",
        "type": "string",
        "description": "Age of the patient",
        "required": true
      }
    ],
    "schemaUrl": "https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/contracts/38fb278d-57cf-6bb3-0400-37214bddc258/manifest",
    "schemaType": "PatientRecord",
    "createdAt": "2025-10-14T08:18:34.564Z",
    "updatedAt": "2025-10-14T08:18:34.564Z"
  }
}
```

### 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": "38fb278d-57cf-6bb3-0400-37214bddc258",
      "ecosystemId": "4cdecbf2-135a-4c1d-9819-2b7fe5e82b7c",
      "organizationId": "c33599c4-e73a-27f9-8d1e-266574b25bf1",
      "name": "Patient ID",
      "version": "1.0.2",
      "description": "Patient ID Card",
      "type": "jwt",
      "image": "https://acme-corp.com/patient.png",
      "attributes": [
        {
          "name": "name",
          "label": "Name",
          "type": "string",
          "description": "Name of the patient",
          "required": true
        },
        {
          "name": "age",
          "label": "Age",
          "type": "string",
          "description": "Age of the patient",
          "required": true
        }
      ],
      "schemaUrl": "https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/contracts/38fb278d-57cf-6bb3-0400-37214bddc258/manifest",
      "schemaType": "PatientRecord",
      "createdAt": "2025-10-14T08:18:34.564Z",
      "updatedAt": "2025-10-14T08:18:34.564Z"
    }
  ]
}
```

### 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": "38fb278d-57cf-6bb3-0400-37214bddc258",
      "ecosystemId": "4cdecbf2-135a-4c1d-9819-2b7fe5e82b7c",
      "organizationId": "c33599c4-e73a-27f9-8d1e-266574b25bf1",
      "name": "Patient ID",
      "version": "1.0.2",
      "description": "Patient ID Card",
      "type": "jwt",
      "image": "https://acme-corp.com/patient.png",
      "attributes": [
        {
          "name": "name",
          "label": "Name",
          "type": "string",
          "description": "Name of the patient",
          "required": true
        },
        {
          "name": "age",
          "label": "Age",
          "type": "string",
          "description": "Age of the patient",
          "required": true
        }
      ],
      "schemaUrl": "https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/contracts/38fb278d-57cf-6bb3-0400-37214bddc258/manifest",
      "schemaType": "PatientRecord",
      "createdAt": "2025-10-14T08:18:34.564Z",
      "updatedAt": "2025-10-14T08:18:34.564Z"
    }
  ]
}
```

### Delete Template

`DELETE /credential-template/delete`

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

**Parameters**

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

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

The data required to permanently delete a credential template from Hovi.

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

```json
{
  "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258"
}
```

**Responses**

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

Example `200` response:

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

### Update Template

`PATCH /credential-template/update`

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

**Parameters**

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

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

The data required to update an existing credential template's display metadata (image and category only).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialTemplateId` | string (uuid) | Yes | Unique identifier of the credential template to update. |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | Updated industry/sector category UUID. |
| `image` | string (url) | No | Updated URL of the credential card image displayed in the holder's wallet. Must be a publicly accessible URL. |
| `credentialTheme` | object | No | Visual rendering metadata for the JWT-VC card displayed in Entra-compatible holder wallets. |
| `credentialTheme.title` | string | No | Display title shown on the credential card in the wallet. If omitted, the credential-template name is used. |
| `credentialTheme.description` | string | No | Short descriptive text shown on the credential card. |
| `credentialTheme.issuedBy` | string | No | Issuing organization name displayed on the credential card. If omitted, the organization's display name is used. |
| `credentialTheme.textColor` | string | No | Hex color code for the card text overlay. If omitted, `#000000` is used. |
| `credentialTheme.backgroundColor` | string | No | Hex color code for the card background. |
| `credentialTheme.logoUrl` | string (url) | No | URL of the issuer's logo image. 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. |

`categoryId`: Updated industry/sector category UUID.

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

```json
{
  "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258",
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "image": "https://acme-corp.com/updated-patient.png",
  "credentialTheme": {
    "title": "Patient ID Card",
    "description": "Proof of admission in the hospital",
    "issuedBy": "Acme Hospital",
    "textColor": "#F5F7F4",
    "backgroundColor": "#0B1F2A",
    "logoUrl": "https://acme-corp.com/logo.png",
    "logoAlt": "Acme Hospital Logo"
  }
}
```

**Responses**

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

Example `200` response:

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

## Credentials

Issues JWT-VC Verifiable Credentials to holders via OID4VCI. The holder wallet scans or receives an offer URI, authenticates, and receives the signed JWT credential.

### 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
{
  "status": "200",
  "success": true,
  "response": [
    {
      "credentialExchangeId": "422170e6-f5b0-47cd-8d39-3cfb99e6f370",
      "credentialOfferUri": "openid-vc://?request_uri=https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/issuanceRequests/422170e6-f5b0-47cd-8d39-3cfb99e6f370",
      "state": "pending",
      "count": 0,
      "issuerDid": "did:web:entra.identone.io",
      "offerExpiresAt": "1970-01-21T11:56:29.593Z",
      "createdAt": "2026-02-13T13:28:13.306Z",
      "updatedAt": "2026-02-13T13:28:13.306Z"
    },
    {
      "credentialExchangeId": "88a9a6fe-2fd0-4268-98cf-1708a85029b1",
      "credentialOfferUri": "openid-vc://?request_uri=https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/issuanceRequests/88a9a6fe-2fd0-4268-98cf-1708a85029b1",
      "state": "done",
      "count": 1,
      "issuerDid": "did:web:entra.identone.io",
      "offerExpiresAt": "1970-01-21T11:56:29.949Z",
      "createdAt": "2026-02-13T13:34:09.607Z",
      "updatedAt": "2026-02-13T13:34:41.214Z"
    }
  ]
}
```

### 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
{
  "status": "200",
  "success": true,
  "response": [
    {
      "credentialExchangeId": "422170e6-f5b0-47cd-8d39-3cfb99e6f370",
      "credentialOfferUri": "openid-vc://?request_uri=https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/issuanceRequests/422170e6-f5b0-47cd-8d39-3cfb99e6f370",
      "state": "pending",
      "count": 0,
      "issuerDid": "did:web:entra.identone.io",
      "offerExpiresAt": "1970-01-21T11:56:29.593Z",
      "createdAt": "2026-02-13T13:28:13.306Z",
      "updatedAt": "2026-02-13T13:28:13.306Z"
    },
    {
      "credentialExchangeId": "88a9a6fe-2fd0-4268-98cf-1708a85029b1",
      "credentialOfferUri": "openid-vc://?request_uri=https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/issuanceRequests/88a9a6fe-2fd0-4268-98cf-1708a85029b1",
      "state": "done",
      "count": 1,
      "issuerDid": "did:web:entra.identone.io",
      "offerExpiresAt": "1970-01-21T11:56:29.949Z",
      "createdAt": "2026-02-13T13:34:09.607Z",
      "updatedAt": "2026-02-13T13:34:41.214Z"
    }
  ]
}
```

### Offer Credential (JWT-VC)

`POST /credential/jwt-vc/offer`

This route allows the organization to generate a credential offer using the JWT-VC format. The credential issuance is based on a credential template that specifies the necessary attributes, types, and requirements. This route is essential for organizations who want to issue verifiable credentials that are interoperable with linked data systems, ensuring compliance with modern digital identity standards. The offer, aligned with the template, can be provided to the holder for credential issuance.

**Related webhook events**

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

- [Credential Issued](#tag/webhook-events/webhook/post/entra-credential-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`)

The data required to initiate a JWT-VC credential issuance via OID4VCI. Returns a credential offer URI (`openid-vc://...`) that the holder wallet scans to claim the signed JWT credential from the Entra Verified ID service.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credentialTemplateId` | string (uuid) | Yes | JWT-VC credential template to use for this issuance — defines the Entra contract, claim schema, and visual theme. |
| `credentialValues` | object | Yes | Key-value map of claim names to their values for this specific credential instance. Keys must match the `name` fields defined in the template `attributes`. |
| `pinRequired` | boolean: `true`, `false` | No | Whether the holder must enter a PIN to claim the credential. When `true`, Entra generates a PIN that must be delivered to the holder out-of-band (e.g., via email or SMS). |
| `pinLength` | number | No | Length of the PIN generated by Entra when `pinRequired` is `true`. Typically 4 or 6 digits. |
| `credentialExpiry` | number | No | Unix epoch timestamp in milliseconds indicating when the issued JWT-VC expires (`exp` claim). If omitted, Entra applies its default expiry from the contract configuration. |

```json
{
  "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258",
  "credentialValues": {
    "name": "John Doe",
    "age": "30"
  },
  "pinRequired": true,
  "pinLength": 6,
  "credentialExpiry": 1760429046163
}
```

**Responses**

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

Example `200` response:

```json
{
  "success": true,
  "message": "Credential offer created successfully",
  "response": {
    "credentialExchangeId": "13891eaa-89eb-4f43-b66b-cee7523329f6",
    "credentialOfferUri": "openid-vc://?request_uri=https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/issuanceRequests/13891eaa-89eb-4f43-b66b-cee7523329f6",
    "offerExpiresAt": "1970-01-21T09:00:31.575Z",
    "state": "pending",
    "credentialOfferUrl": "https://studio.hovi.id/credential?data=eyJ1cmkiOiJvcGVuaWQtdmM6Ly8/cmVxdWVzdF91cmk9aHR0cHM6Ly92ZXJpZmllZGlkLmRpZC5tc2lkZW50aXR5LmNvbS92MS4wL3RlbmFudHMvODczMGJhZWQtOTExMS00NmE1LWJhODctOTBkM2FhOTVjNGJkL3ZlcmlmaWFibGVDcmVkZW50aWFscy9pc3N1YW5jZVJlcXVlc3RzLzEzODkxZWFhLTg5ZWItNGY0My1iNjZiLWNlZTc1MjMzMjlmNiIsIm5hbWUiOiJpbWFnaW5hdGl2ZS1ib3dsaW5nIiwiaW1hZ2UiOiJodHRwczovL2FjbWUtY29ycC5jb20vbG9nby5wbmcifQ=="
  }
}
```

## Verification Templates

Defines Presentation Request blueprints using DIF Presentation Exchange. Specifies which JWT-VC types and claims a verifier requires from the holder during an OID4VP flow.

### Create Template (JWT-VC)

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

This route is used to create a JWT-VC verification template for a 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` |
| `Authorization` | header | string | Yes | Ecosystem API Key. Must be prefixed with "Bearer ". Example: `Bearer YOUR_ECOSYSTEM_API_KEY` |

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

The data required to create a new JWT-VC verification template (an OID4VP presentation request blueprint targeting JWT-VC credentials — restricts accepted credentials by `schemaType` and issuer DID).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Human-readable name for the verification template. |
| `categoryId` | string: `9636b597-cbe2-492a-bf92-87641729e6e4`, `9636b597-cbe2-492a-bf92-87641726a7b4`, `16161b67-58f5-4d29-9d29-a75036dd9862`, `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec`, `402e8853-efa4-4233-9fb9-4cf2dd39830d`, `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987`, `233cf3c7-5b5b-492e-9723-b35d9022f2ce` | No | Industry/sector category UUID for this verification template. |
| `version` | string | Yes | Semantic version string for the verification template. |
| `description` | string | Yes | Plain-text description of what this verification template checks. |
| `image` | string (url) | No | URL of the image displayed on the OID4VP presentation request screen in the holder's wallet. |
| `requestedAttributes` | array of object | No | JWT credential claims the verifier requests the holder to disclose in their presentation. All requested attributes are required for verification. |
| `requestedAttributes[].name` | string | No | JWT claim name to request from the holder. |
| `requestedAttributes[].label` | string | No | Human-readable display label shown in the holder's wallet. |
| `requestedAttributes[].type` | string | No | Data type of this claim. |
| `requestedAttributes[].description` | string | No | Optional description of this claim. |
| `requestedAttributes[].attributes` | array of object | No | Nested sub-attributes for object-type claims. |
| `restrictions` | object | No | Defines which JWT-VC credentials can satisfy this presentation request. All provided fields are AND-ed together. |
| `restrictions.credentialTemplateId` | string (uuid) | No | Restricts accepted credentials to those issued from this specific Hovi credential template. Resolves to the matching `schemaType` restriction. |
| `restrictions.issuerDid` | string | No | Restricts accepted credentials to those signed by this specific issuer DID (e.g., `did:web:entra.hovi.id`). |

`categoryId`: Industry/sector category UUID for this verification template.

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

`image`: URL of the image displayed on the OID4VP presentation request screen in the holder's wallet.

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

```json
{
  "$ref": "#/components/examples/createJwtVcVerificationTemplate"
}
```

**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": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
    "ecosystemId": "4cdecbf2-135a-4c1d-9819-2b7fe5e82b7c",
    "organizationId": "c33599c4-e73a-27f9-8d1e-266574b25bf1",
    "credentialTemplateId": "aa539579-2658-f8de-e536-b0250baf2053",
    "name": "Patient Verification",
    "image": "https://acme-corp.com/patient.png",
    "description": "Patient ID Card Verification",
    "schemaTypeRestriction": "PatientRecord",
    "type": "jwt",
    "requestedAttributes": [],
    "createdAt": "2025-10-14T07:41:46.139Z",
    "updatedAt": "2025-10-14T07:41:46.139Z"
  }
}
```

### 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": "419333f3-7f4f-419c-b8a5-0ff3941c95d5",
      "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
      "organizationId": "91444e6c-4ccd-44e1-a25e-29dd02b9d494",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "name": "Patient ID Verification",
      "image": "https://picsum.photos/200",
      "version": "1.0.7",
      "description": "Patient ID Card Verification",
      "type": "jwt",
      "requestedAttributes": [],
      "createdAt": "2024-06-21T11:18:53.034Z",
      "updatedAt": "2024-06-21T11:18:53.034Z"
    }
  ]
}
```

### 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": "419333f3-7f4f-419c-b8a5-0ff3941c95d5",
      "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
      "organizationId": "91444e6c-4ccd-44e1-a25e-29dd02b9d494",
      "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
      "name": "Patient ID Verification",
      "image": "https://picsum.photos/200",
      "version": "1.0.7",
      "description": "Patient ID Card Verification",
      "type": "jwt",
      "requestedAttributes": [],
      "createdAt": "2024-06-21T11:18:53.034Z",
      "updatedAt": "2024-06-21T11:18:53.034Z"
    }
  ]
}
```

### Delete Template by Verification Template Id

`DELETE /verification-template/delete`

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

**Parameters**

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

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

The data required to permanently delete a verification template.

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

```json
{
  "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170"
}
```

**Responses**

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

Example `200` response:

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

### Update Template by Verification Template Id

`PATCH /verification-template/update`

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

**Parameters**

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

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

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

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

`categoryId`: Updated industry/sector category UUID.

**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 of the image displayed on the OID4VP request screen in the holder's wallet.

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

```json
{
  "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
  "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
  "name": "Updated Patient Verification",
  "description": "Updated patient ID card verification",
  "image": "https://acme-corp.com/updated-patient.png"
}
```

**Responses**

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

Example `200` response:

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

## Verifications

Initiates OID4VP presentation requests and validates holder JWT-VP responses. Returns verified credential claims extracted from the presentation.

### Send Proof Request

`POST /verification/send-proof-request`

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

**Related webhook events**

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

- [Presentation Verified](#tag/webhook-events/webhook/post/entra-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`)

The data required to initiate an OID4VP presentation request. Returns a `verificationUri` (`openid-vc://...`) that the holder wallet scans to begin the presentation flow.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `verificationTemplateId` | string (uuid) | Yes | Verification template to use as the OID4VP request blueprint — defines which JWT-VC type and claims to request from the holder. |
| `purpose` | string | No | Human-readable reason for the presentation request shown to the holder in their wallet during the OID4VP flow. |
| `allowRevoked` | boolean: `true`, `false` | No | Whether to accept revoked credentials in the presentation. `false` — only non-revoked credentials are accepted. `true` — revoked credentials are accepted (use only for testing). |

```json
{
  "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
  "purpose": "Verify patient identity for hospital admission.",
  "allowRevoked": false
}
```

**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": "d12748e1-0ef4-4122-9aa5-d3c7a78463c8",
    "verificationUri": "openid-vc://?request_uri=https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/presentationRequests/d12748e1-0ef4-4122-9aa5-d3c7a78463c8",
    "requestExpiresAt": "1970-01-21T09:00:31.164Z",
    "state": "pending",
    "verificationUrl": "https://studio.hovi.id/verification?data=eyJ1cmkiOiJvcGVuaWQtdmM6Ly8/cmVxdWVzdF91cmk9aHR0cHM6Ly92ZXJpZmllZGlkLmRpZC5tc2lkZW50aXR5LmNvbS92MS4wL3RlbmFudHMvODczMGJhZWQtOTExMS00NmE1LWJhODctOTBkM2FhOTVjNGJkL3ZlcmlmaWFibGVDcmVkZW50aWFscy9wcmVzZW50YXRpb25SZXF1ZXN0cy9kMTI3NDhlMS0wZWY0LTQxMjItOWFhNS1kM2M3YTc4NDYzYzgiLCJuYW1lIjoiaW1hZ2luYXRpdmUtYm93bGluZyIsImltYWdlIjoiaHR0cHM6Ly9hY21lLWNvcnAuY29tL2xvZ28ucG5nIn0="
  }
}
```

### 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": "b6407e95-f405-4512-abe8-07222a7b9d49",
      "verificationUri": "openid-vc://?request_uri=https://verifiedid.did.msidentity.com/v1.0/tenants/8730baed-9111-46a5-ba87-90d3aa95c4bd/verifiableCredentials/presentationRequests/b6407e95-f405-4512-abe8-07222a7b9d49",
      "state": "done",
      "count": 1,
      "requestExpiresAt": "1970-01-21T08:59:28.617Z",
      "createdAt": "2025-10-13T15:11:57.695Z",
      "updatedAt": "2025-10-13T15:12:45.224Z"
    }
  ]
}
```

### 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": "b6407e95-f405-4512-abe8-07222a7b9d49",
      "organizationId": "c33599c4-e73a-27f9-8d1e-266574b25bf1",
      "presentationId": "91a8a825-a78a-43fe-9377-200a66a277e9",
      "verifiedCredentialsData": [
        {
          "issuer": "did:web:entra-onboard.hovi-api.id",
          "type": [
            "VerifiableCredential",
            "PatientRecord"
          ],
          "claims": {
            "name": "Fairuz",
            "age": "25"
          },
          "credentialState": {
            "revocationStatus": "VALID"
          },
          "domainValidation": {
            "url": "https://entra-onboard.hovi-api.id/"
          },
          "expirationDate": "2035-10-11T13:35:13.000Z",
          "issuanceDate": "2025-10-13T13:35:13.000Z"
        }
      ],
      "holderDid": "did:jwk:eyJjcnYiOiJQLTI1NiIsImtpZCI6IjY1NDZjYWI4Nzg3NzQ0NmI5ZjMwYWU2N2QyYzE2ZWIxIiwia3R5IjoiRUMiLCJ1c2UiOiJzaWciLCJ4IjoiV0JPZGJsU0ZQeXlPTTZBamRGUW0zYUtEVnJkcEZZeS1WNTBjR3A2SUVYYyIsInkiOiJpek9YdkN3U1hLbFl3WVBaMkRuX3NIRTY1bVMzRXhwQm9xajlkWGQ3UVJvIn0",
      "createdAt": "2025-10-13T15:12:45.306Z",
      "updatedAt": "2025-10-13T15:12:45.306Z"
    }
  ]
}
```

### Find Proof Response by Presentation Id

`GET /verification/proof-response/find`

This route retrieves a specific proof response by its unique presentation id or proof exchange id. The proof response contains the presentation data submitted by the credential holder in response to a particular 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` |
| `presentationId` | query | string | No | Retrive detailed proof presentation by presentation id Example: `123e4567-e89b-12d3-a456-426614174000` |
| `proofExchangeId` | query | string | No | Retrive detailed proof presentation by proof 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": [
    {
      "proofExchangeId": "a28477d6-d24d-4244-9bef-e34ee9ec4904",
      "tenantId": "c0799fcc-92e4-bf1d-83de-3e1c6bfcf677",
      "presentationId": "6c387d5a-cce1-4fc7-940c-95e6c495f1a5",
      "verifiedCredentialsData": [
        {
          "issuer": "did:web:entra.identone.io",
          "type": [
            "VerifiableCredential",
            "business.registration.certificate"
          ],
          "claims": {
            "name": "Random Certificate"
          },
          "credentialState": {
            "revocationStatus": "VALID"
          },
          "domainValidation": {
            "url": "https://entra.identone.io/"
          },
          "expirationDate": "2036-02-11T13:34:39.000Z",
          "issuanceDate": "2026-02-13T13:34:39.000Z"
        }
      ],
      "holderDid": "did:jwk:eyJjcnYiOiJQLTI1NiIsImtpZCI6ImQwMTljYzhiMjlkNjRiYTZiYzg1MGM0ODkwYTZkYjc4Iiwia3R5IjoiRUMiLCJ1c2UiOiJzaWciLCJ4IjoiOVNoNWNRdldyWXI5TW9jOTVSSmV4bGwyM2tWVFBmNU9ZZHdvR05iTU14ayIsInkiOiIyNm1UdkQwazlpb2Uydm9UTUJyb3VINEVVZzd3T29VblM3SzFrSHZrMlZRIn0",
      "createdAt": "2026-02-13T13:35:10.135Z",
      "updatedAt": "2026-02-13T13:35:10.135Z"
    }
  ]
}
```

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