{
  "openapi": "3.1.0",
  "info": {
    "version": "v0.8.9",
    "title": "Hovi API (Entra Verified ID)",
    "description": "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."
  },
  "servers": [
    {
      "url": "https://api.hovi.id",
      "description": "Hovi SaaS"
    }
  ],
  "tags": [
    {
      "name": "Organization",
      "description": "Manages organizations (tenants) within Hovi — the primary entities that create credential templates, issue JWT-VC credentials via OID4VCI, and initiate OID4VP verification flows."
    },
    {
      "name": "Webhooks",
      "description": "Configures asynchronous HTTP callbacks that Hovi POSTs to your server when events occur (e.g., credential accepted, presentation verified) — no polling required."
    },
    {
      "name": "Credential Templates",
      "description": "Defines the schema and claim structure for JWT-VC credentials backed by Microsoft Entra Verified ID contracts. Templates are referenced during OID4VCI issuance flows."
    },
    {
      "name": "Credentials",
      "description": "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."
    },
    {
      "name": "Verification Templates",
      "description": "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."
    },
    {
      "name": "Verifications",
      "description": "Initiates OID4VP presentation requests and validates holder JWT-VP responses. Returns verified credential claims extracted from the presentation."
    },
    {
      "name": "Webhook Events",
      "description": "Asynchronous events delivered by Hovi to the callback URL registered for the organization."
    }
  ],
  "paths": {
    "/organization/create": {
      "post": {
        "tags": [
          "Organization"
        ],
        "summary": "Create Organization",
        "description": "This route allows for the creation of a new organization within an ecosystem.",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTenantResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTenantResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid params",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization creation limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization creation limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createTenant"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/createTenant"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ]
      }
    },
    "/organization/": {
      "get": {
        "tags": [
          "Organization"
        ],
        "summary": "Get All Organization",
        "description": "Retrieves a list of organizations. By default, all organizations are returned.",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "description": "Filters the result by a specific organization id.",
            "required": false,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTenantsResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetTenantsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Unauthorized to access the organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Unauthorized to access the organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/organization/public-did": {
      "get": {
        "tags": [
          "Organization"
        ],
        "summary": "Get Public DID",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTenantDidsResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetTenantDidsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/organization/update": {
      "patch": {
        "tags": [
          "Organization"
        ],
        "summary": "Update Organization",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateTenantResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateTenantResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/updateTenant"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/updateTenant"
              }
            }
          }
        }
      }
    },
    "/organization/rotate-key": {
      "post": {
        "tags": [
          "Organization"
        ],
        "summary": "Rotate Organization Key",
        "description": "This route allows a organization to rotate their secret key, a critical security component used for authentication and encryption in the platform.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RotateTenantAccessTokenResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/RotateTenantAccessTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid organization secret",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Invalid organization secret"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/rotateKey"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/rotateKey"
              }
            }
          }
        }
      }
    },
    "/organization/delete": {
      "delete": {
        "tags": [
          "Organization"
        ],
        "summary": "Delete Organization",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteTenantReponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteTenantReponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid organization secret",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Invalid organization secret"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal Server Error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/deleteTenant"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/deleteTenant"
              }
            }
          }
        }
      }
    },
    "/credential-template/jwt-vc/create": {
      "post": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Create Template (JWT-VC)",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJwtVcCredentialTemplateResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJwtVcCredentialTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Credential template with the name and version already exists"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential template creation limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential template creation limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Category not found"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createJwtVcCredentialTemplate"
              },
              "example": {
                "$ref": "#/components/examples/createJwtVcCredentialTemplate"
              }
            }
          }
        }
      }
    },
    "/credential-template/": {
      "get": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Get Ecosystem Templates",
        "description": "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": "credentialTemplateId",
            "in": "query",
            "description": "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.",
            "required": false,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialTemplatesResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialTemplatesResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false
        }
      }
    },
    "/credential-template/organization": {
      "get": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Get Organization Templates",
        "description": "This route retrieves all credential templates or find a specific credential template by the credential template id created by an organization.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "credentialTemplateId",
            "in": "query",
            "description": "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.",
            "required": false,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialTemplatesResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialTemplatesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/credential-template/delete": {
      "delete": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Delete Template",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential template deleted successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential template deleted successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCredentialTemplate"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCredentialTemplate"
              }
            }
          }
        }
      }
    },
    "/credential-template/update": {
      "patch": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Update Template",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential Template updated successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential Template updated successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Invalid parameters"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Category not found"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCredentialTemplate"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCredentialTemplate"
              }
            }
          }
        }
      }
    },
    "/verification-template/jwt-vc/create": {
      "post": {
        "tags": [
          "Verification Templates"
        ],
        "summary": "Create Template (JWT-VC)",
        "description": "This route is used to create a JWT-VC verification template for a organization.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJwtVcVerificationTemplateResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJwtVcVerificationTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Invalid schema type"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification template creation limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification template creation limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Credential template not found"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createJwtVcVerificationTemplate"
              },
              "example": {
                "$ref": "#/components/examples/createJwtVcVerificationTemplate"
              }
            }
          }
        }
      }
    },
    "/verification-template/": {
      "get": {
        "tags": [
          "Verification Templates"
        ],
        "summary": "Get Ecosystem Templates",
        "description": "Retrieves verification templates from the current ecosystem. By default, all verification templates are returned.",
        "parameters": [
          {
            "name": "verificationTemplateId",
            "in": "query",
            "description": "Filters the result by a specific verification template id.",
            "required": false,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVerificationTemplatesResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetVerificationTemplatesResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/verification-template/organization": {
      "get": {
        "tags": [
          "Verification Templates"
        ],
        "summary": "Get Organization Templates",
        "description": "Retrieves verification templates for a specific organization. By default, all verification templates are returned.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "verificationTemplateId",
            "in": "query",
            "description": "Filters the result by a specific verification template id for a specific organization.",
            "required": false,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVerificationTemplatesResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetVerificationTemplatesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/verification-template/delete": {
      "delete": {
        "tags": [
          "Verification Templates"
        ],
        "summary": "Delete Template by Verification Template Id",
        "description": "This route is used to delete a specific verification template by its unique id.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification Template deleted successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification Template deleted successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteTemplateByVerificationTemplateId"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/DeleteTemplateByVerificationTemplateId"
              }
            }
          }
        }
      }
    },
    "/verification-template/update": {
      "patch": {
        "tags": [
          "Verification Templates"
        ],
        "summary": "Update Template by Verification Template Id",
        "description": "This route is used to update a specific verification template by its unique id.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification Template updated successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification Template updated successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Invalid parameters"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Category not found"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateByVerificationTemplateId"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateByVerificationTemplateId"
              }
            }
          }
        }
      }
    },
    "/credential/": {
      "get": {
        "tags": [
          "Credentials"
        ],
        "summary": "Get Credentials",
        "description": "This route retrieves a list of all verifiable credentials issued by the organization.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided.",
            "example": 1,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllCredentialsResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllCredentialsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/credential/find": {
      "get": {
        "tags": [
          "Credentials"
        ],
        "summary": "Get Credential by Id",
        "description": "This route retrieves detailed information about a specific verifiable credential issued by the organization, identified by its unique credential exchange ID.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "credentialExchangeId",
            "in": "query",
            "description": "Retrive detailed record credential by credential exchange id",
            "required": true,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/credential/jwt-vc/offer": {
      "post": {
        "tags": [
          "Credentials"
        ],
        "summary": "Offer Credential (JWT-VC)",
        "description": "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.\n\n### Related webhook events\n\nA later action in the flow can cause Hovi to send the following event to the registered webhook URL:\n\n- [Credential Issued](#tag/webhook-events/webhook/post/entra-credential-issued)",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueJwtVcCredentialResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/IssueJwtVcCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential issuance limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential issuance limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Template not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/issueJwtVcCredential"
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Credential Issued",
          "url": "#tag/webhook-events/webhook/post/entra-credential-issued"
        },
        "x-hovi-webhook-events": {
          "relationship": "asynchronous-flow-outcome",
          "events": [
            {
              "label": "Credential Issued",
              "recipient": "issuer organization",
              "$ref": "#/webhooks/entra-credential-issued",
              "url": "#tag/webhook-events/webhook/post/entra-credential-issued"
            }
          ]
        }
      }
    },
    "/webhook/add": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Add Webhook",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddWebhookResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/AddWebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Webhook url already exists"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/addWebhook"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/addWebhook"
              }
            }
          }
        }
      }
    },
    "/webhook/": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Get All Webhooks",
        "description": "Retrieves webhooks for a specific organization. By default, all webhooks are returned.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "webhookId",
            "in": "query",
            "description": "Filters the result by a specific webhook id.",
            "required": false,
            "example": "b1b8b362-7937-4f97-bc91-708472a9ddd6",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetWebhooksResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetWebhooksResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Remove Webhooks",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveWebhookResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveWebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Webhook not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Webhook not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Webhook not found"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/deleteWebhook"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/deleteWebhook"
              }
            }
          }
        }
      }
    },
    "/webhook/rotate-secret": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Rotate Webhook Secret",
        "description": "This route allows an organization to rotate the signing secret for an existing webhook.",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RotateWebhookSecretResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/RotateWebhookSecretResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Webhook not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Webhook not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Webhook not found"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/rotateWebhookSecret"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/rotateWebhookSecret"
              }
            }
          }
        }
      }
    },
    "/verification/session/document-coverage": {
      "get": {
        "description": "",
        "responses": {
          "default": {
            "description": ""
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ]
      }
    },
    "/verification/session/{sessionId}/redirect-target": {
      "get": {
        "description": "",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/verification/session/{sessionId}/id-verification/document": {
      "post": {
        "description": "",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/verification/session/{sessionId}/id-verification/passive-liveness": {
      "post": {
        "description": "",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/verification/session/{sessionId}/id-verification/face-match": {
      "post": {
        "description": "",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/verification/session/{sessionId}/id-verification/ip-risk": {
      "post": {
        "description": "",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/verification/session/{sessionId}/evidence": {
      "get": {
        "description": "",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "default": {
            "description": ""
          }
        }
      }
    },
    "/verification/send-proof-request": {
      "post": {
        "tags": [
          "Verifications"
        ],
        "summary": "Send Proof Request",
        "description": "Create a proof request for a credential holder using verification template.\n\n### Related webhook events\n\nA later action in the flow can cause Hovi to send the following event to the registered webhook URL:\n\n- [Presentation Verified](#tag/webhook-events/webhook/post/entra-presentation-verified)",
        "parameters": [
          {
            "name": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendProofRequestResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/SendProofRequestResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Verification limit exceeded. Please upgrade your plan or contact to support."
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Verification template not found"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sendProofRequest"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/sendProofRequest"
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Presentation Verified",
          "url": "#tag/webhook-events/webhook/post/entra-presentation-verified"
        },
        "x-hovi-webhook-events": {
          "relationship": "asynchronous-flow-outcome",
          "events": [
            {
              "label": "Presentation Verified",
              "recipient": "verifier organization",
              "$ref": "#/webhooks/entra-presentation-verified",
              "url": "#tag/webhook-events/webhook/post/entra-presentation-verified"
            }
          ]
        }
      }
    },
    "/verification/proof-request": {
      "get": {
        "tags": [
          "Verifications"
        ],
        "summary": "Get Proof Requests",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Filter proof requests by state",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "done",
                "abandoned"
              ]
            },
            "example": "pending"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number for paginated results. Each page returns up to 100 results. Defaults to 1 if not provided.",
            "example": 1,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProofRequestsResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetProofRequestsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/verification/proof-request/find": {
      "get": {
        "tags": [
          "Verifications"
        ],
        "summary": "Find Proof Request by Proof Exchange Id",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "proofExchangeId",
            "in": "query",
            "description": "Specifies the proof exchange id used to retrieve a specific proof request.",
            "required": true,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProofRequestResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetProofRequestResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false
        }
      }
    },
    "/verification/proof-response/find": {
      "get": {
        "tags": [
          "Verifications"
        ],
        "summary": "Find Proof Response by Presentation Id",
        "description": "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": "x-organization-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the organization (tenant) in UUID format.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "name": "presentationId",
            "in": "query",
            "description": "Retrive detailed proof presentation by presentation id",
            "required": false,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "proofExchangeId",
            "in": "query",
            "description": "Retrive detailed proof presentation by proof exchange id",
            "required": false,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Ecosystem API Key. Must be prefixed with \"Bearer \".",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer YOUR_ECOSYSTEM_API_KEY"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProofResponseByProofIdResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetProofResponseByProofIdResponse"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/GetProofResponseByProofIdResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid parameters"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for organization"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Organization not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CredentialAttribute": {
        "type": "object",
        "description": "A single claim field definition within a JWT-VC credential template.",
        "example": {
          "name": "name",
          "type": "string",
          "label": "Full Name",
          "description": "Full legal name of the credential subject.",
          "required": true
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "name",
            "maxLength": 50,
            "description": "Programmatic claim identifier used in the JWT `credentialSubject`."
          },
          "type": {
            "type": "string",
            "example": "string",
            "enum": [
              "string",
              "number",
              "boolean"
            ],
            "description": "Data type of the claim value."
          },
          "label": {
            "type": "string",
            "example": "Full Name",
            "maxLength": 100,
            "description": "Human-readable display label shown in wallet UIs."
          },
          "description": {
            "type": "string",
            "example": "Full legal name of the credential subject.",
            "maxLength": 200,
            "description": "Semantic description of the claim field and its purpose."
          },
          "required": {
            "type": "boolean",
            "example": true,
            "description": "Whether this claim must be provided during issuance."
          }
        }
      },
      "VerificationRequestedAttribute": {
        "type": "object",
        "description": "Requested attribute definition for verification templates. All requested attributes are required for verification.",
        "example": {
          "name": "name",
          "type": "string",
          "label": "Name",
          "description": "Name of the patient"
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "name",
            "description": "JWT claim name to request from the holder."
          },
          "label": {
            "type": "string",
            "example": "Name",
            "description": "Human-readable display label shown in the holder's wallet."
          },
          "type": {
            "type": "string",
            "example": "string",
            "description": "Data type of this claim."
          },
          "description": {
            "type": "string",
            "example": "Name of the patient",
            "description": "Optional description of this claim."
          },
          "attributes": {
            "type": "array",
            "description": "Nested sub-attributes for object-type claims.",
            "items": {
              "$ref": "#/components/schemas/VerificationRequestedAttribute"
            }
          }
        }
      },
      "CredentialTheme": {
        "title": "Credential Visual Theme",
        "type": "object",
        "description": "Visual rendering metadata for the JWT-VC card displayed in Entra-compatible holder wallets.",
        "example": {
          "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"
        },
        "properties": {
          "title": {
            "type": "string",
            "description": "Display title shown on the credential card in the wallet. If omitted, the credential-template name is used."
          },
          "description": {
            "type": "string",
            "description": "Short descriptive text shown on the credential card."
          },
          "issuedBy": {
            "type": "string",
            "description": "Issuing organization name displayed on the credential card. If omitted, the organization's display name is used."
          },
          "textColor": {
            "type": "string",
            "example": "#F5F7F4",
            "default": "#000000",
            "description": "Hex color code for the card text overlay. If omitted, `#000000` is used."
          },
          "backgroundColor": {
            "type": "string",
            "example": "#0B1F2A",
            "description": "Hex color code for the card background."
          },
          "logoUrl": {
            "type": "string",
            "format": "url",
            "description": "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."
          },
          "logoAlt": {
            "type": "string",
            "description": "Accessibility alt-text for the logo image. If omitted when `logoUrl` is provided, the organization's display name is used."
          }
        }
      },
      "CreateJwtVcCredentialTemplateResponse": {
        "title": "Create JWT-VC Credential Template Response",
        "type": "object",
        "description": "Returned after successfully creating a JWT-VC credential template backed by a Microsoft Entra Verified ID contract. The `schemaUrl` points to the Entra manifest endpoint used during OID4VCI issuance.",
        "example": {
          "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"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential template was successfully created."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for this credential template. Use when issuing credentials or referencing in verification configs."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem (top-level platform partition) this template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that owns this credential template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the credential template shown in Hovi Studio and holder wallets."
              },
              "version": {
                "type": "string",
                "description": "Semantic version string for this credential template."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of the credential type."
              },
              "type": {
                "type": "string",
                "enum": [
                  "jwt"
                ],
                "description": "Credential format. `jwt` — W3C Verifiable Credential encoded as a signed JWT, backed by a Microsoft Entra Verified ID contract."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the credential card background image displayed in the holder's wallet."
              },
              "attributes": {
                "type": "array",
                "description": "JWT `credentialSubject` claim definitions for this template.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "schemaUrl": {
                "type": "string",
                "format": "url",
                "description": "Microsoft Entra Verified ID manifest URL for this credential contract. Used during OID4VCI issuance to resolve the credential configuration."
              },
              "schemaType": {
                "type": "string",
                "description": "JWT-VC credential type string embedded as the `type` claim in issued credentials (e.g., `\"PatientRecord\"`)."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this credential template was created."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update to this template."
              }
            }
          }
        }
      },
      "GetCredentialTemplatesResponse": {
        "title": "Get Credential Templates Response",
        "type": "object",
        "description": "Returned when listing all JWT-VC credential templates belonging to an organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the listing was retrieved successfully. Returns `true` even when no templates exist (empty array)."
          },
          "response": {
            "type": "array",
            "description": "Array of all JWT-VC credential template records for this organization, ordered by creation time descending.",
            "items": {
              "type": "object",
              "properties": {
                "credentialTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Hovi-assigned UUID for this credential template."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem this template belongs to."
                },
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that owns this template."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the credential template."
                },
                "version": {
                  "type": "string",
                  "description": "Semantic version string for this credential template."
                },
                "description": {
                  "type": "string",
                  "description": "Plain-text description of the credential type."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "jwt"
                  ],
                  "description": "Credential format (`jwt` for Entra-backed JWT-VC)."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the credential card image displayed in the holder's wallet."
                },
                "attributes": {
                  "type": "array",
                  "description": "JWT `credentialSubject` claim definitions for this template.",
                  "items": {
                    "$ref": "#/components/schemas/CredentialAttribute"
                  }
                },
                "schemaUrl": {
                  "type": "string",
                  "format": "url",
                  "description": "Microsoft Entra Verified ID manifest URL for this credential contract."
                },
                "schemaType": {
                  "type": "string",
                  "description": "JWT-VC credential type string (the `type` claim in issued credentials)."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential template was created."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "GetVerificationTemplatesResponse": {
        "title": "Get Verification Templates Response",
        "type": "object",
        "description": "Returned when listing all JWT-VC verification templates belonging to an organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the listing was retrieved successfully. Returns `true` even when no templates exist (empty array)."
          },
          "response": {
            "type": "array",
            "description": "Array of all JWT-VC verification template records for this organization, ordered by creation time descending.",
            "items": {
              "type": "object",
              "properties": {
                "verificationTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Hovi-assigned UUID for this verification template."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem this template belongs to."
                },
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that owns this template."
                },
                "categoryId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Industry/sector category UUID for grouping in Hovi Studio."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the verification template."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the image displayed on the OID4VP presentation request screen in the holder's wallet."
                },
                "version": {
                  "type": "string",
                  "description": "Semantic version string for this verification template."
                },
                "description": {
                  "type": "string",
                  "description": "Plain-text description of what this verification template checks."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "jwt"
                  ],
                  "description": "Credential format this template targets (`jwt` for JWT-VC presentations)."
                },
                "requestedAttributes": {
                  "type": "array",
                  "description": "JWT credential claims the verifier requests the holder to disclose.",
                  "items": {
                    "$ref": "#/components/schemas/CredentialAttribute"
                  }
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this verification template was created."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "CreateJwtVcVerificationTemplateResponse": {
        "title": "Create JWT-VC Verification Template Response",
        "type": "object",
        "description": "Returned after successfully creating a JWT-VC verification template (an OID4VP presentation request blueprint targeting JWT-VC credentials — restricts accepted credentials by `schemaType` and issuer DID).",
        "example": {
          "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"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "verificationTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the newly created verification template."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization that created this template."
              },
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the credential template this verification template is bound to."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the verification template."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the image displayed on the OID4VP request screen in the holder's wallet."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of what this verification template checks."
              },
              "schemaTypeRestriction": {
                "type": "string",
                "description": "JWT-VC `type` claim value the presented credential must match (e.g., `\"PatientRecord\"`)."
              },
              "type": {
                "type": "string",
                "enum": [
                  "jwt"
                ],
                "description": "Credential format this verification template targets (`jwt` here)."
              },
              "requestedAttributes": {
                "type": "array",
                "description": "JWT credential claims the verifier requests from the holder.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this verification template was created."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update."
              }
            }
          }
        }
      },
      "AddWebhookResponse": {
        "title": "Add Webhook Response",
        "type": "object",
        "description": "Returned after successfully registering a new webhook endpoint.",
        "example": {
          "success": true,
          "response": {
            "webhookId": "7d3aae8bfbe4b8472511db2a957158e8",
            "webhookUrl": "https://kindi10.requestcatcher.com",
            "webhookSecret": "4FME20TvYrxqTHJmjOvM1OG7_amYukdYbsT8MjQUN-s"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "webhookId": {
                "type": "string",
                "description": "Unique hex identifier for this webhook registration."
              },
              "webhookUrl": {
                "type": "string",
                "format": "url",
                "description": "The HTTP callback URL that Hovi POSTs event notification payloads to."
              },
              "webhookSecret": {
                "type": "string",
                "description": "Secret used to sign webhook payloads. Generated automatically."
              }
            }
          }
        }
      },
      "RemoveWebhookResponse": {
        "title": "Remove Webhook Response",
        "type": "object",
        "description": "Returned after successfully deregistering a webhook endpoint.",
        "example": {
          "success": true
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the webhook was successfully removed."
          }
        }
      },
      "GetWebhooksResponse": {
        "title": "Get Webhooks Response",
        "type": "object",
        "description": "Returned when listing all registered webhook endpoints for an organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all registered webhook endpoints for the organization.",
            "items": {
              "type": "object",
              "properties": {
                "webhookId": {
                  "type": "string",
                  "description": "Unique hex identifier for this webhook registration."
                },
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that registered this webhook."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem this webhook belongs to."
                },
                "url": {
                  "type": "string",
                  "format": "url",
                  "description": "HTTP callback URL that receives Hovi event notification POST requests."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this webhook was registered."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "CreateTenantResponse": {
        "title": "Create Tenant Response",
        "type": "object",
        "description": "Returned after successfully creating a new organization (tenant). The response includes the organization's access token, auto-provisioned `did:web` DID with its DID Document and Well-Known DID Configuration payloads, and any configured webhooks.",
        "example": {
          "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"
              }
            ]
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the newly created organization."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this organization was created."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update."
              },
              "setting": {
                "type": "object",
                "description": "Display and branding settings for the organization.",
                "properties": {
                  "organizationName": {
                    "type": "string",
                    "description": "Registered name of the organization."
                  },
                  "defaultLabel": {
                    "type": "string",
                    "description": "Default label used in credential offers and presentation requests."
                  },
                  "imageUrl": {
                    "type": "string",
                    "format": "url",
                    "description": "URL of the organization's logo."
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Organization identifier (mirrors `organizationId`)."
                  }
                }
              },
              "accessToken": {
                "type": "string",
                "description": "Organization-scoped Ecosystem API Key (JWT). Use as the Bearer token in the `Authorization` header. Store securely — treat as a secret."
              },
              "dids": {
                "type": "array",
                "description": "DIDs provisioned for this organization. Each `did:web` DID includes the DID Document and Well-Known DID Configuration payloads ready for publication.",
                "items": {
                  "type": "object",
                  "properties": {
                    "did": {
                      "type": "string",
                      "description": "Full `did:web` DID string (e.g., `did:web:your-did.com`)."
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "web",
                        "key",
                        "jwk"
                      ],
                      "description": "DID method used for this identifier."
                    },
                    "signingKeys": {
                      "type": "array",
                      "description": "Azure Key Vault URLs for the signing keys associated with this DID.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "document": {
                      "type": "object",
                      "description": "DID Document payload and its target publication URL.",
                      "properties": {
                        "payload": {
                          "type": "object",
                          "description": "W3C DID Document JSON — publish this at the `publishOn` URL to make the DID resolvable.",
                          "properties": {
                            "@context": {
                              "type": "array",
                              "description": "JSON-LD contexts for the DID Document.",
                              "items": {
                                "type": "string"
                              }
                            },
                            "id": {
                              "type": "string",
                              "description": "The DID subject identifier."
                            },
                            "verificationMethod": {
                              "type": "array",
                              "description": "Public key verification methods for this DID.",
                              "items": {
                                "type": "object"
                              }
                            }
                          }
                        },
                        "publishOn": {
                          "type": "string",
                          "format": "url",
                          "description": "Target URL where the DID Document must be hosted (e.g., `https://your-did.com/.well-known/did.json`)."
                        }
                      }
                    },
                    "wellKnownConfig": {
                      "type": "object",
                      "description": "Well-Known DID Configuration payload and its target publication URL. Required for Entra domain validation.",
                      "properties": {
                        "payload": {
                          "type": "object",
                          "description": "DID Configuration document — publish at `publishOn` to link the DID to the domain."
                        },
                        "publishOn": {
                          "type": "string",
                          "format": "url",
                          "description": "Target URL for the Well-Known DID Configuration (e.g., `https://your-did.com/.well-known/did-configuration.json`)."
                        }
                      }
                    }
                  }
                }
              },
              "webhooks": {
                "type": "array",
                "description": "Webhook endpoints registered during tenant creation.",
                "items": {
                  "type": "object",
                  "properties": {
                    "webhookId": {
                      "type": "string",
                      "description": "Unique identifier for this webhook registration."
                    },
                    "webhookUrl": {
                      "type": "string",
                      "format": "url",
                      "description": "HTTP callback URL registered to receive event notifications."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "RotateTenantAccessTokenResponse": {
        "title": "Rotate Tenant Access Token Response",
        "type": "object",
        "description": "Returned after successfully rotating the organization's Ecosystem API Key. The previous token is immediately invalidated — update all integrations immediately.",
        "example": {
          "success": true,
          "response": {
            "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqZGhORFpsT1RneUxUUTVNemt0TkRobVpDMDRabUl6TFRNeVpEaGxaVEV4T1RZMk5TSXNJbWxoZENJNk1UY3lNamcyTkRVMU5uMD0.VUejpKgvZWDHrO1SogCxixRM1S4ykQAHqpIu0XmrTvI"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the token rotation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "accessToken": {
                "type": "string",
                "description": "Newly generated Ecosystem API Key (JWT). Replace the previous token in all API clients immediately."
              }
            }
          }
        }
      },
      "DeleteTenantReponse": {
        "title": "Delete Tenant Response",
        "type": "object",
        "description": "Returned after successfully deleting an organization and all its associated resources. This action is irreversible.",
        "example": {
          "success": true
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the tenant was successfully deleted."
          }
        }
      },
      "GetTenantsResponse": {
        "title": "Get Tenants Response",
        "type": "object",
        "description": "Returned when listing all organizations within the Hovi ecosystem, including archived ones. Each item includes a `status` of `active` or `archived`. Optional `organizationId` query filters to a single organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all organizations registered within the Hovi ecosystem, including archived ones.",
            "items": {
              "type": "object",
              "properties": {
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for the organization."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem this organization belongs to."
                },
                "dids": {
                  "type": "array",
                  "description": "DIDs provisioned for this organization.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "did": {
                        "type": "string",
                        "description": "Full DID string (e.g., `did:web:entra.hovi.id`)."
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "web",
                          "key",
                          "jwk"
                        ],
                        "description": "DID method used for this identifier."
                      }
                    }
                  }
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the organization."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the organization's logo image."
                },
                "label": {
                  "type": "string",
                  "description": "Short label used in credential offers and presentation requests."
                },
                "openIdWellKnownCredentialIssuerUrl": {
                  "type": "string",
                  "format": "url",
                  "description": "OID4VCI `/.well-known/openid-credential-issuer` metadata URL for this organization. Wallets use this to discover supported credential types and issuer configuration."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "description": "Organization lifecycle status. `active` organizations are fully operational. `archived` organizations remain visible in listings but most mutating operations are blocked."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this organization was created."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "GetTenantDidsResponse": {
        "title": "Get Tenant DIDs Response",
        "type": "object",
        "description": "Returned when listing all DIDs provisioned for a specific organization.",
        "example": {
          "success": true,
          "response": [
            {
              "did": "did:web:entra.hovi.id",
              "method": "web"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of DIDs provisioned for the organization.",
            "items": {
              "type": "object",
              "properties": {
                "did": {
                  "type": "string",
                  "description": "Full DID string (e.g., `did:web:entra.hovi.id`)."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "web",
                    "key",
                    "jwk"
                  ],
                  "description": "DID method used for this identifier."
                }
              }
            }
          }
        }
      },
      "SendProofRequestResponse": {
        "title": "Send Proof Request Response",
        "type": "object",
        "description": "Returned after successfully initiating an OID4VP presentation request. The `verificationUri` is encoded into a QR code or deep link for the holder wallet to scan and initiate the presentation flow.",
        "example": {
          "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="
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the presentation request was successfully initiated."
          },
          "response": {
            "type": "object",
            "properties": {
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Server-assigned UUID for this OID4VP session. Use to poll for state transitions and retrieve verified credential claims."
              },
              "verificationUri": {
                "type": "string",
                "description": "OID4VP request URI (`openid-vc://?request_uri=...`). Encode as a QR code or deep link for the holder wallet to initiate the presentation flow."
              },
              "requestExpiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp after which this presentation request expires and can no longer be satisfied by the holder."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "done",
                  "expired"
                ],
                "description": "Current state of the OID4VP session. `pending` — awaiting holder presentation. `done` — presentation received and verified. `expired` — request timed out."
              },
              "verificationUrl": {
                "type": "string",
                "format": "url",
                "description": "Universal app link encapsulating the verification session for mobile wallet deep linking."
              }
            }
          }
        }
      },
      "GetProofRequestsResponse": {
        "title": "Get Proof Requests Response",
        "type": "object",
        "description": "Returned when listing all OID4VP proof exchange records for an organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all OID4VP proof exchange records for the organization.",
            "items": {
              "type": "object",
              "properties": {
                "proofExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this OID4VP session."
                },
                "verificationUri": {
                  "type": "string",
                  "description": "OID4VP request URI used to initiate this presentation flow."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "done",
                    "expired"
                  ],
                  "description": "Current state of the OID4VP session."
                },
                "count": {
                  "type": "number",
                  "description": "Number of presentations received for this proof exchange."
                },
                "requestExpiresAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this request expires."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this proof exchange was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change."
                }
              }
            }
          }
        }
      },
      "GetProofRequestResponse": {
        "title": "Get Proof Request Response",
        "type": "object",
        "description": "Returned when retrieving a single OID4VP proof exchange by ID. When `state` is `done`, the `presentationExchange` field contains the full DIF Presentation Exchange payload including decoded JWT-VP presentations, the original request definition, and the presentation submission mapping.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for this OID4VP session."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this proof exchange was initiated."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent state change."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "done",
                  "expired"
                ],
                "description": "Current state of the OID4VP session."
              },
              "isVerified": {
                "type": "boolean",
                "description": "Whether the received JWT-VP presentation passed cryptographic signature verification."
              },
              "message": {
                "type": "string",
                "description": "Human-readable status message describing the outcome."
              },
              "verificationUrl": {
                "type": "string",
                "format": "url",
                "description": "Universal app link for mobile wallet deep linking."
              },
              "verificationUri": {
                "type": "string",
                "description": "OID4VP request URI used to initiate this presentation flow."
              },
              "presentationExchange": {
                "type": "object",
                "description": "Full DIF Presentation Exchange payload. Present only when `state` is `done` — contains decoded presentations, the original request definition, and the submission mapping.",
                "properties": {
                  "presentations": {
                    "type": "array",
                    "description": "Array of decoded JWT-VP presentations submitted by the holder wallet.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "jwt": {
                          "type": "object",
                          "description": "Decoded components of the JWT-VP wrapper.",
                          "properties": {
                            "serializedJwt": {
                              "type": "string",
                              "description": "Base64-URL encoded JWT-VP string as received from the wallet."
                            },
                            "payload": {
                              "type": "object",
                              "description": "Decoded JWT payload containing claims and nested JWT-VCs."
                            },
                            "header": {
                              "type": "object",
                              "description": "Decoded JWT header containing `typ`, `alg`, and `kid`."
                            },
                            "signature": {
                              "type": "object",
                              "description": "Extracted signature bytes from the JWT."
                            }
                          }
                        },
                        "_presentation": {
                          "type": "object",
                          "description": "Unmarshaled W3C Verifiable Presentation object decoded from the JWT-VP.",
                          "properties": {
                            "@context": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "JSON-LD context array."
                            },
                            "type": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Presentation type identifiers."
                            },
                            "verifiableCredential": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Array of serialized JWT-VC strings included in the presentation."
                            },
                            "holder": {
                              "type": "string",
                              "description": "Holder's DID."
                            }
                          }
                        }
                      }
                    }
                  },
                  "request": {
                    "type": "object",
                    "description": "Original DIF Presentation Definition sent to the wallet (specifies which credential types and claims are required).",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "Unique identifier of the Presentation Definition."
                      },
                      "purpose": {
                        "type": "string",
                        "description": "Human-readable reason for the data request shown to the holder."
                      },
                      "input_descriptors": {
                        "type": "array",
                        "description": "DIF input descriptors specifying JSONPath constraints that a credential must satisfy.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for this input descriptor."
                            },
                            "constraints": {
                              "type": "object",
                              "description": "JSONPath field constraints the credential must satisfy.",
                              "properties": {
                                "fields": {
                                  "type": "array",
                                  "description": "Array of JSONPath field matchers applied to the JWT-VC payload.",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        },
                                        "description": "JSONPath expressions targeting fields in the JWT-VC."
                                      },
                                      "filter": {
                                        "type": "object",
                                        "description": "Optional JSON Schema filter applied to the value at the given path.",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "description": "Expected JSON type of the field value."
                                          },
                                          "pattern": {
                                            "type": "string",
                                            "description": "Regex pattern the field value must match."
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "submission": {
                    "type": "object",
                    "description": "DIF Presentation Submission — the wallet's response mapping which credentials fulfill each input descriptor.",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Unique identifier of this presentation submission."
                      },
                      "definition_id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "ID of the Presentation Definition this submission fulfills."
                      },
                      "descriptor_map": {
                        "type": "array",
                        "description": "Mappings from input descriptor IDs to the JWT paths where fulfilling credentials are located.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Input descriptor ID this entry fulfills."
                            },
                            "format": {
                              "type": "string",
                              "enum": [
                                "jwt_vp",
                                "jwt_vc"
                              ],
                              "description": "JWT format of the credential at this path."
                            },
                            "path": {
                              "type": "string",
                              "description": "JSONPath to the presentation in the submission payload."
                            },
                            "path_nested": {
                              "type": "object",
                              "description": "Nested path for the JWT-VC within the JWT-VP.",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Input descriptor ID for the nested credential."
                                },
                                "format": {
                                  "type": "string",
                                  "enum": [
                                    "jwt_vc"
                                  ],
                                  "description": "JWT format of the nested credential."
                                },
                                "path": {
                                  "type": "string",
                                  "description": "JSONPath to the JWT-VC within the JWT-VP payload."
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "IssueJwtVcCredentialResponse": {
        "title": "Issue JWT-VC Credential Response",
        "type": "object",
        "description": "Returned after successfully initiating a JWT-VC credential issuance via OID4VCI. The `credentialOfferUri` is encoded into a QR code or deep link for the holder wallet to scan and claim the credential.",
        "example": {
          "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=="
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the credential offer was successfully created."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for this OID4VCI issuance session. Use to poll for holder acceptance state."
              },
              "credentialOfferUri": {
                "type": "string",
                "description": "OID4VCI credential offer URI (`openid-vc://?request_uri=...`). Encode as a QR code or deep link for the holder wallet to claim the credential."
              },
              "offerExpiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp after which this credential offer expires and can no longer be accepted by the holder."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "done",
                  "expired"
                ],
                "description": "Current state of the OID4VCI session. `pending` — awaiting holder acceptance. `done` — credential issued and stored in holder wallet. `expired` — offer timed out."
              },
              "credentialOfferUrl": {
                "type": "string",
                "format": "url",
                "description": "Universal app link encapsulating the credential offer for mobile wallet deep linking."
              }
            }
          }
        }
      },
      "GetProofResponsesResponse": {
        "title": "Get Proof Responses Response",
        "type": "object",
        "description": "Returned when listing all verified presentation responses for an OID4VP proof exchange. Each item contains the verified JWT-VC claims extracted from the holder's presentation, revocation status, and domain validation result.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of verified presentation response records for the proof exchange.",
            "items": {
              "type": "object",
              "properties": {
                "proofExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the OID4VP session this response belongs to."
                },
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the verifier organization."
                },
                "presentationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this specific presentation response."
                },
                "verifiedCredentialsData": {
                  "type": "array",
                  "description": "Array of verified JWT-VC credential records extracted from the holder presentation.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "issuer": {
                        "type": "string",
                        "description": "Issuer DID from the JWT-VC `iss` claim (e.g., `did:web:entra-onboard.hovi-api.id`)."
                      },
                      "type": {
                        "type": "array",
                        "description": "JWT-VC `type` array (e.g., `[\"VerifiableCredential\", \"PatientRecord\"]`).",
                        "items": {
                          "type": "string"
                        }
                      },
                      "claims": {
                        "type": "object",
                        "description": "Verified JWT `credentialSubject` claim values extracted from the credential.",
                        "additionalProperties": {
                          "type": "string",
                          "description": "Claim value as a string."
                        }
                      },
                      "credentialState": {
                        "type": "object",
                        "description": "Revocation status of the credential as checked against the issuer revocation endpoint.",
                        "properties": {
                          "revocationStatus": {
                            "type": "string",
                            "enum": [
                              "VALID",
                              "REVOKED"
                            ],
                            "description": "`VALID` — credential is not revoked. `REVOKED` — credential has been revoked by the issuer."
                          }
                        }
                      },
                      "domainValidation": {
                        "type": "object",
                        "description": "Entra domain validation result — confirms the issuer's DID is linked to their claimed web domain via Well-Known DID Configuration.",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "url",
                            "description": "Validated domain URL linked to the issuer's `did:web` DID."
                          }
                        }
                      },
                      "expirationDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 expiration date of the JWT-VC (`exp` claim)."
                      },
                      "issuanceDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 issuance date of the JWT-VC (`nbf` or `iat` claim)."
                      }
                    }
                  }
                },
                "holderDid": {
                  "type": "string",
                  "description": "Holder's `did:jwk` DID extracted from the JWT-VP `sub` or `holder` claim — identifies the wallet that submitted the presentation."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this presentation response was received."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "UpdateTenantResponse": {
        "title": "Update Tenant Response",
        "type": "object",
        "description": "Returned after successfully updating an organization's display settings.",
        "example": {
          "success": true,
          "message": "Organization updated successfully"
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the tenant update was successful."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "createTenant": {
        "title": "Create Tenant",
        "type": "object",
        "required": [
          "name",
          "label",
          "secret",
          "imageUrl"
        ],
        "description": "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.",
        "example": {
          "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"
          ]
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "Acme Corp",
            "description": "Registered name of the organization displayed in Hovi Studio and credential/presentation request UIs."
          },
          "label": {
            "type": "string",
            "example": "acme-corp",
            "description": "Short slug label used in credential offers and presentation request screens shown to the holder."
          },
          "secret": {
            "type": "string",
            "example": "acme-corp-secret-2024",
            "description": "Secret passphrase for administrative operations (key rotation, tenant deletion). Store securely — never expose publicly."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/logo.png",
            "description": "URL of the organization's logo shown in Hovi Studio and holder wallet UIs."
          },
          "webhooks": {
            "type": "array",
            "example": [
              "https://acme-corp.com/webhook1",
              "https://acme-corp.com/webhook2"
            ],
            "description": "Optional HTTP callback URLs to register during tenant creation. Hovi POSTs event notifications to each URL.",
            "items": {
              "type": "string",
              "format": "url"
            }
          }
        }
      },
      "updateTenant": {
        "title": "Update Tenant",
        "type": "object",
        "description": "The data required to update an organization's display settings. All fields are optional — only the fields provided will be updated.",
        "example": {
          "label": "acme-corp-updated",
          "imageUrl": "https://new-acme-corp.com/new-logo.png"
        },
        "properties": {
          "label": {
            "type": "string",
            "example": "acme-corp-updated",
            "description": "Updated short slug label used in credential offers and presentation request screens."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://new-acme-corp.com/new-logo.png",
            "description": "Updated URL of the organization's logo."
          }
        }
      },
      "deleteTenant": {
        "title": "Delete Tenant",
        "type": "object",
        "required": [
          "organizationSecret"
        ],
        "description": "The data required to permanently delete an organization and all its associated resources. This action is irreversible.",
        "example": {
          "organizationSecret": "acme-corp-secret-2024"
        },
        "properties": {
          "organizationSecret": {
            "type": "string",
            "example": "acme-corp-secret-2024",
            "description": "Organization secret passphrase set during tenant creation — required to authorize this destructive operation."
          }
        }
      },
      "rotateKey": {
        "title": "Rotate Tenant Access Token",
        "type": "object",
        "required": [
          "accessToken",
          "organizationSecret"
        ],
        "description": "The data required to rotate (regenerate) an organization's active `accessToken`. The previous token is immediately invalidated.",
        "example": {
          "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
          "organizationSecret": "acme-corp-secret-2024"
        },
        "properties": {
          "accessToken": {
            "type": "string",
            "example": "eyJhbGciOiJIUzI1NiJ9...",
            "description": "Current active `accessToken` — required to authorize the key rotation request."
          },
          "organizationSecret": {
            "type": "string",
            "example": "acme-corp-secret-2024",
            "description": "Organization secret passphrase — required as a second factor to authorize the key rotation."
          }
        }
      },
      "getWebhook": {
        "title": "Get Webhook",
        "type": "object",
        "required": [
          "webhookId"
        ],
        "description": "The data required to retrieve a specific webhook registration by its ID.",
        "example": {
          "webhookId": "305b56ab8064dfdd801d1697795e7ab0"
        },
        "properties": {
          "webhookId": {
            "type": "string",
            "example": "305b56ab8064dfdd801d1697795e7ab0",
            "description": "Unique hex identifier of the webhook registration to retrieve."
          }
        }
      },
      "addWebhook": {
        "title": "Add Webhook",
        "type": "object",
        "required": [
          "webhookUrl"
        ],
        "description": "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)",
        "example": {
          "webhookUrl": "https://acme-corp.com/webhook1"
        },
        "properties": {
          "webhookUrl": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/webhook1",
            "description": "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."
          }
        }
      },
      "deleteWebhook": {
        "title": "Delete Webhook",
        "type": "object",
        "required": [
          "webhookId"
        ],
        "description": "The data required to deregister a webhook endpoint. Hovi will stop sending event notifications to the associated URL.",
        "example": {
          "webhookId": "305b56ab8064dfdd801d1697795e7ab0"
        },
        "properties": {
          "webhookId": {
            "type": "string",
            "example": "305b56ab8064dfdd801d1697795e7ab0",
            "description": "Unique hex identifier of the webhook registration to remove."
          }
        }
      },
      "rotateWebhookSecret": {
        "title": "Rotate Webhook Secret",
        "type": "object",
        "required": [
          "webhookId"
        ],
        "description": "The data required to rotate the signing secret for an existing webhook. A signing secret is generated automatically.",
        "example": {
          "webhookId": "305b56ab8064dfdd801d1697795e7ab0"
        },
        "properties": {
          "webhookId": {
            "type": "string",
            "example": "305b56ab8064dfdd801d1697795e7ab0",
            "description": "Unique hex identifier of the webhook whose secret should be rotated."
          }
        }
      },
      "RotateWebhookSecretResponse": {
        "title": "Rotate Webhook Secret Response",
        "type": "object",
        "description": "Returned after successfully rotating a webhook signing secret.",
        "example": {
          "success": true,
          "response": {
            "webhookId": "305b56ab8064dfdd801d1697795e7ab0",
            "webhookSecret": "your-new-webhook-secret"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "webhookId": {
                "type": "string",
                "description": "Unique identifier of the webhook."
              },
              "webhookSecret": {
                "type": "string",
                "description": "Newly generated webhook signing secret."
              }
            }
          }
        }
      },
      "createJwtVcCredentialTemplate": {
        "title": "Create JWT-VC Credential Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "attributes",
          "schemaType"
        ],
        "description": "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.",
        "example": {
          "name": "Patient ID",
          "version": "1.0.2",
          "image": "https://acme-corp.com/patient.png",
          "description": "Patient ID Card",
          "attributes": [
            {
              "name": "name",
              "label": "Name",
              "type": "string",
              "description": "Name of the patient",
              "required": true
            },
            {
              "name": "age",
              "label": "Age",
              "type": "string",
              "description": "Age of the patient",
              "required": true
            }
          ],
          "schemaType": "PatientRecord",
          "credentialTheme": {
            "title": "Patient ID Card",
            "description": "Proof of admission in the hospital",
            "issuedBy": "Acme Hospital",
            "textColor": "#F5F7F4",
            "backgroundColor": "#0B1F2A",
            "logoUrl": "https://e7.pngegg.com/pngimages/359/743/png-clipart-logo-community-text-logo.png",
            "logoAlt": "logo"
          },
          "supportRevocation": true
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "Patient ID",
            "description": "Human-readable name for the credential template. Used as the Entra contract display name."
          },
          "version": {
            "type": "string",
            "example": "1.0.2",
            "description": "Semantic version string for the credential template."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL of the credential card image displayed in the holder's wallet.\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          },
          "description": {
            "type": "string",
            "example": "Patient ID Card",
            "description": "Plain-text description of the credential type."
          },
          "attributes": {
            "type": "array",
            "description": "JWT `credentialSubject` claim definitions. Each attribute becomes a claimable field during OID4VCI issuance and a selectively requestable claim during OID4VP verification.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "name",
                  "maxLength": 50,
                  "description": "Programmatic claim identifier used in the JWT `credentialSubject`."
                },
                "type": {
                  "type": "string",
                  "example": "string",
                  "enum": [
                    "string",
                    "number",
                    "boolean"
                  ],
                  "description": "Data type of the claim value."
                },
                "label": {
                  "type": "string",
                  "example": "Name",
                  "maxLength": 100,
                  "description": "Human-readable display label shown in wallet UIs."
                },
                "description": {
                  "type": "string",
                  "example": "Name of the patient",
                  "maxLength": 200,
                  "description": "Semantic description of the claim field."
                },
                "required": {
                  "type": "boolean",
                  "example": true,
                  "enum": [
                    true,
                    false
                  ],
                  "default": false,
                  "description": "Whether this claim must be provided during issuance."
                }
              }
            }
          },
          "schemaType": {
            "type": "string",
            "example": "PatientRecord",
            "description": "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": {
            "$ref": "#/components/schemas/CredentialTheme"
          },
          "supportRevocation": {
            "type": "boolean",
            "example": true,
            "enum": [
              true,
              false
            ],
            "default": false,
            "description": "Whether issued credentials support revocation status checking via the Entra revocation endpoint."
          }
        }
      },
      "getTemplateByCredentialTemplateId": {
        "title": "Get Template By ID",
        "type": "object",
        "required": [
          "credentialTemplateId"
        ],
        "description": "The data required to retrieve a specific credential template by its unique identifier.",
        "example": {
          "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "38fb278d-57cf-6bb3-0400-37214bddc258",
            "description": "Unique identifier of the credential template to retrieve."
          }
        }
      },
      "GetAllCredentialsResponse": {
        "title": "Get All Credentials",
        "type": "object",
        "description": "Retrieves a list of all credential issuance exchanges for the organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "status": {
            "type": "string",
            "example": "200",
            "description": "HTTP status code as string."
          },
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all credential issuance exchanges for this organization.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this credential issuance exchange."
                },
                "credentialOfferUri": {
                  "type": "string",
                  "description": "OpenID4VCI credential offer URI for QR code generation or deep linking."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "done"
                  ],
                  "description": "Current lifecycle state of the credential offer."
                },
                "count": {
                  "type": "integer",
                  "description": "Number of times the credential offer has been accepted."
                },
                "issuerDid": {
                  "type": "string",
                  "description": "DID of the issuer providing the credential."
                },
                "offerExpiresAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the credential offer expires."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the credential issuance was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent status update."
                }
              }
            }
          }
        }
      },
      "GetProofResponseByProofIdResponse": {
        "title": "Get Proof Response by Proof ID",
        "type": "object",
        "description": "Retrieves detailed proof response information including verified credentials data and holder information.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of proof responses with verified credentials data.",
            "items": {
              "type": "object",
              "properties": {
                "proofExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for the proof exchange session."
                },
                "tenantId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the tenant associated with this proof exchange."
                },
                "presentationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for the verifiable presentation."
                },
                "verifiedCredentialsData": {
                  "type": "array",
                  "description": "Array of verified credentials submitted in the presentation.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "issuer": {
                        "type": "string",
                        "description": "DID of the credential issuer."
                      },
                      "type": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Array of credential type classifications."
                      },
                      "claims": {
                        "type": "object",
                        "description": "Credential claim data."
                      },
                      "credentialState": {
                        "type": "object",
                        "description": "Credential status information.",
                        "properties": {
                          "revocationStatus": {
                            "type": "string",
                            "enum": [
                              "VALID",
                              "REVOKED",
                              "SUSPENDED"
                            ],
                            "description": "Current revocation status of the credential."
                          }
                        }
                      },
                      "domainValidation": {
                        "type": "object",
                        "description": "Domain validation details.",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "url",
                            "description": "Domain URL for validation."
                          }
                        }
                      },
                      "expirationDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 timestamp when the credential expires."
                      },
                      "issuanceDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 timestamp when the credential was issued."
                      }
                    }
                  }
                },
                "holderDid": {
                  "type": "string",
                  "description": "DID of the credential holder who submitted the presentation."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the proof exchange was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "GetCredentialResponse": {
        "title": "Get Credential By ID",
        "type": "object",
        "description": "Retrieves the detailed status and payload of a specific credential issuance transaction (full details about one credential exchange).",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "status": {
            "type": "string",
            "example": "200",
            "description": "HTTP status code as string."
          },
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all credential issuance exchanges for this organization.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this credential issuance exchange."
                },
                "credentialOfferUri": {
                  "type": "string",
                  "description": "OpenID4VCI credential offer URI for QR code generation or deep linking."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "done"
                  ],
                  "description": "Current lifecycle state of the credential offer."
                },
                "count": {
                  "type": "integer",
                  "description": "Number of times the credential offer has been accepted."
                },
                "issuerDid": {
                  "type": "string",
                  "description": "DID of the issuer providing the credential."
                },
                "offerExpiresAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the credential offer expires."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the credential issuance was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent status update."
                }
              }
            }
          }
        }
      },
      "getCredentialById": {
        "title": "Get Credential By ID",
        "type": "object",
        "required": [
          "credentialExchangeId"
        ],
        "description": "The data required to retrieve a specific OID4VCI credential exchange record by its unique identifier.",
        "example": {
          "credentialExchangeId": "13891eaa-89eb-4f43-b66b-cee7523329f6"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "13891eaa-89eb-4f43-b66b-cee7523329f6",
            "description": "Unique identifier of the OID4VCI credential exchange record to retrieve."
          }
        }
      },
      "issueJwtVcCredential": {
        "title": "Issue JWT-VC Credential",
        "type": "object",
        "required": [
          "credentialTemplateId",
          "credentialValues"
        ],
        "description": "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.",
        "example": {
          "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          },
          "pinRequired": true,
          "pinLength": 6,
          "credentialExpiry": 1760429046163
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "38fb278d-57cf-6bb3-0400-37214bddc258",
            "description": "JWT-VC credential template to use for this issuance — defines the Entra contract, claim schema, and visual theme."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "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`.",
            "additionalProperties": {
              "type": "string"
            }
          },
          "pinRequired": {
            "type": "boolean",
            "example": true,
            "enum": [
              true,
              false
            ],
            "default": false,
            "description": "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": {
            "type": "number",
            "example": 6,
            "description": "Length of the PIN generated by Entra when `pinRequired` is `true`. Typically 4 or 6 digits."
          },
          "credentialExpiry": {
            "type": "number",
            "example": 1760429046163,
            "description": "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."
          }
        }
      },
      "getTemplateByVerificationTemplateId": {
        "title": "Get Verification Template By ID",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to retrieve a specific verification template by its unique identifier.",
        "example": {
          "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
            "description": "Unique identifier of the verification template to retrieve."
          }
        }
      },
      "createJwtVcVerificationTemplate": {
        "title": "Create JWT-VC Verification Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description"
        ],
        "description": "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).",
        "example": {
          "name": "Patient Verification",
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "version": "1.0.0",
          "description": "Patient ID Card Verification",
          "image": "https://acme-corp.com/patient.png",
          "requestedAttributes": [],
          "restrictions": {
            "credentialTemplateId": "aa539579-2658-f8de-e536-b0250baf2053",
            "issuerDid": "did:web:entra.hovi.id"
          }
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "Patient Verification",
            "description": "Human-readable name for the verification template."
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "enum": [
              "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"
            ],
            "example": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "default": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
            "description": "Industry/sector category UUID for this verification template.\n\n**Supported Categories:**\n| Category Name | Category ID |\n| :--- | :--- |\n| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |\n| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |\n| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |\n| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |\n| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |\n| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |\n| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |"
          },
          "version": {
            "type": "string",
            "example": "1.0.0",
            "description": "Semantic version string for the verification template."
          },
          "description": {
            "type": "string",
            "example": "Patient ID Card Verification",
            "description": "Plain-text description of what this verification template checks."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL of the image displayed on the OID4VP presentation request screen in the holder's wallet.\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          },
          "requestedAttributes": {
            "type": "array",
            "description": "JWT credential claims the verifier requests the holder to disclose in their presentation. All requested attributes are required for verification.",
            "items": {
              "$ref": "#/components/schemas/VerificationRequestedAttribute"
            }
          },
          "restrictions": {
            "type": "object",
            "description": "Defines which JWT-VC credentials can satisfy this presentation request. All provided fields are AND-ed together.",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "example": "aa539579-2658-f8de-e536-b0250baf2053",
                "description": "Restricts accepted credentials to those issued from this specific Hovi credential template. Resolves to the matching `schemaType` restriction."
              },
              "issuerDid": {
                "type": "string",
                "example": "did:web:entra.hovi.id",
                "description": "Restricts accepted credentials to those signed by this specific issuer DID (e.g., `did:web:entra.hovi.id`)."
              }
            }
          }
        }
      },
      "getProofRequestById": {
        "title": "Get Proof Request By ID",
        "type": "object",
        "required": [
          "proofExchangeId"
        ],
        "description": "The data required to retrieve a specific OID4VP proof exchange record by its unique identifier.",
        "example": {
          "proofExchangeId": "d12748e1-0ef4-4122-9aa5-d3c7a78463c8"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "d12748e1-0ef4-4122-9aa5-d3c7a78463c8",
            "description": "Unique identifier of the OID4VP proof exchange session to retrieve."
          }
        }
      },
      "getProofResponseById": {
        "title": "Get Proof Response By ID",
        "type": "object",
        "required": [
          "presentationId"
        ],
        "description": "The data required to retrieve a specific verified presentation response by its presentation identifier.",
        "example": {
          "presentationId": "91a8a825-a78a-43fe-9377-200a66a277e9"
        },
        "properties": {
          "presentationId": {
            "type": "string",
            "format": "uuid",
            "example": "91a8a825-a78a-43fe-9377-200a66a277e9",
            "description": "Unique identifier of the verified presentation response to retrieve."
          }
        }
      },
      "sendProofRequest": {
        "title": "Send Proof Request",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to initiate an OID4VP presentation request. Returns a `verificationUri` (`openid-vc://...`) that the holder wallet scans to begin the presentation flow.",
        "example": {
          "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
          "purpose": "Verify patient identity for hospital admission.",
          "allowRevoked": false
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
            "description": "Verification template to use as the OID4VP request blueprint — defines which JWT-VC type and claims to request from the holder."
          },
          "purpose": {
            "type": "string",
            "example": "Verify patient identity for hospital admission.",
            "description": "Human-readable reason for the presentation request shown to the holder in their wallet during the OID4VP flow."
          },
          "allowRevoked": {
            "type": "boolean",
            "example": false,
            "enum": [
              true,
              false
            ],
            "default": false,
            "description": "Whether to accept revoked credentials in the presentation. `false` — only non-revoked credentials are accepted. `true` — revoked credentials are accepted (use only for testing)."
          }
        }
      },
      "DeleteTemplateByVerificationTemplateId": {
        "title": "Delete Verification Template",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to permanently delete a verification template.",
        "example": {
          "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
            "description": "Unique identifier of the verification template to delete."
          }
        }
      },
      "UpdateTemplateByVerificationTemplateId": {
        "title": "Update Verification Template",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to update an existing verification template's metadata. All fields except `verificationTemplateId` are optional — only the fields provided will be updated.",
        "example": {
          "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"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
            "description": "Unique identifier of the verification template to update."
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "enum": [
              "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"
            ],
            "example": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "default": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
            "description": "Updated industry/sector category UUID.\n\n**Supported Categories:**\n| Category Name | Category ID |\n| :--- | :--- |\n| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |\n| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |\n| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |\n| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |\n| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |\n| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |\n| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |"
          },
          "name": {
            "type": "string",
            "example": "Updated Patient Verification",
            "description": "Updated human-readable name for the verification template."
          },
          "description": {
            "type": "string",
            "example": "Updated patient ID card verification",
            "description": "Updated plain-text description of what this verification template checks."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/updated-patient.png",
            "description": "Updated URL of the image displayed on the OID4VP request screen in the holder's wallet.\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          }
        }
      },
      "UpdateCredentialTemplate": {
        "title": "Update Credential Template",
        "type": "object",
        "required": [
          "credentialTemplateId"
        ],
        "description": "The data required to update an existing credential template's display metadata (image and category only).",
        "example": {
          "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"
          }
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "38fb278d-57cf-6bb3-0400-37214bddc258",
            "description": "Unique identifier of the credential template to update."
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "enum": [
              "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"
            ],
            "example": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "default": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
            "description": "Updated industry/sector category UUID.\n\n**Supported Categories:**\n| Category Name | Category ID |\n| :--- | :--- |\n| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |\n| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |\n| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |\n| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |\n| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |\n| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |\n| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |"
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/updated-patient.png",
            "description": "Updated URL of the credential card image displayed in the holder's wallet. Must be a publicly accessible URL."
          },
          "credentialTheme": {
            "$ref": "#/components/schemas/CredentialTheme"
          }
        }
      },
      "DeleteCredentialTemplate": {
        "title": "Delete Credential Template",
        "type": "object",
        "required": [
          "credentialTemplateId"
        ],
        "description": "The data required to permanently delete a credential template from Hovi.",
        "example": {
          "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "38fb278d-57cf-6bb3-0400-37214bddc258",
            "description": "Unique identifier of the credential template to delete."
          }
        }
      },
      "EntraCredentialIssuedWebhook": {
        "type": "object",
        "required": [
          "tenantId",
          "credentialExchangeId",
          "state"
        ],
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "description": "Issuer organization receiving the webhook."
          },
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "const": "done"
          }
        }
      },
      "EntraPresentationVerifiedWebhook": {
        "type": "object",
        "required": [
          "proofExchangeId",
          "presentationId",
          "isVerified",
          "verifiedCredentialsData",
          "holderDid"
        ],
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid"
          },
          "presentationId": {
            "type": "string",
            "format": "uuid"
          },
          "isVerified": {
            "type": "boolean"
          },
          "holderDid": {
            "type": "string"
          },
          "verifiedCredentialsData": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "issuer",
                "type",
                "claims"
              ],
              "properties": {
                "issuer": {
                  "type": "string"
                },
                "type": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "claims": {
                  "type": "object",
                  "additionalProperties": true
                },
                "credentialState": {
                  "type": "object",
                  "additionalProperties": true
                },
                "domainValidation": {
                  "type": "object",
                  "additionalProperties": true
                },
                "expirationDate": {
                  "type": "string",
                  "format": "date-time"
                },
                "issuanceDate": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            }
          }
        }
      }
    },
    "@schemas": {
      "CredentialAttribute": {
        "type": "object",
        "description": "A single claim field definition within a JWT-VC credential template.",
        "example": {
          "name": "name",
          "type": "string",
          "label": "Full Name",
          "description": "Full legal name of the credential subject.",
          "required": true
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "name",
            "maxLength": 50,
            "description": "Programmatic claim identifier used in the JWT `credentialSubject`."
          },
          "type": {
            "type": "string",
            "example": "string",
            "enum": [
              "string",
              "number",
              "boolean"
            ],
            "description": "Data type of the claim value."
          },
          "label": {
            "type": "string",
            "example": "Full Name",
            "maxLength": 100,
            "description": "Human-readable display label shown in wallet UIs."
          },
          "description": {
            "type": "string",
            "example": "Full legal name of the credential subject.",
            "maxLength": 200,
            "description": "Semantic description of the claim field and its purpose."
          },
          "required": {
            "type": "boolean",
            "example": true,
            "description": "Whether this claim must be provided during issuance."
          }
        }
      },
      "VerificationRequestedAttribute": {
        "type": "object",
        "description": "Requested attribute definition for verification templates. All requested attributes are required for verification.",
        "example": {
          "name": "name",
          "type": "string",
          "label": "Name",
          "description": "Name of the patient"
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "name",
            "description": "JWT claim name to request from the holder."
          },
          "label": {
            "type": "string",
            "example": "Name",
            "description": "Human-readable display label shown in the holder's wallet."
          },
          "type": {
            "type": "string",
            "example": "string",
            "description": "Data type of this claim."
          },
          "description": {
            "type": "string",
            "example": "Name of the patient",
            "description": "Optional description of this claim."
          },
          "attributes": {
            "type": "array",
            "description": "Nested sub-attributes for object-type claims.",
            "items": {
              "$ref": "#/components/schemas/VerificationRequestedAttribute"
            }
          }
        }
      },
      "CredentialTheme": {
        "title": "Credential Visual Theme",
        "type": "object",
        "description": "Visual rendering metadata for the JWT-VC card displayed in Entra-compatible holder wallets.",
        "example": {
          "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"
        },
        "properties": {
          "title": {
            "type": "string",
            "description": "Display title shown on the credential card in the wallet. If omitted, the credential-template name is used."
          },
          "description": {
            "type": "string",
            "description": "Short descriptive text shown on the credential card."
          },
          "issuedBy": {
            "type": "string",
            "description": "Issuing organization name displayed on the credential card. If omitted, the organization's display name is used."
          },
          "textColor": {
            "type": "string",
            "example": "#F5F7F4",
            "default": "#000000",
            "description": "Hex color code for the card text overlay. If omitted, `#000000` is used."
          },
          "backgroundColor": {
            "type": "string",
            "example": "#0B1F2A",
            "description": "Hex color code for the card background."
          },
          "logoUrl": {
            "type": "string",
            "format": "url",
            "description": "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."
          },
          "logoAlt": {
            "type": "string",
            "description": "Accessibility alt-text for the logo image. If omitted when `logoUrl` is provided, the organization's display name is used."
          }
        }
      },
      "CreateJwtVcCredentialTemplateResponse": {
        "title": "Create JWT-VC Credential Template Response",
        "type": "object",
        "description": "Returned after successfully creating a JWT-VC credential template backed by a Microsoft Entra Verified ID contract. The `schemaUrl` points to the Entra manifest endpoint used during OID4VCI issuance.",
        "example": {
          "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"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential template was successfully created."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for this credential template. Use when issuing credentials or referencing in verification configs."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem (top-level platform partition) this template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that owns this credential template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the credential template shown in Hovi Studio and holder wallets."
              },
              "version": {
                "type": "string",
                "description": "Semantic version string for this credential template."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of the credential type."
              },
              "type": {
                "type": "string",
                "enum": [
                  "jwt"
                ],
                "description": "Credential format. `jwt` — W3C Verifiable Credential encoded as a signed JWT, backed by a Microsoft Entra Verified ID contract."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the credential card background image displayed in the holder's wallet."
              },
              "attributes": {
                "type": "array",
                "description": "JWT `credentialSubject` claim definitions for this template.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "schemaUrl": {
                "type": "string",
                "format": "url",
                "description": "Microsoft Entra Verified ID manifest URL for this credential contract. Used during OID4VCI issuance to resolve the credential configuration."
              },
              "schemaType": {
                "type": "string",
                "description": "JWT-VC credential type string embedded as the `type` claim in issued credentials (e.g., `\"PatientRecord\"`)."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this credential template was created."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update to this template."
              }
            }
          }
        }
      },
      "GetCredentialTemplatesResponse": {
        "title": "Get Credential Templates Response",
        "type": "object",
        "description": "Returned when listing all JWT-VC credential templates belonging to an organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the listing was retrieved successfully. Returns `true` even when no templates exist (empty array)."
          },
          "response": {
            "type": "array",
            "description": "Array of all JWT-VC credential template records for this organization, ordered by creation time descending.",
            "items": {
              "type": "object",
              "properties": {
                "credentialTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Hovi-assigned UUID for this credential template."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem this template belongs to."
                },
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that owns this template."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the credential template."
                },
                "version": {
                  "type": "string",
                  "description": "Semantic version string for this credential template."
                },
                "description": {
                  "type": "string",
                  "description": "Plain-text description of the credential type."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "jwt"
                  ],
                  "description": "Credential format (`jwt` for Entra-backed JWT-VC)."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the credential card image displayed in the holder's wallet."
                },
                "attributes": {
                  "type": "array",
                  "description": "JWT `credentialSubject` claim definitions for this template.",
                  "items": {
                    "$ref": "#/components/schemas/CredentialAttribute"
                  }
                },
                "schemaUrl": {
                  "type": "string",
                  "format": "url",
                  "description": "Microsoft Entra Verified ID manifest URL for this credential contract."
                },
                "schemaType": {
                  "type": "string",
                  "description": "JWT-VC credential type string (the `type` claim in issued credentials)."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential template was created."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "GetVerificationTemplatesResponse": {
        "title": "Get Verification Templates Response",
        "type": "object",
        "description": "Returned when listing all JWT-VC verification templates belonging to an organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the listing was retrieved successfully. Returns `true` even when no templates exist (empty array)."
          },
          "response": {
            "type": "array",
            "description": "Array of all JWT-VC verification template records for this organization, ordered by creation time descending.",
            "items": {
              "type": "object",
              "properties": {
                "verificationTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Hovi-assigned UUID for this verification template."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem this template belongs to."
                },
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that owns this template."
                },
                "categoryId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Industry/sector category UUID for grouping in Hovi Studio."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the verification template."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the image displayed on the OID4VP presentation request screen in the holder's wallet."
                },
                "version": {
                  "type": "string",
                  "description": "Semantic version string for this verification template."
                },
                "description": {
                  "type": "string",
                  "description": "Plain-text description of what this verification template checks."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "jwt"
                  ],
                  "description": "Credential format this template targets (`jwt` for JWT-VC presentations)."
                },
                "requestedAttributes": {
                  "type": "array",
                  "description": "JWT credential claims the verifier requests the holder to disclose.",
                  "items": {
                    "$ref": "#/components/schemas/CredentialAttribute"
                  }
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this verification template was created."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "CreateJwtVcVerificationTemplateResponse": {
        "title": "Create JWT-VC Verification Template Response",
        "type": "object",
        "description": "Returned after successfully creating a JWT-VC verification template (an OID4VP presentation request blueprint targeting JWT-VC credentials — restricts accepted credentials by `schemaType` and issuer DID).",
        "example": {
          "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"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "verificationTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the newly created verification template."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization that created this template."
              },
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the credential template this verification template is bound to."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the verification template."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the image displayed on the OID4VP request screen in the holder's wallet."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of what this verification template checks."
              },
              "schemaTypeRestriction": {
                "type": "string",
                "description": "JWT-VC `type` claim value the presented credential must match (e.g., `\"PatientRecord\"`)."
              },
              "type": {
                "type": "string",
                "enum": [
                  "jwt"
                ],
                "description": "Credential format this verification template targets (`jwt` here)."
              },
              "requestedAttributes": {
                "type": "array",
                "description": "JWT credential claims the verifier requests from the holder.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this verification template was created."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update."
              }
            }
          }
        }
      },
      "AddWebhookResponse": {
        "title": "Add Webhook Response",
        "type": "object",
        "description": "Returned after successfully registering a new webhook endpoint.",
        "example": {
          "success": true,
          "response": {
            "webhookId": "7d3aae8bfbe4b8472511db2a957158e8",
            "webhookUrl": "https://kindi10.requestcatcher.com",
            "webhookSecret": "4FME20TvYrxqTHJmjOvM1OG7_amYukdYbsT8MjQUN-s"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "webhookId": {
                "type": "string",
                "description": "Unique hex identifier for this webhook registration."
              },
              "webhookUrl": {
                "type": "string",
                "format": "url",
                "description": "The HTTP callback URL that Hovi POSTs event notification payloads to."
              },
              "webhookSecret": {
                "type": "string",
                "description": "Secret used to sign webhook payloads. Generated automatically."
              }
            }
          }
        }
      },
      "RemoveWebhookResponse": {
        "title": "Remove Webhook Response",
        "type": "object",
        "description": "Returned after successfully deregistering a webhook endpoint.",
        "example": {
          "success": true
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the webhook was successfully removed."
          }
        }
      },
      "GetWebhooksResponse": {
        "title": "Get Webhooks Response",
        "type": "object",
        "description": "Returned when listing all registered webhook endpoints for an organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all registered webhook endpoints for the organization.",
            "items": {
              "type": "object",
              "properties": {
                "webhookId": {
                  "type": "string",
                  "description": "Unique hex identifier for this webhook registration."
                },
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that registered this webhook."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem this webhook belongs to."
                },
                "url": {
                  "type": "string",
                  "format": "url",
                  "description": "HTTP callback URL that receives Hovi event notification POST requests."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this webhook was registered."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "CreateTenantResponse": {
        "title": "Create Tenant Response",
        "type": "object",
        "description": "Returned after successfully creating a new organization (tenant). The response includes the organization's access token, auto-provisioned `did:web` DID with its DID Document and Well-Known DID Configuration payloads, and any configured webhooks.",
        "example": {
          "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"
              }
            ]
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the newly created organization."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this organization was created."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update."
              },
              "setting": {
                "type": "object",
                "description": "Display and branding settings for the organization.",
                "properties": {
                  "organizationName": {
                    "type": "string",
                    "description": "Registered name of the organization."
                  },
                  "defaultLabel": {
                    "type": "string",
                    "description": "Default label used in credential offers and presentation requests."
                  },
                  "imageUrl": {
                    "type": "string",
                    "format": "url",
                    "description": "URL of the organization's logo."
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Organization identifier (mirrors `organizationId`)."
                  }
                }
              },
              "accessToken": {
                "type": "string",
                "description": "Organization-scoped Ecosystem API Key (JWT). Use as the Bearer token in the `Authorization` header. Store securely — treat as a secret."
              },
              "dids": {
                "type": "array",
                "description": "DIDs provisioned for this organization. Each `did:web` DID includes the DID Document and Well-Known DID Configuration payloads ready for publication.",
                "items": {
                  "type": "object",
                  "properties": {
                    "did": {
                      "type": "string",
                      "description": "Full `did:web` DID string (e.g., `did:web:your-did.com`)."
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "web",
                        "key",
                        "jwk"
                      ],
                      "description": "DID method used for this identifier."
                    },
                    "signingKeys": {
                      "type": "array",
                      "description": "Azure Key Vault URLs for the signing keys associated with this DID.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "document": {
                      "type": "object",
                      "description": "DID Document payload and its target publication URL.",
                      "properties": {
                        "payload": {
                          "type": "object",
                          "description": "W3C DID Document JSON — publish this at the `publishOn` URL to make the DID resolvable.",
                          "properties": {
                            "@context": {
                              "type": "array",
                              "description": "JSON-LD contexts for the DID Document.",
                              "items": {
                                "type": "string"
                              }
                            },
                            "id": {
                              "type": "string",
                              "description": "The DID subject identifier."
                            },
                            "verificationMethod": {
                              "type": "array",
                              "description": "Public key verification methods for this DID.",
                              "items": {
                                "type": "object"
                              }
                            }
                          }
                        },
                        "publishOn": {
                          "type": "string",
                          "format": "url",
                          "description": "Target URL where the DID Document must be hosted (e.g., `https://your-did.com/.well-known/did.json`)."
                        }
                      }
                    },
                    "wellKnownConfig": {
                      "type": "object",
                      "description": "Well-Known DID Configuration payload and its target publication URL. Required for Entra domain validation.",
                      "properties": {
                        "payload": {
                          "type": "object",
                          "description": "DID Configuration document — publish at `publishOn` to link the DID to the domain."
                        },
                        "publishOn": {
                          "type": "string",
                          "format": "url",
                          "description": "Target URL for the Well-Known DID Configuration (e.g., `https://your-did.com/.well-known/did-configuration.json`)."
                        }
                      }
                    }
                  }
                }
              },
              "webhooks": {
                "type": "array",
                "description": "Webhook endpoints registered during tenant creation.",
                "items": {
                  "type": "object",
                  "properties": {
                    "webhookId": {
                      "type": "string",
                      "description": "Unique identifier for this webhook registration."
                    },
                    "webhookUrl": {
                      "type": "string",
                      "format": "url",
                      "description": "HTTP callback URL registered to receive event notifications."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "RotateTenantAccessTokenResponse": {
        "title": "Rotate Tenant Access Token Response",
        "type": "object",
        "description": "Returned after successfully rotating the organization's Ecosystem API Key. The previous token is immediately invalidated — update all integrations immediately.",
        "example": {
          "success": true,
          "response": {
            "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqZGhORFpsT1RneUxUUTVNemt0TkRobVpDMDRabUl6TFRNeVpEaGxaVEV4T1RZMk5TSXNJbWxoZENJNk1UY3lNamcyTkRVMU5uMD0.VUejpKgvZWDHrO1SogCxixRM1S4ykQAHqpIu0XmrTvI"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the token rotation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "accessToken": {
                "type": "string",
                "description": "Newly generated Ecosystem API Key (JWT). Replace the previous token in all API clients immediately."
              }
            }
          }
        }
      },
      "DeleteTenantReponse": {
        "title": "Delete Tenant Response",
        "type": "object",
        "description": "Returned after successfully deleting an organization and all its associated resources. This action is irreversible.",
        "example": {
          "success": true
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the tenant was successfully deleted."
          }
        }
      },
      "GetTenantsResponse": {
        "title": "Get Tenants Response",
        "type": "object",
        "description": "Returned when listing all organizations within the Hovi ecosystem, including archived ones. Each item includes a `status` of `active` or `archived`. Optional `organizationId` query filters to a single organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all organizations registered within the Hovi ecosystem, including archived ones.",
            "items": {
              "type": "object",
              "properties": {
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for the organization."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem this organization belongs to."
                },
                "dids": {
                  "type": "array",
                  "description": "DIDs provisioned for this organization.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "did": {
                        "type": "string",
                        "description": "Full DID string (e.g., `did:web:entra.hovi.id`)."
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "web",
                          "key",
                          "jwk"
                        ],
                        "description": "DID method used for this identifier."
                      }
                    }
                  }
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the organization."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the organization's logo image."
                },
                "label": {
                  "type": "string",
                  "description": "Short label used in credential offers and presentation requests."
                },
                "openIdWellKnownCredentialIssuerUrl": {
                  "type": "string",
                  "format": "url",
                  "description": "OID4VCI `/.well-known/openid-credential-issuer` metadata URL for this organization. Wallets use this to discover supported credential types and issuer configuration."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "description": "Organization lifecycle status. `active` organizations are fully operational. `archived` organizations remain visible in listings but most mutating operations are blocked."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this organization was created."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "GetTenantDidsResponse": {
        "title": "Get Tenant DIDs Response",
        "type": "object",
        "description": "Returned when listing all DIDs provisioned for a specific organization.",
        "example": {
          "success": true,
          "response": [
            {
              "did": "did:web:entra.hovi.id",
              "method": "web"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of DIDs provisioned for the organization.",
            "items": {
              "type": "object",
              "properties": {
                "did": {
                  "type": "string",
                  "description": "Full DID string (e.g., `did:web:entra.hovi.id`)."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "web",
                    "key",
                    "jwk"
                  ],
                  "description": "DID method used for this identifier."
                }
              }
            }
          }
        }
      },
      "SendProofRequestResponse": {
        "title": "Send Proof Request Response",
        "type": "object",
        "description": "Returned after successfully initiating an OID4VP presentation request. The `verificationUri` is encoded into a QR code or deep link for the holder wallet to scan and initiate the presentation flow.",
        "example": {
          "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="
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the presentation request was successfully initiated."
          },
          "response": {
            "type": "object",
            "properties": {
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Server-assigned UUID for this OID4VP session. Use to poll for state transitions and retrieve verified credential claims."
              },
              "verificationUri": {
                "type": "string",
                "description": "OID4VP request URI (`openid-vc://?request_uri=...`). Encode as a QR code or deep link for the holder wallet to initiate the presentation flow."
              },
              "requestExpiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp after which this presentation request expires and can no longer be satisfied by the holder."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "done",
                  "expired"
                ],
                "description": "Current state of the OID4VP session. `pending` — awaiting holder presentation. `done` — presentation received and verified. `expired` — request timed out."
              },
              "verificationUrl": {
                "type": "string",
                "format": "url",
                "description": "Universal app link encapsulating the verification session for mobile wallet deep linking."
              }
            }
          }
        }
      },
      "GetProofRequestsResponse": {
        "title": "Get Proof Requests Response",
        "type": "object",
        "description": "Returned when listing all OID4VP proof exchange records for an organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all OID4VP proof exchange records for the organization.",
            "items": {
              "type": "object",
              "properties": {
                "proofExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this OID4VP session."
                },
                "verificationUri": {
                  "type": "string",
                  "description": "OID4VP request URI used to initiate this presentation flow."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "done",
                    "expired"
                  ],
                  "description": "Current state of the OID4VP session."
                },
                "count": {
                  "type": "number",
                  "description": "Number of presentations received for this proof exchange."
                },
                "requestExpiresAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this request expires."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this proof exchange was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change."
                }
              }
            }
          }
        }
      },
      "GetProofRequestResponse": {
        "title": "Get Proof Request Response",
        "type": "object",
        "description": "Returned when retrieving a single OID4VP proof exchange by ID. When `state` is `done`, the `presentationExchange` field contains the full DIF Presentation Exchange payload including decoded JWT-VP presentations, the original request definition, and the presentation submission mapping.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for this OID4VP session."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this proof exchange was initiated."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent state change."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "done",
                  "expired"
                ],
                "description": "Current state of the OID4VP session."
              },
              "isVerified": {
                "type": "boolean",
                "description": "Whether the received JWT-VP presentation passed cryptographic signature verification."
              },
              "message": {
                "type": "string",
                "description": "Human-readable status message describing the outcome."
              },
              "verificationUrl": {
                "type": "string",
                "format": "url",
                "description": "Universal app link for mobile wallet deep linking."
              },
              "verificationUri": {
                "type": "string",
                "description": "OID4VP request URI used to initiate this presentation flow."
              },
              "presentationExchange": {
                "type": "object",
                "description": "Full DIF Presentation Exchange payload. Present only when `state` is `done` — contains decoded presentations, the original request definition, and the submission mapping.",
                "properties": {
                  "presentations": {
                    "type": "array",
                    "description": "Array of decoded JWT-VP presentations submitted by the holder wallet.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "jwt": {
                          "type": "object",
                          "description": "Decoded components of the JWT-VP wrapper.",
                          "properties": {
                            "serializedJwt": {
                              "type": "string",
                              "description": "Base64-URL encoded JWT-VP string as received from the wallet."
                            },
                            "payload": {
                              "type": "object",
                              "description": "Decoded JWT payload containing claims and nested JWT-VCs."
                            },
                            "header": {
                              "type": "object",
                              "description": "Decoded JWT header containing `typ`, `alg`, and `kid`."
                            },
                            "signature": {
                              "type": "object",
                              "description": "Extracted signature bytes from the JWT."
                            }
                          }
                        },
                        "_presentation": {
                          "type": "object",
                          "description": "Unmarshaled W3C Verifiable Presentation object decoded from the JWT-VP.",
                          "properties": {
                            "@context": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "JSON-LD context array."
                            },
                            "type": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Presentation type identifiers."
                            },
                            "verifiableCredential": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Array of serialized JWT-VC strings included in the presentation."
                            },
                            "holder": {
                              "type": "string",
                              "description": "Holder's DID."
                            }
                          }
                        }
                      }
                    }
                  },
                  "request": {
                    "type": "object",
                    "description": "Original DIF Presentation Definition sent to the wallet (specifies which credential types and claims are required).",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "Unique identifier of the Presentation Definition."
                      },
                      "purpose": {
                        "type": "string",
                        "description": "Human-readable reason for the data request shown to the holder."
                      },
                      "input_descriptors": {
                        "type": "array",
                        "description": "DIF input descriptors specifying JSONPath constraints that a credential must satisfy.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for this input descriptor."
                            },
                            "constraints": {
                              "type": "object",
                              "description": "JSONPath field constraints the credential must satisfy.",
                              "properties": {
                                "fields": {
                                  "type": "array",
                                  "description": "Array of JSONPath field matchers applied to the JWT-VC payload.",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        },
                                        "description": "JSONPath expressions targeting fields in the JWT-VC."
                                      },
                                      "filter": {
                                        "type": "object",
                                        "description": "Optional JSON Schema filter applied to the value at the given path.",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "description": "Expected JSON type of the field value."
                                          },
                                          "pattern": {
                                            "type": "string",
                                            "description": "Regex pattern the field value must match."
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "submission": {
                    "type": "object",
                    "description": "DIF Presentation Submission — the wallet's response mapping which credentials fulfill each input descriptor.",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Unique identifier of this presentation submission."
                      },
                      "definition_id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "ID of the Presentation Definition this submission fulfills."
                      },
                      "descriptor_map": {
                        "type": "array",
                        "description": "Mappings from input descriptor IDs to the JWT paths where fulfilling credentials are located.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Input descriptor ID this entry fulfills."
                            },
                            "format": {
                              "type": "string",
                              "enum": [
                                "jwt_vp",
                                "jwt_vc"
                              ],
                              "description": "JWT format of the credential at this path."
                            },
                            "path": {
                              "type": "string",
                              "description": "JSONPath to the presentation in the submission payload."
                            },
                            "path_nested": {
                              "type": "object",
                              "description": "Nested path for the JWT-VC within the JWT-VP.",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Input descriptor ID for the nested credential."
                                },
                                "format": {
                                  "type": "string",
                                  "enum": [
                                    "jwt_vc"
                                  ],
                                  "description": "JWT format of the nested credential."
                                },
                                "path": {
                                  "type": "string",
                                  "description": "JSONPath to the JWT-VC within the JWT-VP payload."
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "IssueJwtVcCredentialResponse": {
        "title": "Issue JWT-VC Credential Response",
        "type": "object",
        "description": "Returned after successfully initiating a JWT-VC credential issuance via OID4VCI. The `credentialOfferUri` is encoded into a QR code or deep link for the holder wallet to scan and claim the credential.",
        "example": {
          "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=="
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the credential offer was successfully created."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for this OID4VCI issuance session. Use to poll for holder acceptance state."
              },
              "credentialOfferUri": {
                "type": "string",
                "description": "OID4VCI credential offer URI (`openid-vc://?request_uri=...`). Encode as a QR code or deep link for the holder wallet to claim the credential."
              },
              "offerExpiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp after which this credential offer expires and can no longer be accepted by the holder."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "done",
                  "expired"
                ],
                "description": "Current state of the OID4VCI session. `pending` — awaiting holder acceptance. `done` — credential issued and stored in holder wallet. `expired` — offer timed out."
              },
              "credentialOfferUrl": {
                "type": "string",
                "format": "url",
                "description": "Universal app link encapsulating the credential offer for mobile wallet deep linking."
              }
            }
          }
        }
      },
      "GetProofResponsesResponse": {
        "title": "Get Proof Responses Response",
        "type": "object",
        "description": "Returned when listing all verified presentation responses for an OID4VP proof exchange. Each item contains the verified JWT-VC claims extracted from the holder's presentation, revocation status, and domain validation result.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of verified presentation response records for the proof exchange.",
            "items": {
              "type": "object",
              "properties": {
                "proofExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the OID4VP session this response belongs to."
                },
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the verifier organization."
                },
                "presentationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this specific presentation response."
                },
                "verifiedCredentialsData": {
                  "type": "array",
                  "description": "Array of verified JWT-VC credential records extracted from the holder presentation.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "issuer": {
                        "type": "string",
                        "description": "Issuer DID from the JWT-VC `iss` claim (e.g., `did:web:entra-onboard.hovi-api.id`)."
                      },
                      "type": {
                        "type": "array",
                        "description": "JWT-VC `type` array (e.g., `[\"VerifiableCredential\", \"PatientRecord\"]`).",
                        "items": {
                          "type": "string"
                        }
                      },
                      "claims": {
                        "type": "object",
                        "description": "Verified JWT `credentialSubject` claim values extracted from the credential.",
                        "additionalProperties": {
                          "type": "string",
                          "description": "Claim value as a string."
                        }
                      },
                      "credentialState": {
                        "type": "object",
                        "description": "Revocation status of the credential as checked against the issuer revocation endpoint.",
                        "properties": {
                          "revocationStatus": {
                            "type": "string",
                            "enum": [
                              "VALID",
                              "REVOKED"
                            ],
                            "description": "`VALID` — credential is not revoked. `REVOKED` — credential has been revoked by the issuer."
                          }
                        }
                      },
                      "domainValidation": {
                        "type": "object",
                        "description": "Entra domain validation result — confirms the issuer's DID is linked to their claimed web domain via Well-Known DID Configuration.",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "url",
                            "description": "Validated domain URL linked to the issuer's `did:web` DID."
                          }
                        }
                      },
                      "expirationDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 expiration date of the JWT-VC (`exp` claim)."
                      },
                      "issuanceDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 issuance date of the JWT-VC (`nbf` or `iat` claim)."
                      }
                    }
                  }
                },
                "holderDid": {
                  "type": "string",
                  "description": "Holder's `did:jwk` DID extracted from the JWT-VP `sub` or `holder` claim — identifies the wallet that submitted the presentation."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this presentation response was received."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "UpdateTenantResponse": {
        "title": "Update Tenant Response",
        "type": "object",
        "description": "Returned after successfully updating an organization's display settings.",
        "example": {
          "success": true,
          "message": "Organization updated successfully"
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the tenant update was successful."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "createTenant": {
        "title": "Create Tenant",
        "type": "object",
        "required": [
          "name",
          "label",
          "secret",
          "imageUrl"
        ],
        "description": "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.",
        "example": {
          "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"
          ]
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "Acme Corp",
            "description": "Registered name of the organization displayed in Hovi Studio and credential/presentation request UIs."
          },
          "label": {
            "type": "string",
            "example": "acme-corp",
            "description": "Short slug label used in credential offers and presentation request screens shown to the holder."
          },
          "secret": {
            "type": "string",
            "example": "acme-corp-secret-2024",
            "description": "Secret passphrase for administrative operations (key rotation, tenant deletion). Store securely — never expose publicly."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/logo.png",
            "description": "URL of the organization's logo shown in Hovi Studio and holder wallet UIs."
          },
          "webhooks": {
            "type": "array",
            "example": [
              "https://acme-corp.com/webhook1",
              "https://acme-corp.com/webhook2"
            ],
            "description": "Optional HTTP callback URLs to register during tenant creation. Hovi POSTs event notifications to each URL.",
            "items": {
              "type": "string",
              "format": "url"
            }
          }
        }
      },
      "updateTenant": {
        "title": "Update Tenant",
        "type": "object",
        "description": "The data required to update an organization's display settings. All fields are optional — only the fields provided will be updated.",
        "example": {
          "label": "acme-corp-updated",
          "imageUrl": "https://new-acme-corp.com/new-logo.png"
        },
        "properties": {
          "label": {
            "type": "string",
            "example": "acme-corp-updated",
            "description": "Updated short slug label used in credential offers and presentation request screens."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://new-acme-corp.com/new-logo.png",
            "description": "Updated URL of the organization's logo."
          }
        }
      },
      "deleteTenant": {
        "title": "Delete Tenant",
        "type": "object",
        "required": [
          "organizationSecret"
        ],
        "description": "The data required to permanently delete an organization and all its associated resources. This action is irreversible.",
        "example": {
          "organizationSecret": "acme-corp-secret-2024"
        },
        "properties": {
          "organizationSecret": {
            "type": "string",
            "example": "acme-corp-secret-2024",
            "description": "Organization secret passphrase set during tenant creation — required to authorize this destructive operation."
          }
        }
      },
      "rotateKey": {
        "title": "Rotate Tenant Access Token",
        "type": "object",
        "required": [
          "accessToken",
          "organizationSecret"
        ],
        "description": "The data required to rotate (regenerate) an organization's active `accessToken`. The previous token is immediately invalidated.",
        "example": {
          "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
          "organizationSecret": "acme-corp-secret-2024"
        },
        "properties": {
          "accessToken": {
            "type": "string",
            "example": "eyJhbGciOiJIUzI1NiJ9...",
            "description": "Current active `accessToken` — required to authorize the key rotation request."
          },
          "organizationSecret": {
            "type": "string",
            "example": "acme-corp-secret-2024",
            "description": "Organization secret passphrase — required as a second factor to authorize the key rotation."
          }
        }
      },
      "getWebhook": {
        "title": "Get Webhook",
        "type": "object",
        "required": [
          "webhookId"
        ],
        "description": "The data required to retrieve a specific webhook registration by its ID.",
        "example": {
          "webhookId": "305b56ab8064dfdd801d1697795e7ab0"
        },
        "properties": {
          "webhookId": {
            "type": "string",
            "example": "305b56ab8064dfdd801d1697795e7ab0",
            "description": "Unique hex identifier of the webhook registration to retrieve."
          }
        }
      },
      "addWebhook": {
        "title": "Add Webhook",
        "type": "object",
        "required": [
          "webhookUrl"
        ],
        "description": "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)",
        "example": {
          "webhookUrl": "https://acme-corp.com/webhook1"
        },
        "properties": {
          "webhookUrl": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/webhook1",
            "description": "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."
          }
        }
      },
      "deleteWebhook": {
        "title": "Delete Webhook",
        "type": "object",
        "required": [
          "webhookId"
        ],
        "description": "The data required to deregister a webhook endpoint. Hovi will stop sending event notifications to the associated URL.",
        "example": {
          "webhookId": "305b56ab8064dfdd801d1697795e7ab0"
        },
        "properties": {
          "webhookId": {
            "type": "string",
            "example": "305b56ab8064dfdd801d1697795e7ab0",
            "description": "Unique hex identifier of the webhook registration to remove."
          }
        }
      },
      "rotateWebhookSecret": {
        "title": "Rotate Webhook Secret",
        "type": "object",
        "required": [
          "webhookId"
        ],
        "description": "The data required to rotate the signing secret for an existing webhook. A signing secret is generated automatically.",
        "example": {
          "webhookId": "305b56ab8064dfdd801d1697795e7ab0"
        },
        "properties": {
          "webhookId": {
            "type": "string",
            "example": "305b56ab8064dfdd801d1697795e7ab0",
            "description": "Unique hex identifier of the webhook whose secret should be rotated."
          }
        }
      },
      "RotateWebhookSecretResponse": {
        "title": "Rotate Webhook Secret Response",
        "type": "object",
        "description": "Returned after successfully rotating a webhook signing secret.",
        "example": {
          "success": true,
          "response": {
            "webhookId": "305b56ab8064dfdd801d1697795e7ab0",
            "webhookSecret": "your-new-webhook-secret"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "webhookId": {
                "type": "string",
                "description": "Unique identifier of the webhook."
              },
              "webhookSecret": {
                "type": "string",
                "description": "Newly generated webhook signing secret."
              }
            }
          }
        }
      },
      "createJwtVcCredentialTemplate": {
        "title": "Create JWT-VC Credential Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "attributes",
          "schemaType"
        ],
        "description": "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.",
        "example": {
          "name": "Patient ID",
          "version": "1.0.2",
          "image": "https://acme-corp.com/patient.png",
          "description": "Patient ID Card",
          "attributes": [
            {
              "name": "name",
              "label": "Name",
              "type": "string",
              "description": "Name of the patient",
              "required": true
            },
            {
              "name": "age",
              "label": "Age",
              "type": "string",
              "description": "Age of the patient",
              "required": true
            }
          ],
          "schemaType": "PatientRecord",
          "credentialTheme": {
            "title": "Patient ID Card",
            "description": "Proof of admission in the hospital",
            "issuedBy": "Acme Hospital",
            "textColor": "#F5F7F4",
            "backgroundColor": "#0B1F2A",
            "logoUrl": "https://e7.pngegg.com/pngimages/359/743/png-clipart-logo-community-text-logo.png",
            "logoAlt": "logo"
          },
          "supportRevocation": true
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "Patient ID",
            "description": "Human-readable name for the credential template. Used as the Entra contract display name."
          },
          "version": {
            "type": "string",
            "example": "1.0.2",
            "description": "Semantic version string for the credential template."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL of the credential card image displayed in the holder's wallet.\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          },
          "description": {
            "type": "string",
            "example": "Patient ID Card",
            "description": "Plain-text description of the credential type."
          },
          "attributes": {
            "type": "array",
            "description": "JWT `credentialSubject` claim definitions. Each attribute becomes a claimable field during OID4VCI issuance and a selectively requestable claim during OID4VP verification.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "name",
                  "maxLength": 50,
                  "description": "Programmatic claim identifier used in the JWT `credentialSubject`."
                },
                "type": {
                  "type": "string",
                  "example": "string",
                  "enum": [
                    "string",
                    "number",
                    "boolean"
                  ],
                  "description": "Data type of the claim value."
                },
                "label": {
                  "type": "string",
                  "example": "Name",
                  "maxLength": 100,
                  "description": "Human-readable display label shown in wallet UIs."
                },
                "description": {
                  "type": "string",
                  "example": "Name of the patient",
                  "maxLength": 200,
                  "description": "Semantic description of the claim field."
                },
                "required": {
                  "type": "boolean",
                  "example": true,
                  "enum": [
                    true,
                    false
                  ],
                  "default": false,
                  "description": "Whether this claim must be provided during issuance."
                }
              }
            }
          },
          "schemaType": {
            "type": "string",
            "example": "PatientRecord",
            "description": "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": {
            "$ref": "#/components/schemas/CredentialTheme"
          },
          "supportRevocation": {
            "type": "boolean",
            "example": true,
            "enum": [
              true,
              false
            ],
            "default": false,
            "description": "Whether issued credentials support revocation status checking via the Entra revocation endpoint."
          }
        }
      },
      "getTemplateByCredentialTemplateId": {
        "title": "Get Template By ID",
        "type": "object",
        "required": [
          "credentialTemplateId"
        ],
        "description": "The data required to retrieve a specific credential template by its unique identifier.",
        "example": {
          "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "38fb278d-57cf-6bb3-0400-37214bddc258",
            "description": "Unique identifier of the credential template to retrieve."
          }
        }
      },
      "GetAllCredentialsResponse": {
        "title": "Get All Credentials",
        "type": "object",
        "description": "Retrieves a list of all credential issuance exchanges for the organization.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "status": {
            "type": "string",
            "example": "200",
            "description": "HTTP status code as string."
          },
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all credential issuance exchanges for this organization.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this credential issuance exchange."
                },
                "credentialOfferUri": {
                  "type": "string",
                  "description": "OpenID4VCI credential offer URI for QR code generation or deep linking."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "done"
                  ],
                  "description": "Current lifecycle state of the credential offer."
                },
                "count": {
                  "type": "integer",
                  "description": "Number of times the credential offer has been accepted."
                },
                "issuerDid": {
                  "type": "string",
                  "description": "DID of the issuer providing the credential."
                },
                "offerExpiresAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the credential offer expires."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the credential issuance was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent status update."
                }
              }
            }
          }
        }
      },
      "GetProofResponseByProofIdResponse": {
        "title": "Get Proof Response by Proof ID",
        "type": "object",
        "description": "Retrieves detailed proof response information including verified credentials data and holder information.",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of proof responses with verified credentials data.",
            "items": {
              "type": "object",
              "properties": {
                "proofExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for the proof exchange session."
                },
                "tenantId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the tenant associated with this proof exchange."
                },
                "presentationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for the verifiable presentation."
                },
                "verifiedCredentialsData": {
                  "type": "array",
                  "description": "Array of verified credentials submitted in the presentation.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "issuer": {
                        "type": "string",
                        "description": "DID of the credential issuer."
                      },
                      "type": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Array of credential type classifications."
                      },
                      "claims": {
                        "type": "object",
                        "description": "Credential claim data."
                      },
                      "credentialState": {
                        "type": "object",
                        "description": "Credential status information.",
                        "properties": {
                          "revocationStatus": {
                            "type": "string",
                            "enum": [
                              "VALID",
                              "REVOKED",
                              "SUSPENDED"
                            ],
                            "description": "Current revocation status of the credential."
                          }
                        }
                      },
                      "domainValidation": {
                        "type": "object",
                        "description": "Domain validation details.",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "url",
                            "description": "Domain URL for validation."
                          }
                        }
                      },
                      "expirationDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 timestamp when the credential expires."
                      },
                      "issuanceDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 timestamp when the credential was issued."
                      }
                    }
                  }
                },
                "holderDid": {
                  "type": "string",
                  "description": "DID of the credential holder who submitted the presentation."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the proof exchange was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update."
                }
              }
            }
          }
        }
      },
      "GetCredentialResponse": {
        "title": "Get Credential By ID",
        "type": "object",
        "description": "Retrieves the detailed status and payload of a specific credential issuance transaction (full details about one credential exchange).",
        "example": {
          "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"
            }
          ]
        },
        "properties": {
          "status": {
            "type": "string",
            "example": "200",
            "description": "HTTP status code as string."
          },
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all credential issuance exchanges for this organization.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this credential issuance exchange."
                },
                "credentialOfferUri": {
                  "type": "string",
                  "description": "OpenID4VCI credential offer URI for QR code generation or deep linking."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "done"
                  ],
                  "description": "Current lifecycle state of the credential offer."
                },
                "count": {
                  "type": "integer",
                  "description": "Number of times the credential offer has been accepted."
                },
                "issuerDid": {
                  "type": "string",
                  "description": "DID of the issuer providing the credential."
                },
                "offerExpiresAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the credential offer expires."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when the credential issuance was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent status update."
                }
              }
            }
          }
        }
      },
      "getCredentialById": {
        "title": "Get Credential By ID",
        "type": "object",
        "required": [
          "credentialExchangeId"
        ],
        "description": "The data required to retrieve a specific OID4VCI credential exchange record by its unique identifier.",
        "example": {
          "credentialExchangeId": "13891eaa-89eb-4f43-b66b-cee7523329f6"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "13891eaa-89eb-4f43-b66b-cee7523329f6",
            "description": "Unique identifier of the OID4VCI credential exchange record to retrieve."
          }
        }
      },
      "issueJwtVcCredential": {
        "title": "Issue JWT-VC Credential",
        "type": "object",
        "required": [
          "credentialTemplateId",
          "credentialValues"
        ],
        "description": "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.",
        "example": {
          "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          },
          "pinRequired": true,
          "pinLength": 6,
          "credentialExpiry": 1760429046163
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "38fb278d-57cf-6bb3-0400-37214bddc258",
            "description": "JWT-VC credential template to use for this issuance — defines the Entra contract, claim schema, and visual theme."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "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`.",
            "additionalProperties": {
              "type": "string"
            }
          },
          "pinRequired": {
            "type": "boolean",
            "example": true,
            "enum": [
              true,
              false
            ],
            "default": false,
            "description": "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": {
            "type": "number",
            "example": 6,
            "description": "Length of the PIN generated by Entra when `pinRequired` is `true`. Typically 4 or 6 digits."
          },
          "credentialExpiry": {
            "type": "number",
            "example": 1760429046163,
            "description": "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."
          }
        }
      },
      "getTemplateByVerificationTemplateId": {
        "title": "Get Verification Template By ID",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to retrieve a specific verification template by its unique identifier.",
        "example": {
          "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
            "description": "Unique identifier of the verification template to retrieve."
          }
        }
      },
      "createJwtVcVerificationTemplate": {
        "title": "Create JWT-VC Verification Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description"
        ],
        "description": "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).",
        "example": {
          "name": "Patient Verification",
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "version": "1.0.0",
          "description": "Patient ID Card Verification",
          "image": "https://acme-corp.com/patient.png",
          "requestedAttributes": [],
          "restrictions": {
            "credentialTemplateId": "aa539579-2658-f8de-e536-b0250baf2053",
            "issuerDid": "did:web:entra.hovi.id"
          }
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "Patient Verification",
            "description": "Human-readable name for the verification template."
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "enum": [
              "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"
            ],
            "example": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "default": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
            "description": "Industry/sector category UUID for this verification template.\n\n**Supported Categories:**\n| Category Name | Category ID |\n| :--- | :--- |\n| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |\n| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |\n| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |\n| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |\n| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |\n| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |\n| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |"
          },
          "version": {
            "type": "string",
            "example": "1.0.0",
            "description": "Semantic version string for the verification template."
          },
          "description": {
            "type": "string",
            "example": "Patient ID Card Verification",
            "description": "Plain-text description of what this verification template checks."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL of the image displayed on the OID4VP presentation request screen in the holder's wallet.\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          },
          "requestedAttributes": {
            "type": "array",
            "description": "JWT credential claims the verifier requests the holder to disclose in their presentation. All requested attributes are required for verification.",
            "items": {
              "$ref": "#/components/schemas/VerificationRequestedAttribute"
            }
          },
          "restrictions": {
            "type": "object",
            "description": "Defines which JWT-VC credentials can satisfy this presentation request. All provided fields are AND-ed together.",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "example": "aa539579-2658-f8de-e536-b0250baf2053",
                "description": "Restricts accepted credentials to those issued from this specific Hovi credential template. Resolves to the matching `schemaType` restriction."
              },
              "issuerDid": {
                "type": "string",
                "example": "did:web:entra.hovi.id",
                "description": "Restricts accepted credentials to those signed by this specific issuer DID (e.g., `did:web:entra.hovi.id`)."
              }
            }
          }
        }
      },
      "getProofRequestById": {
        "title": "Get Proof Request By ID",
        "type": "object",
        "required": [
          "proofExchangeId"
        ],
        "description": "The data required to retrieve a specific OID4VP proof exchange record by its unique identifier.",
        "example": {
          "proofExchangeId": "d12748e1-0ef4-4122-9aa5-d3c7a78463c8"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "d12748e1-0ef4-4122-9aa5-d3c7a78463c8",
            "description": "Unique identifier of the OID4VP proof exchange session to retrieve."
          }
        }
      },
      "getProofResponseById": {
        "title": "Get Proof Response By ID",
        "type": "object",
        "required": [
          "presentationId"
        ],
        "description": "The data required to retrieve a specific verified presentation response by its presentation identifier.",
        "example": {
          "presentationId": "91a8a825-a78a-43fe-9377-200a66a277e9"
        },
        "properties": {
          "presentationId": {
            "type": "string",
            "format": "uuid",
            "example": "91a8a825-a78a-43fe-9377-200a66a277e9",
            "description": "Unique identifier of the verified presentation response to retrieve."
          }
        }
      },
      "sendProofRequest": {
        "title": "Send Proof Request",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to initiate an OID4VP presentation request. Returns a `verificationUri` (`openid-vc://...`) that the holder wallet scans to begin the presentation flow.",
        "example": {
          "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
          "purpose": "Verify patient identity for hospital admission.",
          "allowRevoked": false
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
            "description": "Verification template to use as the OID4VP request blueprint — defines which JWT-VC type and claims to request from the holder."
          },
          "purpose": {
            "type": "string",
            "example": "Verify patient identity for hospital admission.",
            "description": "Human-readable reason for the presentation request shown to the holder in their wallet during the OID4VP flow."
          },
          "allowRevoked": {
            "type": "boolean",
            "example": false,
            "enum": [
              true,
              false
            ],
            "default": false,
            "description": "Whether to accept revoked credentials in the presentation. `false` — only non-revoked credentials are accepted. `true` — revoked credentials are accepted (use only for testing)."
          }
        }
      },
      "DeleteTemplateByVerificationTemplateId": {
        "title": "Delete Verification Template",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to permanently delete a verification template.",
        "example": {
          "verificationTemplateId": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
            "description": "Unique identifier of the verification template to delete."
          }
        }
      },
      "UpdateTemplateByVerificationTemplateId": {
        "title": "Update Verification Template",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to update an existing verification template's metadata. All fields except `verificationTemplateId` are optional — only the fields provided will be updated.",
        "example": {
          "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"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "5d3d8caf-a217-4a62-9f7b-f1ad8ef15170",
            "description": "Unique identifier of the verification template to update."
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "enum": [
              "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"
            ],
            "example": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "default": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
            "description": "Updated industry/sector category UUID.\n\n**Supported Categories:**\n| Category Name | Category ID |\n| :--- | :--- |\n| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |\n| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |\n| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |\n| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |\n| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |\n| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |\n| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |"
          },
          "name": {
            "type": "string",
            "example": "Updated Patient Verification",
            "description": "Updated human-readable name for the verification template."
          },
          "description": {
            "type": "string",
            "example": "Updated patient ID card verification",
            "description": "Updated plain-text description of what this verification template checks."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/updated-patient.png",
            "description": "Updated URL of the image displayed on the OID4VP request screen in the holder's wallet.\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          }
        }
      },
      "UpdateCredentialTemplate": {
        "title": "Update Credential Template",
        "type": "object",
        "required": [
          "credentialTemplateId"
        ],
        "description": "The data required to update an existing credential template's display metadata (image and category only).",
        "example": {
          "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"
          }
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "38fb278d-57cf-6bb3-0400-37214bddc258",
            "description": "Unique identifier of the credential template to update."
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "enum": [
              "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"
            ],
            "example": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "default": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
            "description": "Updated industry/sector category UUID.\n\n**Supported Categories:**\n| Category Name | Category ID |\n| :--- | :--- |\n| **Health** | `9636b597-cbe2-492a-bf92-87641729e6e4` |\n| **Finance** | `9636b597-cbe2-492a-bf92-87641726a7b4` |\n| **Education** | `16161b67-58f5-4d29-9d29-a75036dd9862` |\n| **Travel and Tourism** | `2d8cf3ec-1aaa-4f8f-a5cc-d735943a11ec` |\n| **Logistics and Supply Chain** | `402e8853-efa4-4233-9fb9-4cf2dd39830d` |\n| **Entertainment** | `4e8e6e2f-51b6-4a9c-8dc9-a4c8497e0987` |\n| **Other** | `233cf3c7-5b5b-492e-9723-b35d9022f2ce` |"
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/updated-patient.png",
            "description": "Updated URL of the credential card image displayed in the holder's wallet. Must be a publicly accessible URL."
          },
          "credentialTheme": {
            "$ref": "#/components/schemas/CredentialTheme"
          }
        }
      },
      "DeleteCredentialTemplate": {
        "title": "Delete Credential Template",
        "type": "object",
        "required": [
          "credentialTemplateId"
        ],
        "description": "The data required to permanently delete a credential template from Hovi.",
        "example": {
          "credentialTemplateId": "38fb278d-57cf-6bb3-0400-37214bddc258"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "38fb278d-57cf-6bb3-0400-37214bddc258",
            "description": "Unique identifier of the credential template to delete."
          }
        }
      },
      "EntraCredentialIssuedWebhook": {
        "type": "object",
        "required": [
          "tenantId",
          "credentialExchangeId",
          "state"
        ],
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "description": "Issuer organization receiving the webhook."
          },
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "const": "done"
          }
        }
      },
      "EntraPresentationVerifiedWebhook": {
        "type": "object",
        "required": [
          "proofExchangeId",
          "presentationId",
          "isVerified",
          "verifiedCredentialsData",
          "holderDid"
        ],
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid"
          },
          "presentationId": {
            "type": "string",
            "format": "uuid"
          },
          "isVerified": {
            "type": "boolean"
          },
          "holderDid": {
            "type": "string"
          },
          "verifiedCredentialsData": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "issuer",
                "type",
                "claims"
              ],
              "properties": {
                "issuer": {
                  "type": "string"
                },
                "type": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "claims": {
                  "type": "object",
                  "additionalProperties": true
                },
                "credentialState": {
                  "type": "object",
                  "additionalProperties": true
                },
                "domainValidation": {
                  "type": "object",
                  "additionalProperties": true
                },
                "expirationDate": {
                  "type": "string",
                  "format": "date-time"
                },
                "issuanceDate": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "webhooks": {
    "entra-credential-issued": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "operationId": "entra-credential-issued",
        "summary": "Credential Issued",
        "description": "Sent to the issuer organization after the external holder wallet accepts the JWT-VC credential.",
        "parameters": [
          {
            "name": "x-webhook-signature",
            "in": "header",
            "description": "HMAC signature used to verify that this webhook was sent by Hovi.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "sha256=9d8f1f2f7f4e4b28d52c1b2a1fb7d39a"
          },
          {
            "name": "x-webhook-timestamp",
            "in": "header",
            "description": "Unix timestamp included when calculating and verifying the webhook signature.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "1786707084"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "The JSON event Hovi sends to the registered webhook URL.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntraCredentialIssuedWebhook"
              },
              "example": {
                "tenantId": "6d223e81-16ee-f0eb-e07e-79bf2f5b5892",
                "credentialExchangeId": "cd32e45a-c042-4a21-9b0d-21a2ce044b07",
                "state": "done"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Webhook acknowledged successfully by the receiver. No response body is required."
          }
        }
      }
    },
    "entra-presentation-verified": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "operationId": "entra-presentation-verified",
        "summary": "Presentation Verified",
        "description": "Sent to the verifier organization after the external holder wallet submits a valid presentation.",
        "parameters": [
          {
            "name": "x-webhook-signature",
            "in": "header",
            "description": "HMAC signature used to verify that this webhook was sent by Hovi.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "sha256=9d8f1f2f7f4e4b28d52c1b2a1fb7d39a"
          },
          {
            "name": "x-webhook-timestamp",
            "in": "header",
            "description": "Unix timestamp included when calculating and verifying the webhook signature.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "1786707084"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "The JSON event Hovi sends to the registered webhook URL.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntraPresentationVerifiedWebhook"
              },
              "example": {
                "proofExchangeId": "f2cd6697-bbd8-44e6-9029-8f4f131438e4",
                "presentationId": "5f025d11-2d8d-4ec0-9ddc-36c77b12f522",
                "isVerified": true,
                "verifiedCredentialsData": [
                  {
                    "issuer": "did:web:entra-demo.hovi-api.com",
                    "type": [
                      "VerifiableCredential",
                      "ct.entra"
                    ],
                    "claims": {
                      "name": "test 4"
                    },
                    "credentialState": {
                      "revocationStatus": "VALID"
                    },
                    "domainValidation": {
                      "url": "https://entra-demo.hovi-api.com/"
                    },
                    "expirationDate": "2036-07-20T12:34:57.000Z",
                    "issuanceDate": "2026-07-23T12:34:57.000Z"
                  }
                ],
                "holderDid": "did:jwk:eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IkdmdVR1THBkYWQ..."
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Webhook acknowledged successfully by the receiver. No response body is required."
          }
        }
      }
    }
  }
}