{
  "openapi": "3.1.0",
  "info": {
    "version": "v0.8.9",
    "title": "Hovi API (Cheqd)",
    "description": "The Hovi API provides comprehensive integration with the Cheqd ecosystem, allowing the issuance and verification of JSON-LD and AnonCreds credentials via Didcomm over the Cheqd network. This API documentation offers full endpoint details to assist in the creation and management of decentralized digital identities."
  },
  "servers": [
    {
      "url": "https://api.hovi.id",
      "description": "Hovi SaaS"
    }
  ],
  "tags": [
    {
      "name": "Organization",
      "description": "Manages organizations (tenants) within Hovi — the primary actors that create credential templates, issue credentials via DIDComm, and initiate proof requests."
    },
    {
      "name": "Webhooks",
      "description": "Configures asynchronous HTTP callbacks that Hovi POSTs to your server when events occur (e.g., credential accepted, proof submitted) — no polling required."
    },
    {
      "name": "Connections",
      "description": "Establishes and manages DIDComm peer-to-peer encrypted channels between DID-controlled agents — the secure tunnel through which credentials and proofs are exchanged."
    },
    {
      "name": "Credential Templates",
      "description": "Defines the schema blueprint (fields, types, required flags) for a credential type. Templates are published on-chain (AnonCreds) or to IPFS (JSON-LD) and referenced during issuance."
    },
    {
      "name": "Credentials",
      "description": "Issues cryptographically signed Verifiable Credentials to holders over DIDComm, based on a defined Credential Template. Supports AnonCreds and JSON-LD formats."
    },
    {
      "name": "Verification Templates",
      "description": "Defines Presentation Request blueprints (DIF Presentation Exchange) specifying which credential types and attributes a verifier requires from a holder during the OID4VP flow."
    },
    {
      "name": "Verifications",
      "description": "Sends proof requests to holders and validates their cryptographically signed presentations against a Verification Template via OID4VP or DIDComm."
    },
    {
      "name": "Organizational Wallet",
      "description": "Manages the organization's on-platform agent wallet — handles DIDComm connections, accepts inbound credential offers, and submits proof presentations on behalf of the organization."
    },
    {
      "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/anoncred/create": {
      "post": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Create Template (Anoncreds)",
        "description": "This route allows a organization to create an Anoncreds credential template, which includes both the schema and credential definition (credDef). The template defines the attributes, types, and structure for issuing Anoncreds.",
        "parameters": [
          {
            "name": "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/CreateAnoncredsCredentialTemplatesResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAnoncredsCredentialTemplatesResponse"
                }
              }
            }
          },
          "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 credential type for ecosystem"
                }
              },
              "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/createAnoncredCredentialTemplate"
              }
            }
          }
        }
      }
    },
    "/credential-template/jsonld/create": {
      "post": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Create Template (JSON-LD)",
        "description": "This route enables a organization to create a JSON-LD credential template, specifying the schema type, attributes, and structure for issuing JSON-LD credentials.",
        "parameters": [
          {
            "name": "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/CreateJsonLdCredentialTemplateResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJsonLdCredentialTemplateResponse"
                }
              }
            }
          },
          "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 credential type for ecosystem"
                }
              },
              "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/createJsonLdCredentialTemplate"
              }
            }
          }
        }
      }
    },
    "/credential-template/anoncred/import": {
      "post": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Import Template (Anoncreds)",
        "description": "This route allows a organization to import an Anoncreds credential template by providing the schema ID. The specified schema is retrieved from the ledger and imported into the ecosystem, where it is converted into a credential template.",
        "parameters": [
          {
            "name": "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/ImportAnoncredCredentialTemplateResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ImportAnoncredCredentialTemplateResponse"
                }
              }
            }
          },
          "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 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/importAnoncredCredentialTemplate"
              }
            }
          }
        }
      }
    },
    "/credential-template/jsonld/import": {
      "post": {
        "tags": [
          "Credential Templates"
        ],
        "summary": "Import Template (JSON-LD)",
        "description": "This route enables a organization to import a JSON-LD credential template by providing the schema URL. The schema is fetched from the provided URL, validated, and then resolved into a credential template within the ecosystem.",
        "parameters": [
          {
            "name": "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/ImportJsonLdCredentialTemplateResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ImportJsonLdCredentialTemplateResponse"
                }
              }
            }
          },
          "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 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/importJsonLdCredentialTemplate"
              }
            }
          }
        }
      }
    },
    "/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/anoncred/create": {
      "post": {
        "tags": [
          "Verification Templates"
        ],
        "summary": "Create Template (Anoncreds)",
        "description": "This route allows a organization to create an Anoncreds verification template, which defines the policy for verifying the issued Anoncreds. The organization can specify the requested attributes, predicates, and restrictions in the template.",
        "parameters": [
          {
            "name": "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/CreateAnoncredsVerificationTemplateResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAnoncredsVerificationTemplateResponse"
                }
              }
            }
          },
          "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 non revoked interval format"
                }
              },
              "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": "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/createAnoncredVerificationTemplate"
              }
            }
          }
        }
      }
    },
    "/verification-template/jsonld/create": {
      "post": {
        "tags": [
          "Verification Templates"
        ],
        "summary": "Create Template (JSON-LD)",
        "description": "This route allows a organization to create a JSON-LD verification template, outlining the policy for verifying issued JSON-LD 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": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJsonLdVerificationTemplateResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJsonLdVerificationTemplateResponse"
                }
              }
            }
          },
          "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": "Schema context is required for PrivadoId"
                }
              },
              "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/createJsonLdVerificationTemplate"
              }
            }
          }
        }
      }
    },
    "/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"
              }
            }
          }
        }
      }
    },
    "/connection/create": {
      "post": {
        "tags": [
          "Connections"
        ],
        "summary": "Create Connection Invitation",
        "description": "This route allows a tenant to establish a connection with a wallet by creating a connection invitation. Once the wallet accepts the invitation, a secure connection is established, enabling tenants to issue credentials.\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- [Connection Event](#tag/webhook-events/webhook/post/cheqd-connection-event)",
        "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/CreateConnectionResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CreateConnectionResponse"
                }
              }
            }
          },
          "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 tenant"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Ecosystem unauthorized for tenant"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Tenant not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Tenant 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/createConnectionInvitation"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/createConnectionInvitation"
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Connection Event",
          "url": "#tag/webhook-events/webhook/post/cheqd-connection-event"
        },
        "x-hovi-webhook-events": {
          "relationship": "asynchronous-flow-outcome",
          "events": [
            {
              "label": "Connection Event",
              "recipient": "issuer organization",
              "$ref": "#/webhooks/cheqd-connection-event",
              "url": "#tag/webhook-events/webhook/post/cheqd-connection-event"
            }
          ]
        }
      }
    },
    "/connection/": {
      "get": {
        "tags": [
          "Connections"
        ],
        "summary": "Get All Connections",
        "description": "This route retrieves a list of all connections established between the organization and various wallets. Each connection represents a secure link through which the organization can issue credentials or interact with the connected wallets.",
        "parameters": [
          {
            "name": "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/GetConnectionsResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetConnectionsResponse"
                }
              }
            }
          },
          "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": [
          "Connections"
        ],
        "summary": "Delete Connection",
        "description": "This route allows the organization to permanently delete an existing connection invitation, identified by its unique out of band 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": "Connection deleted successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Connection 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": "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": "Connection invitation 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/deleteConnection"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/deleteConnection"
              }
            }
          }
        }
      }
    },
    "/connection/find": {
      "get": {
        "tags": [
          "Connections"
        ],
        "summary": "Find Completed Connection by Invitation ID or Connection ID",
        "description": "This route retrieves detailed information about connections, identified by a unique connection ID or invitation ID. If both provided, invitationId gets priority over connectionId during the search.",
        "parameters": [
          {
            "name": "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": "invitationId",
            "in": "query",
            "description": "Find a completed connection by the OOB invitation ID that initiated the handshake. Only available in the Privado.id ecosystem. Takes priority over connectionId if both parameters are provided.",
            "required": false,
            "example": "c971d3ba-09a8-4fc3-9de0-8f04d94390b0",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connectionId",
            "in": "query",
            "description": "Find a completed connection by its unique connection ID. Ignored if invitationId is also provided.",
            "required": false,
            "example": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
            "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/GetConnectionResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetConnectionResponse"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/GetConnectionResponse"
            }
          },
          "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"
              }
            }
          },
          "404": {
            "description": "Not Found — the specified organization does not exist",
            "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"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": false
                },
                "message": {
                  "type": "string",
                  "example": "Internal server error"
                }
              },
              "xml": {
                "name": "main"
              }
            }
          }
        }
      }
    },
    "/connection/invitations": {
      "get": {
        "tags": [
          "Connections"
        ],
        "summary": "Get All Invitations",
        "description": "This route retrieves a list of all invitations created by the organization. Each invitation can be provided as a scannable QR code that facilitates the establishment of a connection with a wallet.",
        "parameters": [
          {
            "name": "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/GetConnectionInvitationsResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetConnectionInvitationsResponse"
                }
              }
            }
          },
          "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"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/connection/invitation/find": {
      "get": {
        "tags": [
          "Connections"
        ],
        "summary": "Get Invitation By Invitation Id",
        "description": "This route retrieves the details of a specific connection invitation created 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": "invitationId",
            "in": "query",
            "description": "Retrive connection invitation by invitation id",
            "required": true,
            "example": "c971d3ba-09a8-4fc3-9de0-8f04d94390b0",
            "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/GetConnectionInvitationResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetConnectionInvitationResponse"
                }
              }
            }
          },
          "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"
                  }
                }
              }
            }
          },
          "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/": {
      "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/anoncred/offer": {
      "post": {
        "tags": [
          "Credentials"
        ],
        "summary": "Offer Credential (Anoncreds)",
        "description": "This route enables the organization to create an Anoncreds credential offer, initiating the credential issuance process within the ecosystem. The issuance relies on a credential template that defines the attributes, types, and requirements for the credential.\n\n### Related webhook events\n\nAfter the holder accepts or declines this AnonCred offer, Hovi sends the corresponding credential-exchange outcome to the issuer organization’s registered webhook URL:\n\n- [Credential Exchange Event](#tag/webhook-events/webhook/post/cheqd-credential-exchange-event)",
        "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/IssueAnoncredCredentialResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/IssueAnoncredCredentialResponse"
                }
              }
            }
          },
          "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/issueAnoncredCredential"
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Credential Exchange Event",
          "url": "#tag/webhook-events/webhook/post/cheqd-credential-exchange-event"
        },
        "x-hovi-webhook-events": {
          "relationship": "asynchronous-flow-outcome",
          "events": [
            {
              "label": "Credential Exchange Event",
              "recipient": "issuer organization",
              "$ref": "#/webhooks/cheqd-credential-exchange-event",
              "url": "#tag/webhook-events/webhook/post/cheqd-credential-exchange-event"
            }
          ]
        }
      }
    },
    "/credential/jsonld/offer": {
      "post": {
        "tags": [
          "Credentials"
        ],
        "summary": "Offer Credential (JSON-LD)",
        "description": "This route allows the organization to generate a credential offer using the JSON-LD format. The credential issuance is based on a credential template that specifies the necessary attributes, types, and requirements.",
        "parameters": [
          {
            "name": "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/IssueJsonLdCredentialResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/IssueJsonLdCredentialResponse"
                }
              }
            }
          },
          "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/issueJsonLdCredential"
              }
            }
          }
        }
      }
    },
    "/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"
              }
            }
          }
        }
      }
    },
    "/wallet/connection/accept-invitation": {
      "post": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Accept Connection Invitation",
        "description": "This route allows a organization to accept a connection invitation. Once accepted, the connection is established, enabling the organization to receive credentials to the organizations\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- [Connection Event](#tag/webhook-events/webhook/post/cheqd-connection-event)",
        "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/AcceptConnectionResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid network for this operation"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid network for this operation"
                    }
                  },
                  "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": "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/acceptConnectionInvitation"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/acceptConnectionInvitation"
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Connection Event",
          "url": "#tag/webhook-events/webhook/post/cheqd-connection-event"
        },
        "x-hovi-webhook-events": {
          "relationship": "asynchronous-flow-outcome",
          "events": [
            {
              "label": "Connection Event",
              "recipient": "holder organization",
              "$ref": "#/webhooks/cheqd-connection-event",
              "url": "#tag/webhook-events/webhook/post/cheqd-connection-event"
            }
          ]
        }
      }
    },
    "/wallet/credential": {
      "get": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Get Stored Credentials",
        "description": "Deprecated: use GET /v2/wallet/credential to list the stored credentials and GET /v2/wallet/credential/{credentialId} to retrieve one. This route retrieves all stored credentials from the wallet.",
        "parameters": [
          {
            "name": "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/GetAllStoredCredentialsResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllStoredCredentialsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to get stored credentials"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to get stored credentials"
                    }
                  },
                  "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"
                  }
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/wallet/credential/received-offers": {
      "get": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Get Received Credential Offers",
        "description": "This route retrieves all pending didcomm credential offers.\n\n### Related incoming webhook\n\nCalling this GET endpoint does not trigger a webhook. It lists records that may previously have produced the following incoming event for the holder organization:\n\n- [Credential Exchange Event](#tag/webhook-events/webhook/post/cheqd-credential-exchange-event)",
        "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 credential offers by state",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "done",
                "processing"
              ]
            },
            "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/GetReceivedCredentialsOfferResponses"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetReceivedCredentialsOfferResponses"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid network for this operation"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid network for this operation"
                    }
                  },
                  "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"
                  }
                }
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Credential Exchange Event",
          "url": "#tag/webhook-events/webhook/post/cheqd-credential-exchange-event"
        },
        "x-hovi-webhook-events": {
          "relationship": "related-incoming-event",
          "events": [
            {
              "label": "Credential Exchange Event",
              "recipient": "holder organization",
              "$ref": "#/webhooks/cheqd-credential-exchange-event",
              "url": "#tag/webhook-events/webhook/post/cheqd-credential-exchange-event"
            }
          ]
        }
      }
    },
    "/wallet/credential/preview-offer": {
      "post": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Preview Credential Offer",
        "description": "This route allows the organization to preview a credential offer before storing it in wallet.",
        "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/PreviewCredentialOfferResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewCredentialOfferResponse"
                }
              }
            }
          },
          "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"
                  }
                }
              }
            }
          },
          "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/previewCredentialOffer"
              }
            }
          }
        }
      }
    },
    "/wallet/credential/accept-offer": {
      "post": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Accept Credential Offer",
        "description": "This route allows the organization to accept a credential offer. The offer is identified by its unique credential exchange ID.\n\n### Related webhook events\n\nAfter storing the credential, the holder organization receives the credential-stored event at its registered webhook URL:\n\n- [Credential Exchange Event](#tag/webhook-events/webhook/post/cheqd-credential-exchange-event)",
        "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/AcceptCredentialOfferResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptCredentialOfferResponse"
                }
              }
            }
          },
          "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"
                  }
                }
              }
            }
          },
          "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/acceptCredentialOffer"
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Credential Exchange Event",
          "url": "#tag/webhook-events/webhook/post/cheqd-credential-exchange-event"
        },
        "x-hovi-webhook-events": {
          "relationship": "asynchronous-flow-outcome",
          "events": [
            {
              "label": "Credential Exchange Event",
              "recipient": "holder organization",
              "$ref": "#/webhooks/cheqd-credential-exchange-event",
              "url": "#tag/webhook-events/webhook/post/cheqd-credential-exchange-event"
            }
          ]
        }
      }
    },
    "/wallet/credential/decline-offer": {
      "post": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Decline Credential Offer",
        "description": "This route allows the organization to decline a credential offer. The offer is 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": "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/DeclineCredentialOfferResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/DeclineCredentialOfferResponse"
                }
              }
            }
          },
          "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"
                  }
                }
              }
            }
          },
          "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/declineCredentialOffer"
              }
            }
          }
        }
      }
    },
    "/wallet/credential/delete": {
      "delete": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Delete Stored Credential",
        "description": "This route allows the organization to delete a stored credential by its unique credential 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": "Credential deleted successfully"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential 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 not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential 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/deleteCredential"
              }
            }
          }
        }
      }
    },
    "/wallet/verification/received-requests": {
      "get": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Get Received Proof Requests",
        "description": "This route retrieves all pending proof requests.\n\n### Related incoming webhook\n\nCalling this GET endpoint does not trigger a webhook. It lists records that may previously have produced the following incoming event for the holder organization:\n\n- [Proof Exchange Event](#tag/webhook-events/webhook/post/cheqd-proof-exchange-event)",
        "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",
                "processing"
              ]
            },
            "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"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid network for this operation"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid network for this operation"
                    }
                  },
                  "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"
                  }
                }
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Proof Exchange Event",
          "url": "#tag/webhook-events/webhook/post/cheqd-proof-exchange-event"
        },
        "x-hovi-webhook-events": {
          "relationship": "related-incoming-event",
          "events": [
            {
              "label": "Proof Exchange Event",
              "recipient": "holder organization",
              "$ref": "#/webhooks/cheqd-proof-exchange-event",
              "url": "#tag/webhook-events/webhook/post/cheqd-proof-exchange-event"
            }
          ]
        }
      }
    },
    "/wallet/verification/preview-request": {
      "post": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Preview Proof Request",
        "description": "This route allows credential holder to preview a proof request before sending presentation to verifier. The preview provides an overview of the attributes and conditions that will be included in the proof request.",
        "parameters": [
          {
            "name": "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/PreviewProofRequestResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewProofRequestResponse"
                }
              }
            }
          },
          "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/previewProofRequest"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/previewProofRequest"
              }
            }
          }
        }
      }
    },
    "/wallet/verification/submit-presentation": {
      "post": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Submit Proof Presentation",
        "description": "This route allows a organization to submit presentation against a proof request by credential holder. The proof request defines the attributes and conditions that the credential holder must satisfy in its presentation.\n\n### Related webhook events\n\nAfter submitting the presentation, the holder organization receives the presentation-sent event at its registered webhook URL:\n\n- [Proof Exchange Event](#tag/webhook-events/webhook/post/cheqd-proof-exchange-event)",
        "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/SubmitPresentationResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitPresentationResponse"
                }
              }
            }
          },
          "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/submitPresentation"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/submitPresentation"
              }
            }
          }
        },
        "externalDocs": {
          "description": "View Proof Exchange Event",
          "url": "#tag/webhook-events/webhook/post/cheqd-proof-exchange-event"
        },
        "x-hovi-webhook-events": {
          "relationship": "asynchronous-flow-outcome",
          "events": [
            {
              "label": "Proof Exchange Event",
              "recipient": "holder organization",
              "$ref": "#/webhooks/cheqd-proof-exchange-event",
              "url": "#tag/webhook-events/webhook/post/cheqd-proof-exchange-event"
            }
          ]
        }
      }
    },
    "/wallet/verification/decline-request": {
      "post": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Decline Proof Request",
        "description": "This route allows a organization to decline a proof request that has been sent to a credential holder. Declining a proof request indicates that the organization does not wish to proceed with the verification process for the specified credential.",
        "parameters": [
          {
            "name": "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/DeclineProofRequestResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/DeclineProofRequestResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid network for this operation"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid network for this operation"
                    }
                  },
                  "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/declineProofRequest"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/declineProofRequest"
              }
            }
          }
        }
      }
    },
    "/v2/wallet/credential": {
      "get": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Get Stored Credentials (v2)",
        "description": "This route retrieves the credentials stored in the wallet, one page at a time and newest first. Each credential is returned with its issuer and display metadata, without its attributes. Use the Get Stored Credential route to retrieve one credential with its attributes.",
        "parameters": [
          {
            "name": "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 to return, starting at 1. Defaults to 1.",
            "example": 1,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Number of credentials per page. Defaults to 20, and can be at most 100.",
            "example": 20,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "connectionId",
            "in": "query",
            "required": false,
            "description": "Only return credentials received over this DIDComm connection.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "description": "Only return credentials stored on or after this date (YYYY-MM-DD).",
            "example": "2026-01-01",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "description": "Only return credentials stored on or before this date (YYYY-MM-DD).",
            "example": "2026-01-31",
            "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/GetStoredCredentialsV2Response"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetStoredCredentialsV2Response"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Limit in query parameters must not be greater than 100"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Limit in query parameters must not be greater than 100"
                    }
                  },
                  "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"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/wallet/credential/{credentialId}": {
      "get": {
        "tags": [
          "Organizational Wallet"
        ],
        "summary": "Get Stored Credential (v2)",
        "description": "This route retrieves one credential stored in the wallet, with its attributes and the display labels of its claims.",
        "parameters": [
          {
            "name": "credentialId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Credential ID, as returned by the Get Stored Credentials route."
          },
          {
            "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/GetStoredCredentialV2Response"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/GetStoredCredentialV2Response"
                }
              }
            }
          },
          "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 not found"
                    }
                  },
                  "xml": {
                    "name": "main"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "message": {
                      "type": "string",
                      "example": "Credential 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/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\nAfter the holder submits or declines this AnonCred proof request, Hovi sends the corresponding proof-exchange outcome to the verifier organization’s registered webhook URL:\n\n- [Proof Exchange Event](#tag/webhook-events/webhook/post/cheqd-proof-exchange-event)",
        "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 Proof Exchange Event",
          "url": "#tag/webhook-events/webhook/post/cheqd-proof-exchange-event"
        },
        "x-hovi-webhook-events": {
          "relationship": "asynchronous-flow-outcome",
          "events": [
            {
              "label": "Proof Exchange Event",
              "recipient": "verifier organization",
              "$ref": "#/webhooks/cheqd-proof-exchange-event",
              "url": "#tag/webhook-events/webhook/post/cheqd-proof-exchange-event"
            }
          ]
        }
      }
    },
    "/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",
                "processing"
              ]
            },
            "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
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CredentialAttribute": {
        "type": "object",
        "description": "A single claim field definition within a Verifiable Credential schema.",
        "example": {
          "name": "university",
          "type": "string",
          "label": "University Name",
          "description": "Official registered name of the issuing university.",
          "required": true
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "university",
            "maxLength": 50,
            "description": "Programmatic field identifier used in code and data structures."
          },
          "type": {
            "type": "string",
            "example": "string",
            "enum": [
              "string"
            ],
            "description": "Data type of the attribute. Allowed value: `string` (plain text)."
          },
          "label": {
            "type": "string",
            "example": "University Name",
            "maxLength": 100,
            "description": "Human-readable display label shown in wallet UIs."
          },
          "description": {
            "type": "string",
            "example": "Official registered name of the issuing university.",
            "maxLength": 200,
            "description": "Semantic description of the attribute claim and its purpose."
          }
        }
      },
      "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": "Credential attribute 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 attribute."
          },
          "description": {
            "type": "string",
            "example": "Name of the patient",
            "description": "Optional description of this attribute."
          },
          "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 controlling how the credential card appears in the holder's wallet.",
        "example": {
          "title": "University Degree Record",
          "description": "Official proof of university graduation.",
          "textColor": "#ffffff",
          "backgroundImageUrl": "https://acme-corp.com/bg.png",
          "backgroundImageAlt": "University seal",
          "logoUrl": "https://hovi.id/assets/university-logo.png",
          "logoAlt": "University crest",
          "locale": "en-US"
        },
        "properties": {
          "title": {
            "type": "string",
            "description": "Display title shown on the credential card in the wallet."
          },
          "description": {
            "type": "string",
            "description": "Short descriptive text shown to the holder on the credential card."
          },
          "textColor": {
            "type": "string",
            "example": "#ffffff",
            "description": "Hex color code for the text overlay on the credential card."
          },
          "backgroundImageUrl": {
            "type": "string",
            "format": "url",
            "description": "URL of the credential card background image."
          },
          "backgroundImageAlt": {
            "type": "string",
            "description": "Accessibility alt-text for the background image."
          },
          "logoUrl": {
            "type": "string",
            "format": "url",
            "description": "URL of the issuing organization's logo displayed on the card."
          },
          "logoAlt": {
            "type": "string",
            "description": "Accessibility alt-text for the logo image."
          },
          "locale": {
            "type": "string",
            "example": "en-US",
            "description": "BCP 47 locale code for credential card localization."
          }
        }
      },
      "CreateAnoncredsCredentialTemplatesResponse": {
        "title": "Create AnonCreds Credential Template Response",
        "type": "object",
        "description": "Returned after successfully creating an AnonCreds credential template. AnonCreds is a credential format developed by Hyperledger that supports privacy-preserving selective disclosure and zero-knowledge proofs. Both the schema and credential definition are anchored on the Cheqd blockchain as DID-linked resources and their on-chain resource URLs are returned in this response.",
        "example": {
          "success": true,
          "response": {
            "credentialTemplateId": "48b70e41-b427-46d7-ab42-950a0ea0a16d",
            "schemaId": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/f41c4612-6ada-40bc-8d81-e2cd5b0155a9",
            "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
            "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "name": "Patient ID",
            "version": "1.0.1",
            "description": "Patient ID Card",
            "type": "anoncreds",
            "image": "https://acme-corp.com/patient.png",
            "attributes": [
              {
                "name": "age",
                "label": "Age",
                "type": "string",
                "description": "Age of the patient",
                "required": true
              }
            ],
            "tag": "default",
            "credDef": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/61731cbb-0c8d-402c-a0d8-7b1eb0fff9d3",
            "createdAt": "2026-05-05T11:27:00.160Z",
            "updatedAt": "2026-05-05T11:27:00.160Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential template was successfully created."
          },
          "response": {
            "type": "object",
            "description": "The newly created AnonCreds credential template record, including on-chain resource identifiers.",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for this credential template. Use when issuing credentials or referencing the template in proof configs."
              },
              "schemaId": {
                "type": "string",
                "description": "DID-linked resource URL of the AnonCreds schema anchored on Cheqd (e.g., `did:cheqd:testnet:<did>/resources/<uuid>`). Resolving this URL returns the full schema definition."
              },
              "credDef": {
                "type": "string",
                "description": "DID-linked resource URL of the AnonCreds Credential Definition on Cheqd. Contains the issuer's public key material used by verifiers to validate signatures and zero-knowledge proofs."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem (top-level platform partition) this template belongs to."
              },
              "tenantId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization that owns this template and published the on-chain schema and credential definition."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the industry/sector category (e.g., healthcare, education) for grouping and discovery in Hovi Studio."
              },
              "name": {
                "type": "string",
                "description": "Human-readable template name displayed in Hovi Studio and the holder's wallet."
              },
              "version": {
                "type": "string",
                "description": "Semantic version of this template. Each unique name+version publishes a distinct immutable on-chain AnonCreds schema — increment to publish schema changes."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of the credential type, shown in Hovi Studio and optionally in the wallet."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format. `anoncreds` — Hyperledger AnonCreds anchored on-chain with ZK proof support. `jsonld` — W3C JSON-LD Verifiable Credential with IPFS-hosted schema."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "Publicly accessible URL of the credential card background image shown in the holder's wallet."
              },
              "attributes": {
                "type": "array",
                "description": "Ordered claim definitions matching the published AnonCreds schema fields. Each attribute is selectively disclosable during proof presentation.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "tag": {
                "type": "string",
                "description": "AnonCreds Credential Definition tag — disambiguates multiple credDefs published against the same schema by the same issuer. Defaults to `\"default\"`."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this template was persisted and the on-chain resources were successfully published."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update. Matches `createdAt` for newly created templates."
              }
            }
          }
        }
      },
      "CreateJsonLdCredentialTemplateResponse": {
        "title": "Create JSON-LD Credential Template Response",
        "type": "object",
        "description": "Returned after successfully creating a JSON-LD credential template (JSON-LD JSON for Linked Data, the W3C standard format for Verifiable Credentials that uses semantic context URLs to make credential fields machine-readable and interoperable across systems).",
        "example": {
          "success": true,
          "response": {
            "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
            "schemaId": "7471bb29-e875-4462-996a-69b2379a5049",
            "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
            "organizationId": "71192baf-49c4-40e4-8e8d-66606a44ff8b",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "name": "University Degree",
            "version": "2.0.11",
            "description": "University Degree credential template",
            "type": "jsonld",
            "attributes": [
              {
                "name": "university",
                "type": "object",
                "label": "University title",
                "description": "name of the university",
                "required": true,
                "attributes": [
                  {
                    "name": "batch",
                    "type": "object",
                    "label": "Batch title",
                    "description": "batch of the student",
                    "required": true,
                    "attributes": [
                      {
                        "name": "passingYear",
                        "type": "integer",
                        "label": "PassingYear title",
                        "description": "passing year of the student",
                        "required": true
                      }
                    ]
                  },
                  {
                    "name": "branch",
                    "type": "string",
                    "label": "Branch",
                    "description": "branch of the university",
                    "required": true
                  }
                ]
              },
              {
                "name": "fullName",
                "type": "string",
                "label": "Full Name",
                "description": "full name of the student",
                "required": true
              }
            ],
            "schemaUrl": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
            "schemaContext": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
            "schemaType": "University Degree Record",
            "createdAt": "2024-08-06T07:05:43.386Z",
            "updatedAt": "2024-08-06T07:05:43.386Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the newly created credential template."
              },
              "schemaId": {
                "type": "string",
                "format": "uuid",
                "description": "Internal Hovi UUID referencing the JSON-LD schema record for this 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 (tenant) that owns this credential template."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID. See supported category values in the request schema."
              },
              "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": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format. `jsonld` uses the W3C JSON-LD Verifiable Credential format."
              },
              "attributes": {
                "type": "array",
                "description": "Nested claim fields defined in this JSON-LD template. Supports deeply nested object sub-claims.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "schemaUrl": {
                "type": "string",
                "format": "url",
                "description": "Public URL (typically IPFS via hovi.id) where the JSON-LD schema document is hosted and resolvable by verifiers."
              },
              "schemaContext": {
                "type": "string",
                "format": "url",
                "description": "JSON-LD `@context` URL — maps credential field names to globally unique semantic IRIs for linked-data interoperability."
              },
              "schemaType": {
                "type": "string",
                "description": "JSON-LD `@type` value embedded in issued credentials (e.g., `\"UniversityDegreeRecord\"`) — identifies the credential kind to verifiers."
              },
              "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."
              }
            }
          }
        }
      },
      "ImportAnoncredCredentialTemplateResponse": {
        "title": "Import AnonCreds Credential Template Response",
        "type": "object",
        "description": "Returned after successfully importing an existing AnonCreds credential template (importing allows an organization to re-use a schema and credential definition that was previously published on the Cheqd blockchain by any party, without re-publishing it).",
        "example": {
          "success": true,
          "response": {
            "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
            "schemaId": "did:cheqd:testnet:TcXjZEBCzN1pgoqgvqwTxU/anoncreds/v0/SCHEMA/Patient Credential/2.0.2",
            "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
            "organizationId": "71192baf-49c4-40e4-8e8d-66606a44ff8b",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "name": "Patient Credential",
            "version": "2.0.2",
            "description": "Patient Credential Template",
            "type": "anoncreds",
            "attributes": [
              {
                "name": "name",
                "label": "Name",
                "type": "string",
                "description": "Name of the patient",
                "required": true
              },
              {
                "name": "age",
                "label": "Age",
                "type": "string",
                "description": "Age of the patient",
                "required": true
              }
            ],
            "tag": "v1",
            "createdAt": "2024-08-06T06:43:45.301Z",
            "updatedAt": "2024-08-06T06:43:45.301Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the imported credential template record."
              },
              "schemaId": {
                "type": "string",
                "description": "DID-linked resource URL of the existing AnonCreds schema on the Cheqd blockchain being imported."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this imported template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that performed the import."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID for this imported template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the imported credential template."
              },
              "version": {
                "type": "string",
                "description": "Version of the imported AnonCreds schema."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of the imported credential template."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format type of the imported template."
              },
              "attributes": {
                "type": "array",
                "description": "Claim fields derived from the imported AnonCreds schema definition.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "tag": {
                "type": "string",
                "description": "AnonCreds Credential Definition tag associated with this imported template."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this import record was created in Hovi."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update to this import record."
              }
            }
          }
        }
      },
      "ImportJsonLdCredentialTemplateResponse": {
        "title": "Import JSON-LD Credential Template Response",
        "type": "object",
        "description": "Returned after successfully importing an existing JSON-LD credential template (importing allows an organization to reference a JSON-LD schema already hosted at a public URL, without creating a new one).",
        "example": {
          "success": true,
          "response": {
            "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
            "schemaId": "ceff35e7-8625-40f3-a0f3-316784593e29",
            "ecosystemId": "c9ba491b-988f-481d-9c33-a5cc5aaff4ed",
            "organizationId": "99f009f6-aefa-4c13-bbe9-e5e314a64b1c",
            "categoryId": "2e5f483f-8970-4c5e-baf7-991ff24c120d",
            "name": "University Degree",
            "version": "2.0.2",
            "description": "University Degree credential template",
            "type": "jsonld",
            "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
            "attributes": [
              {
                "name": "university",
                "type": "object",
                "label": "University title",
                "description": "name of the university",
                "required": true,
                "attributes": [
                  {
                    "name": "batch",
                    "type": "object",
                    "label": "Batch title",
                    "description": "batch of the student",
                    "required": true,
                    "attributes": [
                      {
                        "name": "passingYear",
                        "type": "integer",
                        "label": "PassingYear title",
                        "description": "passing year of the student",
                        "required": true
                      }
                    ]
                  },
                  {
                    "name": "branch",
                    "type": "string",
                    "label": "Branch",
                    "description": "branch of the university",
                    "required": true
                  }
                ]
              },
              {
                "name": "fullName",
                "type": "string",
                "label": "Full Name",
                "description": "full name of the student",
                "required": true
              }
            ],
            "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/QmRF7nnhYTsWu8sqA2jeLWbWP9LuuARS9RrWsL2akvwD7v",
            "schemaType": "University Degree",
            "createdAt": "2024-08-12T11:21:32.464Z",
            "updatedAt": "2024-08-12T11:21:32.464Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the imported JSON-LD credential template record."
              },
              "schemaId": {
                "type": "string",
                "format": "uuid",
                "description": "Internal Hovi UUID for the JSON-LD schema record associated with this imported template."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this imported template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that performed the import."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID for this imported template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the imported credential template."
              },
              "version": {
                "type": "string",
                "description": "Version string of the imported JSON-LD credential template."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of the imported credential template."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format type of the imported template."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the credential card image displayed in the holder's wallet."
              },
              "attributes": {
                "type": "array",
                "description": "Claim fields derived from the imported JSON-LD schema.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "schemaUrl": {
                "type": "string",
                "format": "url",
                "description": "Public URL where the imported JSON-LD schema document is hosted."
              },
              "schemaType": {
                "type": "string",
                "description": "JSON-LD `@type` value from the imported schema identifying the credential kind."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this import record was created in Hovi."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update to this import record."
              }
            }
          }
        }
      },
      "GetCredentialTemplatesResponse": {
        "title": "Get Credential Templates Response",
        "type": "object",
        "description": "Returned when listing all credential templates belonging to an organization. Each item represents a previously created or imported credential template blueprint. The array may contain mixed credential format types — AnonCreds templates (anchored on the Cheqd blockchain with a credential definition) and JSON-LD templates (schema hosted on IPFS) are returned together in a single flat list.",
        "example": {
          "success": true,
          "response": [
            {
              "credentialTemplateId": "13f587ac-23f7-49ef-b339-acb7cc39a3cd",
              "schemaId": "cbeff78d-a860-41e1-b8aa-4cc5e812d396",
              "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
              "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
              "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
              "name": "Patient ID",
              "version": "1.0.1",
              "description": "Patient ID Card",
              "type": "jsonld",
              "image": "https://acme-corp.com/patient.png",
              "attributes": [
                {
                  "name": "age",
                  "label": "Age",
                  "type": "number",
                  "description": "Age of the patient"
                }
              ],
              "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreig5pt7ewvszdulkyxmestp5i4aixhvzqexnihqqfdjwon5jojab2y",
              "schemaContext": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreigzaewsrztegxqh6rwydo76mnx2wceyrsmbvdzrzhscdsposkahfy",
              "schemaType": "Patient Record",
              "createdAt": "2026-05-01T05:24:17.583Z",
              "updatedAt": "2026-05-01T05:24:17.583Z"
            },
            {
              "credentialTemplateId": "48b70e41-b427-46d7-ab42-950a0ea0a16d",
              "schemaId": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/f41c4612-6ada-40bc-8d81-e2cd5b0155a9",
              "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
              "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
              "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
              "name": "Patient ID",
              "version": "1.0.1",
              "description": "Patient ID Card",
              "type": "anoncreds",
              "image": "https://acme-corp.com/patient.png",
              "attributes": [
                {
                  "name": "age",
                  "label": "Age",
                  "type": "string",
                  "description": "Age of the patient",
                  "required": true
                }
              ],
              "tag": "default",
              "credDef": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/61731cbb-0c8d-402c-a0d8-7b1eb0fff9d3",
              "createdAt": "2026-05-05T11:27:00.160Z",
              "updatedAt": "2026-05-05T11:27:00.160Z"
            }
          ]
        },
        "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": "Flat array of all credential template records for this organization, ordered by creation time descending. May contain mixed `anoncreds` and `jsonld` types. Type-specific fields (`tag`, `credDef` for AnonCreds; `schemaUrl`, `schemaContext`, `schemaType` for JSON-LD) appear only on their respective type.",
            "items": {
              "type": "object",
              "properties": {
                "credentialTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Hovi-assigned UUID for this credential template. Use when issuing credentials or referencing in proof configs."
                },
                "schemaId": {
                  "type": "string",
                  "description": "Schema identifier — for `anoncreds`: DID-linked resource URL on Cheqd (e.g., `did:cheqd:testnet:<did>/resources/<uuid>`); for `jsonld`: internal Hovi UUID."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem (top-level platform partition) this template belongs to."
                },
                "tenantId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that owns this template. Matches the `x-organization-id` request header."
                },
                "categoryId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the industry/sector category for grouping and discovery in Hovi Studio."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable template name shown in Hovi Studio and the holder's wallet."
                },
                "version": {
                  "type": "string",
                  "description": "Semantic version string. For AnonCreds, each unique name+version maps to a distinct immutable on-chain schema."
                },
                "description": {
                  "type": "string",
                  "description": "Plain-text description of the credential type shown in Hovi Studio and optionally in the wallet."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "anoncreds",
                    "jsonld"
                  ],
                  "description": "Credential format. `anoncreds` — Hyperledger AnonCreds on-chain with ZK proof support. `jsonld` — W3C JSON-LD with IPFS-hosted schema."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the credential card background image shown in the holder's wallet. Present on both types when configured."
                },
                "attributes": {
                  "type": "array",
                  "description": "Claim attribute definitions. For `anoncreds`: maps to on-chain schema fields with `required` flag. For `jsonld`: reflects JSON-LD context properties.",
                  "items": {
                    "$ref": "#/components/schemas/CredentialAttribute"
                  }
                },
                "tag": {
                  "type": "string",
                  "description": "AnonCreds Credential Definition tag disambiguating multiple credDefs against the same schema. Defaults to `\"default\"`. Present on `anoncreds` only."
                },
                "credDef": {
                  "type": "string",
                  "description": "DID-linked resource URL of the AnonCreds Credential Definition on Cheqd — contains the issuer's public key for ZK proof verification. Present on `anoncreds` only."
                },
                "schemaUrl": {
                  "type": "string",
                  "format": "url",
                  "description": "IPFS gateway URL of the JSON-LD schema document. Resolving this URL returns the full schema including attribute definitions and context refs. Present on `jsonld` only."
                },
                "schemaContext": {
                  "type": "string",
                  "format": "url",
                  "description": "IPFS gateway URL of the JSON-LD `@context` document — maps attribute names to semantic IRIs for linked-data interoperability. Present on `jsonld` only."
                },
                "schemaType": {
                  "type": "string",
                  "description": "JSON-LD `@type` value for credentials issued from this template (e.g., `\"Patient Record\"`). Used by verifiers to identify the credential type. Present on `jsonld` only."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential template record was first persisted in Hovi."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update. Matches `createdAt` for newly created templates."
                }
              }
            }
          }
        }
      },
      "GetVerificationTemplatesResponse": {
        "title": "Get Verification Templates Response",
        "type": "object",
        "description": "Returned when listing all verification templates belonging to an organization. Each item represents a previously created proof request template blueprint that defines which credential attributes a verifier wants the holder to present. The array may contain mixed credential format types — AnonCreds verification templates (with on-chain schema and issuer DID restrictions) and JSON-LD verification templates (with schema URL, schema type, and issuer DID restrictions) are returned together in a single flat list.",
        "example": {
          "success": true,
          "response": [
            {
              "verificationTemplateId": "937b53aa-5bfd-4011-b23a-69bf28320c3e",
              "ecosystemId": "f5bcdbab-e462-4508-b764-700648d72123",
              "tenantId": "0ca67144-adba-468c-ad59-3c91604bb6f2",
              "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
              "credentialTemplateId": "fe89514d-3b23-42dd-8e11-a7f74e39eac4",
              "name": "JSONLD Verification",
              "version": "1.0.0",
              "description": "N/A",
              "schemaTypeRestriction": "jsonld.creden",
              "type": "jsonld",
              "requestedAttributes": [
                {
                  "name": "name",
                  "label": "Name",
                  "type": "string",
                  "description": "",
                  "required": true
                }
              ],
              "schemaUrlRestriction": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreifi3qupvhxbv47af2abpfzmrxqouql2z5akocsbllvjnrrczczwba",
              "issuerDidRestriction": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
              "createdAt": "2026-05-06T10:49:54.406Z",
              "updatedAt": "2026-05-06T10:49:54.406Z"
            },
            {
              "verificationTemplateId": "16777af1-9e96-4b86-9477-d513decc7e5f",
              "ecosystemId": "f5bcdbab-e462-4508-b764-700648d72123",
              "tenantId": "0ca67144-adba-468c-ad59-3c91604bb6f2",
              "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
              "name": "Marraige Verify",
              "version": "1.0.0",
              "description": "N/A",
              "type": "anoncreds",
              "requestedAttributes": [
                {
                  "name": "name",
                  "label": "Name",
                  "type": "string",
                  "description": "",
                  "required": true
                }
              ],
              "restrictions": [
                {
                  "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                  "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
                }
              ],
              "createdAt": "2026-05-06T10:50:35.424Z",
              "updatedAt": "2026-05-06T10:50:35.424Z"
            }
          ]
        },
        "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": "Flat array of all verification template records for this organization, ordered by creation time descending. May contain mixed `anoncreds` and `jsonld` types. Type-specific restriction fields (`restrictions` for AnonCreds; `schemaTypeRestriction`, `schemaUrlRestriction`, `issuerDidRestriction`, `credentialTemplateId` for JSON-LD) appear only on their respective type.",
            "items": {
              "type": "object",
              "properties": {
                "verificationTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Hovi-assigned UUID for this verification template. Use when initiating proof requests or updating the template."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem (top-level platform partition) this template belongs to."
                },
                "tenantId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that owns this template. Matches the `x-organization-id` request header."
                },
                "categoryId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the industry/sector category for grouping and discovery in Hovi Studio."
                },
                "credentialTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the credential template this verification template is bound to. Present on `jsonld` templates only — absent on `anoncreds`."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the verification template as shown in Hovi Studio."
                },
                "version": {
                  "type": "string",
                  "description": "Semantic version string for this verification template."
                },
                "description": {
                  "type": "string",
                  "description": "Plain-text description of the verification template purpose. May be `\"N/A\"` if none was provided."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "anoncreds",
                    "jsonld"
                  ],
                  "description": "Credential format this template targets. `anoncreds` — AnonCreds ZK proof restrictions via `schema_id`/`issuer_id`. `jsonld` — JSON-LD restrictions via schema URL and issuer DID."
                },
                "requestedAttributes": {
                  "type": "array",
                  "description": "Credential attributes the verifier requests the holder to disclose. Maps to claim fields defined in the linked credential template.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Claim field identifier as defined in the credential schema."
                      },
                      "label": {
                        "type": "string",
                        "description": "Human-readable display label shown in the holder's wallet during the proof request flow."
                      },
                      "type": {
                        "type": "string",
                        "description": "Data type of this attribute (e.g., `\"string\"`, `\"number\"`)."
                      },
                      "description": {
                        "type": "string",
                        "description": "Optional description of this attribute. May be an empty string."
                      },
                      "required": {
                        "type": "boolean",
                        "description": "Whether this attribute was required when the verification template was created."
                      }
                    }
                  }
                },
                "restrictions": {
                  "type": "array",
                  "description": "AnonCreds proof restrictions constraining which credentials can satisfy this proof request. Present on `anoncreds` templates only.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "schema_id": {
                        "type": "string",
                        "description": "DID-linked resource URL of the AnonCreds schema the presented credential must have been issued against (e.g., `did:cheqd:testnet:<did>/resources/<uuid>`)."
                      },
                      "issuer_id": {
                        "type": "string",
                        "description": "DID of the issuer whose credential the holder must present (e.g., `did:cheqd:testnet:<did>`). Prevents substitution with credentials from untrusted issuers."
                      }
                    }
                  }
                },
                "schemaTypeRestriction": {
                  "type": "string",
                  "description": "JSON-LD `@type` value the presented credential must match. Present on `jsonld` templates only."
                },
                "schemaUrlRestriction": {
                  "type": "string",
                  "format": "url",
                  "description": "IPFS URL of the JSON-LD schema the presented credential must have been issued against. Present on `jsonld` templates only."
                },
                "issuerDidRestriction": {
                  "type": "string",
                  "description": "DID of the issuer whose JSON-LD credential the holder must present (e.g., `did:key:z6Mk...`). Present on `jsonld` templates only."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this verification template record was first persisted in Hovi."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update. Matches `createdAt` for newly created templates."
                }
              }
            }
          }
        }
      },
      "CreateAnoncredsVerificationTemplateResponse": {
        "title": "Create AnonCreds Verification Template Response",
        "type": "object",
        "description": "Returned after successfully creating an AnonCreds verification template (a proof request blueprint targeting the AnonCreds credential format supports zero-knowledge predicates and on-chain revocation checks via the Cheqd StatusList2021 registry).",
        "example": {
          "success": true,
          "response": {
            "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "ecosystemId": "9925ed6a-f578-49db-b9a7-4a459f54aebc",
            "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "name": "Patient ID Verification",
            "image": "https://picsum.photos/200",
            "version": "2.0.9",
            "description": "Patient ID Card Verification",
            "type": "anoncreds",
            "requestedAttributes": [
              {
                "name": "name",
                "label": "Name",
                "type": "string",
                "description": "Name of the patient",
                "required": true
              },
              {
                "name": "age",
                "label": "Age",
                "type": "string",
                "description": "Age of the patient",
                "required": true
              }
            ],
            "requestedPredicates": [
              {
                "name": "age",
                "p_type": ">=",
                "p_value": 18
              }
            ],
            "restrictions": [
              {
                "schema_id": "did:cheqd:testnet:234b3606-7b4f-4303-9ace-081fc277cb15/resources/519e45c0-7a6b-4075-b5f7-79828a77f364"
              }
            ],
            "nonRevokeInterval": {
              "from": 0,
              "to": 1818287379415
            },
            "createdAt": "2024-08-07T11:14:50.241Z",
            "updatedAt": "2024-08-07T11:14:50.241Z"
          }
        },
        "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 AnonCreds verification template."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this verification template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that created this verification template."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID for this verification template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the verification template."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the image displayed on the proof 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 AnonCreds verification template checks."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format this verification template targets (`anoncreds` here)."
              },
              "requestedAttributes": {
                "type": "array",
                "description": "Credential claim attributes the verifier requests the holder to disclose.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "requestedPredicates": {
                "type": "array",
                "description": "Zero-knowledge predicates — conditions the holder proves about attributes without revealing the raw value (e.g., `age >= 18` without disclosing the actual age).",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Credential attribute name this predicate applies to."
                    },
                    "p_type": {
                      "type": "string",
                      "enum": [
                        ">=",
                        "<=",
                        ">",
                        "<"
                      ],
                      "description": "Comparison operator for the zero-knowledge predicate."
                    },
                    "p_value": {
                      "type": "number",
                      "description": "Threshold value the attribute is compared against in the predicate."
                    }
                  }
                }
              },
              "restrictions": {
                "type": "array",
                "description": "AnonCreds proof restrictions constraining which credentials can satisfy this proof request.",
                "items": {
                  "type": "object",
                  "properties": {
                    "schema_id": {
                      "type": "string",
                      "description": "Restricts accepted credentials to those issued against this AnonCreds schema resource URL on Cheqd."
                    },
                    "issuer_id": {
                      "type": "string",
                      "description": "Restricts accepted credentials to those signed by this specific issuer DID on Cheqd."
                    }
                  }
                }
              },
              "nonRevokeInterval": {
                "type": "object",
                "description": "Time window during which the credential must have been non-revoked on the Cheqd StatusList2021 on-chain registry.",
                "properties": {
                  "from": {
                    "type": "number",
                    "description": "Start of the non-revocation interval as a Unix epoch timestamp (milliseconds)."
                  },
                  "to": {
                    "type": "number",
                    "description": "End of the non-revocation interval as a Unix epoch timestamp (milliseconds)."
                  }
                }
              },
              "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 to this verification template."
              }
            }
          }
        }
      },
      "CreateJsonLdVerificationTemplateResponse": {
        "title": "Create JSON-LD Verification Template Response",
        "type": "object",
        "description": "Returned after successfully creating a JSON-LD verification template (a proof request blueprint targeting the W3C JSON-LD Verifiable Credential format restricts accepted credentials by schema URL rather than on-chain AnonCreds schema ID).",
        "example": {
          "success": true,
          "response": {
            "verificationTemplateId": "da919b71-2b03-424a-9cc5-52a9e1eb1e46",
            "ecosystemId": "7ad26921-6d9e-4e9a-a0d4-f7e5a4c1e6ca",
            "tenantId": "e3448b05-fdd5-4a80-90dc-3b3e061f9209",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "credentialTemplateId": "68ca8867-7352-4b7a-95f4-0682e827f048",
            "name": "Patient ID",
            "image": "https://acme-corp.com/patient.png",
            "version": "1.0.1",
            "description": "Patient ID Card Verification",
            "schemaTypeRestriction": "mango",
            "type": "jsonld",
            "requestedAttributes": [
              {
                "name": "fullName",
                "type": "string",
                "label": "Full Name",
                "description": "Full legal name",
                "required": true
              },
              {
                "name": "age",
                "type": "number",
                "label": "Age",
                "description": "Age of the user",
                "required": true
              },
              {
                "name": "isVerified",
                "type": "boolean",
                "label": "Verification Status",
                "description": "Indicates whether the user is verified",
                "required": true
              },
              {
                "name": "profileImage",
                "type": "image",
                "label": "Profile Image",
                "description": "Profile picture of the user",
                "required": false
              },
              {
                "name": "dateOfBirth",
                "type": "date",
                "label": "Date of Birth",
                "description": "Birth date of the user",
                "required": true
              },
              {
                "name": "address",
                "type": "object",
                "label": "Address Information",
                "description": "Primary address details",
                "required": true,
                "attributes": [
                  {
                    "name": "street",
                    "type": "string",
                    "label": "Street",
                    "description": "Street address",
                    "required": true
                  },
                  {
                    "name": "postalCode",
                    "type": "number",
                    "label": "Postal Code",
                    "description": "ZIP or postal code",
                    "required": true
                  }
                ]
              },
              {
                "name": "organization",
                "type": "object",
                "label": "Organization Information",
                "description": "Organization related details",
                "required": true,
                "attributes": [
                  {
                    "name": "organizationName",
                    "type": "string",
                    "label": "Organization Name",
                    "description": "Name of the organization",
                    "required": true
                  },
                  {
                    "name": "department",
                    "type": "object",
                    "label": "Department Information",
                    "description": "Nested department details",
                    "required": true,
                    "attributes": [
                      {
                        "name": "departmentName",
                        "type": "string",
                        "label": "Department Name",
                        "description": "Name of the department",
                        "required": true
                      },
                      {
                        "name": "employeeCount",
                        "type": "number",
                        "label": "Employee Count",
                        "description": "Number of employees in the department",
                        "required": false
                      }
                    ]
                  }
                ]
              }
            ],
            "schemaUrlRestriction": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreic2polspfhmjo2e3i5znztnf376lgk2iyxo6gfco6q2gfxxk5hqrq",
            "issuerDidRestriction": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
            "createdAt": "2026-05-08T13:25:01.007Z",
            "updatedAt": "2026-05-08T13:25:01.007Z"
          }
        },
        "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 JSON-LD verification template."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this verification template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that created this verification template."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID for this verification template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the verification template."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the image displayed on the proof 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 JSON-LD verification template checks."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format this verification template targets (`jsonld` here)."
              },
              "requestedAttributes": {
                "type": "array",
                "description": "Credential attributes the verifier requests from the holder, supporting nested JSON-LD object structures.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "schemaUrlRestriction": {
                "type": "string",
                "format": "url",
                "description": "IPFS URL of the JSON-LD schema the holder's credential must have been issued against to satisfy this proof request."
              },
              "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 to this verification template."
              }
            }
          }
        }
      },
      "AddWebhookResponse": {
        "title": "Add Webhook Response",
        "type": "object",
        "description": "Returned after successfully registering a new webhook endpoint (an HTTP callback URL that Hovi will POST event notifications to e.g., when a credential is accepted or a verification proof is submitted by a holder).",
        "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. Use to reference or remove it."
              },
              "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 removing (deregistering) a webhook endpoint. Hovi will no longer send event notifications to the removed URL.",
        "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. Each item represents a configured HTTP callback URL that receives Hovi event notifications.",
        "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 (tenant) 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 to this webhook registration."
                }
              }
            }
          }
        }
      },
      "CreateTenantResponse": {
        "title": "Create Tenant Response",
        "type": "object",
        "description": "Returned after successfully creating a new organization (tenant an isolated account within the Hovi multi-tenant platform). The response includes the organization's access token, auto-provisioned DIDs (Decentralized Identifiers globally unique identifiers controlled by the organization's private keys, not by any central registry), and any configured webhooks.",
        "example": {
          "success": true,
          "response": {
            "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
            "tenantId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
            "setting": {
              "organizationName": "acme-corp",
              "defaultLabel": "acme-corp",
              "image": "https://acme-corp.com/acme-logo-color.png",
              "id": "668c8266-a026-4568-a3ed-fe0ad46fa87c"
            },
            "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
            "dids": [
              {
                "did": "did:cheqd:testnet:34a5cb23-9cc5-46a8-bf1a-4b6cc4c1cd7f",
                "method": "cheqd",
                "privateKey": "KC7anZVWo2CiQDfcFXUvMDdWoerGc2Ry"
              },
              {
                "did": "did:key:z6MkixGc9RdCEWbHaoNo4SoJ3Gs6tKZXuQVV5DNnJeG3EpgT",
                "method": "key",
                "privateKey": "KC7anZVWo2CiQDfcFXUvMDdWoerGc9L7"
              }
            ],
            "webhooks": [
              {
                "webhookId": "1be3b6b8ab51a5a0fe0113ed5b1f6832",
                "webhookUrl": "https://webhook1.com"
              },
              {
                "webhookId": "7605e2130d0d5390756b605dd72d951f",
                "webhookUrl": "https://webhook2.com"
              }
            ]
          }
        },
        "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 (tenant)."
              },
              "tenantId": {
                "type": "string",
                "format": "uuid",
                "description": "Alias for `organizationId` — the tenant identifier within the Hovi ecosystem."
              },
              "setting": {
                "type": "object",
                "description": "Display and branding settings for the organization shown in wallet UIs and Hovi Studio.",
                "properties": {
                  "organizationName": {
                    "type": "string",
                    "description": "Registered name of the organization."
                  },
                  "defaultLabel": {
                    "type": "string",
                    "description": "Default label shown in DIDComm connection invitations — the name a holder's wallet displays when receiving a connection request."
                  },
                  "image": {
                    "type": "string",
                    "format": "url",
                    "description": "URL of the organization's logo used in wallet UIs and connection invitations."
                  },
                  "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 for all subsequent API calls. Store securely — treat as a secret."
              },
              "dids": {
                "type": "array",
                "description": "DIDs auto-provisioned for this organization. `did:cheqd` is anchored on-chain for schema publication and credential definitions. `did:key` is an off-chain identifier used for DIDComm messaging.",
                "items": {
                  "type": "object",
                  "properties": {
                    "did": {
                      "type": "string",
                      "description": "Full DID string (e.g., `did:cheqd:testnet:34a5cb23-...` or `did:key:z6Mk...`)."
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "cheqd",
                        "key"
                      ],
                      "description": "DID method — `cheqd` for blockchain-anchored DIDs, `key` for locally derived off-chain DIDs."
                    },
                    "privateKey": {
                      "type": "string",
                      "description": "Private key for this DID. **Store securely and never expose** — controls credential signing and DIDComm authentication for this organization."
                    }
                  }
                }
              },
              "webhooks": {
                "type": "array",
                "description": "Webhook endpoints registered during tenant creation — each receives Hovi event notification POST requests.",
                "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."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "UpdateTenantResponse": {
        "title": "Update Tenant Response",
        "type": "object",
        "description": "Returned after successfully updating an organization's (tenant's) settings such as name, logo, or label.",
        "example": {
          "success": true
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the tenant update was successful."
          }
        }
      },
      "RotateTenantAccessTokenResponse": {
        "title": "Rotate Tenant Access Token Response",
        "type": "object",
        "description": "Returned after successfully rotating (regenerating) the organization's Ecosystem API Key. The previous token is immediately invalidated update all integrations to use the new token.",
        "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 — the old token is now invalid."
              }
            }
          }
        }
      },
      "DeleteTenantReponse": {
        "title": "Delete Tenant Response",
        "type": "object",
        "description": "Returned after successfully deleting an organization (tenant) and all its associated resources from the Hovi ecosystem. 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 (tenants) 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",
              "tenantId": "6b6e17b5-3968-412c-b453-467821563119",
              "ecosystemId": "9925ed6a-f578-49db-b9a7-4a459f54aebc",
              "dids": [
                {
                  "did": "did:cheqd:testnet:b4f6ecd9-0c52-4a37-a8ce-6b3b5554ae78",
                  "method": "cheqd"
                },
                {
                  "did": "did:key:z6MkhKV3YrsT9SFzEYH8JDay6MF8Psk25ditSp1etvJUaowi",
                  "method": "key"
                }
              ],
              "name": "Acme Corp Cheqd 1",
              "label": "vero",
              "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
              "status": "active",
              "createdAt": "2024-06-21T08:54:58.103Z",
              "updatedAt": "2024-06-21T08:54:58.103Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all organizations (tenants) registered within the Hovi ecosystem, including archived ones.",
            "items": {
              "type": "object",
              "properties": {
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for the organization (tenant)."
                },
                "tenantId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Alias for `organizationId` — the tenant identifier within the Hovi ecosystem."
                },
                "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 for this organization."
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "cheqd",
                          "key"
                        ],
                        "description": "DID method — `cheqd` for blockchain-anchored DIDs, `key` for locally derived off-chain DIDs."
                      }
                    }
                  }
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the organization."
                },
                "label": {
                  "type": "string",
                  "description": "Short label used in DIDComm connection invitations and wallet UIs."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the organization's logo image."
                },
                "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 of when this organization was created."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this organization was last updated."
                }
              }
            }
          }
        }
      },
      "GetTenantDidsResponse": {
        "title": "Get Tenant DIDs Response",
        "type": "object",
        "description": "Returned when listing all DIDs (Decentralized Identifiers cryptographic identifiers controlled by the organization's private keys) provisioned for a specific organization. Cheqd DIDs are anchored on-chain; key DIDs are derived locally.",
        "example": {
          "success": true,
          "response": [
            {
              "did": "did:key:z6Mkw1JK3fA62UNsQ6MwJwqPxTEfHVZuFokpZWGdingDAfRN",
              "method": "key"
            },
            {
              "did": "did:cheqd:testnet:34a5cb23-9cc5-46a8-bf1a-4b6cc4c1cd7f",
              "method": "cheqd"
            }
          ]
        },
        "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:cheqd:testnet:34a5cb23-...` or `did:key:z6Mk...`)."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "cheqd",
                    "key"
                  ],
                  "description": "DID method — `cheqd` for blockchain-anchored DIDs on the Cheqd network, `key` for locally derived off-chain DIDs."
                }
              }
            }
          }
        }
      },
      "CreateConnectionResponse": {
        "title": "Create Connection Response",
        "type": "object",
        "description": "Returned after successfully generating a DIDComm Out-of-Band (OOB) connection invitation (a standard DIDComm protocol message that lets an external wallet establish a secure, private peer-to-peer channel with this organization the holder scans a QR code or clicks a deep link containing the `invitationUrl`).",
        "example": {
          "success": true,
          "response": {
            "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
            "state": "pending",
            "invitationJson": {
              "@type": "https://didcomm.org/out-of-band/1.1/invitation",
              "@id": "06d204ed-a2b6-468a-9d4e-974532612372",
              "label": "label",
              "accept": [
                "didcomm/aip1",
                "didcomm/aip2;env=rfc19"
              ],
              "handshake_protocols": [
                "https://didcomm.org/didexchange/1.1",
                "https://didcomm.org/connections/1.0"
              ],
              "services": [
                {
                  "id": "#inline-0",
                  "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
                  "type": "did-communication",
                  "recipientKeys": [
                    "did:key:z6MkvvrtQWDufzySijPFQWbKY3ZbJksi5hQW5V7FAgzo1tuN"
                  ],
                  "routingKeys": []
                }
              ],
              "imageUrl": "https://acme-corp.com/connection.png"
            },
            "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIwNmQyMDRlZC1hMmI2LTQ2OGEtOWQ0ZS05NzQ1MzI2MTIzNzIiLCJsYWJlbCI6ImxhYmVsIiwiYWNjZXB0IjpbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwiaGFuZHNoYWtlX3Byb3RvY29scyI6WyJodHRwczovL2RpZGNvbW0ub3JnL2RpZGV4Y2hhbmdlLzEuMSIsImh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wIl0sInNlcnZpY2VzIjpbeyJpZCI6IiNpbmxpbmUtMCIsInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vY29yZS1hZ2VudC1kZXYuaG92aS5pZC9hZ2VudCIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiIsInJlY2lwaWVudEtleXMiOlsiZGlkOmtleTp6Nk1rdnZydFFXRHVmenlTaWpQRlFXYktZM1piSmtzaTVoUVc1VjdGQWd6bzF0dU4iXSwicm91dGluZ0tleXMiOltdfV0sImltYWdlVXJsIjoiaHR0cHM6Ly9hY21lLWNvcnAuY29tL2Nvbm5lY3Rpb24ucG5nIn0",
            "autoAcceptConnection": true,
            "reusable": false,
            "invitationUrl": "https://studio-dev.hovi.id/connection?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIwNmQyMDRlZC1hMmI2LTQ2OGEtOWQ0ZS05NzQ1MzI2MTIzNzIiLCJsYWJlbCI6ImxhYmVsIiwiYWNjZXB0IjpbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwiaGFuZHNoYWtlX3Byb3RvY29scyI6WyJodHRwczovL2RpZGNvbW0ub3JnL2RpZGV4Y2hhbmdlLzEuMSIsImh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wIl0sInNlcnZpY2VzIjpbeyJpZCI6IiNpbmxpbmUtMCIsInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vY29yZS1hZ2VudC1kZXYuaG92aS5pZC9hZ2VudCIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiIsInJlY2lwaWVudEtleXMiOlsiZGlkOmtleTp6Nk1rdnZydFFXRHVmenlTaWpQRlFXYktZM1piSmtzaTVoUVc1VjdGQWd6bzF0dU4iXSwicm91dGluZ0tleXMiOltdfV0sImltYWdlVXJsIjoiaHR0cHM6Ly9hY21lLWNvcnAuY29tL2Nvbm5lY3Rpb24ucG5nIiwiZWNvc3lzdGVtSWQiOiJhYWE0ZDI0Zi1lZjc1LTQ0NzMtOTJhNC1iMmZlOWJhM2IyNTAifQ=="
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the OOB invitation was successfully generated."
          },
          "response": {
            "type": "object",
            "description": "The invitation payload returned upon successful connection creation.",
            "properties": {
              "invitationId": {
                "type": "string",
                "format": "uuid",
                "description": "Server-assigned UUID for this invitation record. Use to poll connection state (`pending` → `completed`) or correlate incoming DIDComm messages to the originating invitation."
              },
              "state": {
                "type": "string",
                "description": "Current lifecycle state of the invitation. Starts as `pending` after creation; transitions to `completed` once the holder completes the DIDComm handshake. May also be `abandoned` or `error`."
              },
              "invitationJson": {
                "type": "object",
                "description": "Raw DIDComm Out-of-Band 1.1 invitation object (Aries RFC 0434). All other representations (`invitationBase64`, `invitationUrl`) are derived from this canonical object.",
                "properties": {
                  "@type": {
                    "type": "string",
                    "description": "DIDComm message type URI. Always `https://didcomm.org/out-of-band/1.1/invitation` — used by wallet agents to identify and route the message."
                  },
                  "@id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Unique message ID inside the DIDComm envelope. Distinct from `invitationId` — used by recipient agents for message deduplication and threading."
                  },
                  "label": {
                    "type": "string",
                    "description": "Display name shown in the holder's wallet when presenting the connection request."
                  },
                  "accept": {
                    "type": "array",
                    "description": "DIDComm envelope profiles supported by this agent, in preference order. Enables interoperability with wallets supporting AIP 1.0 and AIP 2.0 envelope formats.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "handshake_protocols": {
                    "type": "array",
                    "description": "DIDComm handshake protocol URIs accepted by this agent. The holder's wallet picks the first mutually supported protocol — typically `didexchange/1.1` with `connections/1.0` as a legacy fallback.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "services": {
                    "type": "array",
                    "description": "Inline DIDComm service endpoint descriptors the holder's wallet uses to route the handshake response back to this agent.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Fragment identifier for this service entry. Uses `#inline-N` convention for inline definitions not resolvable as standalone DID Documents."
                        },
                        "serviceEndpoint": {
                          "type": "string",
                          "format": "url",
                          "description": "Publicly reachable HTTPS URL of the organization's DIDComm agent. The holder's wallet POSTs the handshake response to this endpoint."
                        },
                        "type": {
                          "type": "string",
                          "description": "Service type descriptor. `did-communication` identifies a DIDComm v1 messaging endpoint."
                        },
                        "recipientKeys": {
                          "type": "array",
                          "description": "List of `did:key` URIs representing the agent's public keys. The holder's wallet encrypts the outbound handshake message to these keys.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "routingKeys": {
                          "type": "array",
                          "description": "Mediator routing keys. Empty array (`[]`) means the agent is directly reachable at `serviceEndpoint` with no intermediary.",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "imageUrl": {
                    "type": "string",
                    "format": "url",
                    "description": "Organization's branding image displayed in the holder's wallet alongside `label` during the connection acceptance prompt."
                  }
                }
              },
              "invitationBase64": {
                "type": "string",
                "description": "Standard Base64 encoding of `invitationJson`. Used to embed the invitation in QR codes or as the `oob` query parameter in deep links."
              },
              "autoAcceptConnection": {
                "type": "boolean",
                "description": "When `true`, the agent automatically accepts the incoming DIDComm connection request without manual approval. When `false`, an operator must explicitly approve."
              },
              "reusable": {
                "type": "boolean",
                "description": "`false` — single-use invitation, expires after the first wallet completes the handshake. `true` — multi-party invitation, remains active for multiple wallets."
              },
              "invitationUrl": {
                "type": "string",
                "format": "url",
                "description": "Complete invitation URL with the Base64-encoded invitation as the `oob` query parameter. Render as a QR code for wallet scanning or as a deep link for mobile wallets. May include additional fields (e.g., `ecosystemId`) beyond `invitationBase64`."
              }
            }
          }
        }
      },
      "GetConnectionsResponse": {
        "title": "Get Connections Response",
        "type": "object",
        "description": "Returned when listing all DIDComm connections for an organization. Each item represents a peer-to-peer secure channel either completed (both parties have exchanged DID documents and the channel is active) or pending (the invitation has been sent but the holder has not yet accepted).",
        "example": {
          "success": true,
          "response": [
            {
              "connectionId": "c971d3ba-09a8-4fc3-9de0-8f04d94390b0",
              "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
              "connectionProtocol": "https://didcomm.org/didexchange/1.x",
              "state": "completed",
              "role": "responder",
              "accept": "auto",
              "theirDid": "did:peer:4zQmStdSSwsyhapZG7KMpFf1RjPsTZDaewkTUUnh6WppHhMB:z9vzP2Bq6...",
              "threadId": "4a97e7e6-964a-4dc8-95ed-8ae65e08e18c",
              "myDid": "did:peer:4zQmbekXSTrJ6T9c5Su9nnaAQ1K9nSryVDtBduPjTEka3qdH:z3zzFC4bu...",
              "alias": "name",
              "theirLabel": "bmFtZTtwaG9uZTtkaWQ6a2V5Ono2TWtmdXNvVmFZdDhnRWVvdk5hNVFxN3dlRHp0eTlFVm5ONTY5cEtnMWJuTkR3cQ==",
              "createdAt": "2026-05-05T10:36:36.431Z",
              "updatedAt": "2026-05-05T10:36:38.379Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the connection listing was successfully retrieved."
          },
          "response": {
            "type": "array",
            "description": "All DIDComm connection records for the organization, including completed and pending connections. Empty array if no connections exist.",
            "items": {
              "type": "object",
              "properties": {
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this DIDComm connection. Use for credential issuance, proof requests, or messaging over this channel."
                },
                "invitationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the OOB invitation that initiated this connection."
                },
                "connectionProtocol": {
                  "type": "string",
                  "description": "DIDComm handshake protocol URI negotiated between this agent and the holder's wallet (e.g., `https://didcomm.org/didexchange/1.x`)."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "completed",
                    "abandoned"
                  ],
                  "description": "DIDComm connection lifecycle state. `pending` — invitation issued, handshake not yet complete. `completed` — DID documents exchanged, channel active. `abandoned` — handshake cancelled, timed out, or failed."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "inviter",
                    "responder"
                  ],
                  "description": "This agent's role in the handshake. `inviter` — created the OOB invitation. `responder` — accepted the connection request from the holder's wallet."
                },
                "accept": {
                  "type": "string",
                  "enum": [
                    "auto",
                    "manual"
                  ],
                  "description": "Connection acceptance mode. `auto` — agent completes the handshake automatically. `manual` — requires explicit operator approval."
                },
                "theirDid": {
                  "type": "string",
                  "description": "Holder's `did:peer:4` long-form pairwise DID created exclusively for this connection. Present only after `completed` state."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID correlating all handshake messages for this connection. Maps to the `@id` of the initial `did-exchange/request`."
                },
                "myDid": {
                  "type": "string",
                  "description": "This agent's `did:peer:4` pairwise DID created exclusively for this connection. A unique DID per connection prevents cross-connection holder correlation."
                },
                "alias": {
                  "type": "string",
                  "description": "Server-side human-readable label for this connection record (e.g., customer name). Not transmitted to the holder's wallet."
                },
                "theirLabel": {
                  "type": "string",
                  "description": "Base64-encoded metadata transmitted by the holder's wallet during the handshake. Decode to extract the wallet's display name and any appended identity hints."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this connection record was created, corresponding to when the OOB invitation was generated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change (e.g., `pending` → `completed` after the holder completed the handshake)."
                }
              }
            }
          }
        }
      },
      "GetConnectionResponse": {
        "title": "Get Connection Response",
        "type": "object",
        "description": "Returned when querying a DIDComm connection by `connectionId` or `invitationId`. This endpoint exclusively returns connections in `completed` state — meaning the holder's wallet has successfully finished the DIDComm handshake and both parties have exchanged DID documents. If the connection exists but is still `pending` or `abandoned`, or if no matching record is found, `response` will be an empty array.",
        "example": {
          "success": true,
          "response": [
            [
              {
                "connectionId": "c971d3ba-09a8-4fc3-9de0-8f04d94390b0",
                "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
                "connectionProtocol": "https://didcomm.org/didexchange/1.x",
                "state": "completed",
                "role": "responder",
                "accept": "auto",
                "theirDid": "did:peer:4zQmStdSSwsyhapZG7KMpFf1RjPsTZDaewkTUUnh6WppHhMB:z9vzP2Bq6...",
                "threadId": "4a97e7e6-964a-4dc8-95ed-8ae65e08e18c",
                "myDid": "did:peer:4zQmbekXSTrJ6T9c5Su9nnaAQ1K9nSryVDtBduPjTEka3qdH:z3zzFC4bu...",
                "alias": "name",
                "theirLabel": "bmFtZTtwaG9uZTtkaWQ6a2V5Ono2TWtmdXNvVmFZdDhnRWVvdk5hNVFxN3dlRHp0eTlFVm5ONTY5cEtnMWJuTkR3cQ==",
                "createdAt": "2026-05-05T10:36:36.431Z",
                "updatedAt": "2026-05-05T10:36:38.379Z"
              }
            ]
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the lookup was successfully executed. Returns `true` even when the result is an empty array — `false` signals a request or server-level failure, not an empty result."
          },
          "response": {
            "type": "array",
            "description": "Outer array wrapping the query result. Contains a single inner array when a completed connection is found, or is empty (`[]`) when no completed connection matches. The `[[...]]` double-array structure reflects internal response normalization by this endpoint.",
            "items": {
              "type": "array",
              "description": "Inner array containing the matched completed connection record(s).",
              "items": {
                "type": "object",
                "properties": {
                  "connectionId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Server-assigned UUID for this completed DIDComm connection. Use as the handle for credential issuance, proof requests, and direct DIDComm messaging."
                  },
                  "invitationId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the OOB invitation that initiated this connection. Matches the `invitationId` query parameter when retrieved via invitation lookup."
                  },
                  "connectionProtocol": {
                    "type": "string",
                    "description": "DIDComm handshake protocol URI negotiated during connection establishment — reflects the highest mutually supported version between this agent and the holder's wallet."
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "completed"
                    ],
                    "description": "Lifecycle state. This endpoint exclusively returns `completed` records — both parties have exchanged DID documents and the channel is fully active."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "inviter",
                      "responder"
                    ],
                    "description": "This agent's role in the DIDComm handshake. `responder` — accepted the connection request from the holder's wallet (typical in issuer/verifier flows)."
                  },
                  "accept": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "manual"
                    ],
                    "description": "Acceptance mode at invitation creation time. `auto` — handshake completed automatically. `manual` — required explicit operator approval."
                  },
                  "theirDid": {
                    "type": "string",
                    "description": "Holder's `did:peer:4` long-form pairwise DID for this connection. Self-contained DID Document encoded in the DID string. Unique per connection — same holder presents a different DID per connection."
                  },
                  "threadId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "DIDComm thread ID correlating all handshake messages (`request` → `response` → `complete`). Corresponds to the `@id` of the holder's initial `did-exchange/request`."
                  },
                  "myDid": {
                    "type": "string",
                    "description": "This agent's `did:peer:4` pairwise DID for this connection. A unique DID per connection prevents holder correlation across multiple connections to the same organization."
                  },
                  "alias": {
                    "type": "string",
                    "description": "Server-side human-readable label for this connection (e.g., customer name or internal reference). Never transmitted to the holder's wallet."
                  },
                  "theirLabel": {
                    "type": "string",
                    "description": "Base64-encoded metadata from the holder's wallet during the handshake. Decode to reveal the wallet's display name and appended identity hints (e.g., `name;phone;did:key:z6Mkf...`)."
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp when this connection record was first persisted, corresponding to when the originating OOB invitation was generated."
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp of the most recent state change. For completed connections, reflects when the final `did-exchange/complete` message was processed."
                  }
                }
              }
            }
          }
        }
      },
      "GetConnectionBase64Response": {
        "title": "Get Connection Base64 Invitation Response",
        "type": "object",
        "description": "Returned when retrieving the Base64-encoded DIDComm Out-of-Band invitation for an existing connection. Use the `invitationBase64` value to regenerate a QR code or deep link for a holder's wallet to re-scan.",
        "example": {
          "success": true,
          "response": {
            "invitationId": "9dcdf1ed-dbcc-425c-88e1-3a593fc0a493",
            "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiI1NGJlMzljMi0xNmZjLTQ5MWQtODFjNS05MjhjNzE4NTg5ZTIiLCJsYWJlbCI6InRlc3QtbGFiZWwtMiIsImFjY2VwdCI6WyJkaWRjb21tL2FpcDEiLCJkaWRjb21tL2FpcDI7ZW52PXJmYzE5Il0sImhhbmRzaGFrZV9wcm90b2NvbHMiOlsiaHR0cHM6Ly9kaWRjb21tLm9yZy9kaWRleGNoYW5nZS8xLjEiLCJodHRwczovL2RpZGNvbW0ub3JnL2Nvbm5lY3Rpb25zLzEuMCJdLCJzZXJ2aWNlcyI6W3siaWQiOiIjaW5saW5lLTAiLCJzZXJ2aWNlRW5kcG9pbnQiOiJodHRwczovL2hvdmktY29yZS1kZXYtbm9yZGl2by5rb3llYi5hcHAvYWdlbnQiLCJ0eXBlIjoiZGlkLWNvbW11bmljYXRpb24iLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3ZpN1hGSzNQN1VFdDhFMWlmeUtpVWdQaTJXVXhTRTdZZndQWGJEZlJIMzJuIl0sInJvdXRpbmdLZXlzIjpbXX1dLCJpbWFnZVVybCI6Imh0dHBzOi8vYWNtZS1jb3JwMi5jb20vbG9nby5wbmcifQ=="
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "invitationId": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for this OOB invitation record."
              },
              "invitationBase64": {
                "type": "string",
                "description": "Base64-encoded DIDComm OOB invitation JSON. Decode and render as a QR code, or append as the `oob` query parameter in a deep link URL."
              }
            }
          }
        }
      },
      "SendProofReqestResponse": {
        "title": "Send Proof Request Response (Legacy)",
        "type": "object",
        "description": "Returned after successfully sending a DIDComm proof request to a holder over an established connection. The `proofExchangeId` is used to poll for the holder's proof presentation response.",
        "example": {
          "success": true,
          "response": {
            "proofExchangeId": "16fe7504-9bba-49ee-98e4-430981c36dc7"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Proof exchange session UUID. Use to retrieve the verification result once the holder's wallet responds with a presentation proof."
              }
            }
          }
        }
      },
      "GetProofRequestsResponse": {
        "title": "Get Proof Requests Response",
        "type": "object",
        "description": "Returned when listing all proof exchange records for an organization. Each item represents an instance of a verification flow from the initial proof request sent to the holder, through to receiving and validating the holder's credential presentation.",
        "example": {
          "success": true,
          "response": [
            {
              "createdAt": "2026-05-06T11:14:37.281Z",
              "updatedAt": "2026-05-06T11:19:10.911Z",
              "proofExchangeId": "149c7644-85e3-48cb-b653-aa5658af05c0",
              "state": "done",
              "role": "prover",
              "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
              "threadId": "94256329-cd46-453f-bf2d-de5fe7d694eb",
              "message": "Presentation has been sent to the verifier.",
              "id": "149c7644-85e3-48cb-b653-aa5658af05c0"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all proof exchange records for the organization.",
            "items": {
              "type": "object",
              "properties": {
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this proof exchange was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this proof exchange record was last updated."
                },
                "proofExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this proof exchange session."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "done",
                    "abandoned"
                  ],
                  "description": "Proof exchange state. `pending` — proof request sent, holder has not yet responded. `done` — presentation received and cryptographically verified. `abandoned` — exchange failed or timed out."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "verifier",
                    "prover"
                  ],
                  "description": "This organization's role in the proof exchange. `verifier` — sent the proof request and validates the response."
                },
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the DIDComm connection over which this proof exchange is taking place."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID correlating all messages in this proof exchange (request, response, acknowledgement)."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable status message describing the current state of the proof exchange."
                },
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Alias of `proofExchangeId` — both fields carry the same UUID. Present for compatibility with the underlying DIDComm agent layer."
                }
              }
            }
          }
        }
      },
      "SendProofRequestResponse": {
        "title": "Send Proof Request Response",
        "type": "object",
        "description": "Returned after successfully sending a DIDComm proof request to a holder over an established connection. Poll the `proofExchangeId` endpoint to track the exchange state and retrieve the verification result once the holder's wallet submits a credential presentation.",
        "example": {
          "success": true,
          "response": {
            "success": true,
            "proofExchangeId": "f5fd17c7-c086-401e-b136-ff71f318fe26",
            "role": "verifier",
            "threadId": "94256329-cd46-453f-bf2d-de5fe7d694eb",
            "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
            "createdAt": "2026-05-06T11:14:25.108Z",
            "updatedAt": "2026-05-06T11:14:25.160Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the proof request was successfully dispatched to the holder."
          },
          "response": {
            "type": "object",
            "description": "Newly created proof exchange record returned immediately after the proof request is sent. Use `proofExchangeId` to poll for state transitions as the holder responds.",
            "properties": {
              "success": {
                "type": "boolean",
                "description": "Indicates whether the proof exchange record was created and the DIDComm proof request dispatched to the agent layer."
              },
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Server-assigned UUID for this proof exchange session. Use to poll for state transitions (`pending` → `done` or `abandoned`) and retrieve the holder's verified presentation."
              },
              "role": {
                "type": "string",
                "enum": [
                  "verifier",
                  "prover"
                ],
                "description": "This agent's role in the proof exchange. Always `verifier` for proof requests initiated by this organization."
              },
              "threadId": {
                "type": "string",
                "format": "uuid",
                "description": "DIDComm thread ID correlating all `present-proof` protocol messages (request, presentation, ack) for this exchange."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the DIDComm connection over which this proof request was sent."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this proof exchange record was created."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent state change. For a freshly sent request, within milliseconds of `createdAt`."
              }
            }
          }
        }
      },
      "GetProofRequestResponse": {
        "title": "Get Proof Request Response",
        "type": "object",
        "description": "Returned when retrieving a single proof exchange record by its ID. When `state` is `done` and `isVerified` is `true`, the `presentationExchange` field contains the full AnonCreds cryptographic proof object including the holder's disclosed attributes, zero-knowledge predicate proofs, and the on-chain credential identifiers used to verify the signature.",
        "example": {
          "success": true,
          "response": {
            "presentationExchange": {
              "request": {
                "anoncreds": {
                  "name": "Marraige Verify",
                  "version": "1.0.0",
                  "nonce": "629623163721925277152498",
                  "requested_attributes": {
                    "attributes": {
                      "names": [
                        "name"
                      ],
                      "restrictions": [
                        {
                          "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                          "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
                        }
                      ]
                    }
                  },
                  "requested_predicates": {}
                }
              },
              "presentation": {
                "anoncreds": {
                  "proof": {
                    "proofs": [
                      {
                        "primary_proof": {
                          "eq_proof": {
                            "revealed_attrs": {
                              "name": "110909631494363614841019466881080619555213164441753954522258074678232602091602"
                            },
                            "a_prime": "28219381433699465865860161187350965011011764565407049913419358159617440379360270461106624939162428917489903541805726435412647638818182418486849430176740795397829763477941602010009846084808873453711458152900118066002123177313432363464855030873833619909517187691287719789255197124762129431533977632820074950618164317694474448906875745846988364888696636521563448879325066023371172046664686656671442929931497239692000468180975860509774250694750259160835135559166842154078735040257778945565691866406423960943763439965203407419926539922716848499185678098024854807840463292926169103974773116732113622502637667398199556903912",
                            "e": "179415805829373183388762631689424483196498138492048881332287270173084268669347927614283268988844504869897835828040143376676369973005394092",
                            "v": "442782358903142818252274971540323088894575600800929368104611151167988025121583013911693023586619346642945312750745126355525581687312776909187415968615155539903066418799873742007831026639555960858618763423228717994003543714729440067841389302467912258074901045634643257984461248146878991891629826342061418451135061949540792052096613109807188246541717704179534975802421678964313789532579625209561763314623203719752958116991270335224453569261263717177912253020319509615856782153110155573366746824577748716288803774468242968970471559265090798922365706773102291164484452134945460486322563814203267555278033560256300360929753137923472513952854956813478245734251365043629514163240746363129042572896304993259434391660229917024746873189533435214328081426525985652763512386706752316052692189770369243032712883947014496760109771413489257129386180158564786786145139324115614018460710301674329470988362381323486724093146783449848792071",
                            "m": {
                              "master_secret": "8991949145955376442114161433962104058406669833208904522565537017452995756931689603381149408333570524051041471738385143331174903624673553245542463650275469678785791697066019919222"
                            },
                            "m2": "987821921757040307979801637440657223131761589315952895352946113713242802235653047664791710170502011821947347500735655717773951213291162251696901629442724474578273012898826211720139126009903691996790346134175567814365076120080288027636779922112685704444982160726178573690347698161762696777105162740927137621141451274048533209249819790237595000880995949641071911466025503833008328845303962685513024228407036298683599748251348796787039661779816794012966125205353547906546665125243042938288184238815817077437837453272547990839654462237867113863695482457952486311217797345198263128250295328170611030371488305141219380304983130018777756887307748578403207052687169355226304601114954804104507258693192610240893131097638975869826275046391386"
                          },
                          "ge_proofs": []
                        },
                        "non_revoc_proof": null
                      }
                    ],
                    "aggregated_proof": {
                      "c_hash": "16337627914427780086991507782677245413829574722212186613296600252405804641083",
                      "c_list": [
                        [
                          223,
                          138,
                          98,
                          42,
                          71,
                          61,
                          123,
                          48,
                          219,
                          194,
                          133,
                          70,
                          213,
                          245,
                          167,
                          197,
                          127,
                          119,
                          202,
                          110,
                          7,
                          48,
                          14,
                          237,
                          181,
                          56,
                          251,
                          158,
                          36,
                          206,
                          49,
                          40,
                          190,
                          128,
                          120,
                          47,
                          61,
                          167,
                          178,
                          14,
                          93,
                          220,
                          99,
                          203,
                          36,
                          146,
                          105,
                          210,
                          225,
                          149,
                          77,
                          207,
                          247,
                          196,
                          161,
                          226,
                          197,
                          145,
                          223,
                          116,
                          73,
                          215,
                          249,
                          76,
                          225,
                          54,
                          153,
                          90,
                          35,
                          91,
                          210,
                          73,
                          108,
                          214,
                          65,
                          40,
                          238,
                          135,
                          17,
                          150,
                          132,
                          130,
                          186,
                          153,
                          26,
                          229,
                          15,
                          145,
                          33,
                          133,
                          100,
                          185,
                          52,
                          212,
                          151,
                          219,
                          14,
                          155,
                          13,
                          112,
                          57,
                          108,
                          236,
                          43,
                          77,
                          48,
                          145,
                          237,
                          211,
                          86,
                          88,
                          166,
                          13,
                          13,
                          83,
                          85,
                          125,
                          196,
                          87,
                          78,
                          65,
                          219,
                          87,
                          62,
                          45,
                          79,
                          6,
                          223,
                          149,
                          27,
                          11,
                          170,
                          68,
                          88,
                          247,
                          135,
                          112,
                          40,
                          98,
                          69,
                          173,
                          194,
                          106,
                          236,
                          207,
                          206,
                          210,
                          151,
                          165,
                          30,
                          83,
                          238,
                          13,
                          204,
                          52,
                          245,
                          249,
                          210,
                          129,
                          103,
                          146,
                          190,
                          69,
                          200,
                          226,
                          10,
                          95,
                          203,
                          187,
                          167,
                          210,
                          48,
                          90,
                          4,
                          249,
                          88,
                          154,
                          71,
                          236,
                          154,
                          72,
                          108,
                          110,
                          99,
                          62,
                          203,
                          172,
                          212,
                          48,
                          156,
                          33,
                          165,
                          214,
                          128,
                          222,
                          33,
                          24,
                          10,
                          146,
                          189,
                          66,
                          213,
                          227,
                          157,
                          253,
                          87,
                          75,
                          194,
                          62,
                          165,
                          144,
                          242,
                          138,
                          167,
                          236,
                          37,
                          240,
                          95,
                          131,
                          128,
                          103,
                          107,
                          152,
                          252,
                          212,
                          47,
                          239,
                          96,
                          83,
                          163,
                          205,
                          157,
                          11,
                          20,
                          252,
                          167,
                          158,
                          1,
                          15,
                          70,
                          144,
                          95,
                          112,
                          186,
                          83,
                          225,
                          230,
                          153,
                          253,
                          67,
                          67,
                          17,
                          7,
                          231,
                          19,
                          232
                        ]
                      ]
                    }
                  },
                  "requested_proof": {
                    "revealed_attrs": {},
                    "revealed_attr_groups": {
                      "attributes": {
                        "sub_proof_index": 0,
                        "values": {
                          "name": {
                            "raw": "siam",
                            "encoded": "110909631494363614841019466881080619555213164441753954522258074678232602091602"
                          }
                        }
                      }
                    },
                    "self_attested_attrs": {},
                    "unrevealed_attrs": {},
                    "predicates": {}
                  },
                  "identifiers": [
                    {
                      "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                      "cred_def_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/067a6740-c062-4f22-9457-62a945f5744f",
                      "rev_reg_id": null,
                      "timestamp": null
                    }
                  ]
                }
              }
            },
            "createdAt": "2026-05-06T10:51:22.539Z",
            "updatedAt": "2026-05-06T10:53:05.754Z",
            "proofExchangeId": "240550a6-0038-45c7-a0a8-0d274e95c67e",
            "state": "done",
            "role": "verifier",
            "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
            "threadId": "0e95b40d-38fb-4d63-9a5b-fd2b62ad292f",
            "isVerified": true,
            "message": "Presentation received and verified"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this proof exchange was initiated."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this proof exchange record was last updated."
              },
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for this proof exchange session."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "done",
                  "abandoned"
                ],
                "description": "Proof exchange state. `pending` — awaiting the holder's presentation. `done` — presentation received and verified. `abandoned` — exchange failed or timed out."
              },
              "role": {
                "type": "string",
                "enum": [
                  "verifier",
                  "prover"
                ],
                "description": "This organization's role in the proof exchange."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the DIDComm connection over which this proof exchange took place."
              },
              "threadId": {
                "type": "string",
                "format": "uuid",
                "description": "DIDComm thread ID correlating all messages in this proof exchange into a single logical conversation."
              },
              "isVerified": {
                "type": "boolean",
                "description": "Whether the holder's proof presentation passed cryptographic verification (`true` = all signatures valid and predicates satisfied)."
              },
              "protocolVersion": {
                "type": "string",
                "enum": [
                  "v1",
                  "v2"
                ],
                "description": "DIDComm Present Proof protocol version used for this exchange."
              },
              "message": {
                "type": "string",
                "description": "Human-readable status message describing the outcome of the proof exchange."
              },
              "presentationExchange": {
                "type": "object",
                "description": "Full AnonCreds proof exchange payload. Present only when `state` is `done`. Contains the original proof request and the holder's cryptographic proof presentation.",
                "properties": {
                  "request": {
                    "type": "object",
                    "description": "Original AnonCreds proof request sent to the holder (specifies attributes to reveal and ZK predicates to prove).",
                    "properties": {
                      "anoncreds": {
                        "type": "object",
                        "description": "AnonCreds-format proof request payload.",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Human-readable name of the proof request."
                          },
                          "version": {
                            "type": "string",
                            "description": "Version of the proof request."
                          },
                          "nonce": {
                            "type": "string",
                            "description": "One-time cryptographic nonce included in the proof request to prevent replay attacks. The holder's proof must incorporate this value."
                          },
                          "requested_attributes": {
                            "type": "object",
                            "description": "Map of attribute group IDs to the credential attributes to disclose, along with schema/issuer restrictions."
                          },
                          "requested_predicates": {
                            "type": "object",
                            "description": "Map of predicate IDs to ZK predicate conditions (e.g., prove `age >= 18` without revealing the actual value)."
                          }
                        }
                      }
                    }
                  },
                  "presentation": {
                    "type": "object",
                    "description": "AnonCreds cryptographic proof presentation submitted by the holder's wallet.",
                    "properties": {
                      "anoncreds": {
                        "type": "object",
                        "description": "AnonCreds-format proof presentation payload.",
                        "properties": {
                          "proof": {
                            "type": "object",
                            "description": "Core AnonCreds cryptographic proof object containing primary proofs and an aggregated proof hash.",
                            "properties": {
                              "proofs": {
                                "type": "array",
                                "description": "Sub-proofs, one per credential used in the presentation. Each contains `primary_proof` (AnonCreds ZK-proof material) and optionally `non_revoc_proof` (non-revocation proof against the Cheqd StatusList2021 registry).",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "aggregated_proof": {
                                "type": "object",
                                "description": "Aggregated AnonCreds proof binding all sub-proofs. Contains `c_hash` (challenge hash) and `c_list` (cryptographic commitments)."
                              }
                            }
                          },
                          "requested_proof": {
                            "type": "object",
                            "description": "Maps the Verifier's requested attributes and predicates to the holder's revealed values and proof indices.",
                            "properties": {
                              "revealed_attrs": {
                                "type": "object",
                                "description": "Individually requested revealed attributes, keyed by attribute identifier from the proof request."
                              },
                              "revealed_attr_groups": {
                                "type": "object",
                                "description": "Grouped revealed attributes. Each group contains `sub_proof_index` (which credential satisfies the group) and `values` (raw and encoded disclosed attribute values)."
                              },
                              "self_attested_attrs": {
                                "type": "object",
                                "description": "Self-attested attributes claimed by the holder without a credential signature (for unrestricted attributes only)."
                              },
                              "unrevealed_attrs": {
                                "type": "object",
                                "description": "Attributes included in the proof for cryptographic binding but not disclosed to the Verifier."
                              },
                              "predicates": {
                                "type": "object",
                                "description": "Satisfied ZK predicates, each referencing the `sub_proof_index` of the credential that proves the condition."
                              }
                            }
                          },
                          "identifiers": {
                            "type": "array",
                            "description": "On-chain credential identifiers used in this presentation — one per credential. Each entry contains Cheqd DID-linked resource URLs for the schema and credential definition, enabling the Verifier to fetch the issuer's public key from the blockchain.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "schema_id": {
                                  "type": "string",
                                  "description": "AnonCreds schema resource URL on Cheqd used for this credential."
                                },
                                "cred_def_id": {
                                  "type": "string",
                                  "description": "AnonCreds Credential Definition resource URL on Cheqd — contains the issuer's public key for signature verification."
                                },
                                "rev_reg_id": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "Revocation registry resource URL on Cheqd. `null` if this credential type does not support revocation."
                                },
                                "timestamp": {
                                  "type": "number",
                                  "nullable": true,
                                  "description": "Unix timestamp of the revocation registry state used for the non-revocation proof. `null` if revocation was not checked."
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "GetAllCredentialsResponse": {
        "title": "Get All Credentials Response",
        "type": "object",
        "description": "Returned when listing all credential exchange records for an organization. Each item represents a credential issuance instance tracking the lifecycle from offer-sent through to the credential being accepted (or rejected) by the holder's wallet.",
        "example": {
          "success": true,
          "response": [
            {
              "credentialExchangeId": "bef411df-d4b9-490b-8128-040290563198",
              "state": "abandoned",
              "role": "issuer",
              "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
              "threadId": "08f42c1a-db9b-494a-8b62-e95af7618022",
              "createdAt": "2026-05-06T09:51:39.622Z",
              "updatedAt": "2026-05-06T09:53:29.969Z"
            },
            {
              "credentialExchangeId": "0726b92f-737e-4098-9e86-bb3854617289",
              "state": "done",
              "role": "issuer",
              "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
              "threadId": "8c7a3a93-9ebb-4f9b-bb4c-59f6bce390bf",
              "createdAt": "2026-05-06T09:51:14.335Z",
              "updatedAt": "2026-05-06T09:51:29.910Z"
            },
            {
              "credentialExchangeId": "4639128e-02f2-48d1-9df7-69de69012ca6",
              "state": "processing",
              "role": "issuer",
              "connectionId": "9ef593a1-2830-481e-9e3e-22d00e22b7b2",
              "threadId": "a580584a-d63b-4d39-9f0d-6a59aeb32a04",
              "createdAt": "2026-05-01T08:45:22.529Z",
              "updatedAt": "2026-05-01T08:45:22.529Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential exchange lookup was successfully executed. Returns `true` even for empty results."
          },
          "response": {
            "type": "array",
            "description": "Credential exchange records for the queried connection or exchange ID. Returns multiple records when more than one issuance was attempted over the same connection. Empty array if no exchanges are found.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this credential exchange session. Use to query a specific exchange, trigger revocation, or correlate webhook events to the originating issuance flow."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "processing",
                    "done",
                    "abandoned"
                  ],
                  "description": "Credential exchange lifecycle state. `processing` — offer sent, awaiting holder response. `done` — holder accepted and stored the credential. `abandoned` — holder rejected or exchange timed out."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "issuer",
                    "holder"
                  ],
                  "description": "This agent's role in the credential exchange. `issuer` — initiated the exchange by sending a credential offer to the holder's wallet."
                },
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the DIDComm connection over which this exchange took place. Multiple records may share the same `connectionId` if multiple credentials were issued to the same holder."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID for this specific credential exchange (offer, request, issue, ack). Unique per exchange even when `connectionId` is shared."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential exchange record was created, corresponding to when the offer was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change. For `processing` exchanges without state transitions, equals `createdAt`. For `abandoned` exchanges, reflects when abandonment was recorded."
                }
              }
            }
          }
        }
      },
      "GetStoredCredentialsV2Response": {
        "title": "Get Stored Credentials (v2)",
        "type": "object",
        "description": "One page of the credentials stored in the wallet, newest first. Credentials are returned without their attributes.",
        "example": {
          "success": true,
          "credentials": [
            {
              "id": "252e8f87-f5f3-450b-a772-5a51f87c9dd7",
              "claimFormat": "dc+sd-jwt",
              "createdAt": "2025-03-18T09:06:17.491Z",
              "metadata": {
                "issuer": {
                  "endpoint": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608",
                  "name": "Acme Corp",
                  "logo": {
                    "url": "https://acme-corp.id/logo.png",
                    "alt": "Acme Corp logo"
                  }
                },
                "credential": {
                  "name": "Employee Record Credential",
                  "description": "Proof of employment at Acme Corp",
                  "textColor": "#FFFFFF",
                  "backgroundImage": {
                    "url": "https://acme-corp.id/card.png"
                  }
                }
              }
            }
          ],
          "pagination": {
            "page": 1,
            "limit": 20,
            "total": 1,
            "totalPages": 1,
            "hasNextPage": false,
            "hasPreviousPage": false
          }
        },
        "required": [
          "success",
          "credentials",
          "pagination"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "credentials": {
            "type": "array",
            "description": "The credentials of the requested page.",
            "items": {
              "type": "object",
              "required": [
                "id",
                "createdAt",
                "metadata"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Credential ID. Use it to retrieve, present or delete the credential."
                },
                "claimFormat": {
                  "type": "string",
                  "example": "dc+sd-jwt",
                  "description": "Encoding format of the credential: dc+sd-jwt, vc+sd-jwt, mso_mdoc, jwt_vc, ldp_vc or vc+jwt. An AnonCreds credential is stored in W3C form and reports ldp_vc."
                },
                "createdAt": {
                  "type": "string",
                  "description": "When the credential was stored in the wallet (ISO 8601)."
                },
                "metadata": {
                  "type": "object",
                  "required": [
                    "credential"
                  ],
                  "description": "Issuer and display metadata of the credential.",
                  "properties": {
                    "issuer": {
                      "type": "object",
                      "description": "Issuer of the credential. Taken from the credential offer for OpenID credentials and from the connection for DIDComm credentials.",
                      "properties": {
                        "endpoint": {
                          "type": "string",
                          "description": "Credential issuer endpoint (OpenID credentials)."
                        },
                        "name": {
                          "type": "string",
                          "description": "Display name of the issuer."
                        },
                        "logo": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string",
                              "description": "Direct URL to the image."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Alternative text of the image."
                            }
                          }
                        },
                        "connectionId": {
                          "type": "string",
                          "description": "DIDComm connection the credential was received over (DIDComm credentials)."
                        }
                      }
                    },
                    "credential": {
                      "type": "object",
                      "required": [
                        "name"
                      ],
                      "description": "How the credential is displayed.",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Display name of the credential. Falls back to the type of the credential when the issuer supplied no display name."
                        },
                        "description": {
                          "type": "string",
                          "description": "Description of the credential."
                        },
                        "textColor": {
                          "type": "string",
                          "description": "Text colour to render the credential with."
                        },
                        "backgroundImage": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string",
                              "description": "Direct URL to the image."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Alternative text of the image."
                            }
                          }
                        },
                        "logo": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string",
                              "description": "Direct URL to the image."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Alternative text of the image."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "pagination": {
            "type": "object",
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "properties": {
              "page": {
                "type": "integer",
                "description": "The returned page, starting at 1."
              },
              "limit": {
                "type": "integer",
                "description": "Number of credentials per page."
              },
              "total": {
                "type": "integer",
                "description": "Number of credentials matching the filters, across all pages."
              },
              "totalPages": {
                "type": "integer",
                "description": "Number of pages."
              },
              "hasNextPage": {
                "type": "boolean",
                "description": "Whether a page follows this one."
              },
              "hasPreviousPage": {
                "type": "boolean",
                "description": "Whether a page precedes this one."
              }
            }
          }
        }
      },
      "GetStoredCredentialV2Response": {
        "title": "Get Stored Credential (v2)",
        "type": "object",
        "description": "One stored credential with its attributes and the display labels of its claims.",
        "example": {
          "success": true,
          "credential": {
            "id": "252e8f87-f5f3-450b-a772-5a51f87c9dd7",
            "claimFormat": "dc+sd-jwt",
            "createdAt": "2025-03-18T09:06:17.491Z",
            "updatedAt": "2025-03-18T09:06:17.491Z",
            "issuer": "did:key:z6MkkXxeGTt6GZvQ8RvuCGckgtvVLJD8RSmH4EZm9jug6JFo",
            "attributes": {
              "given_name": "John",
              "family_name": "Doe",
              "employee_id": "emp-123456"
            },
            "metadata": {
              "issuer": {
                "endpoint": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608",
                "name": "Acme Corp",
                "logo": {
                  "url": "https://acme-corp.id/logo.png",
                  "alt": "Acme Corp logo"
                }
              },
              "credential": {
                "name": "Employee Record Credential",
                "description": "Proof of employment at Acme Corp"
              },
              "claims": {
                "given_name": {
                  "path": [
                    "given_name"
                  ],
                  "mandatory": true,
                  "labels": {
                    "default": "Given Name"
                  }
                }
              }
            }
          }
        },
        "required": [
          "success",
          "credential"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "credential": {
            "type": "object",
            "required": [
              "id",
              "attributes",
              "metadata"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Credential ID."
              },
              "claimFormat": {
                "type": "string",
                "example": "dc+sd-jwt",
                "description": "Encoding format of the credential: dc+sd-jwt, vc+sd-jwt, mso_mdoc, jwt_vc, ldp_vc or vc+jwt. An AnonCreds credential is stored in W3C form and reports ldp_vc."
              },
              "createdAt": {
                "type": "string",
                "description": "When the credential was stored in the wallet (ISO 8601)."
              },
              "updatedAt": {
                "type": "string",
                "description": "When the stored credential was last updated (ISO 8601)."
              },
              "issuer": {
                "type": "string",
                "description": "Identifier of the issuer. For an mdoc, the issuer certificate in PEM format."
              },
              "holder": {
                "type": "string",
                "description": "Identifier of the holder, when the credential is bound to one."
              },
              "attributes": {
                "type": "object",
                "description": "The claims of the credential. An mdoc groups them by namespace."
              },
              "issuanceDate": {
                "type": "string",
                "description": "When the credential was issued, when the credential states it."
              },
              "expirationDate": {
                "type": "string",
                "description": "When the credential expires, when the credential states it."
              },
              "metadata": {
                "type": "object",
                "required": [
                  "credential"
                ],
                "description": "Issuer and display metadata of the credential.",
                "properties": {
                  "issuer": {
                    "type": "object",
                    "description": "Issuer of the credential. Taken from the credential offer for OpenID credentials and from the connection for DIDComm credentials.",
                    "properties": {
                      "endpoint": {
                        "type": "string",
                        "description": "Credential issuer endpoint (OpenID credentials)."
                      },
                      "name": {
                        "type": "string",
                        "description": "Display name of the issuer."
                      },
                      "logo": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Direct URL to the image."
                          },
                          "alt": {
                            "type": "string",
                            "description": "Alternative text of the image."
                          }
                        }
                      },
                      "connectionId": {
                        "type": "string",
                        "description": "DIDComm connection the credential was received over (DIDComm credentials)."
                      }
                    }
                  },
                  "credential": {
                    "type": "object",
                    "required": [
                      "name"
                    ],
                    "description": "How the credential is displayed.",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Display name of the credential. Falls back to the type of the credential when the issuer supplied no display name."
                      },
                      "description": {
                        "type": "string",
                        "description": "Description of the credential."
                      },
                      "textColor": {
                        "type": "string",
                        "description": "Text colour to render the credential with."
                      },
                      "backgroundImage": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Direct URL to the image."
                          },
                          "alt": {
                            "type": "string",
                            "description": "Alternative text of the image."
                          }
                        }
                      },
                      "logo": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Direct URL to the image."
                          },
                          "alt": {
                            "type": "string",
                            "description": "Alternative text of the image."
                          }
                        }
                      }
                    }
                  },
                  "claims": {
                    "type": "object",
                    "description": "Display labels per claim, keyed by claim path. Only present when the issuer supplied them."
                  }
                }
              }
            }
          }
        }
      },
      "GetAllStoredCredentialsResponse": {
        "title": "Get All Stored Credentials Response",
        "type": "object",
        "description": "Returned when retrieving all credentials currently stored in this organization's agent wallet. Each item represents a fully issued and accepted Verifiable Credential that was received over a DIDComm connection and stored by the holder agent. These are live wallet credentials — not credential exchange records or templates.",
        "example": {
          "success": true,
          "credentials": [
            {
              "id": "42bd9d1c-c6a0-4967-a75e-acb2fab08030",
              "createdAt": "2026-05-06T10:52:52.235Z",
              "updatedAt": "2026-05-06T10:52:52.249Z",
              "communicationProtocol": "didcomm",
              "credentialType": "ldp_vc",
              "issuer": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368",
              "name": "Marraige Certificate",
              "schemaId": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
              "credentialDefinitionId": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/067a6740-c062-4f22-9457-62a945f5744f",
              "context": [
                "https://www.w3.org/2018/credentials/v1",
                "https://w3id.org/security/data-integrity/v2",
                {
                  "@vocab": "https://www.w3.org/ns/credentials/issuer-dependent#"
                }
              ],
              "issuanceDate": "2026-05-06T10:52:52.197007135Z",
              "attributes": {
                "name": "siam"
              },
              "metadata": {
                "issuer": {
                  "name": "Cheqd Test Org",
                  "logo": {
                    "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml",
                    "alt": "Cheqd Test Org"
                  }
                },
                "credential": {}
              }
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the stored credential listing was retrieved successfully. Returns `true` even when the wallet contains no credentials (empty array)."
          },
          "credentials": {
            "type": "array",
            "description": "All Verifiable Credentials currently stored in this organization's agent wallet. Each entry is a complete, accepted credential received over a DIDComm connection. Empty array if no credentials have been stored.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this stored credential record in the agent wallet. Use to reference, present, or delete a specific credential."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential was received and stored in the wallet."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update to this stored credential record. Typically within milliseconds of `createdAt` for newly stored credentials."
                },
                "communicationProtocol": {
                  "type": "string",
                  "enum": [
                    "didcomm"
                  ],
                  "description": "Protocol used to deliver this credential to the wallet. `didcomm` — received via DIDComm v1 message exchange over an established peer-to-peer connection."
                },
                "credentialType": {
                  "type": "string",
                  "enum": [
                    "ldp_vc",
                    "jwt_vc",
                    "anoncreds",
                    "sd_jwt_vc",
                    "mdoc"
                  ],
                  "description": "VC proof format of this stored credential. `ldp_vc` — W3C VC with Linked Data Proof (Data Integrity signature). `jwt_vc` — W3C VC as signed JWT. `anoncreds` — Hyperledger AnonCreds with ZK proof. `sd_jwt_vc` — Selective Disclosure JWT VC. `mdoc` — ISO/IEC 18013-5 mobile document."
                },
                "issuer": {
                  "type": "string",
                  "description": "DID of the issuer who signed this credential (e.g., `did:cheqd:testnet:<did>`). Verifiers resolve this DID to retrieve the issuer's public key and validate the signature."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable credential display name shown in the holder's wallet UI. Derived from the credential template name at issuance."
                },
                "schemaId": {
                  "type": "string",
                  "description": "DID-linked resource URL of the schema this credential was issued against (e.g., `did:cheqd:testnet:<did>/resources/<uuid>`). Resolving returns the schema definition describing the credential's attribute structure."
                },
                "credentialDefinitionId": {
                  "type": "string",
                  "description": "DID-linked resource URL of the Credential Definition used when issuing this credential. Contains the issuer's public cryptographic key material bound to the schema."
                },
                "context": {
                  "type": "array",
                  "description": "JSON-LD `@context` array from the W3C VC envelope. Entries are URLs of context documents or inline context objects (e.g., `{ \"@vocab\": \"...\" }` for issuer-dependent attribute namespacing). First entry is always `https://www.w3.org/2018/credentials/v1`.",
                  "items": {
                    "oneOf": [
                      {
                        "type": "string",
                        "description": "URL of a JSON-LD context document (e.g., W3C VC base context or Data Integrity context)."
                      },
                      {
                        "type": "object",
                        "description": "Inline JSON-LD context object defining an `@vocab` namespace for issuer-dependent attributes not in a published context document."
                      }
                    ]
                  }
                },
                "issuanceDate": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential was cryptographically signed by the issuer. Maps to `issuanceDate` in the W3C VC Data Model. May include nanosecond precision."
                },
                "attributes": {
                  "type": "object",
                  "description": "Flat key-value map of the credential's claim attributes and their issued values (e.g., `{ \"name\": \"siam\" }`). Keys are attribute names from the schema; values are the holder-specific data encoded at issuance.",
                  "additionalProperties": {
                    "type": "string",
                    "description": "Attribute value as a string."
                  }
                },
                "metadata": {
                  "type": "object",
                  "description": "Hovi-managed display metadata for this stored credential. Contains issuer branding used to render the credential card in the holder's wallet UI.",
                  "properties": {
                    "issuer": {
                      "type": "object",
                      "description": "Display metadata for the organization that issued this credential.",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Issuing organization's display name as configured in Hovi Studio. Shown in the holder's wallet alongside the credential card."
                        },
                        "logo": {
                          "type": "object",
                          "description": "Issuing organization's logo used for credential card rendering in the holder's wallet.",
                          "properties": {
                            "url": {
                              "type": "string",
                              "format": "url",
                              "description": "URL of the issuer's logo image. May point to a tenant-specific asset in blob storage."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Alt text for the issuer's logo image for accessibility and fallback display."
                            }
                          }
                        }
                      }
                    },
                    "credential": {
                      "type": "object",
                      "description": "Optional credential-level display metadata (e.g., custom card styling or rendering hints). May be an empty object `{}` if no credential-level metadata was configured at issuance.",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          }
        }
      },
      "GetReceivedCredentialsOfferResponses": {
        "title": "Get Received Credential Offers Response",
        "type": "object",
        "description": "Returned when retrieving all inbound credential offers received by this organization's agent wallet over DIDComm connections. Each item represents a credential exchange session where this organization is acting as the holder — a remote issuer has sent a credential offer that is either pending acceptance, already accepted and stored, or abandoned. This is the holder-side view of credential exchanges, as opposed to the issuer-side view returned by the credential issuance endpoints.",
        "example": {
          "success": true,
          "credentials": [
            {
              "credentialExchangeId": "dab97ae7-03b6-4ac6-9db3-171c24b3cd7b",
              "state": "processing",
              "role": "holder",
              "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
              "threadId": "e8f1636a-be08-443d-b87f-25f2614d71ea",
              "createdAt": "2026-05-06T10:26:45.757Z",
              "updatedAt": "2026-05-06T10:52:36.309Z"
            },
            {
              "credentialExchangeId": "5f6a7f26-294c-4570-af88-228a0256d991",
              "state": "done",
              "role": "holder",
              "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
              "threadId": "25c5dace-0776-48fb-a68c-d17b601e26c6",
              "createdAt": "2026-05-06T10:19:55.290Z",
              "updatedAt": "2026-05-06T10:52:52.472Z"
            },
            {
              "credentialExchangeId": "2b1cb14a-ec16-46a0-85a9-d14ee1bf3021",
              "state": "processing",
              "role": "holder",
              "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
              "threadId": "fc50b146-132f-44f5-a2eb-baa39b94c993",
              "createdAt": "2026-05-06T07:31:40.147Z",
              "updatedAt": "2026-05-06T07:31:47.588Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the received credential offer listing was retrieved successfully. Returns `true` even when no offers have been received (empty array)."
          },
          "credentials": {
            "type": "array",
            "description": "All inbound credential exchange records where this organization's agent is the holder. Includes offers awaiting action (`processing`) and completed (`done`) exchanges. Multiple records may share the same `connectionId` if the same issuer sent multiple offers over the same channel.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this inbound credential exchange session. Use to accept, decline, or preview a specific offer via the holder-side endpoints."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "processing",
                    "done",
                    "abandoned",
                    "pending"
                  ],
                  "description": "Holder-side lifecycle state of this inbound exchange. `processing` — offer received from issuer, awaiting the holder's acceptance or rejection. `done` — holder accepted, credential issued and stored in the wallet. `abandoned` — holder rejected the offer or the exchange timed out."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "holder"
                  ],
                  "description": "This agent's role in the credential exchange. Always `holder` — every record here represents an inbound offer where this agent is the intended credential recipient."
                },
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the DIDComm connection over which this credential offer was received. Records sharing a `connectionId` originate from the same remote issuer peer."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID for this specific credential exchange (offer, request, issue, ack). Records sharing a `connectionId` always have distinct `threadId` values."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this inbound exchange record was created, corresponding to when the credential offer was received from the issuer."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change. For `processing` offers, a significant gap from `createdAt` indicates the offer has been sitting unacted upon."
                }
              }
            }
          }
        }
      },
      "GetCredentialResponse": {
        "title": "Get Credential Response",
        "type": "object",
        "description": "Returned when retrieving credential exchange records for a specific DIDComm connection. Each item represents a single credential issuance lifecycle session between this organization and a holder. Multiple exchange records may be returned if more than one credential was issued or attempted over the same connection — including both successfully completed and abandoned exchanges.",
        "example": {
          "success": true,
          "response": [
            {
              "credentialExchangeId": "bef411df-d4b9-490b-8128-040290563198",
              "state": "abandoned",
              "role": "issuer",
              "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
              "threadId": "08f42c1a-db9b-494a-8b62-e95af7618022",
              "createdAt": "2026-05-06T09:51:39.622Z",
              "updatedAt": "2026-05-06T09:53:29.969Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential exchange lookup was successfully executed. Returns `true` even for empty results."
          },
          "response": {
            "type": "array",
            "description": "Credential exchange records for the queried connection or exchange ID. Returns multiple records when more than one issuance was attempted over the same connection. Empty array if no exchanges are found.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this credential exchange session. Use to query a specific exchange, trigger revocation, or correlate webhook events to the originating issuance flow."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "processing",
                    "done",
                    "abandoned"
                  ],
                  "description": "Credential exchange lifecycle state. `processing` — offer sent, awaiting holder response. `done` — holder accepted and stored the credential. `abandoned` — holder rejected or exchange timed out."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "issuer",
                    "holder"
                  ],
                  "description": "This agent's role in the credential exchange. `issuer` — initiated the exchange by sending a credential offer to the holder's wallet."
                },
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the DIDComm connection over which this exchange took place. Multiple records may share the same `connectionId` if multiple credentials were issued to the same holder."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID for this specific credential exchange (offer, request, issue, ack). Unique per exchange even when `connectionId` is shared."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential exchange record was created, corresponding to when the offer was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change. For `processing` exchanges without state transitions, equals `createdAt`. For `abandoned` exchanges, reflects when abandonment was recorded."
                }
              }
            }
          }
        }
      },
      "IssueAnoncredCredentialResponse": {
        "title": "Issue AnonCreds Credential Response",
        "type": "object",
        "description": "Returned after successfully initiating an AnonCreds credential issuance over a DIDComm connection. The credential offer has been sent to the holder's wallet poll the `credentialExchangeId` endpoint to track acceptance. AnonCreds issuance uses DIDComm peer connection (not an OID4VCI offer URI).",
        "example": {
          "success": true,
          "response": {
            "credentialExchangeId": "f37925e9-1fb7-4e82-b9ef-377899e8e364",
            "threadId": "4a2ffa5e-e3b4-47c4-bb5d-234e07a498ce",
            "state": "offer-sent",
            "createdAt": "2024-08-06T12:51:38.283Z",
            "updatedAt": "2024-08-06T12:51:43.811Z",
            "connectionId": "a046a360-f1df-4c32-8e91-9e30ee95ae7b",
            "role": "issuer"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Credential exchange session UUID. Use to poll for the holder's acceptance state transitions."
              },
              "threadId": {
                "type": "string",
                "format": "uuid",
                "description": "DIDComm thread ID for this credential exchange conversation."
              },
              "state": {
                "type": "string",
                "enum": [
                  "offer-sent",
                  "pending",
                  "done",
                  "abandoned"
                ],
                "description": "Credential exchange state. `offer-sent` — AnonCreds credential offer dispatched to the holder's wallet over DIDComm, awaiting acceptance."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential exchange was initiated."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential exchange record was last updated."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the DIDComm connection over which the credential offer was sent."
              },
              "role": {
                "type": "string",
                "enum": [
                  "issuer",
                  "holder"
                ],
                "description": "This organization's role in the credential exchange (`issuer`)."
              }
            }
          }
        }
      },
      "IssueJsonLdCredentialResponse": {
        "title": "Issue JSON-LD Credential Response",
        "type": "object",
        "description": "Returned after successfully initiating a JSON-LD Verifiable Credential issuance over a DIDComm connection. The credential offer has been sent to the holder's wallet poll the `credentialExchangeId` endpoint to track the issuance state.",
        "example": {
          "success": true,
          "response": {
            "credentialExchangeId": "0b461bdc-15d5-4551-852d-9f8d4cf91450",
            "threadId": "3aad12ed-dac9-46d9-a3d9-507a3c5b490f",
            "state": "pending",
            "createdAt": "2024-08-06T13:33:37.144Z",
            "updatedAt": "2024-08-06T13:33:40.142Z",
            "connectionId": "a046a360-f1df-4c32-8e91-9e30ee95ae7b",
            "role": "issuer"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for this credential exchange session."
              },
              "threadId": {
                "type": "string",
                "format": "uuid",
                "description": "DIDComm thread ID for this credential exchange conversation."
              },
              "state": {
                "type": "string",
                "enum": [
                  "offer-sent",
                  "pending",
                  "done",
                  "abandoned"
                ],
                "description": "Credential exchange state. `pending` — JSON-LD credential offer sent, awaiting acceptance by the holder's wallet."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential exchange was initiated."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential exchange record was last updated."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the DIDComm connection over which the credential offer was sent."
              },
              "role": {
                "type": "string",
                "enum": [
                  "issuer",
                  "holder"
                ],
                "description": "This organization's role in the credential exchange (`issuer`)."
              }
            }
          }
        }
      },
      "deleteConnection": {
        "title": "Delete Connection",
        "type": "object",
        "required": [
          "connectionId"
        ],
        "description": "The data required to delete an existing DIDComm connection. Deleting a connection permanently removes the secure peer-to-peer channel between this organization and the remote wallet.",
        "example": {
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
        },
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Unique identifier of the DIDComm connection to delete."
          }
        }
      },
      "createTenant": {
        "title": "Create Tenant",
        "type": "object",
        "required": [
          "name",
          "label",
          "secret",
          "imageUrl"
        ],
        "description": "The data required to create a new organization (tenant an isolated account within the Hovi multi-tenant platform that acts as an independent Issuer or Verifier). On creation, Hovi auto-provisions a `did:cheqd` DID (anchored on the Cheqd blockchain) and a `did:key` DID (locally derived) for the organization.",
        "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"
          ],
          "dids": [
            {
              "did": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
              "privateKey": "a3f8c2e1b4d7f0e9c6a2b5d8f1e4c7a0b3d6f9e2c5a8b1d4f7e0c3a6b9d2f5"
            }
          ]
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "Acme Corp",
            "description": "Registered name of the organization displayed in Hovi dashboards and management interfaces."
          },
          "label": {
            "type": "string",
            "example": "acme-corp",
            "description": "Short slug label shown in DIDComm connection invitations — the name a holder's wallet displays when receiving a connection or credential offer from this organization."
          },
          "secret": {
            "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 pointing to the organization logo (the image shown for this organization in the dashboard)."
          },
          "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 (credential accepted, proof submitted, etc.) to each URL.",
            "items": {
              "type": "string",
              "format": "url"
            }
          },
          "dids": {
            "type": "array",
            "description": "Optional existing Cheqd DIDs to import for this organization. If omitted, Hovi auto-provisions a new `did:cheqd` DID on testnet. Each DID must include its private key for signing operations.",
            "items": {
              "type": "object",
              "properties": {
                "did": {
                  "type": "string",
                  "example": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
                  "description": "Existing `did:cheqd` DID to import (must already be registered on the Cheqd blockchain)."
                },
                "privateKey": {
                  "type": "string",
                  "example": "a3f8c2e1b4d7f0e9c6a2b5d8f1e4c7a0b3d6f9e2c5a8b1d4f7e0c3a6b9d2f5",
                  "description": "Hex-encoded private key for the imported DID. Used for signing credentials and DIDComm messages — store securely, treat as a secret."
                }
              }
            }
          }
        }
      },
      "updateTenant": {
        "title": "Update Tenant",
        "type": "object",
        "description": "The data required to update an organization's (tenant'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 shown in DIDComm connection invitations."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://new-acme-corp.com/new-logo.png",
            "description": "URL pointing to the organization logo (the image shown for this organization in the dashboard)."
          }
        }
      },
      "deleteTenant": {
        "title": "Delete Tenant",
        "type": "object",
        "required": [
          "organizationSecret"
        ],
        "description": "The data required to permanently delete an organization (tenant) and all its associated resources. This action is irreversible — all credentials, templates, connections, and DIDs belonging to this tenant will be removed.",
        "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 upon successful rotation.",
        "example": {
          "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
          "organizationSecret": "acme-corp-secret-2024",
          "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c"
        },
        "properties": {
          "accessToken": {
            "type": "string",
            "example": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
            "description": "Current active `accessToken` issued at organization creation — 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."
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the organization (tenant) whose access token is being rotated."
          }
        }
      },
      "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 (remove) a webhook endpoint. Hovi will stop sending event notifications to the associated URL after successful deletion.",
        "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."
              }
            }
          }
        }
      },
      "createAnoncredCredentialTemplate": {
        "title": "Create AnonCreds Credential Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "attributes",
          "tag"
        ],
        "description": "The data required to create a new AnonCreds credential template. Submitting this request publishes a new AnonCreds schema and Credential Definition as DID-linked resources on the Cheqd blockchain, then stores the template in Hovi for use in credential issuance flows.",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Patient ID",
          "version": "1.0.1",
          "image": "https://acme-corp.com/patient.png",
          "description": "Patient ID Card",
          "attributes": [
            {
              "name": "name",
              "label": "Name",
              "type": "string",
              "description": "Name of the patient",
              "required": true
            },
            {
              "name": "age",
              "label": "Age",
              "type": "string",
              "description": "Age of the patient",
              "required": true
            }
          ],
          "tag": "default"
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this credential template belongs to.\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": "Patient ID",
            "description": "Human-readable name for the credential template. Also used as the AnonCreds schema name published on the Cheqd blockchain."
          },
          "version": {
            "type": "string",
            "example": "1.0.1",
            "description": "Semantic version string (e.g., `1.0.1`). Each unique name+version combination creates a distinct on-chain AnonCreds schema resource — increment to publish a new schema without overwriting the previous one."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL pointing to the credential logo (the image shown for this credential).\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 what this credential template represents."
          },
          "attributes": {
            "type": "array",
            "description": "Claim fields included in credentials issued from this template. Published as AnonCreds schema attributes on the Cheqd blockchain.",
            "items": {
              "$ref": "#/components/schemas/CredentialAttribute"
            }
          },
          "tag": {
            "type": "string",
            "example": "default",
            "description": "AnonCreds Credential Definition tag — distinguishes multiple credDefs published against the same schema. Use `default` for the primary definition."
          }
        }
      },
      "createJsonLdCredentialTemplate": {
        "title": "Create JSON-LD Credential Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "attributes",
          "schemaType"
        ],
        "description": "The data required to create a new JSON-LD credential template. Submitting this request generates and publishes a JSON-LD schema context document (uploaded to IPFS via Pinata), then stores the template in Hovi for use in W3C Verifiable Credential issuance flows.",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Patient ID 2",
          "version": "1.0.1",
          "image": "https://acme-corp.com/patient.png",
          "description": "Patient ID Card",
          "attributes": [
            {
              "name": "fullName",
              "type": "string",
              "label": "Full Name",
              "description": "Full legal name",
              "required": true
            },
            {
              "name": "age",
              "type": "number",
              "label": "Age",
              "description": "Age of the user",
              "required": true
            },
            {
              "name": "isVerified",
              "type": "boolean",
              "label": "Verification Status",
              "description": "Indicates whether the user is verified",
              "required": true
            },
            {
              "name": "profileImage",
              "type": "image",
              "label": "Profile Image",
              "description": "Profile picture of the user"
            },
            {
              "name": "dateOfBirth",
              "type": "date",
              "label": "Date of Birth",
              "description": "Birth date of the user"
            },
            {
              "name": "address",
              "type": "object",
              "label": "Address Information",
              "description": "Primary address details",
              "attributes": [
                {
                  "name": "street",
                  "type": "string",
                  "label": "Street",
                  "description": "Street address"
                },
                {
                  "name": "postalCode",
                  "type": "number",
                  "label": "Postal Code",
                  "description": "ZIP or postal code"
                }
              ]
            },
            {
              "name": "organization",
              "type": "object",
              "label": "Organization Information",
              "description": "Organization related details",
              "attributes": [
                {
                  "name": "organizationName",
                  "type": "string",
                  "label": "Organization Name",
                  "description": "Name of the organization"
                },
                {
                  "name": "department",
                  "type": "object",
                  "label": "Department Information",
                  "description": "Nested department details",
                  "attributes": [
                    {
                      "name": "departmentName",
                      "type": "string",
                      "label": "Department Name",
                      "description": "Name of the department"
                    },
                    {
                      "name": "employeeCount",
                      "type": "number",
                      "label": "Employee Count",
                      "description": "Number of employees in the department"
                    }
                  ]
                }
              ]
            }
          ],
          "schemaType": "Patient Record"
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this credential template belongs to.\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": "Patient ID",
            "description": "Human-readable name for the credential template."
          },
          "version": {
            "type": "string",
            "example": "1.0.1",
            "description": "Semantic version string for the credential template."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL pointing to the credential logo (the image shown for this credential).\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 what this credential template represents."
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "university",
                  "maxLength": 50,
                  "description": "Internal programmatic identifier for the attribute (used in code and data structures to reference this claim)."
                },
                "type": {
                  "type": "string",
                  "example": "string",
                  "enum": [
                    "string",
                    "number",
                    "boolean",
                    "image",
                    "date",
                    "object"
                  ],
                  "description": "Data type of the attribute (the expected format for the claim value).\n\n**Type Constraints:**\n| Type | Description |\n| :--- | :--- |\n| `string` | Plain text value |\n| `number` | Numeric value (integer or float) |\n| `boolean` | True or false value |\n| `date` | ISO 8601 date string (YYYY-MM-DD) |\n| `object` | Nested object with sub-attributes |\n| `image` | Base64-encoded image. **Supported formats:** `image/jpeg`, `image/jpg`, `image/png`. **Maximum size:** 20 KB |"
                },
                "label": {
                  "type": "string",
                  "example": "University Name",
                  "maxLength": 100,
                  "description": "Human-readable label for display in wallet UIs (the friendly name shown to end users)."
                },
                "description": {
                  "type": "string",
                  "example": "Official registered name of the issuing university.",
                  "maxLength": 200,
                  "description": "Semantic description of the attribute claim (explains the meaning and purpose of this data field)."
                },
                "required": {
                  "type": "boolean",
                  "example": true,
                  "enum": [
                    true,
                    false
                  ],
                  "default": false,
                  "description": "Indicates if this attribute is mandatory (whether the claim must be provided during issuance or verification)."
                }
              }
            },
            "description": "List of credential attribute claims mapped to the JSON-LD schema (the data fields that will be part of credentials issued from this template)."
          },
          "schemaType": {
            "type": "string",
            "example": "Patient Record",
            "description": "JSON-LD credential type string — sets the `@type` value embedded in issued credentials. Use PascalCase without spaces (e.g., `PatientRecord`)."
          }
        }
      },
      "importAnoncredCredentialTemplate": {
        "title": "Import AnonCreds Credential Template",
        "type": "object",
        "required": [
          "schemaId",
          "description",
          "tag"
        ],
        "description": "The data required to import an existing AnonCreds credential template from the Cheqd blockchain. Allows an organization to re-use a schema and Credential Definition already published on Cheqd by any party, without re-publishing to the blockchain.",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "schemaId": "did:cheqd:testnet:TcXjZEBCzN1pgoqgvqwTxU/anoncreds/v0/SCHEMA/Patient Credential/2.0.2",
          "image": "https://acme-corp.com/patient.png",
          "description": "Patient ID Card",
          "tag": "default"
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this credential template belongs to.\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` |"
          },
          "schemaId": {
            "type": "string",
            "example": "did:cheqd:testnet:TcXjZEBCzN1pgoqgvqwTxU/anoncreds/v0/SCHEMA/Patient Credential/2.0.2",
            "description": "Full DID-linked resource URL of the existing AnonCreds schema on the Cheqd blockchain to import (e.g., `did:cheqd:testnet:<id>/anoncreds/v0/SCHEMA/<name>/<version>`)."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL pointing to the credential logo (the image shown for this credential).\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 what this imported credential template represents."
          },
          "tag": {
            "type": "string",
            "example": "default",
            "description": "AnonCreds Credential Definition tag to use with this imported schema. Use `default` for the primary definition."
          }
        }
      },
      "importJsonLdCredentialTemplate": {
        "title": "Import JSON-LD Credential Template",
        "type": "object",
        "required": [
          "schemaUrl"
        ],
        "description": "The data required to import an existing JSON-LD credential template by referencing a publicly hosted schema URL. Allows an organization to issue credentials conforming to an existing JSON-LD schema without creating a new one.",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "schemaUrl": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
          "image": "https://acme-corp.com/patient.png"
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this credential template belongs to.\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` |"
          },
          "schemaUrl": {
            "type": "string",
            "format": "url",
            "example": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
            "description": "Publicly accessible URL of the existing JSON-LD schema document to import (typically an IPFS gateway or hovi.id schema URL). Hovi fetches this URL to resolve the schema's `@context` and attribute definitions."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL pointing to the credential logo (the image shown for this credential).\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB."
          }
        }
      },
      "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": "7471bb29-e875-4462-996a-69b2379a5049"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "Unique identifier of the credential template to retrieve."
          }
        }
      },
      "getConnectionById": {
        "title": "Get Connection By ID",
        "type": "object",
        "required": [
          "connectionId"
        ],
        "description": "The data required to retrieve a specific DIDComm connection record by its unique identifier.",
        "example": {
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
        },
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Unique identifier of the DIDComm connection record to retrieve."
          }
        }
      },
      "GetConnectionInvitationsResponse": {
        "title": "Get Connection Invitations Response",
        "type": "object",
        "description": "Returned when listing all OOB connection invitations created by an organization. Each item represents a single DIDComm Out-of-Band invitation record, regardless of its current state — both `pending` invitations (awaiting holder scan) and `completed` invitations (holder has finished the handshake) are included. Unlike the connections list, these records are invitation-centric and do not contain peer DID or thread information.",
        "example": {
          "success": true,
          "response": [
            {
              "invitationId": "9ef3a9eb-dcce-499b-8210-c5c3da743644",
              "state": "pending",
              "invitationJson": {
                "@type": "https://didcomm.org/out-of-band/1.1/invitation",
                "@id": "25667087-db22-4ccb-9063-73f484be6d39",
                "label": "label",
                "accept": [
                  "didcomm/aip1",
                  "didcomm/aip2;env=rfc19"
                ],
                "handshake_protocols": [
                  "https://didcomm.org/didexchange/1.1",
                  "https://didcomm.org/connections/1.0"
                ],
                "services": [
                  {
                    "id": "#inline-0",
                    "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
                    "type": "did-communication",
                    "recipientKeys": [
                      "did:key:z6MkvuZYnh7qXHkwN6TynQSXxs96RpbQWbJKMAJhpwX8jbiy"
                    ],
                    "routingKeys": []
                  }
                ],
                "imageUrl": "https://acme-corp.com/connection.png"
              },
              "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
              "autoAcceptConnection": true,
              "reusable": false,
              "alias": "name"
            },
            {
              "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
              "state": "completed",
              "invitationJson": {
                "@type": "https://didcomm.org/out-of-band/1.1/invitation",
                "@id": "06d204ed-a2b6-468a-9d4e-974532612372",
                "label": "label",
                "accept": [
                  "didcomm/aip1",
                  "didcomm/aip2;env=rfc19"
                ],
                "handshake_protocols": [
                  "https://didcomm.org/didexchange/1.1",
                  "https://didcomm.org/connections/1.0"
                ],
                "services": [
                  {
                    "id": "#inline-0",
                    "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
                    "type": "did-communication",
                    "recipientKeys": [
                      "did:key:z6MkvvrtQWDufzySijPFQWbKY3ZbJksi5hQW5V7FAgzo1tuN"
                    ],
                    "routingKeys": []
                  }
                ],
                "imageUrl": "https://acme-corp.com/connection.png"
              },
              "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
              "autoAcceptConnection": true,
              "reusable": false,
              "alias": "name"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the invitation listing was retrieved successfully. Returns `true` even when no invitations exist (empty array)."
          },
          "response": {
            "type": "array",
            "description": "All OOB connection invitation records created by this organization, ordered by creation time descending. Includes all lifecycle states — `pending` (not yet accepted) and `completed` (handshake finished). Empty array if no invitations exist.",
            "items": {
              "type": "object",
              "properties": {
                "invitationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this invitation record. Use to poll invitation state, correlate with an established connection, or pass as `invitationId` to the Find Connection endpoint."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "completed"
                  ],
                  "description": "Invitation lifecycle state. `pending` — issued, awaiting the holder to scan and complete the DIDComm handshake. `completed` — a holder's wallet responded and an active connection was established."
                },
                "invitationJson": {
                  "type": "object",
                  "description": "Raw DIDComm OOB 1.1 invitation object (Aries RFC 0434). All other representations (`invitationBase64`) are derived from this canonical object.",
                  "properties": {
                    "@type": {
                      "type": "string",
                      "description": "DIDComm message type URI. Always `https://didcomm.org/out-of-band/1.1/invitation` — wallet agents use this to dispatch the message to the correct protocol handler."
                    },
                    "@id": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Unique message ID inside the DIDComm envelope. Distinct from `invitationId` — used by recipient agents for message deduplication and thread correlation."
                    },
                    "label": {
                      "type": "string",
                      "description": "Display name shown in the holder's wallet when presenting the connection request."
                    },
                    "accept": {
                      "type": "array",
                      "description": "DIDComm envelope profiles this agent supports, in preference order. Enables interoperability with AIP 1.0 and AIP 2.0 RFC19 wallet implementations.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "handshake_protocols": {
                      "type": "array",
                      "description": "DIDComm handshake protocol URIs this agent accepts. The holder's wallet selects the first mutually supported entry — `didexchange/1.1` preferred, `connections/1.0` as legacy fallback.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "services": {
                      "type": "array",
                      "description": "Inline DIDComm service descriptors the holder's wallet uses to route the handshake response back to this agent.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Fragment identifier for this service entry. Uses the `#inline-N` convention for inline definitions not resolvable as standalone DID Documents."
                          },
                          "serviceEndpoint": {
                            "type": "string",
                            "format": "url",
                            "description": "Publicly reachable HTTPS URL of this organization's DIDComm agent. The holder's wallet POSTs the `did-exchange/request` here to initiate the handshake."
                          },
                          "type": {
                            "type": "string",
                            "description": "Service type descriptor. `did-communication` identifies a DIDComm v1 messaging endpoint."
                          },
                          "recipientKeys": {
                            "type": "array",
                            "description": "List of `did:key` URIs representing this agent's public keys for this invitation. Each invitation generates a unique key pair — recipient keys differ across invitation records.",
                            "items": {
                              "type": "string"
                            }
                          },
                          "routingKeys": {
                            "type": "array",
                            "description": "Optional mediator routing keys. Empty array means the agent is directly reachable at `serviceEndpoint`.",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "imageUrl": {
                      "type": "string",
                      "format": "url",
                      "description": "Organization's branding image displayed in the holder's wallet during the connection acceptance prompt."
                    }
                  }
                },
                "invitationBase64": {
                  "type": "string",
                  "description": "Base64 encoding of `invitationJson`. Used to construct the `oob` query parameter for deep links or QR codes. Callers must reconstruct `invitationUrl` by appending `?oob=<invitationBase64>` — this endpoint does not return `invitationUrl`."
                },
                "autoAcceptConnection": {
                  "type": "boolean",
                  "description": "Acceptance mode configured at invitation creation. `true` — agent completed the handshake automatically. `false` — explicit operator approval was required."
                },
                "reusable": {
                  "type": "boolean",
                  "description": "`false` — single-use invitation, expires after the first wallet completes the handshake. `true` — reusable invitation suitable for public-facing QR codes."
                },
                "alias": {
                  "type": "string",
                  "description": "Server-side human-readable label assigned at creation time (e.g., customer name or internal tag). Purely local to the organization's agent — never transmitted to the holder's wallet."
                }
              }
            }
          }
        }
      },
      "GetConnectionInvitationResponse": {
        "title": "Get Connection Invitation Response",
        "type": "object",
        "description": "Returned when retrieving a single OOB connection invitation record by its `invitationId`. The `response` array always contains at most one item — the matched invitation in whatever its current state is (`pending` or `completed`). Returns an empty array if no invitation exists for the given ID.",
        "example": {
          "success": true,
          "response": [
            {
              "invitationId": "9ef3a9eb-dcce-499b-8210-c5c3da743644",
              "state": "pending",
              "invitationJson": {
                "@type": "https://didcomm.org/out-of-band/1.1/invitation",
                "@id": "25667087-db22-4ccb-9063-73f484be6d39",
                "label": "label",
                "accept": [
                  "didcomm/aip1",
                  "didcomm/aip2;env=rfc19"
                ],
                "handshake_protocols": [
                  "https://didcomm.org/didexchange/1.1",
                  "https://didcomm.org/connections/1.0"
                ],
                "services": [
                  {
                    "id": "#inline-0",
                    "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
                    "type": "did-communication",
                    "recipientKeys": [
                      "did:key:z6MkvuZYnh7qXHkwN6TynQSXxs96RpbQWbJKMAJhpwX8jbiy"
                    ],
                    "routingKeys": []
                  }
                ],
                "imageUrl": "https://acme-corp.com/connection.png"
              },
              "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
              "autoAcceptConnection": true,
              "reusable": false,
              "alias": "name"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the lookup was successfully executed. Returns `true` even when no matching invitation is found (empty array)."
          },
          "response": {
            "type": "array",
            "description": "Array containing at most one invitation record matching the requested `invitationId`. Single-item array when found; empty array (`[]`) if no invitation exists. Scoped to a single record lookup unlike `GetConnectionInvitationsResponse`.",
            "maxItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "invitationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this invitation record. Matches the `invitationId` parameter used to retrieve it."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "completed"
                  ],
                  "description": "Invitation lifecycle state. `pending` — issued, holder has not yet completed the DIDComm handshake. `completed` — holder's wallet responded and an active connection was established."
                },
                "invitationJson": {
                  "type": "object",
                  "description": "Raw DIDComm OOB 1.1 invitation object (Aries RFC 0434). Canonical form — all other representations (`invitationBase64`) are derived from this object.",
                  "properties": {
                    "@type": {
                      "type": "string",
                      "description": "DIDComm message type URI. Always `https://didcomm.org/out-of-band/1.1/invitation` — wallet agents use this to dispatch to the correct OOB protocol handler."
                    },
                    "@id": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Unique message ID inside the DIDComm envelope. Distinct from `invitationId` — used by recipient agents for deduplication and thread correlation during the handshake."
                    },
                    "label": {
                      "type": "string",
                      "description": "Display name shown in the holder's wallet when presenting the connection request."
                    },
                    "accept": {
                      "type": "array",
                      "description": "DIDComm envelope profiles this agent supports. `didcomm/aip1` and `didcomm/aip2;env=rfc19` enable interoperability across AIP 1.0 and AIP 2.0 wallet implementations.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "handshake_protocols": {
                      "type": "array",
                      "description": "DIDComm handshake protocol URIs this agent accepts. The holder's wallet picks the first mutually supported entry — `didexchange/1.1` preferred, `connections/1.0` as legacy fallback.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "services": {
                      "type": "array",
                      "description": "Inline DIDComm service descriptors the holder's wallet uses to route the handshake response to this agent.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Fragment identifier for this service entry using the `#inline-N` convention."
                          },
                          "serviceEndpoint": {
                            "type": "string",
                            "format": "url",
                            "description": "Publicly reachable HTTPS URL of this organization's DIDComm agent. The holder's wallet POSTs the `did-exchange/request` here."
                          },
                          "type": {
                            "type": "string",
                            "description": "Service type descriptor. `did-communication` identifies a DIDComm v1 messaging endpoint."
                          },
                          "recipientKeys": {
                            "type": "array",
                            "description": "List of `did:key` URIs for this agent's public keys for this specific invitation. Each invitation generates a unique key pair for encryption of the outbound DIDComm handshake.",
                            "items": {
                              "type": "string"
                            }
                          },
                          "routingKeys": {
                            "type": "array",
                            "description": "Optional mediator routing keys. Empty array means the agent is directly reachable at `serviceEndpoint`.",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "imageUrl": {
                      "type": "string",
                      "format": "url",
                      "description": "Organization's branding image displayed in the holder's wallet during the connection acceptance prompt."
                    }
                  }
                },
                "invitationBase64": {
                  "type": "string",
                  "description": "Base64 encoding of `invitationJson`. Used to construct the `oob` query parameter for deep links or QR codes. Callers must reconstruct `invitationUrl` by appending `?oob=<invitationBase64>` — this endpoint does not return `invitationUrl` directly."
                },
                "autoAcceptConnection": {
                  "type": "boolean",
                  "description": "Acceptance mode at invitation creation. `true` — agent completed the handshake automatically. `false` — explicit operator approval was required."
                },
                "reusable": {
                  "type": "boolean",
                  "description": "`false` — single-use invitation, expires after the first wallet completes the handshake. `true` — reusable invitation, suitable for public-facing QR codes or shareable deep links."
                },
                "alias": {
                  "type": "string",
                  "description": "Server-side human-readable label assigned at creation (e.g., customer name or internal tag). Never transmitted to the holder's wallet."
                }
              }
            }
          }
        }
      },
      "getConnectionsByInvitationId": {
        "title": "Get Connections By Invitation ID",
        "type": "object",
        "required": [
          "invitationId"
        ],
        "description": "The data required to retrieve all DIDComm connection records associated with a specific Out-of-Band invitation ID (useful for multi-use invitations where multiple wallets may have connected via the same invitation URL).",
        "example": {
          "invitationId": "ab209278-db43-45dc-b74e-56a0d83c6f50"
        },
        "properties": {
          "invitationId": {
            "type": "string",
            "format": "uuid",
            "example": "ab209278-db43-45dc-b74e-56a0d83c6f50",
            "description": "Unique identifier of the DIDComm OOB invitation to look up connections for."
          }
        }
      },
      "createConnectionInvitation": {
        "title": "Create Connection Invitation",
        "type": "object",
        "required": [
          "label"
        ],
        "description": "The data required to generate a new DIDComm Out-of-Band (OOB) connection invitation. The invitation URL or Base64 payload can be rendered as a QR code or deep link for a holder's wallet to scan and establish a secure DIDComm peer channel.",
        "example": {
          "label": "Acme Corp Patient Portal",
          "alias": "patient-portal",
          "autoAcceptConnection": true,
          "multiUseInvitation": false,
          "domain": "acme-corp.com",
          "imageUrl": "https://acme-corp.com/connection.png"
        },
        "properties": {
          "label": {
            "type": "string",
            "example": "Acme Corp Patient Portal",
            "description": "Display name shown in the holder's wallet when they receive this invitation — the friendly name used when deciding whether to accept the connection."
          },
          "alias": {
            "type": "string",
            "example": "patient-portal",
            "description": "Optional internal alias for this connection (used in the organization's own systems — not shown to the holder)."
          },
          "autoAcceptConnection": {
            "type": "boolean",
            "example": true,
            "default": true,
            "enum": [
              true,
              false
            ],
            "description": "Whether Hovi automatically completes the DIDComm handshake when the holder's wallet responds. `true` recommended — connection moves to `completed` without an additional API call."
          },
          "multiUseInvitation": {
            "type": "boolean",
            "example": false,
            "default": false,
            "enum": [
              true,
              false
            ],
            "description": "Whether this invitation can be accepted by multiple wallets. `true` = reusable QR code. `false` = single-use, expires after the first connection is established."
          },
          "domain": {
            "type": "string",
            "example": "acme-corp.com",
            "description": "Optional custom domain for the invitation URL. Defaults to the Hovi agent domain if omitted."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/connection.png",
            "description": "Organization's image displayed in the holder's wallet during the connection acceptance flow. Must be a publicly accessible URL returning a valid image."
          }
        }
      },
      "getCredentialById": {
        "title": "Get Credential By ID",
        "type": "object",
        "required": [
          "credentialExchangeId"
        ],
        "description": "The data required to retrieve a specific credential exchange record by its unique identifier.",
        "example": {
          "credentialExchangeId": "97fca255-438f-49bb-afb7-defbf1b12ced"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "97fca255-438f-49bb-afb7-defbf1b12ced",
            "description": "Unique identifier of the credential exchange record to retrieve."
          }
        }
      },
      "issueAnoncredCredential": {
        "title": "Issue AnonCreds Credential",
        "type": "object",
        "required": [
          "connectionId",
          "credentialTemplateId",
          "credentialValues"
        ],
        "description": "The data required to issue an AnonCreds Verifiable Credential to a holder over an existing DIDComm connection. The credential offer is sent directly to the holder's wallet via the DIDComm peer channel — no QR code or OID4VCI offer URL is used for AnonCreds issuance on Cheqd.",
        "example": {
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          },
          "comment": "Issuing patient ID credential for registered patient."
        },
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Established DIDComm connection to the holder's wallet over which the credential offer will be sent (must be in `completed` state)."
          },
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "AnonCreds credential template to use for this issuance — defines which on-chain schema and Credential Definition on Cheqd will be used to sign the credential."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "Key-value map of attribute names to their values for this specific credential instance. Keys must match the template attribute names. All AnonCreds values must be strings (e.g., `\"30\"` not `30`).",
            "additionalProperties": {
              "type": "string"
            }
          },
          "comment": {
            "type": "string",
            "example": "Issuing patient ID credential for registered patient.",
            "description": "Optional human-readable comment attached to the credential offer for internal tracking or holder context."
          }
        }
      },
      "issueJsonLdCredential": {
        "title": "Issue JSON-LD Credential",
        "type": "object",
        "required": [
          "connectionId",
          "holderDid",
          "credentialTemplateId",
          "credentialValues"
        ],
        "description": "The data required to issue a W3C JSON-LD Verifiable Credential to a holder over an existing DIDComm connection. The credential is signed using the organization's `did:cheqd` DID and delivered to the holder's wallet via the DIDComm peer channel.",
        "example": {
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
          "holderDid": "did:key:z6MkhKV3YrsT9SFzEYH8JDay6MF8Psk25ditSp1etvJUaowi",
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          },
          "comment": "Issuing university degree credential for graduating student."
        },
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Established DIDComm connection to the holder's wallet (must be in `completed` state)."
          },
          "holderDid": {
            "type": "string",
            "example": "did:key:z6MkhKV3YrsT9SFzEYH8JDay6MF8Psk25ditSp1etvJUaowi",
            "description": "The holder's DID — set as `credentialSubject.id` in the issued W3C JSON-LD credential. Typically the holder's `did:key` or `did:peer` DID from their wallet."
          },
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "JSON-LD credential template to use — defines the schema context URL and `@type` embedded in the signed W3C Verifiable Credential."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "Key-value map of attribute names to their values. Keys must match the template attribute names.",
            "additionalProperties": {
              "type": "string"
            }
          },
          "comment": {
            "type": "string",
            "example": "Issuing university degree credential for graduating student.",
            "description": "Optional human-readable comment attached to the credential offer."
          }
        }
      },
      "issueJwtVcCredential": {
        "title": "Issue JWT-VC Credential",
        "type": "object",
        "required": [
          "schemaId",
          "credentialValues"
        ],
        "description": "The data required to issue a JWT-VC (W3C Verifiable Credential encoded as a signed JWT rather than JSON-LD) to a holder.",
        "example": {
          "schemaId": "ceff35e7-8625-40f3-a0f3-316784593e29",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          }
        },
        "properties": {
          "schemaId": {
            "type": "string",
            "format": "uuid",
            "example": "ceff35e7-8625-40f3-a0f3-316784593e29",
            "description": "Unique identifier of the schema to use for this JWT-VC issuance."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "Key-value map of attribute names to their values for this JWT-VC credential instance.",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "issueSdJwtCredential": {
        "title": "Issue SD-JWT Credential",
        "type": "object",
        "required": [
          "credentialTemplateId",
          "credentialValues"
        ],
        "description": "The data required to issue an SD-JWT Verifiable Credential (Selective Disclosure JWT — individual claims are independently salted and hashed, allowing the holder to selectively disclose only chosen attributes to a Verifier).",
        "example": {
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          }
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "Identifier of the SD-JWT credential template to use for this issuance."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "Key-value map of attribute names to their values. Each attribute will be individually salted and hashed in the SD-JWT, enabling selective disclosure by the holder.",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "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": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "description": "Unique identifier of the verification template to retrieve."
          }
        }
      },
      "createAnoncredVerificationTemplate": {
        "title": "Create AnonCreds Verification Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description"
        ],
        "description": "The data required to create a new AnonCreds verification template (a proof request blueprint specifying which AnonCreds credential attributes to request, which zero-knowledge predicates to enforce, and on-chain schema/issuer restrictions for the Cheqd network).",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Patient ID",
          "version": "1.0.1",
          "description": "Patient ID Card Verification",
          "image": "https://acme-corp.com/patient.png",
          "requestedAttributes": [
            {
              "name": "name",
              "label": "Name",
              "type": "string",
              "description": "Name of the patient"
            },
            {
              "name": "age",
              "label": "Age",
              "type": "string",
              "description": "Age of the patient"
            }
          ],
          "requestedPredicates": [
            {
              "name": "age",
              "p_type": ">=",
              "p_value": 18
            }
          ],
          "restrictions": [
            {
              "issuer_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
              "schema_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L/anoncreds/v0/SCHEMA/Patient ID/1.0.3"
            },
            {
              "issuer_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L"
            }
          ],
          "nonRevokeInterval": {
            "from": 0,
            "to": 1818287379415
          }
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this verification template belongs to.\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": "Patient ID",
            "description": "Human-readable name for the verification template."
          },
          "version": {
            "type": "string",
            "example": "1.0.1",
            "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 pointing to the credential logo (the image shown for this credential).\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          },
          "requestedAttributes": {
            "type": "array",
            "description": "Credential attributes (claims) the Verifier is requesting the holder to disclose in their AnonCreds proof presentation. All requested attributes are required for verification.",
            "items": {
              "$ref": "#/components/schemas/VerificationRequestedAttribute"
            }
          },
          "requestedPredicates": {
            "type": "array",
            "description": "Zero-knowledge predicates to enforce — conditions the holder proves about their attributes without revealing raw values (e.g., proving `age >= 18` without disclosing the actual value).",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "age",
                  "description": "Credential attribute name this predicate applies to."
                },
                "p_type": {
                  "type": "string",
                  "enum": [
                    ">=",
                    "<=",
                    ">",
                    "<"
                  ],
                  "example": ">=",
                  "description": "Comparison operator for the zero-knowledge predicate."
                },
                "p_value": {
                  "type": "number",
                  "example": 18,
                  "description": "Threshold value the attribute is compared against."
                }
              }
            }
          },
          "restrictions": {
            "type": "array",
            "description": "AnonCreds proof restrictions constraining which credentials can satisfy this proof request. Each object can specify `issuer_id` (only accept credentials from this Cheqd DID) and/or `schema_id` (only accept credentials issued against this on-chain schema URL). Multiple restriction objects are OR-ed together.",
            "items": {
              "type": "object",
              "properties": {
                "issuer_id": {
                  "type": "string",
                  "example": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
                  "description": "Restricts accepted credentials to those signed by this specific issuer DID on the Cheqd network."
                },
                "schema_id": {
                  "type": "string",
                  "example": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L/anoncreds/v0/SCHEMA/Patient ID/1.0.3",
                  "description": "Restricts accepted credentials to those issued against this specific AnonCreds schema resource URL on Cheqd."
                }
              }
            }
          },
          "nonRevokeInterval": {
            "type": "object",
            "description": "Optional non-revocation interval — the time window during which the credential must have been non-revoked on the Cheqd StatusList2021 on-chain registry. If omitted, revocation status is not checked.",
            "properties": {
              "from": {
                "type": "number",
                "example": 0,
                "description": "Start of the non-revocation interval as a Unix epoch timestamp in milliseconds."
              },
              "to": {
                "type": "number",
                "example": 1818287379415,
                "description": "End of the non-revocation interval as a Unix epoch timestamp in milliseconds."
              }
            }
          }
        }
      },
      "createJsonLdVerificationTemplate": {
        "title": "Create JSON-LD Verification Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description"
        ],
        "description": "The data required to create a new JSON-LD verification template (a proof request blueprint targeting W3C JSON-LD Verifiable Credentials restricts accepted credentials by schema URL, issuer DID, or credential template rather than on-chain AnonCreds identifiers).",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Patient ID",
          "version": "1.0.1",
          "description": "Patient ID Card Verification",
          "image": "https://acme-corp.com/patient.png",
          "requestedAttributes": [
            {
              "name": "fullName",
              "type": "string",
              "label": "Full Name",
              "description": "Full legal name"
            },
            {
              "name": "age",
              "type": "number",
              "label": "Age",
              "description": "Age of the user"
            },
            {
              "name": "isVerified",
              "type": "boolean",
              "label": "Verification Status",
              "description": "Indicates whether the user is verified"
            },
            {
              "name": "profileImage",
              "type": "image",
              "label": "Profile Image",
              "description": "Profile picture of the user",
              "required": false
            },
            {
              "name": "dateOfBirth",
              "type": "date",
              "label": "Date of Birth",
              "description": "Birth date of the user",
              "required": true
            },
            {
              "name": "address",
              "type": "object",
              "label": "Address Information",
              "description": "Primary address details",
              "required": true,
              "attributes": [
                {
                  "name": "street",
                  "type": "string",
                  "label": "Street",
                  "description": "Street address",
                  "required": true
                },
                {
                  "name": "postalCode",
                  "type": "number",
                  "label": "Postal Code",
                  "description": "ZIP or postal code",
                  "required": true
                }
              ]
            },
            {
              "name": "organization",
              "type": "object",
              "label": "Organization Information",
              "description": "Organization related details",
              "required": true,
              "attributes": [
                {
                  "name": "organizationName",
                  "type": "string",
                  "label": "Organization Name",
                  "description": "Name of the organization",
                  "required": true
                },
                {
                  "name": "department",
                  "type": "object",
                  "label": "Department Information",
                  "description": "Nested department details",
                  "required": true,
                  "attributes": [
                    {
                      "name": "departmentName",
                      "type": "string",
                      "label": "Department Name",
                      "description": "Name of the department",
                      "required": true
                    },
                    {
                      "name": "employeeCount",
                      "type": "number",
                      "label": "Employee Count",
                      "description": "Number of employees in the department",
                      "required": false
                    }
                  ]
                }
              ]
            }
          ],
          "restrictions": {
            "credentialTemplateId": "68ca8867-7352-4b7a-95f4-0682e827f048",
            "issuerDid": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
            "schemaType": "mango",
            "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreic2polspfhmjo2e3i5znztnf376lgk2iyxo6gfco6q2gfxxk5hqrq"
          }
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this verification template belongs to.\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": "Patient ID",
            "description": "Human-readable name for the verification template."
          },
          "version": {
            "type": "string",
            "example": "1.0.1",
            "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 pointing to the credential logo (the image shown for this credential).\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          },
          "requestedAttributes": {
            "type": "array",
            "description": "JSON-LD credential attributes the Verifier is requesting the holder to disclose. All requested attributes are required for verification.",
            "items": {
              "$ref": "#/components/schemas/VerificationRequestedAttribute"
            }
          },
          "restrictions": {
            "type": "object",
            "description": "Defines which JSON-LD credentials can satisfy this proof request. All provided fields are AND-ed together.",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "example": "7471bb29-e875-4462-996a-69b2379a5049",
                "description": "Restricts accepted credentials to those issued from this specific Hovi credential template ID."
              },
              "issuerDid": {
                "type": "string",
                "example": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
                "description": "Restricts accepted credentials to those signed by this specific issuer DID on the Cheqd network."
              },
              "schemaType": {
                "type": "string",
                "example": "Patient Record",
                "description": "Restricts accepted credentials to those whose JSON-LD `@type` matches this schema type string."
              },
              "schemaUrl": {
                "type": "string",
                "format": "url",
                "example": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
                "description": "Restricts accepted credentials to those issued against this specific JSON-LD schema URL."
              }
            }
          }
        }
      },
      "createJwtVcVerificationTemplate": {
        "title": "Create JWT-VC Verification Template",
        "type": "object",
        "required": [
          "name",
          "description"
        ],
        "description": "The data required to create a new JWT-VC verification template (a proof request blueprint targeting JWT-encoded W3C Verifiable Credentials).",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "schemaId": "ceff35e7-8625-40f3-a0f3-316784593e29",
          "schemaType": "Patient Record",
          "name": "Patient ID",
          "description": "Patient ID Card Verification",
          "image": "https://acme-corp.com/patient.png",
          "requestedAttributes": []
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this verification template belongs to.\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` |"
          },
          "schemaId": {
            "type": "string",
            "format": "uuid",
            "example": "ceff35e7-8625-40f3-a0f3-316784593e29",
            "description": "Unique identifier of the schema this JWT-VC verification template targets."
          },
          "schemaType": {
            "type": "string",
            "example": "Patient Record",
            "description": "JWT-VC credential type string — restricts accepted credentials to those of this specific type."
          },
          "name": {
            "type": "string",
            "example": "Patient ID",
            "description": "Human-readable name 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 verification request screen."
          },
          "requestedAttributes": {
            "type": "array",
            "description": "Credential attributes the Verifier is requesting the holder to disclose.",
            "items": {
              "$ref": "#/components/schemas/CredentialAttribute"
            }
          }
        }
      },
      "getProofRequestById": {
        "title": "Get Proof Request By ID",
        "type": "object",
        "required": [
          "proofExchangeId"
        ],
        "description": "The data required to retrieve a specific proof exchange record by its unique identifier.",
        "example": {
          "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
            "description": "Unique identifier of the proof exchange session to retrieve."
          }
        }
      },
      "getProofResponseById": {
        "title": "Get Proof Response By ID",
        "type": "object",
        "required": [
          "presentationId"
        ],
        "description": "The data required to retrieve a specific proof presentation response by its presentation identifier.",
        "example": {
          "presentationId": "75a869fa-0d6b-49e1-9332-35c959e42653"
        },
        "properties": {
          "presentationId": {
            "type": "string",
            "format": "uuid",
            "example": "75a869fa-0d6b-49e1-9332-35c959e42653",
            "description": "Unique identifier of the proof presentation to retrieve."
          }
        }
      },
      "sendProofRequest": {
        "title": "Send Proof Request",
        "type": "object",
        "required": [
          "verificationTemplateId",
          "connectionId"
        ],
        "description": "The data required to send a DIDComm proof request to a holder over an established connection, using a previously created verification template as the blueprint for the proof request.",
        "example": {
          "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
          "comment": "Please present your Patient ID credential for age verification."
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "description": "Verification template to use as the proof request blueprint — defines which attributes to request and which ZK predicates to enforce."
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Established DIDComm connection to the holder's wallet over which the proof request will be sent (must be in `completed` state)."
          },
          "comment": {
            "type": "string",
            "example": "Please present your Patient ID credential for age verification.",
            "description": "Optional human-readable comment attached to the proof request providing context to the holder about why their credentials are being requested."
          }
        }
      },
      "DeleteTemplateByVerificationTemplateId": {
        "title": "Delete Verification Template",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to permanently delete a verification template. Deleted templates cannot be used in future proof requests.",
        "example": {
          "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "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": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Updated Patient ID Verification",
          "description": "Updated description for patient ID verification",
          "image": "https://acme-corp.com/updated-patient.png"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "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 or sector category identifier 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` |"
          },
          "name": {
            "type": "string",
            "example": "Updated Patient ID Verification",
            "description": "Updated human-readable name for the verification template."
          },
          "description": {
            "type": "string",
            "example": "Updated description for patient ID 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": "URL pointing to the credential logo (the image shown for this credential).\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. Note: the underlying AnonCreds schema and Credential Definition on the Cheqd blockchain cannot be modified — only Hovi-side display fields (image, category) can be updated.",
        "example": {
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "image": "https://acme-corp.com/updated-patient.png"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "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 or sector category identifier for this credential 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` |"
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/updated-patient.png",
            "description": "Updated URL of the credential card background image displayed in the holder's wallet. Must be a publicly accessible URL; recommended formats: PNG or JPEG."
          }
        }
      },
      "DeleteCredentialTemplate": {
        "title": "Delete Credential Template",
        "type": "object",
        "required": [
          "credentialTemplateId"
        ],
        "description": "The data required to permanently delete a credential template from Hovi. Note: this removes the Hovi record only — the AnonCreds schema and Credential Definition previously published to the Cheqd blockchain remain on-chain and cannot be deleted.",
        "example": {
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "Unique identifier of the credential template to delete."
          }
        }
      },
      "acceptConnectionInvitation": {
        "title": "Accept Connection Invitation",
        "type": "object",
        "required": [
          "invitationUrl"
        ],
        "description": "The data required for the organizational wallet to accept an inbound DIDComm OOB connection invitation from another party. Initiates the DIDComm DID Exchange handshake from the acceptor's side, establishing a new secure peer channel.",
        "example": {
          "invitationUrl": "https://hovi.id/agent?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIxN2Q3NjhjYS05MTFiLTQ1ZDMtOGM4MC04YzZiYjdmMDhmODIifQ==",
          "label": "Acme Corp",
          "alias": "acme-corp-connection",
          "imageUrl": "https://acme-corp.com/logo.png"
        },
        "properties": {
          "invitationUrl": {
            "type": "string",
            "format": "url",
            "example": "https://hovi.id/agent?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIxN2Q3NjhjYS05MTFiLTQ1ZDMtOGM4MC04YzZiYjdmMDhmODIifQ==",
            "description": "Full DIDComm OOB invitation URL to accept. The `oob` query parameter contains the Base64-encoded invitation — copy directly from the `invitationUrl` field of a `CreateConnectionResponse`."
          },
          "label": {
            "type": "string",
            "example": "Acme Corp",
            "description": "This organization's label presented to the inviting party during the DIDComm handshake — the name the inviter's system will see for this connection."
          },
          "alias": {
            "type": "string",
            "example": "acme-corp-connection",
            "description": "Optional internal alias for this connection in the organizational wallet's own systems — not visible to the other party."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/logo.png",
            "description": "Optional URL of this organization's logo image to share with the inviting party during the connection handshake."
          }
        }
      },
      "AcceptConnectionResponse": {
        "title": "Accept Connection Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully initiates acceptance of a DIDComm connection invitation. The connection starts in `pending` state and transitions to `completed` once the DIDComm DID Exchange handshake is finalized by both parties.",
        "example": {
          "success": true,
          "response": {
            "invitationId": "41eb5887-f058-4a83-9e33-0da43e6b0ca3",
            "connectionId": "5bbfc16d-d9d0-45a2-baa8-04717ee353e3",
            "state": "peding",
            "theirLabel": "Cheqd Test Org",
            "alias": "my-connection",
            "imageUrl": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the connection acceptance was successfully initiated."
          },
          "response": {
            "type": "object",
            "properties": {
              "invitationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the OOB invitation that was accepted."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the new DIDComm connection record created by accepting this invitation."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "completed",
                  "abandoned"
                ],
                "description": "Current connection state. Starts as `pending` during the DIDComm handshake; transitions to `completed` once both parties have exchanged DID documents."
              },
              "alias": {
                "type": "string",
                "description": "This organization's alias assigned to this connection."
              },
              "imageUrl": {
                "type": "string",
                "format": "url",
                "description": "URL of this organization's logo shared during the connection handshake."
              },
              "theirLabel": {
                "type": "string",
                "description": "The label provided by the inviting party during the DIDComm handshake — the name the other organization or wallet presented."
              }
            }
          }
        }
      },
      "acceptCredentialOffer": {
        "title": "Accept Credential Offer",
        "type": "object",
        "required": [
          "credentialExchangeId"
        ],
        "description": "The data required for the organizational wallet to accept an inbound credential offer from an Issuer. Accepting triggers the DIDComm Issue Credential protocol — the Issuer signs and delivers the credential to the organizational wallet.",
        "example": {
          "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "16950792-f3ac-4041-abc7-788b5f863d4f",
            "description": "Unique identifier of the credential exchange record for the offer to accept (obtained from the credential offer webhook notification or by listing credential exchanges)."
          }
        }
      },
      "AcceptCredentialOfferResponse": {
        "title": "Accept Credential Offer Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully accepts a credential offer. The Issuer will now sign and deliver the Verifiable Credential to the organizational wallet.",
        "example": {
          "success": true,
          "message": "Credential offer accepted successfully."
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the credential offer was successfully accepted."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "declineCredentialOffer": {
        "title": "Decline Credential Offer",
        "type": "object",
        "required": [
          "credentialExchangeId"
        ],
        "description": "The data required for the organizational wallet to decline (reject) an inbound credential offer from an Issuer. The credential exchange will move to `abandoned` state.",
        "example": {
          "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "16950792-f3ac-4041-abc7-788b5f863d4f",
            "description": "Unique identifier of the credential exchange record for the offer to decline."
          }
        }
      },
      "DeclineCredentialOfferResponse": {
        "title": "Decline Credential Offer Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully declines a credential offer.",
        "example": {
          "success": true,
          "message": "Credential offer declined successfully."
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the credential offer was successfully declined."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "deleteCredential": {
        "title": "Delete Credential",
        "type": "object",
        "required": [
          "credentialId"
        ],
        "description": "The data required to delete a stored Verifiable Credential from the organizational wallet. Removes the credential from local storage — does not affect the on-chain credential definition or revocation registry.",
        "example": {
          "credentialId": "54c157b7-7819-4818-8098-04a5e1ed9b81"
        },
        "properties": {
          "credentialId": {
            "type": "string",
            "format": "uuid",
            "example": "54c157b7-7819-4818-8098-04a5e1ed9b81",
            "description": "Unique identifier of the stored credential record to delete from the organizational wallet."
          }
        }
      },
      "previewCredentialOffer": {
        "title": "Preview Credential Offer",
        "type": "object",
        "required": [
          "credentialExchangeId",
          "connectionId"
        ],
        "description": "The data required to preview the contents of an inbound credential offer before accepting or declining it. Returns the credential's type, attributes, issuer DID, and issuance metadata so the organization can make an informed decision.",
        "example": {
          "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f",
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "16950792-f3ac-4041-abc7-788b5f863d4f",
            "description": "Unique identifier of the credential exchange record to preview."
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "UUID of the DIDComm connection over which this credential offer was received."
          }
        }
      },
      "PreviewCredentialOfferResponse": {
        "title": "Preview Credential Offer Response",
        "type": "object",
        "description": "Returned when previewing an inbound credential offer before accepting or declining. Contains the credential's format, claim values, issuer DID, holder DID, JSON-LD context, and issuer display metadata — giving the holder agent a complete view of what will be stored if the offer is accepted.",
        "example": {
          "success": true,
          "response": {
            "credentialType": "ldp_vc",
            "communicationProtocol": "didcomm",
            "type": "jsonld.creden",
            "name": "jsonld.creden",
            "attributes": {
              "name": "John Doe"
            },
            "issuer": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
            "issuanceDate": "2026-05-06T10:26:45.375Z",
            "holder": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
            "context": [
              "https://www.w3.org/2018/credentials/v1",
              "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreifi3qupvhxbv47af2abpfzmrxqouql2z5akocsbllvjnrrczczwba"
            ],
            "metadata": {
              "issuer": {
                "alias": "my-connection",
                "name": "Cheqd Test Org",
                "logo": {
                  "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
                }
              }
            }
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential offer preview was successfully retrieved. `false` signals the `credentialExchangeId` was not found or the offer is no longer previewable."
          },
          "response": {
            "type": "object",
            "description": "Full preview payload of the inbound credential offer — all information needed to make an informed accept or decline decision.",
            "properties": {
              "credentialType": {
                "type": "string",
                "enum": [
                  "ldp_vc",
                  "jwt_vc",
                  "anoncreds",
                  "sd_jwt_vc",
                  "mdoc"
                ],
                "description": "VC proof format of this offered credential. `ldp_vc` — W3C VC with Linked Data Proof. `jwt_vc` — W3C VC as signed JWT. `anoncreds` — Hyperledger AnonCreds with ZK proof. `sd_jwt_vc` — Selective Disclosure JWT VC. `mdoc` — ISO/IEC 18013-5 mobile document."
              },
              "communicationProtocol": {
                "type": "string",
                "enum": [
                  "didcomm"
                ],
                "description": "Protocol used to deliver this credential offer. `didcomm` — received as a DIDComm v1 `offer-credential` message over an established peer connection. `openid4vci` — received via the OID4VCI protocol."
              },
              "type": {
                "type": "string",
                "description": "JSON-LD `@type` value of the offered credential identifying its semantic type (e.g., `\"jsonld.creden\"`, `\"PatientRecord\"`). Shown to the holder before accepting."
              },
              "name": {
                "type": "string",
                "description": "Human-readable display name of the offered credential shown in the holder's wallet preview UI."
              },
              "attributes": {
                "type": "object",
                "description": "Flat key-value map of claim names and their concrete values as they will be encoded in the credential if accepted. Allows the holder to verify the exact data before committing.",
                "additionalProperties": {
                  "type": "string",
                  "description": "Claim value as a string."
                }
              },
              "issuer": {
                "type": "string",
                "description": "DID of the issuer who will sign this credential (e.g., `did:key:z6Mk...`, `did:cheqd:testnet:...`). Maps to the W3C VC `issuer` field. Holders can resolve this DID to verify the issuer's identity before accepting."
              },
              "issuanceDate": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential was or will be issued. Maps to the W3C VC `issuanceDate` field and will be embedded in the signed credential."
              },
              "holder": {
                "type": "string",
                "description": "DID of the intended credential holder — the `credentialSubject.id` embedded in the signed credential. The holder agent should verify this matches its own DID before accepting."
              },
              "context": {
                "type": "array",
                "description": "JSON-LD `@context` URL array defining the semantic meaning of each claim field. First entry is always `https://www.w3.org/2018/credentials/v1`; subsequent entries point to schema-specific context documents.",
                "items": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of a JSON-LD context document."
                }
              },
              "metadata": {
                "type": "object",
                "description": "Hovi-managed display metadata for wallet UI rendering. Contains issuer branding from the issuing organization's Hovi Studio profile.",
                "properties": {
                  "issuer": {
                    "type": "object",
                    "description": "Display metadata for the organization that sent this credential offer.",
                    "properties": {
                      "alias": {
                        "type": "string",
                        "description": "Local connection alias assigned to the DIDComm connection with this issuer on the holder's side — the holder-side label for the peer relationship."
                      },
                      "name": {
                        "type": "string",
                        "description": "Issuing organization's display name as configured in Hovi Studio. Shown in the holder's wallet during the credential preview."
                      },
                      "logo": {
                        "type": "object",
                        "description": "Issuing organization's logo for credential preview rendering in the holder's wallet.",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "url",
                            "description": "URL of the issuer's logo image. May point to a tenant-specific asset in blob storage."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "GetStoredCredentialsResponse": {
        "title": "Get Stored Credentials Response",
        "type": "object",
        "description": "Returned when listing all Verifiable Credentials stored in the organizational wallet. Each item represents a credential that has been issued to and accepted by this organization's wallet.",
        "example": {
          "success": true,
          "credentials": [
            {
              "id": "54c157b7-7819-4818-8098-04a5e1ed9b81",
              "createdAt": "2025-05-31T01:31:52.360Z",
              "updatedAt": "2025-05-31T01:31:52.360Z",
              "communicationProtocol": "didcomm",
              "credentialType": "ldp_vc",
              "issuerDid": "did:key:z6MketkTi8unsq2hoGpQp6ZMUkBABdm5UtPwQ91JBR6Wfx7T",
              "name": "Patient_Record",
              "type": "Patient_Record",
              "context": [
                "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreicorx6edjj4hdqchl6vmipvt6auncg5ifhxfvwel6766hqacyzski",
                "https://www.w3.org/2018/credentials/v1"
              ],
              "attributes": {
                "name": "Geovany",
                "age": "45"
              },
              "issuanceDate": "2025-05-31T01:16:25.646Z",
              "holderDid": "did:key:z6Mkf4j8ePKm8ndg5UQFknxiydFM9YdaPzaehNg34jaM2f9P",
              "state": "done",
              "credentialExchangeId": "a8aff780-c38d-44ed-878a-9981dde27499",
              "metadata": {
                "issuer": {
                  "name": "test-label-37468",
                  "logo": {
                    "url": "https://loremflickr.com/640/480",
                    "alt": "test-label-37468"
                  }
                },
                "credential": {
                  "name": "Patient_Record"
                }
              }
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "credentials": {
            "type": "array",
            "description": "All Verifiable Credentials stored in the organizational wallet.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this stored credential record in the organizational wallet."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this credential was stored in the wallet."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this credential record was last updated."
                },
                "communicationProtocol": {
                  "type": "string",
                  "enum": [
                    "didcomm",
                    "openid4vci"
                  ],
                  "description": "Protocol used to deliver this credential to the wallet."
                },
                "credentialType": {
                  "type": "string",
                  "enum": [
                    "ldp_vc",
                    "jwt_vc",
                    "anoncreds",
                    "sd_jwt"
                  ],
                  "description": "Technical credential format of this stored credential."
                },
                "issuerDid": {
                  "type": "string",
                  "description": "DID of the Issuer who signed this credential."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the credential."
                },
                "type": {
                  "type": "string",
                  "description": "JSON-LD `@type` string identifying the credential type."
                },
                "context": {
                  "type": "array",
                  "description": "JSON-LD `@context` URLs for this credential.",
                  "items": {
                    "type": "string",
                    "format": "url"
                  }
                },
                "attributes": {
                  "type": "object",
                  "description": "Key-value map of the credential's claim names and their disclosed values.",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "issuanceDate": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this credential was issued."
                },
                "holderDid": {
                  "type": "string",
                  "description": "DID of the credential holder — this organizational wallet's DID as the `credentialSubject.id`."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "done",
                    "pending",
                    "abandoned"
                  ],
                  "description": "Current state of the credential in the wallet. `done` — credential is fully issued and stored."
                },
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the credential exchange session that resulted in this stored credential."
                },
                "metadata": {
                  "type": "object",
                  "description": "Display metadata for rendering the credential in the wallet UI.",
                  "properties": {
                    "issuer": {
                      "type": "object",
                      "description": "Issuer display information shown in the wallet UI.",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Display name of the issuing organization."
                        },
                        "logo": {
                          "type": "object",
                          "description": "Issuer logo metadata.",
                          "properties": {
                            "url": {
                              "type": "string",
                              "format": "url",
                              "description": "URL of the issuer's logo image."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Accessibility alt-text for the issuer's logo."
                            }
                          }
                        }
                      }
                    },
                    "credential": {
                      "type": "object",
                      "description": "Credential-level display metadata.",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Display name of the credential."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "declineProofRequest": {
        "title": "Decline Proof Request",
        "type": "object",
        "required": [
          "proofExchangeId"
        ],
        "description": "The data required for the organizational wallet to decline (reject) an inbound proof request from a Verifier. The proof exchange will move to `abandoned` state and the Verifier will be notified.",
        "example": {
          "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
            "description": "Unique identifier of the proof exchange session to decline."
          }
        }
      },
      "DeclineProofRequestResponse": {
        "title": "Decline Proof Request Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully declines a proof request.",
        "example": {
          "success": true,
          "message": "Proof request declined successfully."
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the proof request was successfully declined."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "submitPresentation": {
        "title": "Submit Presentation",
        "type": "object",
        "required": [
          "proofExchangeId"
        ],
        "description": "The data required for the organizational wallet to submit a Verifiable Presentation (a cryptographically signed response containing selected credentials or derived proofs that satisfy the Verifier's requested attributes and predicates) in response to an inbound proof request.",
        "example": {
          "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
          "credentialId": "54c157b7-7819-4818-8098-04a5e1ed9b81"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
            "description": "Unique identifier of the proof exchange session to respond to."
          },
          "credentialId": {
            "type": "string",
            "format": "uuid",
            "example": "54c157b7-7819-4818-8098-04a5e1ed9b81",
            "description": "Optional UUID of the specific stored credential to use in the presentation. If omitted, Hovi automatically selects the best matching credential from the wallet that satisfies the proof request requirements."
          }
        }
      },
      "SubmitPresentationResponse": {
        "title": "Submit Presentation Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully submits a Verifiable Presentation to the Verifier. The Verifier's system will cryptographically verify the presentation and update the proof exchange state.",
        "example": {
          "success": true,
          "message": "Presentation submitted successfully."
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the presentation was successfully submitted."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "previewProofRequest": {
        "title": "Preview Proof Request",
        "type": "object",
        "required": [
          "proofExchangeId",
          "connectionId"
        ],
        "description": "The data required to preview the details of an inbound proof request before accepting or declining it. Returns the requested attributes, zero-knowledge predicates, and the presentation definition so the organization can review what credentials will be shared.",
        "example": {
          "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
            "description": "Unique identifier of the proof exchange session to preview."
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "UUID of the DIDComm connection over which this proof request was received."
          }
        }
      },
      "PreviewProofRequestResponse": {
        "title": "Preview Proof Request Response",
        "type": "object",
        "description": "Returned when previewing an inbound proof request. Contains the credential format, requested attributes, zero-knowledge predicates, and the full AnonCreds presentation definition — allowing the organizational wallet to understand exactly what will be shared before submitting a presentation.",
        "example": {
          "success": true,
          "response": {
            "credentials": [],
            "presentationDefinition": {
              "name": "Marraige Verify",
              "version": "1.0.0",
              "nonce": "208751094815570559888756",
              "requested_attributes": {
                "attributes": {
                  "names": [
                    "name"
                  ],
                  "restrictions": [
                    {
                      "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                      "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
                    }
                  ]
                }
              },
              "requested_predicates": {}
            },
            "metadata": {
              "verifier": {
                "alias": "my-connection",
                "name": "Cheqd Test Org",
                "logo": {
                  "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
                }
              }
            }
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialType": {
                "type": "string",
                "enum": [
                  "ldp_vc",
                  "jwt_vc",
                  "anoncreds",
                  "sd_jwt"
                ],
                "description": "The credential format this proof request targets."
              },
              "communicationProtocol": {
                "type": "string",
                "enum": [
                  "didcomm",
                  "openid4vp"
                ],
                "description": "Protocol used to deliver this proof request. `didcomm` — received over a DIDComm peer connection."
              },
              "zkpAttributes": {
                "type": "array",
                "description": "Zero-knowledge predicate conditions in this proof request — attributes the holder must prove satisfy a condition without revealing the raw value.",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The attribute name the predicate applies to."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        ">=",
                        "<=",
                        ">",
                        "<"
                      ],
                      "description": "Comparison operator for the zero-knowledge predicate."
                    },
                    "value": {
                      "type": "number",
                      "description": "Threshold value the attribute is compared against."
                    }
                  }
                }
              },
              "attributes": {
                "type": "object",
                "description": "Key-value map of requested attribute names and their values from the matching wallet credential — preview of what will be shared.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "presentationDefinition": {
                "type": "object",
                "description": "Full AnonCreds proof request / presentation definition sent by the Verifier — contains the name, version, cryptographic nonce, requested attribute groups with restrictions, and requested predicates."
              }
            }
          }
        }
      },
      "DidCommExchangeBase": {
        "type": "object",
        "required": [
          "id",
          "tenantId",
          "agentState",
          "state",
          "role",
          "threadId",
          "connectionId",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Organization-local exchange record identifier."
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization receiving this webhook."
          },
          "threadId": {
            "type": "string",
            "format": "uuid",
            "description": "DIDComm thread correlating both organizations’ records."
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization-local DIDComm connection identifier."
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the exchange state."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "DidExchangeWebhook": {
        "type": "object",
        "required": [
          "type",
          "payload"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "did-exchange"
          },
          "payload": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DidCommExchangeBase"
              },
              {
                "type": "object",
                "required": [
                  "invitationId",
                  "connectionProtocol",
                  "myDid",
                  "theirDid"
                ],
                "properties": {
                  "agentState": {
                    "type": "string",
                    "const": "completed",
                    "description": "A connection webhook is emitted only after the DIDComm connection completes."
                  },
                  "state": {
                    "type": "string",
                    "const": "completed",
                    "description": "Normalized completed connection state."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "requester",
                      "responder"
                    ],
                    "description": "The receiving organization is the invitation requester or responder."
                  },
                  "invitationId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "connectionProtocol": {
                    "type": "string",
                    "example": "https://didcomm.org/didexchange/1.x"
                  },
                  "myDid": {
                    "type": "string",
                    "description": "Pairwise DID controlled by the receiving organization."
                  },
                  "theirDid": {
                    "type": "string",
                    "description": "Pairwise DID controlled by the counterparty."
                  },
                  "alias": {
                    "type": "string"
                  },
                  "theirLabel": {
                    "type": "string"
                  },
                  "accept": {
                    "type": "string",
                    "example": "auto"
                  },
                  "imageUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            ]
          }
        }
      },
      "CredentialExchangeWebhook": {
        "type": "object",
        "required": [
          "type",
          "payload"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "credential-exchange"
          },
          "payload": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DidCommExchangeBase"
              },
              {
                "type": "object",
                "required": [
                  "credentialExchangeId"
                ],
                "properties": {
                  "agentState": {
                    "type": "string",
                    "enum": [
                      "offer-received",
                      "request-received",
                      "done",
                      "abandoned"
                    ],
                    "description": "Exchange lifecycle state. Credential examples use offer-received, done, or abandoned; completed is connection-only."
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "done",
                      "abandoned"
                    ],
                    "description": "Normalized credential exchange state."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "holder",
                      "issuer"
                    ],
                    "description": "The receiving organization is the holder or issuer."
                  },
                  "credentialExchangeId": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            ]
          }
        }
      },
      "ProofExchangeWebhook": {
        "type": "object",
        "required": [
          "type",
          "payload"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "proof-exchange"
          },
          "payload": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DidCommExchangeBase"
              },
              {
                "type": "object",
                "required": [
                  "proofExchangeId",
                  "isVerified"
                ],
                "properties": {
                  "agentState": {
                    "type": "string",
                    "enum": [
                      "offer-received",
                      "request-received",
                      "done",
                      "abandoned"
                    ],
                    "description": "Exchange lifecycle state. Proof examples use request-received, done, or abandoned; completed is connection-only."
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "done",
                      "abandoned"
                    ],
                    "description": "Normalized proof exchange state."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "prover",
                      "verifier"
                    ],
                    "description": "The receiving organization is the prover or verifier."
                  },
                  "proofExchangeId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "isVerified": {
                    "type": "boolean",
                    "description": "Whether the verifier successfully verified the submitted presentation."
                  }
                }
              }
            ]
          }
        }
      }
    },
    "@schemas": {
      "CredentialAttribute": {
        "type": "object",
        "description": "A single claim field definition within a Verifiable Credential schema.",
        "example": {
          "name": "university",
          "type": "string",
          "label": "University Name",
          "description": "Official registered name of the issuing university.",
          "required": true
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "university",
            "maxLength": 50,
            "description": "Programmatic field identifier used in code and data structures."
          },
          "type": {
            "type": "string",
            "example": "string",
            "enum": [
              "string"
            ],
            "description": "Data type of the attribute. Allowed value: `string` (plain text)."
          },
          "label": {
            "type": "string",
            "example": "University Name",
            "maxLength": 100,
            "description": "Human-readable display label shown in wallet UIs."
          },
          "description": {
            "type": "string",
            "example": "Official registered name of the issuing university.",
            "maxLength": 200,
            "description": "Semantic description of the attribute claim and its purpose."
          }
        }
      },
      "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": "Credential attribute 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 attribute."
          },
          "description": {
            "type": "string",
            "example": "Name of the patient",
            "description": "Optional description of this attribute."
          },
          "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 controlling how the credential card appears in the holder's wallet.",
        "example": {
          "title": "University Degree Record",
          "description": "Official proof of university graduation.",
          "textColor": "#ffffff",
          "backgroundImageUrl": "https://acme-corp.com/bg.png",
          "backgroundImageAlt": "University seal",
          "logoUrl": "https://hovi.id/assets/university-logo.png",
          "logoAlt": "University crest",
          "locale": "en-US"
        },
        "properties": {
          "title": {
            "type": "string",
            "description": "Display title shown on the credential card in the wallet."
          },
          "description": {
            "type": "string",
            "description": "Short descriptive text shown to the holder on the credential card."
          },
          "textColor": {
            "type": "string",
            "example": "#ffffff",
            "description": "Hex color code for the text overlay on the credential card."
          },
          "backgroundImageUrl": {
            "type": "string",
            "format": "url",
            "description": "URL of the credential card background image."
          },
          "backgroundImageAlt": {
            "type": "string",
            "description": "Accessibility alt-text for the background image."
          },
          "logoUrl": {
            "type": "string",
            "format": "url",
            "description": "URL of the issuing organization's logo displayed on the card."
          },
          "logoAlt": {
            "type": "string",
            "description": "Accessibility alt-text for the logo image."
          },
          "locale": {
            "type": "string",
            "example": "en-US",
            "description": "BCP 47 locale code for credential card localization."
          }
        }
      },
      "CreateAnoncredsCredentialTemplatesResponse": {
        "title": "Create AnonCreds Credential Template Response",
        "type": "object",
        "description": "Returned after successfully creating an AnonCreds credential template. AnonCreds is a credential format developed by Hyperledger that supports privacy-preserving selective disclosure and zero-knowledge proofs. Both the schema and credential definition are anchored on the Cheqd blockchain as DID-linked resources and their on-chain resource URLs are returned in this response.",
        "example": {
          "success": true,
          "response": {
            "credentialTemplateId": "48b70e41-b427-46d7-ab42-950a0ea0a16d",
            "schemaId": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/f41c4612-6ada-40bc-8d81-e2cd5b0155a9",
            "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
            "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "name": "Patient ID",
            "version": "1.0.1",
            "description": "Patient ID Card",
            "type": "anoncreds",
            "image": "https://acme-corp.com/patient.png",
            "attributes": [
              {
                "name": "age",
                "label": "Age",
                "type": "string",
                "description": "Age of the patient",
                "required": true
              }
            ],
            "tag": "default",
            "credDef": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/61731cbb-0c8d-402c-a0d8-7b1eb0fff9d3",
            "createdAt": "2026-05-05T11:27:00.160Z",
            "updatedAt": "2026-05-05T11:27:00.160Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential template was successfully created."
          },
          "response": {
            "type": "object",
            "description": "The newly created AnonCreds credential template record, including on-chain resource identifiers.",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for this credential template. Use when issuing credentials or referencing the template in proof configs."
              },
              "schemaId": {
                "type": "string",
                "description": "DID-linked resource URL of the AnonCreds schema anchored on Cheqd (e.g., `did:cheqd:testnet:<did>/resources/<uuid>`). Resolving this URL returns the full schema definition."
              },
              "credDef": {
                "type": "string",
                "description": "DID-linked resource URL of the AnonCreds Credential Definition on Cheqd. Contains the issuer's public key material used by verifiers to validate signatures and zero-knowledge proofs."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem (top-level platform partition) this template belongs to."
              },
              "tenantId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization that owns this template and published the on-chain schema and credential definition."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the industry/sector category (e.g., healthcare, education) for grouping and discovery in Hovi Studio."
              },
              "name": {
                "type": "string",
                "description": "Human-readable template name displayed in Hovi Studio and the holder's wallet."
              },
              "version": {
                "type": "string",
                "description": "Semantic version of this template. Each unique name+version publishes a distinct immutable on-chain AnonCreds schema — increment to publish schema changes."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of the credential type, shown in Hovi Studio and optionally in the wallet."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format. `anoncreds` — Hyperledger AnonCreds anchored on-chain with ZK proof support. `jsonld` — W3C JSON-LD Verifiable Credential with IPFS-hosted schema."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "Publicly accessible URL of the credential card background image shown in the holder's wallet."
              },
              "attributes": {
                "type": "array",
                "description": "Ordered claim definitions matching the published AnonCreds schema fields. Each attribute is selectively disclosable during proof presentation.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "tag": {
                "type": "string",
                "description": "AnonCreds Credential Definition tag — disambiguates multiple credDefs published against the same schema by the same issuer. Defaults to `\"default\"`."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this template was persisted and the on-chain resources were successfully published."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update. Matches `createdAt` for newly created templates."
              }
            }
          }
        }
      },
      "CreateJsonLdCredentialTemplateResponse": {
        "title": "Create JSON-LD Credential Template Response",
        "type": "object",
        "description": "Returned after successfully creating a JSON-LD credential template (JSON-LD JSON for Linked Data, the W3C standard format for Verifiable Credentials that uses semantic context URLs to make credential fields machine-readable and interoperable across systems).",
        "example": {
          "success": true,
          "response": {
            "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
            "schemaId": "7471bb29-e875-4462-996a-69b2379a5049",
            "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
            "organizationId": "71192baf-49c4-40e4-8e8d-66606a44ff8b",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "name": "University Degree",
            "version": "2.0.11",
            "description": "University Degree credential template",
            "type": "jsonld",
            "attributes": [
              {
                "name": "university",
                "type": "object",
                "label": "University title",
                "description": "name of the university",
                "required": true,
                "attributes": [
                  {
                    "name": "batch",
                    "type": "object",
                    "label": "Batch title",
                    "description": "batch of the student",
                    "required": true,
                    "attributes": [
                      {
                        "name": "passingYear",
                        "type": "integer",
                        "label": "PassingYear title",
                        "description": "passing year of the student",
                        "required": true
                      }
                    ]
                  },
                  {
                    "name": "branch",
                    "type": "string",
                    "label": "Branch",
                    "description": "branch of the university",
                    "required": true
                  }
                ]
              },
              {
                "name": "fullName",
                "type": "string",
                "label": "Full Name",
                "description": "full name of the student",
                "required": true
              }
            ],
            "schemaUrl": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
            "schemaContext": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
            "schemaType": "University Degree Record",
            "createdAt": "2024-08-06T07:05:43.386Z",
            "updatedAt": "2024-08-06T07:05:43.386Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the newly created credential template."
              },
              "schemaId": {
                "type": "string",
                "format": "uuid",
                "description": "Internal Hovi UUID referencing the JSON-LD schema record for this 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 (tenant) that owns this credential template."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID. See supported category values in the request schema."
              },
              "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": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format. `jsonld` uses the W3C JSON-LD Verifiable Credential format."
              },
              "attributes": {
                "type": "array",
                "description": "Nested claim fields defined in this JSON-LD template. Supports deeply nested object sub-claims.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "schemaUrl": {
                "type": "string",
                "format": "url",
                "description": "Public URL (typically IPFS via hovi.id) where the JSON-LD schema document is hosted and resolvable by verifiers."
              },
              "schemaContext": {
                "type": "string",
                "format": "url",
                "description": "JSON-LD `@context` URL — maps credential field names to globally unique semantic IRIs for linked-data interoperability."
              },
              "schemaType": {
                "type": "string",
                "description": "JSON-LD `@type` value embedded in issued credentials (e.g., `\"UniversityDegreeRecord\"`) — identifies the credential kind to verifiers."
              },
              "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."
              }
            }
          }
        }
      },
      "ImportAnoncredCredentialTemplateResponse": {
        "title": "Import AnonCreds Credential Template Response",
        "type": "object",
        "description": "Returned after successfully importing an existing AnonCreds credential template (importing allows an organization to re-use a schema and credential definition that was previously published on the Cheqd blockchain by any party, without re-publishing it).",
        "example": {
          "success": true,
          "response": {
            "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
            "schemaId": "did:cheqd:testnet:TcXjZEBCzN1pgoqgvqwTxU/anoncreds/v0/SCHEMA/Patient Credential/2.0.2",
            "ecosystemId": "e6e31de2-83ad-4af9-8cd9-d9861b6ee5d5",
            "organizationId": "71192baf-49c4-40e4-8e8d-66606a44ff8b",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "name": "Patient Credential",
            "version": "2.0.2",
            "description": "Patient Credential Template",
            "type": "anoncreds",
            "attributes": [
              {
                "name": "name",
                "label": "Name",
                "type": "string",
                "description": "Name of the patient",
                "required": true
              },
              {
                "name": "age",
                "label": "Age",
                "type": "string",
                "description": "Age of the patient",
                "required": true
              }
            ],
            "tag": "v1",
            "createdAt": "2024-08-06T06:43:45.301Z",
            "updatedAt": "2024-08-06T06:43:45.301Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the imported credential template record."
              },
              "schemaId": {
                "type": "string",
                "description": "DID-linked resource URL of the existing AnonCreds schema on the Cheqd blockchain being imported."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this imported template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that performed the import."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID for this imported template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the imported credential template."
              },
              "version": {
                "type": "string",
                "description": "Version of the imported AnonCreds schema."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of the imported credential template."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format type of the imported template."
              },
              "attributes": {
                "type": "array",
                "description": "Claim fields derived from the imported AnonCreds schema definition.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "tag": {
                "type": "string",
                "description": "AnonCreds Credential Definition tag associated with this imported template."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this import record was created in Hovi."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update to this import record."
              }
            }
          }
        }
      },
      "ImportJsonLdCredentialTemplateResponse": {
        "title": "Import JSON-LD Credential Template Response",
        "type": "object",
        "description": "Returned after successfully importing an existing JSON-LD credential template (importing allows an organization to reference a JSON-LD schema already hosted at a public URL, without creating a new one).",
        "example": {
          "success": true,
          "response": {
            "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
            "schemaId": "ceff35e7-8625-40f3-a0f3-316784593e29",
            "ecosystemId": "c9ba491b-988f-481d-9c33-a5cc5aaff4ed",
            "organizationId": "99f009f6-aefa-4c13-bbe9-e5e314a64b1c",
            "categoryId": "2e5f483f-8970-4c5e-baf7-991ff24c120d",
            "name": "University Degree",
            "version": "2.0.2",
            "description": "University Degree credential template",
            "type": "jsonld",
            "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
            "attributes": [
              {
                "name": "university",
                "type": "object",
                "label": "University title",
                "description": "name of the university",
                "required": true,
                "attributes": [
                  {
                    "name": "batch",
                    "type": "object",
                    "label": "Batch title",
                    "description": "batch of the student",
                    "required": true,
                    "attributes": [
                      {
                        "name": "passingYear",
                        "type": "integer",
                        "label": "PassingYear title",
                        "description": "passing year of the student",
                        "required": true
                      }
                    ]
                  },
                  {
                    "name": "branch",
                    "type": "string",
                    "label": "Branch",
                    "description": "branch of the university",
                    "required": true
                  }
                ]
              },
              {
                "name": "fullName",
                "type": "string",
                "label": "Full Name",
                "description": "full name of the student",
                "required": true
              }
            ],
            "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/QmRF7nnhYTsWu8sqA2jeLWbWP9LuuARS9RrWsL2akvwD7v",
            "schemaType": "University Degree",
            "createdAt": "2024-08-12T11:21:32.464Z",
            "updatedAt": "2024-08-12T11:21:32.464Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "description": "Hovi-assigned UUID for the imported JSON-LD credential template record."
              },
              "schemaId": {
                "type": "string",
                "format": "uuid",
                "description": "Internal Hovi UUID for the JSON-LD schema record associated with this imported template."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this imported template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that performed the import."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID for this imported template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the imported credential template."
              },
              "version": {
                "type": "string",
                "description": "Version string of the imported JSON-LD credential template."
              },
              "description": {
                "type": "string",
                "description": "Plain-text description of the imported credential template."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format type of the imported template."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the credential card image displayed in the holder's wallet."
              },
              "attributes": {
                "type": "array",
                "description": "Claim fields derived from the imported JSON-LD schema.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "schemaUrl": {
                "type": "string",
                "format": "url",
                "description": "Public URL where the imported JSON-LD schema document is hosted."
              },
              "schemaType": {
                "type": "string",
                "description": "JSON-LD `@type` value from the imported schema identifying the credential kind."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this import record was created in Hovi."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent update to this import record."
              }
            }
          }
        }
      },
      "GetCredentialTemplatesResponse": {
        "title": "Get Credential Templates Response",
        "type": "object",
        "description": "Returned when listing all credential templates belonging to an organization. Each item represents a previously created or imported credential template blueprint. The array may contain mixed credential format types — AnonCreds templates (anchored on the Cheqd blockchain with a credential definition) and JSON-LD templates (schema hosted on IPFS) are returned together in a single flat list.",
        "example": {
          "success": true,
          "response": [
            {
              "credentialTemplateId": "13f587ac-23f7-49ef-b339-acb7cc39a3cd",
              "schemaId": "cbeff78d-a860-41e1-b8aa-4cc5e812d396",
              "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
              "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
              "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
              "name": "Patient ID",
              "version": "1.0.1",
              "description": "Patient ID Card",
              "type": "jsonld",
              "image": "https://acme-corp.com/patient.png",
              "attributes": [
                {
                  "name": "age",
                  "label": "Age",
                  "type": "number",
                  "description": "Age of the patient"
                }
              ],
              "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreig5pt7ewvszdulkyxmestp5i4aixhvzqexnihqqfdjwon5jojab2y",
              "schemaContext": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreigzaewsrztegxqh6rwydo76mnx2wceyrsmbvdzrzhscdsposkahfy",
              "schemaType": "Patient Record",
              "createdAt": "2026-05-01T05:24:17.583Z",
              "updatedAt": "2026-05-01T05:24:17.583Z"
            },
            {
              "credentialTemplateId": "48b70e41-b427-46d7-ab42-950a0ea0a16d",
              "schemaId": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/f41c4612-6ada-40bc-8d81-e2cd5b0155a9",
              "ecosystemId": "aaa4d24f-ef75-4473-92a4-b2fe9ba3b250",
              "tenantId": "65c8eb63-47f7-4196-b491-939ede65acc4",
              "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
              "name": "Patient ID",
              "version": "1.0.1",
              "description": "Patient ID Card",
              "type": "anoncreds",
              "image": "https://acme-corp.com/patient.png",
              "attributes": [
                {
                  "name": "age",
                  "label": "Age",
                  "type": "string",
                  "description": "Age of the patient",
                  "required": true
                }
              ],
              "tag": "default",
              "credDef": "did:cheqd:testnet:653e318e-e23a-4585-9ce2-227211d281fa/resources/61731cbb-0c8d-402c-a0d8-7b1eb0fff9d3",
              "createdAt": "2026-05-05T11:27:00.160Z",
              "updatedAt": "2026-05-05T11:27:00.160Z"
            }
          ]
        },
        "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": "Flat array of all credential template records for this organization, ordered by creation time descending. May contain mixed `anoncreds` and `jsonld` types. Type-specific fields (`tag`, `credDef` for AnonCreds; `schemaUrl`, `schemaContext`, `schemaType` for JSON-LD) appear only on their respective type.",
            "items": {
              "type": "object",
              "properties": {
                "credentialTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Hovi-assigned UUID for this credential template. Use when issuing credentials or referencing in proof configs."
                },
                "schemaId": {
                  "type": "string",
                  "description": "Schema identifier — for `anoncreds`: DID-linked resource URL on Cheqd (e.g., `did:cheqd:testnet:<did>/resources/<uuid>`); for `jsonld`: internal Hovi UUID."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem (top-level platform partition) this template belongs to."
                },
                "tenantId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that owns this template. Matches the `x-organization-id` request header."
                },
                "categoryId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the industry/sector category for grouping and discovery in Hovi Studio."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable template name shown in Hovi Studio and the holder's wallet."
                },
                "version": {
                  "type": "string",
                  "description": "Semantic version string. For AnonCreds, each unique name+version maps to a distinct immutable on-chain schema."
                },
                "description": {
                  "type": "string",
                  "description": "Plain-text description of the credential type shown in Hovi Studio and optionally in the wallet."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "anoncreds",
                    "jsonld"
                  ],
                  "description": "Credential format. `anoncreds` — Hyperledger AnonCreds on-chain with ZK proof support. `jsonld` — W3C JSON-LD with IPFS-hosted schema."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the credential card background image shown in the holder's wallet. Present on both types when configured."
                },
                "attributes": {
                  "type": "array",
                  "description": "Claim attribute definitions. For `anoncreds`: maps to on-chain schema fields with `required` flag. For `jsonld`: reflects JSON-LD context properties.",
                  "items": {
                    "$ref": "#/components/schemas/CredentialAttribute"
                  }
                },
                "tag": {
                  "type": "string",
                  "description": "AnonCreds Credential Definition tag disambiguating multiple credDefs against the same schema. Defaults to `\"default\"`. Present on `anoncreds` only."
                },
                "credDef": {
                  "type": "string",
                  "description": "DID-linked resource URL of the AnonCreds Credential Definition on Cheqd — contains the issuer's public key for ZK proof verification. Present on `anoncreds` only."
                },
                "schemaUrl": {
                  "type": "string",
                  "format": "url",
                  "description": "IPFS gateway URL of the JSON-LD schema document. Resolving this URL returns the full schema including attribute definitions and context refs. Present on `jsonld` only."
                },
                "schemaContext": {
                  "type": "string",
                  "format": "url",
                  "description": "IPFS gateway URL of the JSON-LD `@context` document — maps attribute names to semantic IRIs for linked-data interoperability. Present on `jsonld` only."
                },
                "schemaType": {
                  "type": "string",
                  "description": "JSON-LD `@type` value for credentials issued from this template (e.g., `\"Patient Record\"`). Used by verifiers to identify the credential type. Present on `jsonld` only."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential template record was first persisted in Hovi."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update. Matches `createdAt` for newly created templates."
                }
              }
            }
          }
        }
      },
      "GetVerificationTemplatesResponse": {
        "title": "Get Verification Templates Response",
        "type": "object",
        "description": "Returned when listing all verification templates belonging to an organization. Each item represents a previously created proof request template blueprint that defines which credential attributes a verifier wants the holder to present. The array may contain mixed credential format types — AnonCreds verification templates (with on-chain schema and issuer DID restrictions) and JSON-LD verification templates (with schema URL, schema type, and issuer DID restrictions) are returned together in a single flat list.",
        "example": {
          "success": true,
          "response": [
            {
              "verificationTemplateId": "937b53aa-5bfd-4011-b23a-69bf28320c3e",
              "ecosystemId": "f5bcdbab-e462-4508-b764-700648d72123",
              "tenantId": "0ca67144-adba-468c-ad59-3c91604bb6f2",
              "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
              "credentialTemplateId": "fe89514d-3b23-42dd-8e11-a7f74e39eac4",
              "name": "JSONLD Verification",
              "version": "1.0.0",
              "description": "N/A",
              "schemaTypeRestriction": "jsonld.creden",
              "type": "jsonld",
              "requestedAttributes": [
                {
                  "name": "name",
                  "label": "Name",
                  "type": "string",
                  "description": "",
                  "required": true
                }
              ],
              "schemaUrlRestriction": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreifi3qupvhxbv47af2abpfzmrxqouql2z5akocsbllvjnrrczczwba",
              "issuerDidRestriction": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
              "createdAt": "2026-05-06T10:49:54.406Z",
              "updatedAt": "2026-05-06T10:49:54.406Z"
            },
            {
              "verificationTemplateId": "16777af1-9e96-4b86-9477-d513decc7e5f",
              "ecosystemId": "f5bcdbab-e462-4508-b764-700648d72123",
              "tenantId": "0ca67144-adba-468c-ad59-3c91604bb6f2",
              "categoryId": "233cf3c7-5b5b-492e-9723-b35d9022f2ce",
              "name": "Marraige Verify",
              "version": "1.0.0",
              "description": "N/A",
              "type": "anoncreds",
              "requestedAttributes": [
                {
                  "name": "name",
                  "label": "Name",
                  "type": "string",
                  "description": "",
                  "required": true
                }
              ],
              "restrictions": [
                {
                  "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                  "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
                }
              ],
              "createdAt": "2026-05-06T10:50:35.424Z",
              "updatedAt": "2026-05-06T10:50:35.424Z"
            }
          ]
        },
        "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": "Flat array of all verification template records for this organization, ordered by creation time descending. May contain mixed `anoncreds` and `jsonld` types. Type-specific restriction fields (`restrictions` for AnonCreds; `schemaTypeRestriction`, `schemaUrlRestriction`, `issuerDidRestriction`, `credentialTemplateId` for JSON-LD) appear only on their respective type.",
            "items": {
              "type": "object",
              "properties": {
                "verificationTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Hovi-assigned UUID for this verification template. Use when initiating proof requests or updating the template."
                },
                "ecosystemId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Hovi ecosystem (top-level platform partition) this template belongs to."
                },
                "tenantId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the organization that owns this template. Matches the `x-organization-id` request header."
                },
                "categoryId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the industry/sector category for grouping and discovery in Hovi Studio."
                },
                "credentialTemplateId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the credential template this verification template is bound to. Present on `jsonld` templates only — absent on `anoncreds`."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the verification template as shown in Hovi Studio."
                },
                "version": {
                  "type": "string",
                  "description": "Semantic version string for this verification template."
                },
                "description": {
                  "type": "string",
                  "description": "Plain-text description of the verification template purpose. May be `\"N/A\"` if none was provided."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "anoncreds",
                    "jsonld"
                  ],
                  "description": "Credential format this template targets. `anoncreds` — AnonCreds ZK proof restrictions via `schema_id`/`issuer_id`. `jsonld` — JSON-LD restrictions via schema URL and issuer DID."
                },
                "requestedAttributes": {
                  "type": "array",
                  "description": "Credential attributes the verifier requests the holder to disclose. Maps to claim fields defined in the linked credential template.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Claim field identifier as defined in the credential schema."
                      },
                      "label": {
                        "type": "string",
                        "description": "Human-readable display label shown in the holder's wallet during the proof request flow."
                      },
                      "type": {
                        "type": "string",
                        "description": "Data type of this attribute (e.g., `\"string\"`, `\"number\"`)."
                      },
                      "description": {
                        "type": "string",
                        "description": "Optional description of this attribute. May be an empty string."
                      },
                      "required": {
                        "type": "boolean",
                        "description": "Whether this attribute was required when the verification template was created."
                      }
                    }
                  }
                },
                "restrictions": {
                  "type": "array",
                  "description": "AnonCreds proof restrictions constraining which credentials can satisfy this proof request. Present on `anoncreds` templates only.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "schema_id": {
                        "type": "string",
                        "description": "DID-linked resource URL of the AnonCreds schema the presented credential must have been issued against (e.g., `did:cheqd:testnet:<did>/resources/<uuid>`)."
                      },
                      "issuer_id": {
                        "type": "string",
                        "description": "DID of the issuer whose credential the holder must present (e.g., `did:cheqd:testnet:<did>`). Prevents substitution with credentials from untrusted issuers."
                      }
                    }
                  }
                },
                "schemaTypeRestriction": {
                  "type": "string",
                  "description": "JSON-LD `@type` value the presented credential must match. Present on `jsonld` templates only."
                },
                "schemaUrlRestriction": {
                  "type": "string",
                  "format": "url",
                  "description": "IPFS URL of the JSON-LD schema the presented credential must have been issued against. Present on `jsonld` templates only."
                },
                "issuerDidRestriction": {
                  "type": "string",
                  "description": "DID of the issuer whose JSON-LD credential the holder must present (e.g., `did:key:z6Mk...`). Present on `jsonld` templates only."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this verification template record was first persisted in Hovi."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update. Matches `createdAt` for newly created templates."
                }
              }
            }
          }
        }
      },
      "CreateAnoncredsVerificationTemplateResponse": {
        "title": "Create AnonCreds Verification Template Response",
        "type": "object",
        "description": "Returned after successfully creating an AnonCreds verification template (a proof request blueprint targeting the AnonCreds credential format supports zero-knowledge predicates and on-chain revocation checks via the Cheqd StatusList2021 registry).",
        "example": {
          "success": true,
          "response": {
            "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "ecosystemId": "9925ed6a-f578-49db-b9a7-4a459f54aebc",
            "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "name": "Patient ID Verification",
            "image": "https://picsum.photos/200",
            "version": "2.0.9",
            "description": "Patient ID Card Verification",
            "type": "anoncreds",
            "requestedAttributes": [
              {
                "name": "name",
                "label": "Name",
                "type": "string",
                "description": "Name of the patient",
                "required": true
              },
              {
                "name": "age",
                "label": "Age",
                "type": "string",
                "description": "Age of the patient",
                "required": true
              }
            ],
            "requestedPredicates": [
              {
                "name": "age",
                "p_type": ">=",
                "p_value": 18
              }
            ],
            "restrictions": [
              {
                "schema_id": "did:cheqd:testnet:234b3606-7b4f-4303-9ace-081fc277cb15/resources/519e45c0-7a6b-4075-b5f7-79828a77f364"
              }
            ],
            "nonRevokeInterval": {
              "from": 0,
              "to": 1818287379415
            },
            "createdAt": "2024-08-07T11:14:50.241Z",
            "updatedAt": "2024-08-07T11:14:50.241Z"
          }
        },
        "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 AnonCreds verification template."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this verification template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that created this verification template."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID for this verification template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the verification template."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the image displayed on the proof 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 AnonCreds verification template checks."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format this verification template targets (`anoncreds` here)."
              },
              "requestedAttributes": {
                "type": "array",
                "description": "Credential claim attributes the verifier requests the holder to disclose.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "requestedPredicates": {
                "type": "array",
                "description": "Zero-knowledge predicates — conditions the holder proves about attributes without revealing the raw value (e.g., `age >= 18` without disclosing the actual age).",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Credential attribute name this predicate applies to."
                    },
                    "p_type": {
                      "type": "string",
                      "enum": [
                        ">=",
                        "<=",
                        ">",
                        "<"
                      ],
                      "description": "Comparison operator for the zero-knowledge predicate."
                    },
                    "p_value": {
                      "type": "number",
                      "description": "Threshold value the attribute is compared against in the predicate."
                    }
                  }
                }
              },
              "restrictions": {
                "type": "array",
                "description": "AnonCreds proof restrictions constraining which credentials can satisfy this proof request.",
                "items": {
                  "type": "object",
                  "properties": {
                    "schema_id": {
                      "type": "string",
                      "description": "Restricts accepted credentials to those issued against this AnonCreds schema resource URL on Cheqd."
                    },
                    "issuer_id": {
                      "type": "string",
                      "description": "Restricts accepted credentials to those signed by this specific issuer DID on Cheqd."
                    }
                  }
                }
              },
              "nonRevokeInterval": {
                "type": "object",
                "description": "Time window during which the credential must have been non-revoked on the Cheqd StatusList2021 on-chain registry.",
                "properties": {
                  "from": {
                    "type": "number",
                    "description": "Start of the non-revocation interval as a Unix epoch timestamp (milliseconds)."
                  },
                  "to": {
                    "type": "number",
                    "description": "End of the non-revocation interval as a Unix epoch timestamp (milliseconds)."
                  }
                }
              },
              "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 to this verification template."
              }
            }
          }
        }
      },
      "CreateJsonLdVerificationTemplateResponse": {
        "title": "Create JSON-LD Verification Template Response",
        "type": "object",
        "description": "Returned after successfully creating a JSON-LD verification template (a proof request blueprint targeting the W3C JSON-LD Verifiable Credential format restricts accepted credentials by schema URL rather than on-chain AnonCreds schema ID).",
        "example": {
          "success": true,
          "response": {
            "verificationTemplateId": "da919b71-2b03-424a-9cc5-52a9e1eb1e46",
            "ecosystemId": "7ad26921-6d9e-4e9a-a0d4-f7e5a4c1e6ca",
            "tenantId": "e3448b05-fdd5-4a80-90dc-3b3e061f9209",
            "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
            "credentialTemplateId": "68ca8867-7352-4b7a-95f4-0682e827f048",
            "name": "Patient ID",
            "image": "https://acme-corp.com/patient.png",
            "version": "1.0.1",
            "description": "Patient ID Card Verification",
            "schemaTypeRestriction": "mango",
            "type": "jsonld",
            "requestedAttributes": [
              {
                "name": "fullName",
                "type": "string",
                "label": "Full Name",
                "description": "Full legal name",
                "required": true
              },
              {
                "name": "age",
                "type": "number",
                "label": "Age",
                "description": "Age of the user",
                "required": true
              },
              {
                "name": "isVerified",
                "type": "boolean",
                "label": "Verification Status",
                "description": "Indicates whether the user is verified",
                "required": true
              },
              {
                "name": "profileImage",
                "type": "image",
                "label": "Profile Image",
                "description": "Profile picture of the user",
                "required": false
              },
              {
                "name": "dateOfBirth",
                "type": "date",
                "label": "Date of Birth",
                "description": "Birth date of the user",
                "required": true
              },
              {
                "name": "address",
                "type": "object",
                "label": "Address Information",
                "description": "Primary address details",
                "required": true,
                "attributes": [
                  {
                    "name": "street",
                    "type": "string",
                    "label": "Street",
                    "description": "Street address",
                    "required": true
                  },
                  {
                    "name": "postalCode",
                    "type": "number",
                    "label": "Postal Code",
                    "description": "ZIP or postal code",
                    "required": true
                  }
                ]
              },
              {
                "name": "organization",
                "type": "object",
                "label": "Organization Information",
                "description": "Organization related details",
                "required": true,
                "attributes": [
                  {
                    "name": "organizationName",
                    "type": "string",
                    "label": "Organization Name",
                    "description": "Name of the organization",
                    "required": true
                  },
                  {
                    "name": "department",
                    "type": "object",
                    "label": "Department Information",
                    "description": "Nested department details",
                    "required": true,
                    "attributes": [
                      {
                        "name": "departmentName",
                        "type": "string",
                        "label": "Department Name",
                        "description": "Name of the department",
                        "required": true
                      },
                      {
                        "name": "employeeCount",
                        "type": "number",
                        "label": "Employee Count",
                        "description": "Number of employees in the department",
                        "required": false
                      }
                    ]
                  }
                ]
              }
            ],
            "schemaUrlRestriction": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreic2polspfhmjo2e3i5znztnf376lgk2iyxo6gfco6q2gfxxk5hqrq",
            "issuerDidRestriction": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
            "createdAt": "2026-05-08T13:25:01.007Z",
            "updatedAt": "2026-05-08T13:25:01.007Z"
          }
        },
        "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 JSON-LD verification template."
              },
              "ecosystemId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Hovi ecosystem this verification template belongs to."
              },
              "organizationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the organization (tenant) that created this verification template."
              },
              "categoryId": {
                "type": "string",
                "format": "uuid",
                "description": "Industry/sector category UUID for this verification template."
              },
              "name": {
                "type": "string",
                "description": "Human-readable name of the verification template."
              },
              "image": {
                "type": "string",
                "format": "url",
                "description": "URL of the image displayed on the proof 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 JSON-LD verification template checks."
              },
              "type": {
                "type": "string",
                "enum": [
                  "anoncreds",
                  "jsonld"
                ],
                "description": "Credential format this verification template targets (`jsonld` here)."
              },
              "requestedAttributes": {
                "type": "array",
                "description": "Credential attributes the verifier requests from the holder, supporting nested JSON-LD object structures.",
                "items": {
                  "$ref": "#/components/schemas/CredentialAttribute"
                }
              },
              "schemaUrlRestriction": {
                "type": "string",
                "format": "url",
                "description": "IPFS URL of the JSON-LD schema the holder's credential must have been issued against to satisfy this proof request."
              },
              "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 to this verification template."
              }
            }
          }
        }
      },
      "AddWebhookResponse": {
        "title": "Add Webhook Response",
        "type": "object",
        "description": "Returned after successfully registering a new webhook endpoint (an HTTP callback URL that Hovi will POST event notifications to e.g., when a credential is accepted or a verification proof is submitted by a holder).",
        "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. Use to reference or remove it."
              },
              "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 removing (deregistering) a webhook endpoint. Hovi will no longer send event notifications to the removed URL.",
        "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. Each item represents a configured HTTP callback URL that receives Hovi event notifications.",
        "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 (tenant) 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 to this webhook registration."
                }
              }
            }
          }
        }
      },
      "CreateTenantResponse": {
        "title": "Create Tenant Response",
        "type": "object",
        "description": "Returned after successfully creating a new organization (tenant an isolated account within the Hovi multi-tenant platform). The response includes the organization's access token, auto-provisioned DIDs (Decentralized Identifiers globally unique identifiers controlled by the organization's private keys, not by any central registry), and any configured webhooks.",
        "example": {
          "success": true,
          "response": {
            "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
            "tenantId": "668c8266-a026-4568-a3ed-fe0ad46fa87c",
            "setting": {
              "organizationName": "acme-corp",
              "defaultLabel": "acme-corp",
              "image": "https://acme-corp.com/acme-logo-color.png",
              "id": "668c8266-a026-4568-a3ed-fe0ad46fa87c"
            },
            "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
            "dids": [
              {
                "did": "did:cheqd:testnet:34a5cb23-9cc5-46a8-bf1a-4b6cc4c1cd7f",
                "method": "cheqd",
                "privateKey": "KC7anZVWo2CiQDfcFXUvMDdWoerGc2Ry"
              },
              {
                "did": "did:key:z6MkixGc9RdCEWbHaoNo4SoJ3Gs6tKZXuQVV5DNnJeG3EpgT",
                "method": "key",
                "privateKey": "KC7anZVWo2CiQDfcFXUvMDdWoerGc9L7"
              }
            ],
            "webhooks": [
              {
                "webhookId": "1be3b6b8ab51a5a0fe0113ed5b1f6832",
                "webhookUrl": "https://webhook1.com"
              },
              {
                "webhookId": "7605e2130d0d5390756b605dd72d951f",
                "webhookUrl": "https://webhook2.com"
              }
            ]
          }
        },
        "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 (tenant)."
              },
              "tenantId": {
                "type": "string",
                "format": "uuid",
                "description": "Alias for `organizationId` — the tenant identifier within the Hovi ecosystem."
              },
              "setting": {
                "type": "object",
                "description": "Display and branding settings for the organization shown in wallet UIs and Hovi Studio.",
                "properties": {
                  "organizationName": {
                    "type": "string",
                    "description": "Registered name of the organization."
                  },
                  "defaultLabel": {
                    "type": "string",
                    "description": "Default label shown in DIDComm connection invitations — the name a holder's wallet displays when receiving a connection request."
                  },
                  "image": {
                    "type": "string",
                    "format": "url",
                    "description": "URL of the organization's logo used in wallet UIs and connection invitations."
                  },
                  "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 for all subsequent API calls. Store securely — treat as a secret."
              },
              "dids": {
                "type": "array",
                "description": "DIDs auto-provisioned for this organization. `did:cheqd` is anchored on-chain for schema publication and credential definitions. `did:key` is an off-chain identifier used for DIDComm messaging.",
                "items": {
                  "type": "object",
                  "properties": {
                    "did": {
                      "type": "string",
                      "description": "Full DID string (e.g., `did:cheqd:testnet:34a5cb23-...` or `did:key:z6Mk...`)."
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "cheqd",
                        "key"
                      ],
                      "description": "DID method — `cheqd` for blockchain-anchored DIDs, `key` for locally derived off-chain DIDs."
                    },
                    "privateKey": {
                      "type": "string",
                      "description": "Private key for this DID. **Store securely and never expose** — controls credential signing and DIDComm authentication for this organization."
                    }
                  }
                }
              },
              "webhooks": {
                "type": "array",
                "description": "Webhook endpoints registered during tenant creation — each receives Hovi event notification POST requests.",
                "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."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "UpdateTenantResponse": {
        "title": "Update Tenant Response",
        "type": "object",
        "description": "Returned after successfully updating an organization's (tenant's) settings such as name, logo, or label.",
        "example": {
          "success": true
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the tenant update was successful."
          }
        }
      },
      "RotateTenantAccessTokenResponse": {
        "title": "Rotate Tenant Access Token Response",
        "type": "object",
        "description": "Returned after successfully rotating (regenerating) the organization's Ecosystem API Key. The previous token is immediately invalidated update all integrations to use the new token.",
        "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 — the old token is now invalid."
              }
            }
          }
        }
      },
      "DeleteTenantReponse": {
        "title": "Delete Tenant Response",
        "type": "object",
        "description": "Returned after successfully deleting an organization (tenant) and all its associated resources from the Hovi ecosystem. 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 (tenants) 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",
              "tenantId": "6b6e17b5-3968-412c-b453-467821563119",
              "ecosystemId": "9925ed6a-f578-49db-b9a7-4a459f54aebc",
              "dids": [
                {
                  "did": "did:cheqd:testnet:b4f6ecd9-0c52-4a37-a8ce-6b3b5554ae78",
                  "method": "cheqd"
                },
                {
                  "did": "did:key:z6MkhKV3YrsT9SFzEYH8JDay6MF8Psk25ditSp1etvJUaowi",
                  "method": "key"
                }
              ],
              "name": "Acme Corp Cheqd 1",
              "label": "vero",
              "image": "https://brandslogos.com/wp-content/uploads/images/large/acme-logo.png",
              "status": "active",
              "createdAt": "2024-06-21T08:54:58.103Z",
              "updatedAt": "2024-06-21T08:54:58.103Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all organizations (tenants) registered within the Hovi ecosystem, including archived ones.",
            "items": {
              "type": "object",
              "properties": {
                "organizationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for the organization (tenant)."
                },
                "tenantId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Alias for `organizationId` — the tenant identifier within the Hovi ecosystem."
                },
                "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 for this organization."
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "cheqd",
                          "key"
                        ],
                        "description": "DID method — `cheqd` for blockchain-anchored DIDs, `key` for locally derived off-chain DIDs."
                      }
                    }
                  }
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the organization."
                },
                "label": {
                  "type": "string",
                  "description": "Short label used in DIDComm connection invitations and wallet UIs."
                },
                "image": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of the organization's logo image."
                },
                "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 of when this organization was created."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this organization was last updated."
                }
              }
            }
          }
        }
      },
      "GetTenantDidsResponse": {
        "title": "Get Tenant DIDs Response",
        "type": "object",
        "description": "Returned when listing all DIDs (Decentralized Identifiers cryptographic identifiers controlled by the organization's private keys) provisioned for a specific organization. Cheqd DIDs are anchored on-chain; key DIDs are derived locally.",
        "example": {
          "success": true,
          "response": [
            {
              "did": "did:key:z6Mkw1JK3fA62UNsQ6MwJwqPxTEfHVZuFokpZWGdingDAfRN",
              "method": "key"
            },
            {
              "did": "did:cheqd:testnet:34a5cb23-9cc5-46a8-bf1a-4b6cc4c1cd7f",
              "method": "cheqd"
            }
          ]
        },
        "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:cheqd:testnet:34a5cb23-...` or `did:key:z6Mk...`)."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "cheqd",
                    "key"
                  ],
                  "description": "DID method — `cheqd` for blockchain-anchored DIDs on the Cheqd network, `key` for locally derived off-chain DIDs."
                }
              }
            }
          }
        }
      },
      "CreateConnectionResponse": {
        "title": "Create Connection Response",
        "type": "object",
        "description": "Returned after successfully generating a DIDComm Out-of-Band (OOB) connection invitation (a standard DIDComm protocol message that lets an external wallet establish a secure, private peer-to-peer channel with this organization the holder scans a QR code or clicks a deep link containing the `invitationUrl`).",
        "example": {
          "success": true,
          "response": {
            "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
            "state": "pending",
            "invitationJson": {
              "@type": "https://didcomm.org/out-of-band/1.1/invitation",
              "@id": "06d204ed-a2b6-468a-9d4e-974532612372",
              "label": "label",
              "accept": [
                "didcomm/aip1",
                "didcomm/aip2;env=rfc19"
              ],
              "handshake_protocols": [
                "https://didcomm.org/didexchange/1.1",
                "https://didcomm.org/connections/1.0"
              ],
              "services": [
                {
                  "id": "#inline-0",
                  "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
                  "type": "did-communication",
                  "recipientKeys": [
                    "did:key:z6MkvvrtQWDufzySijPFQWbKY3ZbJksi5hQW5V7FAgzo1tuN"
                  ],
                  "routingKeys": []
                }
              ],
              "imageUrl": "https://acme-corp.com/connection.png"
            },
            "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIwNmQyMDRlZC1hMmI2LTQ2OGEtOWQ0ZS05NzQ1MzI2MTIzNzIiLCJsYWJlbCI6ImxhYmVsIiwiYWNjZXB0IjpbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwiaGFuZHNoYWtlX3Byb3RvY29scyI6WyJodHRwczovL2RpZGNvbW0ub3JnL2RpZGV4Y2hhbmdlLzEuMSIsImh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wIl0sInNlcnZpY2VzIjpbeyJpZCI6IiNpbmxpbmUtMCIsInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vY29yZS1hZ2VudC1kZXYuaG92aS5pZC9hZ2VudCIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiIsInJlY2lwaWVudEtleXMiOlsiZGlkOmtleTp6Nk1rdnZydFFXRHVmenlTaWpQRlFXYktZM1piSmtzaTVoUVc1VjdGQWd6bzF0dU4iXSwicm91dGluZ0tleXMiOltdfV0sImltYWdlVXJsIjoiaHR0cHM6Ly9hY21lLWNvcnAuY29tL2Nvbm5lY3Rpb24ucG5nIn0",
            "autoAcceptConnection": true,
            "reusable": false,
            "invitationUrl": "https://studio-dev.hovi.id/connection?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIwNmQyMDRlZC1hMmI2LTQ2OGEtOWQ0ZS05NzQ1MzI2MTIzNzIiLCJsYWJlbCI6ImxhYmVsIiwiYWNjZXB0IjpbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwiaGFuZHNoYWtlX3Byb3RvY29scyI6WyJodHRwczovL2RpZGNvbW0ub3JnL2RpZGV4Y2hhbmdlLzEuMSIsImh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wIl0sInNlcnZpY2VzIjpbeyJpZCI6IiNpbmxpbmUtMCIsInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vY29yZS1hZ2VudC1kZXYuaG92aS5pZC9hZ2VudCIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiIsInJlY2lwaWVudEtleXMiOlsiZGlkOmtleTp6Nk1rdnZydFFXRHVmenlTaWpQRlFXYktZM1piSmtzaTVoUVc1VjdGQWd6bzF0dU4iXSwicm91dGluZ0tleXMiOltdfV0sImltYWdlVXJsIjoiaHR0cHM6Ly9hY21lLWNvcnAuY29tL2Nvbm5lY3Rpb24ucG5nIiwiZWNvc3lzdGVtSWQiOiJhYWE0ZDI0Zi1lZjc1LTQ0NzMtOTJhNC1iMmZlOWJhM2IyNTAifQ=="
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the OOB invitation was successfully generated."
          },
          "response": {
            "type": "object",
            "description": "The invitation payload returned upon successful connection creation.",
            "properties": {
              "invitationId": {
                "type": "string",
                "format": "uuid",
                "description": "Server-assigned UUID for this invitation record. Use to poll connection state (`pending` → `completed`) or correlate incoming DIDComm messages to the originating invitation."
              },
              "state": {
                "type": "string",
                "description": "Current lifecycle state of the invitation. Starts as `pending` after creation; transitions to `completed` once the holder completes the DIDComm handshake. May also be `abandoned` or `error`."
              },
              "invitationJson": {
                "type": "object",
                "description": "Raw DIDComm Out-of-Band 1.1 invitation object (Aries RFC 0434). All other representations (`invitationBase64`, `invitationUrl`) are derived from this canonical object.",
                "properties": {
                  "@type": {
                    "type": "string",
                    "description": "DIDComm message type URI. Always `https://didcomm.org/out-of-band/1.1/invitation` — used by wallet agents to identify and route the message."
                  },
                  "@id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Unique message ID inside the DIDComm envelope. Distinct from `invitationId` — used by recipient agents for message deduplication and threading."
                  },
                  "label": {
                    "type": "string",
                    "description": "Display name shown in the holder's wallet when presenting the connection request."
                  },
                  "accept": {
                    "type": "array",
                    "description": "DIDComm envelope profiles supported by this agent, in preference order. Enables interoperability with wallets supporting AIP 1.0 and AIP 2.0 envelope formats.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "handshake_protocols": {
                    "type": "array",
                    "description": "DIDComm handshake protocol URIs accepted by this agent. The holder's wallet picks the first mutually supported protocol — typically `didexchange/1.1` with `connections/1.0` as a legacy fallback.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "services": {
                    "type": "array",
                    "description": "Inline DIDComm service endpoint descriptors the holder's wallet uses to route the handshake response back to this agent.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Fragment identifier for this service entry. Uses `#inline-N` convention for inline definitions not resolvable as standalone DID Documents."
                        },
                        "serviceEndpoint": {
                          "type": "string",
                          "format": "url",
                          "description": "Publicly reachable HTTPS URL of the organization's DIDComm agent. The holder's wallet POSTs the handshake response to this endpoint."
                        },
                        "type": {
                          "type": "string",
                          "description": "Service type descriptor. `did-communication` identifies a DIDComm v1 messaging endpoint."
                        },
                        "recipientKeys": {
                          "type": "array",
                          "description": "List of `did:key` URIs representing the agent's public keys. The holder's wallet encrypts the outbound handshake message to these keys.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "routingKeys": {
                          "type": "array",
                          "description": "Mediator routing keys. Empty array (`[]`) means the agent is directly reachable at `serviceEndpoint` with no intermediary.",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "imageUrl": {
                    "type": "string",
                    "format": "url",
                    "description": "Organization's branding image displayed in the holder's wallet alongside `label` during the connection acceptance prompt."
                  }
                }
              },
              "invitationBase64": {
                "type": "string",
                "description": "Standard Base64 encoding of `invitationJson`. Used to embed the invitation in QR codes or as the `oob` query parameter in deep links."
              },
              "autoAcceptConnection": {
                "type": "boolean",
                "description": "When `true`, the agent automatically accepts the incoming DIDComm connection request without manual approval. When `false`, an operator must explicitly approve."
              },
              "reusable": {
                "type": "boolean",
                "description": "`false` — single-use invitation, expires after the first wallet completes the handshake. `true` — multi-party invitation, remains active for multiple wallets."
              },
              "invitationUrl": {
                "type": "string",
                "format": "url",
                "description": "Complete invitation URL with the Base64-encoded invitation as the `oob` query parameter. Render as a QR code for wallet scanning or as a deep link for mobile wallets. May include additional fields (e.g., `ecosystemId`) beyond `invitationBase64`."
              }
            }
          }
        }
      },
      "GetConnectionsResponse": {
        "title": "Get Connections Response",
        "type": "object",
        "description": "Returned when listing all DIDComm connections for an organization. Each item represents a peer-to-peer secure channel either completed (both parties have exchanged DID documents and the channel is active) or pending (the invitation has been sent but the holder has not yet accepted).",
        "example": {
          "success": true,
          "response": [
            {
              "connectionId": "c971d3ba-09a8-4fc3-9de0-8f04d94390b0",
              "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
              "connectionProtocol": "https://didcomm.org/didexchange/1.x",
              "state": "completed",
              "role": "responder",
              "accept": "auto",
              "theirDid": "did:peer:4zQmStdSSwsyhapZG7KMpFf1RjPsTZDaewkTUUnh6WppHhMB:z9vzP2Bq6...",
              "threadId": "4a97e7e6-964a-4dc8-95ed-8ae65e08e18c",
              "myDid": "did:peer:4zQmbekXSTrJ6T9c5Su9nnaAQ1K9nSryVDtBduPjTEka3qdH:z3zzFC4bu...",
              "alias": "name",
              "theirLabel": "bmFtZTtwaG9uZTtkaWQ6a2V5Ono2TWtmdXNvVmFZdDhnRWVvdk5hNVFxN3dlRHp0eTlFVm5ONTY5cEtnMWJuTkR3cQ==",
              "createdAt": "2026-05-05T10:36:36.431Z",
              "updatedAt": "2026-05-05T10:36:38.379Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the connection listing was successfully retrieved."
          },
          "response": {
            "type": "array",
            "description": "All DIDComm connection records for the organization, including completed and pending connections. Empty array if no connections exist.",
            "items": {
              "type": "object",
              "properties": {
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this DIDComm connection. Use for credential issuance, proof requests, or messaging over this channel."
                },
                "invitationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the OOB invitation that initiated this connection."
                },
                "connectionProtocol": {
                  "type": "string",
                  "description": "DIDComm handshake protocol URI negotiated between this agent and the holder's wallet (e.g., `https://didcomm.org/didexchange/1.x`)."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "completed",
                    "abandoned"
                  ],
                  "description": "DIDComm connection lifecycle state. `pending` — invitation issued, handshake not yet complete. `completed` — DID documents exchanged, channel active. `abandoned` — handshake cancelled, timed out, or failed."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "inviter",
                    "responder"
                  ],
                  "description": "This agent's role in the handshake. `inviter` — created the OOB invitation. `responder` — accepted the connection request from the holder's wallet."
                },
                "accept": {
                  "type": "string",
                  "enum": [
                    "auto",
                    "manual"
                  ],
                  "description": "Connection acceptance mode. `auto` — agent completes the handshake automatically. `manual` — requires explicit operator approval."
                },
                "theirDid": {
                  "type": "string",
                  "description": "Holder's `did:peer:4` long-form pairwise DID created exclusively for this connection. Present only after `completed` state."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID correlating all handshake messages for this connection. Maps to the `@id` of the initial `did-exchange/request`."
                },
                "myDid": {
                  "type": "string",
                  "description": "This agent's `did:peer:4` pairwise DID created exclusively for this connection. A unique DID per connection prevents cross-connection holder correlation."
                },
                "alias": {
                  "type": "string",
                  "description": "Server-side human-readable label for this connection record (e.g., customer name). Not transmitted to the holder's wallet."
                },
                "theirLabel": {
                  "type": "string",
                  "description": "Base64-encoded metadata transmitted by the holder's wallet during the handshake. Decode to extract the wallet's display name and any appended identity hints."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this connection record was created, corresponding to when the OOB invitation was generated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change (e.g., `pending` → `completed` after the holder completed the handshake)."
                }
              }
            }
          }
        }
      },
      "GetConnectionResponse": {
        "title": "Get Connection Response",
        "type": "object",
        "description": "Returned when querying a DIDComm connection by `connectionId` or `invitationId`. This endpoint exclusively returns connections in `completed` state — meaning the holder's wallet has successfully finished the DIDComm handshake and both parties have exchanged DID documents. If the connection exists but is still `pending` or `abandoned`, or if no matching record is found, `response` will be an empty array.",
        "example": {
          "success": true,
          "response": [
            [
              {
                "connectionId": "c971d3ba-09a8-4fc3-9de0-8f04d94390b0",
                "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
                "connectionProtocol": "https://didcomm.org/didexchange/1.x",
                "state": "completed",
                "role": "responder",
                "accept": "auto",
                "theirDid": "did:peer:4zQmStdSSwsyhapZG7KMpFf1RjPsTZDaewkTUUnh6WppHhMB:z9vzP2Bq6...",
                "threadId": "4a97e7e6-964a-4dc8-95ed-8ae65e08e18c",
                "myDid": "did:peer:4zQmbekXSTrJ6T9c5Su9nnaAQ1K9nSryVDtBduPjTEka3qdH:z3zzFC4bu...",
                "alias": "name",
                "theirLabel": "bmFtZTtwaG9uZTtkaWQ6a2V5Ono2TWtmdXNvVmFZdDhnRWVvdk5hNVFxN3dlRHp0eTlFVm5ONTY5cEtnMWJuTkR3cQ==",
                "createdAt": "2026-05-05T10:36:36.431Z",
                "updatedAt": "2026-05-05T10:36:38.379Z"
              }
            ]
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the lookup was successfully executed. Returns `true` even when the result is an empty array — `false` signals a request or server-level failure, not an empty result."
          },
          "response": {
            "type": "array",
            "description": "Outer array wrapping the query result. Contains a single inner array when a completed connection is found, or is empty (`[]`) when no completed connection matches. The `[[...]]` double-array structure reflects internal response normalization by this endpoint.",
            "items": {
              "type": "array",
              "description": "Inner array containing the matched completed connection record(s).",
              "items": {
                "type": "object",
                "properties": {
                  "connectionId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Server-assigned UUID for this completed DIDComm connection. Use as the handle for credential issuance, proof requests, and direct DIDComm messaging."
                  },
                  "invitationId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the OOB invitation that initiated this connection. Matches the `invitationId` query parameter when retrieved via invitation lookup."
                  },
                  "connectionProtocol": {
                    "type": "string",
                    "description": "DIDComm handshake protocol URI negotiated during connection establishment — reflects the highest mutually supported version between this agent and the holder's wallet."
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "completed"
                    ],
                    "description": "Lifecycle state. This endpoint exclusively returns `completed` records — both parties have exchanged DID documents and the channel is fully active."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "inviter",
                      "responder"
                    ],
                    "description": "This agent's role in the DIDComm handshake. `responder` — accepted the connection request from the holder's wallet (typical in issuer/verifier flows)."
                  },
                  "accept": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "manual"
                    ],
                    "description": "Acceptance mode at invitation creation time. `auto` — handshake completed automatically. `manual` — required explicit operator approval."
                  },
                  "theirDid": {
                    "type": "string",
                    "description": "Holder's `did:peer:4` long-form pairwise DID for this connection. Self-contained DID Document encoded in the DID string. Unique per connection — same holder presents a different DID per connection."
                  },
                  "threadId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "DIDComm thread ID correlating all handshake messages (`request` → `response` → `complete`). Corresponds to the `@id` of the holder's initial `did-exchange/request`."
                  },
                  "myDid": {
                    "type": "string",
                    "description": "This agent's `did:peer:4` pairwise DID for this connection. A unique DID per connection prevents holder correlation across multiple connections to the same organization."
                  },
                  "alias": {
                    "type": "string",
                    "description": "Server-side human-readable label for this connection (e.g., customer name or internal reference). Never transmitted to the holder's wallet."
                  },
                  "theirLabel": {
                    "type": "string",
                    "description": "Base64-encoded metadata from the holder's wallet during the handshake. Decode to reveal the wallet's display name and appended identity hints (e.g., `name;phone;did:key:z6Mkf...`)."
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp when this connection record was first persisted, corresponding to when the originating OOB invitation was generated."
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp of the most recent state change. For completed connections, reflects when the final `did-exchange/complete` message was processed."
                  }
                }
              }
            }
          }
        }
      },
      "GetConnectionBase64Response": {
        "title": "Get Connection Base64 Invitation Response",
        "type": "object",
        "description": "Returned when retrieving the Base64-encoded DIDComm Out-of-Band invitation for an existing connection. Use the `invitationBase64` value to regenerate a QR code or deep link for a holder's wallet to re-scan.",
        "example": {
          "success": true,
          "response": {
            "invitationId": "9dcdf1ed-dbcc-425c-88e1-3a593fc0a493",
            "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiI1NGJlMzljMi0xNmZjLTQ5MWQtODFjNS05MjhjNzE4NTg5ZTIiLCJsYWJlbCI6InRlc3QtbGFiZWwtMiIsImFjY2VwdCI6WyJkaWRjb21tL2FpcDEiLCJkaWRjb21tL2FpcDI7ZW52PXJmYzE5Il0sImhhbmRzaGFrZV9wcm90b2NvbHMiOlsiaHR0cHM6Ly9kaWRjb21tLm9yZy9kaWRleGNoYW5nZS8xLjEiLCJodHRwczovL2RpZGNvbW0ub3JnL2Nvbm5lY3Rpb25zLzEuMCJdLCJzZXJ2aWNlcyI6W3siaWQiOiIjaW5saW5lLTAiLCJzZXJ2aWNlRW5kcG9pbnQiOiJodHRwczovL2hvdmktY29yZS1kZXYtbm9yZGl2by5rb3llYi5hcHAvYWdlbnQiLCJ0eXBlIjoiZGlkLWNvbW11bmljYXRpb24iLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3ZpN1hGSzNQN1VFdDhFMWlmeUtpVWdQaTJXVXhTRTdZZndQWGJEZlJIMzJuIl0sInJvdXRpbmdLZXlzIjpbXX1dLCJpbWFnZVVybCI6Imh0dHBzOi8vYWNtZS1jb3JwMi5jb20vbG9nby5wbmcifQ=="
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "invitationId": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for this OOB invitation record."
              },
              "invitationBase64": {
                "type": "string",
                "description": "Base64-encoded DIDComm OOB invitation JSON. Decode and render as a QR code, or append as the `oob` query parameter in a deep link URL."
              }
            }
          }
        }
      },
      "SendProofReqestResponse": {
        "title": "Send Proof Request Response (Legacy)",
        "type": "object",
        "description": "Returned after successfully sending a DIDComm proof request to a holder over an established connection. The `proofExchangeId` is used to poll for the holder's proof presentation response.",
        "example": {
          "success": true,
          "response": {
            "proofExchangeId": "16fe7504-9bba-49ee-98e4-430981c36dc7"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Proof exchange session UUID. Use to retrieve the verification result once the holder's wallet responds with a presentation proof."
              }
            }
          }
        }
      },
      "GetProofRequestsResponse": {
        "title": "Get Proof Requests Response",
        "type": "object",
        "description": "Returned when listing all proof exchange records for an organization. Each item represents an instance of a verification flow from the initial proof request sent to the holder, through to receiving and validating the holder's credential presentation.",
        "example": {
          "success": true,
          "response": [
            {
              "createdAt": "2026-05-06T11:14:37.281Z",
              "updatedAt": "2026-05-06T11:19:10.911Z",
              "proofExchangeId": "149c7644-85e3-48cb-b653-aa5658af05c0",
              "state": "done",
              "role": "prover",
              "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
              "threadId": "94256329-cd46-453f-bf2d-de5fe7d694eb",
              "message": "Presentation has been sent to the verifier.",
              "id": "149c7644-85e3-48cb-b653-aa5658af05c0"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "array",
            "description": "Array of all proof exchange records for the organization.",
            "items": {
              "type": "object",
              "properties": {
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this proof exchange was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this proof exchange record was last updated."
                },
                "proofExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this proof exchange session."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "done",
                    "abandoned"
                  ],
                  "description": "Proof exchange state. `pending` — proof request sent, holder has not yet responded. `done` — presentation received and cryptographically verified. `abandoned` — exchange failed or timed out."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "verifier",
                    "prover"
                  ],
                  "description": "This organization's role in the proof exchange. `verifier` — sent the proof request and validates the response."
                },
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the DIDComm connection over which this proof exchange is taking place."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID correlating all messages in this proof exchange (request, response, acknowledgement)."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable status message describing the current state of the proof exchange."
                },
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Alias of `proofExchangeId` — both fields carry the same UUID. Present for compatibility with the underlying DIDComm agent layer."
                }
              }
            }
          }
        }
      },
      "SendProofRequestResponse": {
        "title": "Send Proof Request Response",
        "type": "object",
        "description": "Returned after successfully sending a DIDComm proof request to a holder over an established connection. Poll the `proofExchangeId` endpoint to track the exchange state and retrieve the verification result once the holder's wallet submits a credential presentation.",
        "example": {
          "success": true,
          "response": {
            "success": true,
            "proofExchangeId": "f5fd17c7-c086-401e-b136-ff71f318fe26",
            "role": "verifier",
            "threadId": "94256329-cd46-453f-bf2d-de5fe7d694eb",
            "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
            "createdAt": "2026-05-06T11:14:25.108Z",
            "updatedAt": "2026-05-06T11:14:25.160Z"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the proof request was successfully dispatched to the holder."
          },
          "response": {
            "type": "object",
            "description": "Newly created proof exchange record returned immediately after the proof request is sent. Use `proofExchangeId` to poll for state transitions as the holder responds.",
            "properties": {
              "success": {
                "type": "boolean",
                "description": "Indicates whether the proof exchange record was created and the DIDComm proof request dispatched to the agent layer."
              },
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Server-assigned UUID for this proof exchange session. Use to poll for state transitions (`pending` → `done` or `abandoned`) and retrieve the holder's verified presentation."
              },
              "role": {
                "type": "string",
                "enum": [
                  "verifier",
                  "prover"
                ],
                "description": "This agent's role in the proof exchange. Always `verifier` for proof requests initiated by this organization."
              },
              "threadId": {
                "type": "string",
                "format": "uuid",
                "description": "DIDComm thread ID correlating all `present-proof` protocol messages (request, presentation, ack) for this exchange."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the DIDComm connection over which this proof request was sent."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp when this proof exchange record was created."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of the most recent state change. For a freshly sent request, within milliseconds of `createdAt`."
              }
            }
          }
        }
      },
      "GetProofRequestResponse": {
        "title": "Get Proof Request Response",
        "type": "object",
        "description": "Returned when retrieving a single proof exchange record by its ID. When `state` is `done` and `isVerified` is `true`, the `presentationExchange` field contains the full AnonCreds cryptographic proof object including the holder's disclosed attributes, zero-knowledge predicate proofs, and the on-chain credential identifiers used to verify the signature.",
        "example": {
          "success": true,
          "response": {
            "presentationExchange": {
              "request": {
                "anoncreds": {
                  "name": "Marraige Verify",
                  "version": "1.0.0",
                  "nonce": "629623163721925277152498",
                  "requested_attributes": {
                    "attributes": {
                      "names": [
                        "name"
                      ],
                      "restrictions": [
                        {
                          "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                          "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
                        }
                      ]
                    }
                  },
                  "requested_predicates": {}
                }
              },
              "presentation": {
                "anoncreds": {
                  "proof": {
                    "proofs": [
                      {
                        "primary_proof": {
                          "eq_proof": {
                            "revealed_attrs": {
                              "name": "110909631494363614841019466881080619555213164441753954522258074678232602091602"
                            },
                            "a_prime": "28219381433699465865860161187350965011011764565407049913419358159617440379360270461106624939162428917489903541805726435412647638818182418486849430176740795397829763477941602010009846084808873453711458152900118066002123177313432363464855030873833619909517187691287719789255197124762129431533977632820074950618164317694474448906875745846988364888696636521563448879325066023371172046664686656671442929931497239692000468180975860509774250694750259160835135559166842154078735040257778945565691866406423960943763439965203407419926539922716848499185678098024854807840463292926169103974773116732113622502637667398199556903912",
                            "e": "179415805829373183388762631689424483196498138492048881332287270173084268669347927614283268988844504869897835828040143376676369973005394092",
                            "v": "442782358903142818252274971540323088894575600800929368104611151167988025121583013911693023586619346642945312750745126355525581687312776909187415968615155539903066418799873742007831026639555960858618763423228717994003543714729440067841389302467912258074901045634643257984461248146878991891629826342061418451135061949540792052096613109807188246541717704179534975802421678964313789532579625209561763314623203719752958116991270335224453569261263717177912253020319509615856782153110155573366746824577748716288803774468242968970471559265090798922365706773102291164484452134945460486322563814203267555278033560256300360929753137923472513952854956813478245734251365043629514163240746363129042572896304993259434391660229917024746873189533435214328081426525985652763512386706752316052692189770369243032712883947014496760109771413489257129386180158564786786145139324115614018460710301674329470988362381323486724093146783449848792071",
                            "m": {
                              "master_secret": "8991949145955376442114161433962104058406669833208904522565537017452995756931689603381149408333570524051041471738385143331174903624673553245542463650275469678785791697066019919222"
                            },
                            "m2": "987821921757040307979801637440657223131761589315952895352946113713242802235653047664791710170502011821947347500735655717773951213291162251696901629442724474578273012898826211720139126009903691996790346134175567814365076120080288027636779922112685704444982160726178573690347698161762696777105162740927137621141451274048533209249819790237595000880995949641071911466025503833008328845303962685513024228407036298683599748251348796787039661779816794012966125205353547906546665125243042938288184238815817077437837453272547990839654462237867113863695482457952486311217797345198263128250295328170611030371488305141219380304983130018777756887307748578403207052687169355226304601114954804104507258693192610240893131097638975869826275046391386"
                          },
                          "ge_proofs": []
                        },
                        "non_revoc_proof": null
                      }
                    ],
                    "aggregated_proof": {
                      "c_hash": "16337627914427780086991507782677245413829574722212186613296600252405804641083",
                      "c_list": [
                        [
                          223,
                          138,
                          98,
                          42,
                          71,
                          61,
                          123,
                          48,
                          219,
                          194,
                          133,
                          70,
                          213,
                          245,
                          167,
                          197,
                          127,
                          119,
                          202,
                          110,
                          7,
                          48,
                          14,
                          237,
                          181,
                          56,
                          251,
                          158,
                          36,
                          206,
                          49,
                          40,
                          190,
                          128,
                          120,
                          47,
                          61,
                          167,
                          178,
                          14,
                          93,
                          220,
                          99,
                          203,
                          36,
                          146,
                          105,
                          210,
                          225,
                          149,
                          77,
                          207,
                          247,
                          196,
                          161,
                          226,
                          197,
                          145,
                          223,
                          116,
                          73,
                          215,
                          249,
                          76,
                          225,
                          54,
                          153,
                          90,
                          35,
                          91,
                          210,
                          73,
                          108,
                          214,
                          65,
                          40,
                          238,
                          135,
                          17,
                          150,
                          132,
                          130,
                          186,
                          153,
                          26,
                          229,
                          15,
                          145,
                          33,
                          133,
                          100,
                          185,
                          52,
                          212,
                          151,
                          219,
                          14,
                          155,
                          13,
                          112,
                          57,
                          108,
                          236,
                          43,
                          77,
                          48,
                          145,
                          237,
                          211,
                          86,
                          88,
                          166,
                          13,
                          13,
                          83,
                          85,
                          125,
                          196,
                          87,
                          78,
                          65,
                          219,
                          87,
                          62,
                          45,
                          79,
                          6,
                          223,
                          149,
                          27,
                          11,
                          170,
                          68,
                          88,
                          247,
                          135,
                          112,
                          40,
                          98,
                          69,
                          173,
                          194,
                          106,
                          236,
                          207,
                          206,
                          210,
                          151,
                          165,
                          30,
                          83,
                          238,
                          13,
                          204,
                          52,
                          245,
                          249,
                          210,
                          129,
                          103,
                          146,
                          190,
                          69,
                          200,
                          226,
                          10,
                          95,
                          203,
                          187,
                          167,
                          210,
                          48,
                          90,
                          4,
                          249,
                          88,
                          154,
                          71,
                          236,
                          154,
                          72,
                          108,
                          110,
                          99,
                          62,
                          203,
                          172,
                          212,
                          48,
                          156,
                          33,
                          165,
                          214,
                          128,
                          222,
                          33,
                          24,
                          10,
                          146,
                          189,
                          66,
                          213,
                          227,
                          157,
                          253,
                          87,
                          75,
                          194,
                          62,
                          165,
                          144,
                          242,
                          138,
                          167,
                          236,
                          37,
                          240,
                          95,
                          131,
                          128,
                          103,
                          107,
                          152,
                          252,
                          212,
                          47,
                          239,
                          96,
                          83,
                          163,
                          205,
                          157,
                          11,
                          20,
                          252,
                          167,
                          158,
                          1,
                          15,
                          70,
                          144,
                          95,
                          112,
                          186,
                          83,
                          225,
                          230,
                          153,
                          253,
                          67,
                          67,
                          17,
                          7,
                          231,
                          19,
                          232
                        ]
                      ]
                    }
                  },
                  "requested_proof": {
                    "revealed_attrs": {},
                    "revealed_attr_groups": {
                      "attributes": {
                        "sub_proof_index": 0,
                        "values": {
                          "name": {
                            "raw": "siam",
                            "encoded": "110909631494363614841019466881080619555213164441753954522258074678232602091602"
                          }
                        }
                      }
                    },
                    "self_attested_attrs": {},
                    "unrevealed_attrs": {},
                    "predicates": {}
                  },
                  "identifiers": [
                    {
                      "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                      "cred_def_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/067a6740-c062-4f22-9457-62a945f5744f",
                      "rev_reg_id": null,
                      "timestamp": null
                    }
                  ]
                }
              }
            },
            "createdAt": "2026-05-06T10:51:22.539Z",
            "updatedAt": "2026-05-06T10:53:05.754Z",
            "proofExchangeId": "240550a6-0038-45c7-a0a8-0d274e95c67e",
            "state": "done",
            "role": "verifier",
            "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
            "threadId": "0e95b40d-38fb-4d63-9a5b-fd2b62ad292f",
            "isVerified": true,
            "message": "Presentation received and verified"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this proof exchange was initiated."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this proof exchange record was last updated."
              },
              "proofExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for this proof exchange session."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "done",
                  "abandoned"
                ],
                "description": "Proof exchange state. `pending` — awaiting the holder's presentation. `done` — presentation received and verified. `abandoned` — exchange failed or timed out."
              },
              "role": {
                "type": "string",
                "enum": [
                  "verifier",
                  "prover"
                ],
                "description": "This organization's role in the proof exchange."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the DIDComm connection over which this proof exchange took place."
              },
              "threadId": {
                "type": "string",
                "format": "uuid",
                "description": "DIDComm thread ID correlating all messages in this proof exchange into a single logical conversation."
              },
              "isVerified": {
                "type": "boolean",
                "description": "Whether the holder's proof presentation passed cryptographic verification (`true` = all signatures valid and predicates satisfied)."
              },
              "protocolVersion": {
                "type": "string",
                "enum": [
                  "v1",
                  "v2"
                ],
                "description": "DIDComm Present Proof protocol version used for this exchange."
              },
              "message": {
                "type": "string",
                "description": "Human-readable status message describing the outcome of the proof exchange."
              },
              "presentationExchange": {
                "type": "object",
                "description": "Full AnonCreds proof exchange payload. Present only when `state` is `done`. Contains the original proof request and the holder's cryptographic proof presentation.",
                "properties": {
                  "request": {
                    "type": "object",
                    "description": "Original AnonCreds proof request sent to the holder (specifies attributes to reveal and ZK predicates to prove).",
                    "properties": {
                      "anoncreds": {
                        "type": "object",
                        "description": "AnonCreds-format proof request payload.",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Human-readable name of the proof request."
                          },
                          "version": {
                            "type": "string",
                            "description": "Version of the proof request."
                          },
                          "nonce": {
                            "type": "string",
                            "description": "One-time cryptographic nonce included in the proof request to prevent replay attacks. The holder's proof must incorporate this value."
                          },
                          "requested_attributes": {
                            "type": "object",
                            "description": "Map of attribute group IDs to the credential attributes to disclose, along with schema/issuer restrictions."
                          },
                          "requested_predicates": {
                            "type": "object",
                            "description": "Map of predicate IDs to ZK predicate conditions (e.g., prove `age >= 18` without revealing the actual value)."
                          }
                        }
                      }
                    }
                  },
                  "presentation": {
                    "type": "object",
                    "description": "AnonCreds cryptographic proof presentation submitted by the holder's wallet.",
                    "properties": {
                      "anoncreds": {
                        "type": "object",
                        "description": "AnonCreds-format proof presentation payload.",
                        "properties": {
                          "proof": {
                            "type": "object",
                            "description": "Core AnonCreds cryptographic proof object containing primary proofs and an aggregated proof hash.",
                            "properties": {
                              "proofs": {
                                "type": "array",
                                "description": "Sub-proofs, one per credential used in the presentation. Each contains `primary_proof` (AnonCreds ZK-proof material) and optionally `non_revoc_proof` (non-revocation proof against the Cheqd StatusList2021 registry).",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "aggregated_proof": {
                                "type": "object",
                                "description": "Aggregated AnonCreds proof binding all sub-proofs. Contains `c_hash` (challenge hash) and `c_list` (cryptographic commitments)."
                              }
                            }
                          },
                          "requested_proof": {
                            "type": "object",
                            "description": "Maps the Verifier's requested attributes and predicates to the holder's revealed values and proof indices.",
                            "properties": {
                              "revealed_attrs": {
                                "type": "object",
                                "description": "Individually requested revealed attributes, keyed by attribute identifier from the proof request."
                              },
                              "revealed_attr_groups": {
                                "type": "object",
                                "description": "Grouped revealed attributes. Each group contains `sub_proof_index` (which credential satisfies the group) and `values` (raw and encoded disclosed attribute values)."
                              },
                              "self_attested_attrs": {
                                "type": "object",
                                "description": "Self-attested attributes claimed by the holder without a credential signature (for unrestricted attributes only)."
                              },
                              "unrevealed_attrs": {
                                "type": "object",
                                "description": "Attributes included in the proof for cryptographic binding but not disclosed to the Verifier."
                              },
                              "predicates": {
                                "type": "object",
                                "description": "Satisfied ZK predicates, each referencing the `sub_proof_index` of the credential that proves the condition."
                              }
                            }
                          },
                          "identifiers": {
                            "type": "array",
                            "description": "On-chain credential identifiers used in this presentation — one per credential. Each entry contains Cheqd DID-linked resource URLs for the schema and credential definition, enabling the Verifier to fetch the issuer's public key from the blockchain.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "schema_id": {
                                  "type": "string",
                                  "description": "AnonCreds schema resource URL on Cheqd used for this credential."
                                },
                                "cred_def_id": {
                                  "type": "string",
                                  "description": "AnonCreds Credential Definition resource URL on Cheqd — contains the issuer's public key for signature verification."
                                },
                                "rev_reg_id": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "Revocation registry resource URL on Cheqd. `null` if this credential type does not support revocation."
                                },
                                "timestamp": {
                                  "type": "number",
                                  "nullable": true,
                                  "description": "Unix timestamp of the revocation registry state used for the non-revocation proof. `null` if revocation was not checked."
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "GetAllCredentialsResponse": {
        "title": "Get All Credentials Response",
        "type": "object",
        "description": "Returned when listing all credential exchange records for an organization. Each item represents a credential issuance instance tracking the lifecycle from offer-sent through to the credential being accepted (or rejected) by the holder's wallet.",
        "example": {
          "success": true,
          "response": [
            {
              "credentialExchangeId": "bef411df-d4b9-490b-8128-040290563198",
              "state": "abandoned",
              "role": "issuer",
              "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
              "threadId": "08f42c1a-db9b-494a-8b62-e95af7618022",
              "createdAt": "2026-05-06T09:51:39.622Z",
              "updatedAt": "2026-05-06T09:53:29.969Z"
            },
            {
              "credentialExchangeId": "0726b92f-737e-4098-9e86-bb3854617289",
              "state": "done",
              "role": "issuer",
              "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
              "threadId": "8c7a3a93-9ebb-4f9b-bb4c-59f6bce390bf",
              "createdAt": "2026-05-06T09:51:14.335Z",
              "updatedAt": "2026-05-06T09:51:29.910Z"
            },
            {
              "credentialExchangeId": "4639128e-02f2-48d1-9df7-69de69012ca6",
              "state": "processing",
              "role": "issuer",
              "connectionId": "9ef593a1-2830-481e-9e3e-22d00e22b7b2",
              "threadId": "a580584a-d63b-4d39-9f0d-6a59aeb32a04",
              "createdAt": "2026-05-01T08:45:22.529Z",
              "updatedAt": "2026-05-01T08:45:22.529Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential exchange lookup was successfully executed. Returns `true` even for empty results."
          },
          "response": {
            "type": "array",
            "description": "Credential exchange records for the queried connection or exchange ID. Returns multiple records when more than one issuance was attempted over the same connection. Empty array if no exchanges are found.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this credential exchange session. Use to query a specific exchange, trigger revocation, or correlate webhook events to the originating issuance flow."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "processing",
                    "done",
                    "abandoned"
                  ],
                  "description": "Credential exchange lifecycle state. `processing` — offer sent, awaiting holder response. `done` — holder accepted and stored the credential. `abandoned` — holder rejected or exchange timed out."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "issuer",
                    "holder"
                  ],
                  "description": "This agent's role in the credential exchange. `issuer` — initiated the exchange by sending a credential offer to the holder's wallet."
                },
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the DIDComm connection over which this exchange took place. Multiple records may share the same `connectionId` if multiple credentials were issued to the same holder."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID for this specific credential exchange (offer, request, issue, ack). Unique per exchange even when `connectionId` is shared."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential exchange record was created, corresponding to when the offer was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change. For `processing` exchanges without state transitions, equals `createdAt`. For `abandoned` exchanges, reflects when abandonment was recorded."
                }
              }
            }
          }
        }
      },
      "GetStoredCredentialsV2Response": {
        "title": "Get Stored Credentials (v2)",
        "type": "object",
        "description": "One page of the credentials stored in the wallet, newest first. Credentials are returned without their attributes.",
        "example": {
          "success": true,
          "credentials": [
            {
              "id": "252e8f87-f5f3-450b-a772-5a51f87c9dd7",
              "claimFormat": "dc+sd-jwt",
              "createdAt": "2025-03-18T09:06:17.491Z",
              "metadata": {
                "issuer": {
                  "endpoint": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608",
                  "name": "Acme Corp",
                  "logo": {
                    "url": "https://acme-corp.id/logo.png",
                    "alt": "Acme Corp logo"
                  }
                },
                "credential": {
                  "name": "Employee Record Credential",
                  "description": "Proof of employment at Acme Corp",
                  "textColor": "#FFFFFF",
                  "backgroundImage": {
                    "url": "https://acme-corp.id/card.png"
                  }
                }
              }
            }
          ],
          "pagination": {
            "page": 1,
            "limit": 20,
            "total": 1,
            "totalPages": 1,
            "hasNextPage": false,
            "hasPreviousPage": false
          }
        },
        "required": [
          "success",
          "credentials",
          "pagination"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "credentials": {
            "type": "array",
            "description": "The credentials of the requested page.",
            "items": {
              "type": "object",
              "required": [
                "id",
                "createdAt",
                "metadata"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Credential ID. Use it to retrieve, present or delete the credential."
                },
                "claimFormat": {
                  "type": "string",
                  "example": "dc+sd-jwt",
                  "description": "Encoding format of the credential: dc+sd-jwt, vc+sd-jwt, mso_mdoc, jwt_vc, ldp_vc or vc+jwt. An AnonCreds credential is stored in W3C form and reports ldp_vc."
                },
                "createdAt": {
                  "type": "string",
                  "description": "When the credential was stored in the wallet (ISO 8601)."
                },
                "metadata": {
                  "type": "object",
                  "required": [
                    "credential"
                  ],
                  "description": "Issuer and display metadata of the credential.",
                  "properties": {
                    "issuer": {
                      "type": "object",
                      "description": "Issuer of the credential. Taken from the credential offer for OpenID credentials and from the connection for DIDComm credentials.",
                      "properties": {
                        "endpoint": {
                          "type": "string",
                          "description": "Credential issuer endpoint (OpenID credentials)."
                        },
                        "name": {
                          "type": "string",
                          "description": "Display name of the issuer."
                        },
                        "logo": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string",
                              "description": "Direct URL to the image."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Alternative text of the image."
                            }
                          }
                        },
                        "connectionId": {
                          "type": "string",
                          "description": "DIDComm connection the credential was received over (DIDComm credentials)."
                        }
                      }
                    },
                    "credential": {
                      "type": "object",
                      "required": [
                        "name"
                      ],
                      "description": "How the credential is displayed.",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Display name of the credential. Falls back to the type of the credential when the issuer supplied no display name."
                        },
                        "description": {
                          "type": "string",
                          "description": "Description of the credential."
                        },
                        "textColor": {
                          "type": "string",
                          "description": "Text colour to render the credential with."
                        },
                        "backgroundImage": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string",
                              "description": "Direct URL to the image."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Alternative text of the image."
                            }
                          }
                        },
                        "logo": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string",
                              "description": "Direct URL to the image."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Alternative text of the image."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "pagination": {
            "type": "object",
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "properties": {
              "page": {
                "type": "integer",
                "description": "The returned page, starting at 1."
              },
              "limit": {
                "type": "integer",
                "description": "Number of credentials per page."
              },
              "total": {
                "type": "integer",
                "description": "Number of credentials matching the filters, across all pages."
              },
              "totalPages": {
                "type": "integer",
                "description": "Number of pages."
              },
              "hasNextPage": {
                "type": "boolean",
                "description": "Whether a page follows this one."
              },
              "hasPreviousPage": {
                "type": "boolean",
                "description": "Whether a page precedes this one."
              }
            }
          }
        }
      },
      "GetStoredCredentialV2Response": {
        "title": "Get Stored Credential (v2)",
        "type": "object",
        "description": "One stored credential with its attributes and the display labels of its claims.",
        "example": {
          "success": true,
          "credential": {
            "id": "252e8f87-f5f3-450b-a772-5a51f87c9dd7",
            "claimFormat": "dc+sd-jwt",
            "createdAt": "2025-03-18T09:06:17.491Z",
            "updatedAt": "2025-03-18T09:06:17.491Z",
            "issuer": "did:key:z6MkkXxeGTt6GZvQ8RvuCGckgtvVLJD8RSmH4EZm9jug6JFo",
            "attributes": {
              "given_name": "John",
              "family_name": "Doe",
              "employee_id": "emp-123456"
            },
            "metadata": {
              "issuer": {
                "endpoint": "https://core-agent.hovi.id/agent/oid4vci/8025d737-bd05-44fa-9201-52c1b1f6d608",
                "name": "Acme Corp",
                "logo": {
                  "url": "https://acme-corp.id/logo.png",
                  "alt": "Acme Corp logo"
                }
              },
              "credential": {
                "name": "Employee Record Credential",
                "description": "Proof of employment at Acme Corp"
              },
              "claims": {
                "given_name": {
                  "path": [
                    "given_name"
                  ],
                  "mandatory": true,
                  "labels": {
                    "default": "Given Name"
                  }
                }
              }
            }
          }
        },
        "required": [
          "success",
          "credential"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "credential": {
            "type": "object",
            "required": [
              "id",
              "attributes",
              "metadata"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Credential ID."
              },
              "claimFormat": {
                "type": "string",
                "example": "dc+sd-jwt",
                "description": "Encoding format of the credential: dc+sd-jwt, vc+sd-jwt, mso_mdoc, jwt_vc, ldp_vc or vc+jwt. An AnonCreds credential is stored in W3C form and reports ldp_vc."
              },
              "createdAt": {
                "type": "string",
                "description": "When the credential was stored in the wallet (ISO 8601)."
              },
              "updatedAt": {
                "type": "string",
                "description": "When the stored credential was last updated (ISO 8601)."
              },
              "issuer": {
                "type": "string",
                "description": "Identifier of the issuer. For an mdoc, the issuer certificate in PEM format."
              },
              "holder": {
                "type": "string",
                "description": "Identifier of the holder, when the credential is bound to one."
              },
              "attributes": {
                "type": "object",
                "description": "The claims of the credential. An mdoc groups them by namespace."
              },
              "issuanceDate": {
                "type": "string",
                "description": "When the credential was issued, when the credential states it."
              },
              "expirationDate": {
                "type": "string",
                "description": "When the credential expires, when the credential states it."
              },
              "metadata": {
                "type": "object",
                "required": [
                  "credential"
                ],
                "description": "Issuer and display metadata of the credential.",
                "properties": {
                  "issuer": {
                    "type": "object",
                    "description": "Issuer of the credential. Taken from the credential offer for OpenID credentials and from the connection for DIDComm credentials.",
                    "properties": {
                      "endpoint": {
                        "type": "string",
                        "description": "Credential issuer endpoint (OpenID credentials)."
                      },
                      "name": {
                        "type": "string",
                        "description": "Display name of the issuer."
                      },
                      "logo": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Direct URL to the image."
                          },
                          "alt": {
                            "type": "string",
                            "description": "Alternative text of the image."
                          }
                        }
                      },
                      "connectionId": {
                        "type": "string",
                        "description": "DIDComm connection the credential was received over (DIDComm credentials)."
                      }
                    }
                  },
                  "credential": {
                    "type": "object",
                    "required": [
                      "name"
                    ],
                    "description": "How the credential is displayed.",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Display name of the credential. Falls back to the type of the credential when the issuer supplied no display name."
                      },
                      "description": {
                        "type": "string",
                        "description": "Description of the credential."
                      },
                      "textColor": {
                        "type": "string",
                        "description": "Text colour to render the credential with."
                      },
                      "backgroundImage": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Direct URL to the image."
                          },
                          "alt": {
                            "type": "string",
                            "description": "Alternative text of the image."
                          }
                        }
                      },
                      "logo": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "description": "Direct URL to the image."
                          },
                          "alt": {
                            "type": "string",
                            "description": "Alternative text of the image."
                          }
                        }
                      }
                    }
                  },
                  "claims": {
                    "type": "object",
                    "description": "Display labels per claim, keyed by claim path. Only present when the issuer supplied them."
                  }
                }
              }
            }
          }
        }
      },
      "GetAllStoredCredentialsResponse": {
        "title": "Get All Stored Credentials Response",
        "type": "object",
        "description": "Returned when retrieving all credentials currently stored in this organization's agent wallet. Each item represents a fully issued and accepted Verifiable Credential that was received over a DIDComm connection and stored by the holder agent. These are live wallet credentials — not credential exchange records or templates.",
        "example": {
          "success": true,
          "credentials": [
            {
              "id": "42bd9d1c-c6a0-4967-a75e-acb2fab08030",
              "createdAt": "2026-05-06T10:52:52.235Z",
              "updatedAt": "2026-05-06T10:52:52.249Z",
              "communicationProtocol": "didcomm",
              "credentialType": "ldp_vc",
              "issuer": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368",
              "name": "Marraige Certificate",
              "schemaId": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
              "credentialDefinitionId": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/067a6740-c062-4f22-9457-62a945f5744f",
              "context": [
                "https://www.w3.org/2018/credentials/v1",
                "https://w3id.org/security/data-integrity/v2",
                {
                  "@vocab": "https://www.w3.org/ns/credentials/issuer-dependent#"
                }
              ],
              "issuanceDate": "2026-05-06T10:52:52.197007135Z",
              "attributes": {
                "name": "siam"
              },
              "metadata": {
                "issuer": {
                  "name": "Cheqd Test Org",
                  "logo": {
                    "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml",
                    "alt": "Cheqd Test Org"
                  }
                },
                "credential": {}
              }
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the stored credential listing was retrieved successfully. Returns `true` even when the wallet contains no credentials (empty array)."
          },
          "credentials": {
            "type": "array",
            "description": "All Verifiable Credentials currently stored in this organization's agent wallet. Each entry is a complete, accepted credential received over a DIDComm connection. Empty array if no credentials have been stored.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this stored credential record in the agent wallet. Use to reference, present, or delete a specific credential."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential was received and stored in the wallet."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent update to this stored credential record. Typically within milliseconds of `createdAt` for newly stored credentials."
                },
                "communicationProtocol": {
                  "type": "string",
                  "enum": [
                    "didcomm"
                  ],
                  "description": "Protocol used to deliver this credential to the wallet. `didcomm` — received via DIDComm v1 message exchange over an established peer-to-peer connection."
                },
                "credentialType": {
                  "type": "string",
                  "enum": [
                    "ldp_vc",
                    "jwt_vc",
                    "anoncreds",
                    "sd_jwt_vc",
                    "mdoc"
                  ],
                  "description": "VC proof format of this stored credential. `ldp_vc` — W3C VC with Linked Data Proof (Data Integrity signature). `jwt_vc` — W3C VC as signed JWT. `anoncreds` — Hyperledger AnonCreds with ZK proof. `sd_jwt_vc` — Selective Disclosure JWT VC. `mdoc` — ISO/IEC 18013-5 mobile document."
                },
                "issuer": {
                  "type": "string",
                  "description": "DID of the issuer who signed this credential (e.g., `did:cheqd:testnet:<did>`). Verifiers resolve this DID to retrieve the issuer's public key and validate the signature."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable credential display name shown in the holder's wallet UI. Derived from the credential template name at issuance."
                },
                "schemaId": {
                  "type": "string",
                  "description": "DID-linked resource URL of the schema this credential was issued against (e.g., `did:cheqd:testnet:<did>/resources/<uuid>`). Resolving returns the schema definition describing the credential's attribute structure."
                },
                "credentialDefinitionId": {
                  "type": "string",
                  "description": "DID-linked resource URL of the Credential Definition used when issuing this credential. Contains the issuer's public cryptographic key material bound to the schema."
                },
                "context": {
                  "type": "array",
                  "description": "JSON-LD `@context` array from the W3C VC envelope. Entries are URLs of context documents or inline context objects (e.g., `{ \"@vocab\": \"...\" }` for issuer-dependent attribute namespacing). First entry is always `https://www.w3.org/2018/credentials/v1`.",
                  "items": {
                    "oneOf": [
                      {
                        "type": "string",
                        "description": "URL of a JSON-LD context document (e.g., W3C VC base context or Data Integrity context)."
                      },
                      {
                        "type": "object",
                        "description": "Inline JSON-LD context object defining an `@vocab` namespace for issuer-dependent attributes not in a published context document."
                      }
                    ]
                  }
                },
                "issuanceDate": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential was cryptographically signed by the issuer. Maps to `issuanceDate` in the W3C VC Data Model. May include nanosecond precision."
                },
                "attributes": {
                  "type": "object",
                  "description": "Flat key-value map of the credential's claim attributes and their issued values (e.g., `{ \"name\": \"siam\" }`). Keys are attribute names from the schema; values are the holder-specific data encoded at issuance.",
                  "additionalProperties": {
                    "type": "string",
                    "description": "Attribute value as a string."
                  }
                },
                "metadata": {
                  "type": "object",
                  "description": "Hovi-managed display metadata for this stored credential. Contains issuer branding used to render the credential card in the holder's wallet UI.",
                  "properties": {
                    "issuer": {
                      "type": "object",
                      "description": "Display metadata for the organization that issued this credential.",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Issuing organization's display name as configured in Hovi Studio. Shown in the holder's wallet alongside the credential card."
                        },
                        "logo": {
                          "type": "object",
                          "description": "Issuing organization's logo used for credential card rendering in the holder's wallet.",
                          "properties": {
                            "url": {
                              "type": "string",
                              "format": "url",
                              "description": "URL of the issuer's logo image. May point to a tenant-specific asset in blob storage."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Alt text for the issuer's logo image for accessibility and fallback display."
                            }
                          }
                        }
                      }
                    },
                    "credential": {
                      "type": "object",
                      "description": "Optional credential-level display metadata (e.g., custom card styling or rendering hints). May be an empty object `{}` if no credential-level metadata was configured at issuance.",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          }
        }
      },
      "GetReceivedCredentialsOfferResponses": {
        "title": "Get Received Credential Offers Response",
        "type": "object",
        "description": "Returned when retrieving all inbound credential offers received by this organization's agent wallet over DIDComm connections. Each item represents a credential exchange session where this organization is acting as the holder — a remote issuer has sent a credential offer that is either pending acceptance, already accepted and stored, or abandoned. This is the holder-side view of credential exchanges, as opposed to the issuer-side view returned by the credential issuance endpoints.",
        "example": {
          "success": true,
          "credentials": [
            {
              "credentialExchangeId": "dab97ae7-03b6-4ac6-9db3-171c24b3cd7b",
              "state": "processing",
              "role": "holder",
              "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
              "threadId": "e8f1636a-be08-443d-b87f-25f2614d71ea",
              "createdAt": "2026-05-06T10:26:45.757Z",
              "updatedAt": "2026-05-06T10:52:36.309Z"
            },
            {
              "credentialExchangeId": "5f6a7f26-294c-4570-af88-228a0256d991",
              "state": "done",
              "role": "holder",
              "connectionId": "175fab61-344d-4fd0-961b-ee5b24379927",
              "threadId": "25c5dace-0776-48fb-a68c-d17b601e26c6",
              "createdAt": "2026-05-06T10:19:55.290Z",
              "updatedAt": "2026-05-06T10:52:52.472Z"
            },
            {
              "credentialExchangeId": "2b1cb14a-ec16-46a0-85a9-d14ee1bf3021",
              "state": "processing",
              "role": "holder",
              "connectionId": "749da077-5ec0-42d6-9a39-1ee6d132ad21",
              "threadId": "fc50b146-132f-44f5-a2eb-baa39b94c993",
              "createdAt": "2026-05-06T07:31:40.147Z",
              "updatedAt": "2026-05-06T07:31:47.588Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the received credential offer listing was retrieved successfully. Returns `true` even when no offers have been received (empty array)."
          },
          "credentials": {
            "type": "array",
            "description": "All inbound credential exchange records where this organization's agent is the holder. Includes offers awaiting action (`processing`) and completed (`done`) exchanges. Multiple records may share the same `connectionId` if the same issuer sent multiple offers over the same channel.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this inbound credential exchange session. Use to accept, decline, or preview a specific offer via the holder-side endpoints."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "processing",
                    "done",
                    "abandoned",
                    "pending"
                  ],
                  "description": "Holder-side lifecycle state of this inbound exchange. `processing` — offer received from issuer, awaiting the holder's acceptance or rejection. `done` — holder accepted, credential issued and stored in the wallet. `abandoned` — holder rejected the offer or the exchange timed out."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "holder"
                  ],
                  "description": "This agent's role in the credential exchange. Always `holder` — every record here represents an inbound offer where this agent is the intended credential recipient."
                },
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the DIDComm connection over which this credential offer was received. Records sharing a `connectionId` originate from the same remote issuer peer."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID for this specific credential exchange (offer, request, issue, ack). Records sharing a `connectionId` always have distinct `threadId` values."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this inbound exchange record was created, corresponding to when the credential offer was received from the issuer."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change. For `processing` offers, a significant gap from `createdAt` indicates the offer has been sitting unacted upon."
                }
              }
            }
          }
        }
      },
      "GetCredentialResponse": {
        "title": "Get Credential Response",
        "type": "object",
        "description": "Returned when retrieving credential exchange records for a specific DIDComm connection. Each item represents a single credential issuance lifecycle session between this organization and a holder. Multiple exchange records may be returned if more than one credential was issued or attempted over the same connection — including both successfully completed and abandoned exchanges.",
        "example": {
          "success": true,
          "response": [
            {
              "credentialExchangeId": "bef411df-d4b9-490b-8128-040290563198",
              "state": "abandoned",
              "role": "issuer",
              "connectionId": "b9468ea2-2ca5-4f3c-b9ba-6a6b29cde128",
              "threadId": "08f42c1a-db9b-494a-8b62-e95af7618022",
              "createdAt": "2026-05-06T09:51:39.622Z",
              "updatedAt": "2026-05-06T09:53:29.969Z"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential exchange lookup was successfully executed. Returns `true` even for empty results."
          },
          "response": {
            "type": "array",
            "description": "Credential exchange records for the queried connection or exchange ID. Returns multiple records when more than one issuance was attempted over the same connection. Empty array if no exchanges are found.",
            "items": {
              "type": "object",
              "properties": {
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this credential exchange session. Use to query a specific exchange, trigger revocation, or correlate webhook events to the originating issuance flow."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "processing",
                    "done",
                    "abandoned"
                  ],
                  "description": "Credential exchange lifecycle state. `processing` — offer sent, awaiting holder response. `done` — holder accepted and stored the credential. `abandoned` — holder rejected or exchange timed out."
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "issuer",
                    "holder"
                  ],
                  "description": "This agent's role in the credential exchange. `issuer` — initiated the exchange by sending a credential offer to the holder's wallet."
                },
                "connectionId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the DIDComm connection over which this exchange took place. Multiple records may share the same `connectionId` if multiple credentials were issued to the same holder."
                },
                "threadId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "DIDComm thread ID for this specific credential exchange (offer, request, issue, ack). Unique per exchange even when `connectionId` is shared."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp when this credential exchange record was created, corresponding to when the offer was initiated."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of the most recent state change. For `processing` exchanges without state transitions, equals `createdAt`. For `abandoned` exchanges, reflects when abandonment was recorded."
                }
              }
            }
          }
        }
      },
      "IssueAnoncredCredentialResponse": {
        "title": "Issue AnonCreds Credential Response",
        "type": "object",
        "description": "Returned after successfully initiating an AnonCreds credential issuance over a DIDComm connection. The credential offer has been sent to the holder's wallet poll the `credentialExchangeId` endpoint to track acceptance. AnonCreds issuance uses DIDComm peer connection (not an OID4VCI offer URI).",
        "example": {
          "success": true,
          "response": {
            "credentialExchangeId": "f37925e9-1fb7-4e82-b9ef-377899e8e364",
            "threadId": "4a2ffa5e-e3b4-47c4-bb5d-234e07a498ce",
            "state": "offer-sent",
            "createdAt": "2024-08-06T12:51:38.283Z",
            "updatedAt": "2024-08-06T12:51:43.811Z",
            "connectionId": "a046a360-f1df-4c32-8e91-9e30ee95ae7b",
            "role": "issuer"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Credential exchange session UUID. Use to poll for the holder's acceptance state transitions."
              },
              "threadId": {
                "type": "string",
                "format": "uuid",
                "description": "DIDComm thread ID for this credential exchange conversation."
              },
              "state": {
                "type": "string",
                "enum": [
                  "offer-sent",
                  "pending",
                  "done",
                  "abandoned"
                ],
                "description": "Credential exchange state. `offer-sent` — AnonCreds credential offer dispatched to the holder's wallet over DIDComm, awaiting acceptance."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential exchange was initiated."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential exchange record was last updated."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the DIDComm connection over which the credential offer was sent."
              },
              "role": {
                "type": "string",
                "enum": [
                  "issuer",
                  "holder"
                ],
                "description": "This organization's role in the credential exchange (`issuer`)."
              }
            }
          }
        }
      },
      "IssueJsonLdCredentialResponse": {
        "title": "Issue JSON-LD Credential Response",
        "type": "object",
        "description": "Returned after successfully initiating a JSON-LD Verifiable Credential issuance over a DIDComm connection. The credential offer has been sent to the holder's wallet poll the `credentialExchangeId` endpoint to track the issuance state.",
        "example": {
          "success": true,
          "response": {
            "credentialExchangeId": "0b461bdc-15d5-4551-852d-9f8d4cf91450",
            "threadId": "3aad12ed-dac9-46d9-a3d9-507a3c5b490f",
            "state": "pending",
            "createdAt": "2024-08-06T13:33:37.144Z",
            "updatedAt": "2024-08-06T13:33:40.142Z",
            "connectionId": "a046a360-f1df-4c32-8e91-9e30ee95ae7b",
            "role": "issuer"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialExchangeId": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for this credential exchange session."
              },
              "threadId": {
                "type": "string",
                "format": "uuid",
                "description": "DIDComm thread ID for this credential exchange conversation."
              },
              "state": {
                "type": "string",
                "enum": [
                  "offer-sent",
                  "pending",
                  "done",
                  "abandoned"
                ],
                "description": "Credential exchange state. `pending` — JSON-LD credential offer sent, awaiting acceptance by the holder's wallet."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential exchange was initiated."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential exchange record was last updated."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the DIDComm connection over which the credential offer was sent."
              },
              "role": {
                "type": "string",
                "enum": [
                  "issuer",
                  "holder"
                ],
                "description": "This organization's role in the credential exchange (`issuer`)."
              }
            }
          }
        }
      },
      "deleteConnection": {
        "title": "Delete Connection",
        "type": "object",
        "required": [
          "connectionId"
        ],
        "description": "The data required to delete an existing DIDComm connection. Deleting a connection permanently removes the secure peer-to-peer channel between this organization and the remote wallet.",
        "example": {
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
        },
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Unique identifier of the DIDComm connection to delete."
          }
        }
      },
      "createTenant": {
        "title": "Create Tenant",
        "type": "object",
        "required": [
          "name",
          "label",
          "secret",
          "imageUrl"
        ],
        "description": "The data required to create a new organization (tenant an isolated account within the Hovi multi-tenant platform that acts as an independent Issuer or Verifier). On creation, Hovi auto-provisions a `did:cheqd` DID (anchored on the Cheqd blockchain) and a `did:key` DID (locally derived) for the organization.",
        "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"
          ],
          "dids": [
            {
              "did": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
              "privateKey": "a3f8c2e1b4d7f0e9c6a2b5d8f1e4c7a0b3d6f9e2c5a8b1d4f7e0c3a6b9d2f5"
            }
          ]
        },
        "properties": {
          "name": {
            "type": "string",
            "example": "Acme Corp",
            "description": "Registered name of the organization displayed in Hovi dashboards and management interfaces."
          },
          "label": {
            "type": "string",
            "example": "acme-corp",
            "description": "Short slug label shown in DIDComm connection invitations — the name a holder's wallet displays when receiving a connection or credential offer from this organization."
          },
          "secret": {
            "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 pointing to the organization logo (the image shown for this organization in the dashboard)."
          },
          "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 (credential accepted, proof submitted, etc.) to each URL.",
            "items": {
              "type": "string",
              "format": "url"
            }
          },
          "dids": {
            "type": "array",
            "description": "Optional existing Cheqd DIDs to import for this organization. If omitted, Hovi auto-provisions a new `did:cheqd` DID on testnet. Each DID must include its private key for signing operations.",
            "items": {
              "type": "object",
              "properties": {
                "did": {
                  "type": "string",
                  "example": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
                  "description": "Existing `did:cheqd` DID to import (must already be registered on the Cheqd blockchain)."
                },
                "privateKey": {
                  "type": "string",
                  "example": "a3f8c2e1b4d7f0e9c6a2b5d8f1e4c7a0b3d6f9e2c5a8b1d4f7e0c3a6b9d2f5",
                  "description": "Hex-encoded private key for the imported DID. Used for signing credentials and DIDComm messages — store securely, treat as a secret."
                }
              }
            }
          }
        }
      },
      "updateTenant": {
        "title": "Update Tenant",
        "type": "object",
        "description": "The data required to update an organization's (tenant'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 shown in DIDComm connection invitations."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://new-acme-corp.com/new-logo.png",
            "description": "URL pointing to the organization logo (the image shown for this organization in the dashboard)."
          }
        }
      },
      "deleteTenant": {
        "title": "Delete Tenant",
        "type": "object",
        "required": [
          "organizationSecret"
        ],
        "description": "The data required to permanently delete an organization (tenant) and all its associated resources. This action is irreversible — all credentials, templates, connections, and DIDs belonging to this tenant will be removed.",
        "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 upon successful rotation.",
        "example": {
          "accessToken": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
          "organizationSecret": "acme-corp-secret-2024",
          "organizationId": "668c8266-a026-4568-a3ed-fe0ad46fa87c"
        },
        "properties": {
          "accessToken": {
            "type": "string",
            "example": "eyJhbGciOiJIUzI1NiJ9.ZXlKMFpXNWhiblJKWkNJNklqWTJPR000TWpZMkxXRXdNall0TkRVMk9DMWhNMlZrTFdabE1HRmtORFptWVRnM1l5SXNJbWxoZENJNk1UY3lNekF4T1RVMk1uMD0.Bzxq8V2hv34T8YV1XSag6-hVRCuxQytv2aXX0dr7yKw",
            "description": "Current active `accessToken` issued at organization creation — 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."
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the organization (tenant) whose access token is being rotated."
          }
        }
      },
      "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 (remove) a webhook endpoint. Hovi will stop sending event notifications to the associated URL after successful deletion.",
        "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."
              }
            }
          }
        }
      },
      "createAnoncredCredentialTemplate": {
        "title": "Create AnonCreds Credential Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "attributes",
          "tag"
        ],
        "description": "The data required to create a new AnonCreds credential template. Submitting this request publishes a new AnonCreds schema and Credential Definition as DID-linked resources on the Cheqd blockchain, then stores the template in Hovi for use in credential issuance flows.",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Patient ID",
          "version": "1.0.1",
          "image": "https://acme-corp.com/patient.png",
          "description": "Patient ID Card",
          "attributes": [
            {
              "name": "name",
              "label": "Name",
              "type": "string",
              "description": "Name of the patient",
              "required": true
            },
            {
              "name": "age",
              "label": "Age",
              "type": "string",
              "description": "Age of the patient",
              "required": true
            }
          ],
          "tag": "default"
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this credential template belongs to.\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": "Patient ID",
            "description": "Human-readable name for the credential template. Also used as the AnonCreds schema name published on the Cheqd blockchain."
          },
          "version": {
            "type": "string",
            "example": "1.0.1",
            "description": "Semantic version string (e.g., `1.0.1`). Each unique name+version combination creates a distinct on-chain AnonCreds schema resource — increment to publish a new schema without overwriting the previous one."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL pointing to the credential logo (the image shown for this credential).\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 what this credential template represents."
          },
          "attributes": {
            "type": "array",
            "description": "Claim fields included in credentials issued from this template. Published as AnonCreds schema attributes on the Cheqd blockchain.",
            "items": {
              "$ref": "#/components/schemas/CredentialAttribute"
            }
          },
          "tag": {
            "type": "string",
            "example": "default",
            "description": "AnonCreds Credential Definition tag — distinguishes multiple credDefs published against the same schema. Use `default` for the primary definition."
          }
        }
      },
      "createJsonLdCredentialTemplate": {
        "title": "Create JSON-LD Credential Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "attributes",
          "schemaType"
        ],
        "description": "The data required to create a new JSON-LD credential template. Submitting this request generates and publishes a JSON-LD schema context document (uploaded to IPFS via Pinata), then stores the template in Hovi for use in W3C Verifiable Credential issuance flows.",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Patient ID 2",
          "version": "1.0.1",
          "image": "https://acme-corp.com/patient.png",
          "description": "Patient ID Card",
          "attributes": [
            {
              "name": "fullName",
              "type": "string",
              "label": "Full Name",
              "description": "Full legal name",
              "required": true
            },
            {
              "name": "age",
              "type": "number",
              "label": "Age",
              "description": "Age of the user",
              "required": true
            },
            {
              "name": "isVerified",
              "type": "boolean",
              "label": "Verification Status",
              "description": "Indicates whether the user is verified",
              "required": true
            },
            {
              "name": "profileImage",
              "type": "image",
              "label": "Profile Image",
              "description": "Profile picture of the user"
            },
            {
              "name": "dateOfBirth",
              "type": "date",
              "label": "Date of Birth",
              "description": "Birth date of the user"
            },
            {
              "name": "address",
              "type": "object",
              "label": "Address Information",
              "description": "Primary address details",
              "attributes": [
                {
                  "name": "street",
                  "type": "string",
                  "label": "Street",
                  "description": "Street address"
                },
                {
                  "name": "postalCode",
                  "type": "number",
                  "label": "Postal Code",
                  "description": "ZIP or postal code"
                }
              ]
            },
            {
              "name": "organization",
              "type": "object",
              "label": "Organization Information",
              "description": "Organization related details",
              "attributes": [
                {
                  "name": "organizationName",
                  "type": "string",
                  "label": "Organization Name",
                  "description": "Name of the organization"
                },
                {
                  "name": "department",
                  "type": "object",
                  "label": "Department Information",
                  "description": "Nested department details",
                  "attributes": [
                    {
                      "name": "departmentName",
                      "type": "string",
                      "label": "Department Name",
                      "description": "Name of the department"
                    },
                    {
                      "name": "employeeCount",
                      "type": "number",
                      "label": "Employee Count",
                      "description": "Number of employees in the department"
                    }
                  ]
                }
              ]
            }
          ],
          "schemaType": "Patient Record"
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this credential template belongs to.\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": "Patient ID",
            "description": "Human-readable name for the credential template."
          },
          "version": {
            "type": "string",
            "example": "1.0.1",
            "description": "Semantic version string for the credential template."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL pointing to the credential logo (the image shown for this credential).\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 what this credential template represents."
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "university",
                  "maxLength": 50,
                  "description": "Internal programmatic identifier for the attribute (used in code and data structures to reference this claim)."
                },
                "type": {
                  "type": "string",
                  "example": "string",
                  "enum": [
                    "string",
                    "number",
                    "boolean",
                    "image",
                    "date",
                    "object"
                  ],
                  "description": "Data type of the attribute (the expected format for the claim value).\n\n**Type Constraints:**\n| Type | Description |\n| :--- | :--- |\n| `string` | Plain text value |\n| `number` | Numeric value (integer or float) |\n| `boolean` | True or false value |\n| `date` | ISO 8601 date string (YYYY-MM-DD) |\n| `object` | Nested object with sub-attributes |\n| `image` | Base64-encoded image. **Supported formats:** `image/jpeg`, `image/jpg`, `image/png`. **Maximum size:** 20 KB |"
                },
                "label": {
                  "type": "string",
                  "example": "University Name",
                  "maxLength": 100,
                  "description": "Human-readable label for display in wallet UIs (the friendly name shown to end users)."
                },
                "description": {
                  "type": "string",
                  "example": "Official registered name of the issuing university.",
                  "maxLength": 200,
                  "description": "Semantic description of the attribute claim (explains the meaning and purpose of this data field)."
                },
                "required": {
                  "type": "boolean",
                  "example": true,
                  "enum": [
                    true,
                    false
                  ],
                  "default": false,
                  "description": "Indicates if this attribute is mandatory (whether the claim must be provided during issuance or verification)."
                }
              }
            },
            "description": "List of credential attribute claims mapped to the JSON-LD schema (the data fields that will be part of credentials issued from this template)."
          },
          "schemaType": {
            "type": "string",
            "example": "Patient Record",
            "description": "JSON-LD credential type string — sets the `@type` value embedded in issued credentials. Use PascalCase without spaces (e.g., `PatientRecord`)."
          }
        }
      },
      "importAnoncredCredentialTemplate": {
        "title": "Import AnonCreds Credential Template",
        "type": "object",
        "required": [
          "schemaId",
          "description",
          "tag"
        ],
        "description": "The data required to import an existing AnonCreds credential template from the Cheqd blockchain. Allows an organization to re-use a schema and Credential Definition already published on Cheqd by any party, without re-publishing to the blockchain.",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "schemaId": "did:cheqd:testnet:TcXjZEBCzN1pgoqgvqwTxU/anoncreds/v0/SCHEMA/Patient Credential/2.0.2",
          "image": "https://acme-corp.com/patient.png",
          "description": "Patient ID Card",
          "tag": "default"
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this credential template belongs to.\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` |"
          },
          "schemaId": {
            "type": "string",
            "example": "did:cheqd:testnet:TcXjZEBCzN1pgoqgvqwTxU/anoncreds/v0/SCHEMA/Patient Credential/2.0.2",
            "description": "Full DID-linked resource URL of the existing AnonCreds schema on the Cheqd blockchain to import (e.g., `did:cheqd:testnet:<id>/anoncreds/v0/SCHEMA/<name>/<version>`)."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL pointing to the credential logo (the image shown for this credential).\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 what this imported credential template represents."
          },
          "tag": {
            "type": "string",
            "example": "default",
            "description": "AnonCreds Credential Definition tag to use with this imported schema. Use `default` for the primary definition."
          }
        }
      },
      "importJsonLdCredentialTemplate": {
        "title": "Import JSON-LD Credential Template",
        "type": "object",
        "required": [
          "schemaUrl"
        ],
        "description": "The data required to import an existing JSON-LD credential template by referencing a publicly hosted schema URL. Allows an organization to issue credentials conforming to an existing JSON-LD schema without creating a new one.",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "schemaUrl": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
          "image": "https://acme-corp.com/patient.png"
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this credential template belongs to.\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` |"
          },
          "schemaUrl": {
            "type": "string",
            "format": "url",
            "example": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
            "description": "Publicly accessible URL of the existing JSON-LD schema document to import (typically an IPFS gateway or hovi.id schema URL). Hovi fetches this URL to resolve the schema's `@context` and attribute definitions."
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/patient.png",
            "description": "URL pointing to the credential logo (the image shown for this credential).\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB."
          }
        }
      },
      "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": "7471bb29-e875-4462-996a-69b2379a5049"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "Unique identifier of the credential template to retrieve."
          }
        }
      },
      "getConnectionById": {
        "title": "Get Connection By ID",
        "type": "object",
        "required": [
          "connectionId"
        ],
        "description": "The data required to retrieve a specific DIDComm connection record by its unique identifier.",
        "example": {
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
        },
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Unique identifier of the DIDComm connection record to retrieve."
          }
        }
      },
      "GetConnectionInvitationsResponse": {
        "title": "Get Connection Invitations Response",
        "type": "object",
        "description": "Returned when listing all OOB connection invitations created by an organization. Each item represents a single DIDComm Out-of-Band invitation record, regardless of its current state — both `pending` invitations (awaiting holder scan) and `completed` invitations (holder has finished the handshake) are included. Unlike the connections list, these records are invitation-centric and do not contain peer DID or thread information.",
        "example": {
          "success": true,
          "response": [
            {
              "invitationId": "9ef3a9eb-dcce-499b-8210-c5c3da743644",
              "state": "pending",
              "invitationJson": {
                "@type": "https://didcomm.org/out-of-band/1.1/invitation",
                "@id": "25667087-db22-4ccb-9063-73f484be6d39",
                "label": "label",
                "accept": [
                  "didcomm/aip1",
                  "didcomm/aip2;env=rfc19"
                ],
                "handshake_protocols": [
                  "https://didcomm.org/didexchange/1.1",
                  "https://didcomm.org/connections/1.0"
                ],
                "services": [
                  {
                    "id": "#inline-0",
                    "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
                    "type": "did-communication",
                    "recipientKeys": [
                      "did:key:z6MkvuZYnh7qXHkwN6TynQSXxs96RpbQWbJKMAJhpwX8jbiy"
                    ],
                    "routingKeys": []
                  }
                ],
                "imageUrl": "https://acme-corp.com/connection.png"
              },
              "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
              "autoAcceptConnection": true,
              "reusable": false,
              "alias": "name"
            },
            {
              "invitationId": "d2e8903d-e65e-4543-bfbe-ede68fb88fb2",
              "state": "completed",
              "invitationJson": {
                "@type": "https://didcomm.org/out-of-band/1.1/invitation",
                "@id": "06d204ed-a2b6-468a-9d4e-974532612372",
                "label": "label",
                "accept": [
                  "didcomm/aip1",
                  "didcomm/aip2;env=rfc19"
                ],
                "handshake_protocols": [
                  "https://didcomm.org/didexchange/1.1",
                  "https://didcomm.org/connections/1.0"
                ],
                "services": [
                  {
                    "id": "#inline-0",
                    "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
                    "type": "did-communication",
                    "recipientKeys": [
                      "did:key:z6MkvvrtQWDufzySijPFQWbKY3ZbJksi5hQW5V7FAgzo1tuN"
                    ],
                    "routingKeys": []
                  }
                ],
                "imageUrl": "https://acme-corp.com/connection.png"
              },
              "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
              "autoAcceptConnection": true,
              "reusable": false,
              "alias": "name"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the invitation listing was retrieved successfully. Returns `true` even when no invitations exist (empty array)."
          },
          "response": {
            "type": "array",
            "description": "All OOB connection invitation records created by this organization, ordered by creation time descending. Includes all lifecycle states — `pending` (not yet accepted) and `completed` (handshake finished). Empty array if no invitations exist.",
            "items": {
              "type": "object",
              "properties": {
                "invitationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this invitation record. Use to poll invitation state, correlate with an established connection, or pass as `invitationId` to the Find Connection endpoint."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "completed"
                  ],
                  "description": "Invitation lifecycle state. `pending` — issued, awaiting the holder to scan and complete the DIDComm handshake. `completed` — a holder's wallet responded and an active connection was established."
                },
                "invitationJson": {
                  "type": "object",
                  "description": "Raw DIDComm OOB 1.1 invitation object (Aries RFC 0434). All other representations (`invitationBase64`) are derived from this canonical object.",
                  "properties": {
                    "@type": {
                      "type": "string",
                      "description": "DIDComm message type URI. Always `https://didcomm.org/out-of-band/1.1/invitation` — wallet agents use this to dispatch the message to the correct protocol handler."
                    },
                    "@id": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Unique message ID inside the DIDComm envelope. Distinct from `invitationId` — used by recipient agents for message deduplication and thread correlation."
                    },
                    "label": {
                      "type": "string",
                      "description": "Display name shown in the holder's wallet when presenting the connection request."
                    },
                    "accept": {
                      "type": "array",
                      "description": "DIDComm envelope profiles this agent supports, in preference order. Enables interoperability with AIP 1.0 and AIP 2.0 RFC19 wallet implementations.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "handshake_protocols": {
                      "type": "array",
                      "description": "DIDComm handshake protocol URIs this agent accepts. The holder's wallet selects the first mutually supported entry — `didexchange/1.1` preferred, `connections/1.0` as legacy fallback.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "services": {
                      "type": "array",
                      "description": "Inline DIDComm service descriptors the holder's wallet uses to route the handshake response back to this agent.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Fragment identifier for this service entry. Uses the `#inline-N` convention for inline definitions not resolvable as standalone DID Documents."
                          },
                          "serviceEndpoint": {
                            "type": "string",
                            "format": "url",
                            "description": "Publicly reachable HTTPS URL of this organization's DIDComm agent. The holder's wallet POSTs the `did-exchange/request` here to initiate the handshake."
                          },
                          "type": {
                            "type": "string",
                            "description": "Service type descriptor. `did-communication` identifies a DIDComm v1 messaging endpoint."
                          },
                          "recipientKeys": {
                            "type": "array",
                            "description": "List of `did:key` URIs representing this agent's public keys for this invitation. Each invitation generates a unique key pair — recipient keys differ across invitation records.",
                            "items": {
                              "type": "string"
                            }
                          },
                          "routingKeys": {
                            "type": "array",
                            "description": "Optional mediator routing keys. Empty array means the agent is directly reachable at `serviceEndpoint`.",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "imageUrl": {
                      "type": "string",
                      "format": "url",
                      "description": "Organization's branding image displayed in the holder's wallet during the connection acceptance prompt."
                    }
                  }
                },
                "invitationBase64": {
                  "type": "string",
                  "description": "Base64 encoding of `invitationJson`. Used to construct the `oob` query parameter for deep links or QR codes. Callers must reconstruct `invitationUrl` by appending `?oob=<invitationBase64>` — this endpoint does not return `invitationUrl`."
                },
                "autoAcceptConnection": {
                  "type": "boolean",
                  "description": "Acceptance mode configured at invitation creation. `true` — agent completed the handshake automatically. `false` — explicit operator approval was required."
                },
                "reusable": {
                  "type": "boolean",
                  "description": "`false` — single-use invitation, expires after the first wallet completes the handshake. `true` — reusable invitation suitable for public-facing QR codes."
                },
                "alias": {
                  "type": "string",
                  "description": "Server-side human-readable label assigned at creation time (e.g., customer name or internal tag). Purely local to the organization's agent — never transmitted to the holder's wallet."
                }
              }
            }
          }
        }
      },
      "GetConnectionInvitationResponse": {
        "title": "Get Connection Invitation Response",
        "type": "object",
        "description": "Returned when retrieving a single OOB connection invitation record by its `invitationId`. The `response` array always contains at most one item — the matched invitation in whatever its current state is (`pending` or `completed`). Returns an empty array if no invitation exists for the given ID.",
        "example": {
          "success": true,
          "response": [
            {
              "invitationId": "9ef3a9eb-dcce-499b-8210-c5c3da743644",
              "state": "pending",
              "invitationJson": {
                "@type": "https://didcomm.org/out-of-band/1.1/invitation",
                "@id": "25667087-db22-4ccb-9063-73f484be6d39",
                "label": "label",
                "accept": [
                  "didcomm/aip1",
                  "didcomm/aip2;env=rfc19"
                ],
                "handshake_protocols": [
                  "https://didcomm.org/didexchange/1.1",
                  "https://didcomm.org/connections/1.0"
                ],
                "services": [
                  {
                    "id": "#inline-0",
                    "serviceEndpoint": "https://core-agent-dev.hovi.id/agent",
                    "type": "did-communication",
                    "recipientKeys": [
                      "did:key:z6MkvuZYnh7qXHkwN6TynQSXxs96RpbQWbJKMAJhpwX8jbiy"
                    ],
                    "routingKeys": []
                  }
                ],
                "imageUrl": "https://acme-corp.com/connection.png"
              },
              "invitationBase64": "eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24...",
              "autoAcceptConnection": true,
              "reusable": false,
              "alias": "name"
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the lookup was successfully executed. Returns `true` even when no matching invitation is found (empty array)."
          },
          "response": {
            "type": "array",
            "description": "Array containing at most one invitation record matching the requested `invitationId`. Single-item array when found; empty array (`[]`) if no invitation exists. Scoped to a single record lookup unlike `GetConnectionInvitationsResponse`.",
            "maxItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "invitationId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Server-assigned UUID for this invitation record. Matches the `invitationId` parameter used to retrieve it."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "completed"
                  ],
                  "description": "Invitation lifecycle state. `pending` — issued, holder has not yet completed the DIDComm handshake. `completed` — holder's wallet responded and an active connection was established."
                },
                "invitationJson": {
                  "type": "object",
                  "description": "Raw DIDComm OOB 1.1 invitation object (Aries RFC 0434). Canonical form — all other representations (`invitationBase64`) are derived from this object.",
                  "properties": {
                    "@type": {
                      "type": "string",
                      "description": "DIDComm message type URI. Always `https://didcomm.org/out-of-band/1.1/invitation` — wallet agents use this to dispatch to the correct OOB protocol handler."
                    },
                    "@id": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Unique message ID inside the DIDComm envelope. Distinct from `invitationId` — used by recipient agents for deduplication and thread correlation during the handshake."
                    },
                    "label": {
                      "type": "string",
                      "description": "Display name shown in the holder's wallet when presenting the connection request."
                    },
                    "accept": {
                      "type": "array",
                      "description": "DIDComm envelope profiles this agent supports. `didcomm/aip1` and `didcomm/aip2;env=rfc19` enable interoperability across AIP 1.0 and AIP 2.0 wallet implementations.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "handshake_protocols": {
                      "type": "array",
                      "description": "DIDComm handshake protocol URIs this agent accepts. The holder's wallet picks the first mutually supported entry — `didexchange/1.1` preferred, `connections/1.0` as legacy fallback.",
                      "items": {
                        "type": "string"
                      }
                    },
                    "services": {
                      "type": "array",
                      "description": "Inline DIDComm service descriptors the holder's wallet uses to route the handshake response to this agent.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Fragment identifier for this service entry using the `#inline-N` convention."
                          },
                          "serviceEndpoint": {
                            "type": "string",
                            "format": "url",
                            "description": "Publicly reachable HTTPS URL of this organization's DIDComm agent. The holder's wallet POSTs the `did-exchange/request` here."
                          },
                          "type": {
                            "type": "string",
                            "description": "Service type descriptor. `did-communication` identifies a DIDComm v1 messaging endpoint."
                          },
                          "recipientKeys": {
                            "type": "array",
                            "description": "List of `did:key` URIs for this agent's public keys for this specific invitation. Each invitation generates a unique key pair for encryption of the outbound DIDComm handshake.",
                            "items": {
                              "type": "string"
                            }
                          },
                          "routingKeys": {
                            "type": "array",
                            "description": "Optional mediator routing keys. Empty array means the agent is directly reachable at `serviceEndpoint`.",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "imageUrl": {
                      "type": "string",
                      "format": "url",
                      "description": "Organization's branding image displayed in the holder's wallet during the connection acceptance prompt."
                    }
                  }
                },
                "invitationBase64": {
                  "type": "string",
                  "description": "Base64 encoding of `invitationJson`. Used to construct the `oob` query parameter for deep links or QR codes. Callers must reconstruct `invitationUrl` by appending `?oob=<invitationBase64>` — this endpoint does not return `invitationUrl` directly."
                },
                "autoAcceptConnection": {
                  "type": "boolean",
                  "description": "Acceptance mode at invitation creation. `true` — agent completed the handshake automatically. `false` — explicit operator approval was required."
                },
                "reusable": {
                  "type": "boolean",
                  "description": "`false` — single-use invitation, expires after the first wallet completes the handshake. `true` — reusable invitation, suitable for public-facing QR codes or shareable deep links."
                },
                "alias": {
                  "type": "string",
                  "description": "Server-side human-readable label assigned at creation (e.g., customer name or internal tag). Never transmitted to the holder's wallet."
                }
              }
            }
          }
        }
      },
      "getConnectionsByInvitationId": {
        "title": "Get Connections By Invitation ID",
        "type": "object",
        "required": [
          "invitationId"
        ],
        "description": "The data required to retrieve all DIDComm connection records associated with a specific Out-of-Band invitation ID (useful for multi-use invitations where multiple wallets may have connected via the same invitation URL).",
        "example": {
          "invitationId": "ab209278-db43-45dc-b74e-56a0d83c6f50"
        },
        "properties": {
          "invitationId": {
            "type": "string",
            "format": "uuid",
            "example": "ab209278-db43-45dc-b74e-56a0d83c6f50",
            "description": "Unique identifier of the DIDComm OOB invitation to look up connections for."
          }
        }
      },
      "createConnectionInvitation": {
        "title": "Create Connection Invitation",
        "type": "object",
        "required": [
          "label"
        ],
        "description": "The data required to generate a new DIDComm Out-of-Band (OOB) connection invitation. The invitation URL or Base64 payload can be rendered as a QR code or deep link for a holder's wallet to scan and establish a secure DIDComm peer channel.",
        "example": {
          "label": "Acme Corp Patient Portal",
          "alias": "patient-portal",
          "autoAcceptConnection": true,
          "multiUseInvitation": false,
          "domain": "acme-corp.com",
          "imageUrl": "https://acme-corp.com/connection.png"
        },
        "properties": {
          "label": {
            "type": "string",
            "example": "Acme Corp Patient Portal",
            "description": "Display name shown in the holder's wallet when they receive this invitation — the friendly name used when deciding whether to accept the connection."
          },
          "alias": {
            "type": "string",
            "example": "patient-portal",
            "description": "Optional internal alias for this connection (used in the organization's own systems — not shown to the holder)."
          },
          "autoAcceptConnection": {
            "type": "boolean",
            "example": true,
            "default": true,
            "enum": [
              true,
              false
            ],
            "description": "Whether Hovi automatically completes the DIDComm handshake when the holder's wallet responds. `true` recommended — connection moves to `completed` without an additional API call."
          },
          "multiUseInvitation": {
            "type": "boolean",
            "example": false,
            "default": false,
            "enum": [
              true,
              false
            ],
            "description": "Whether this invitation can be accepted by multiple wallets. `true` = reusable QR code. `false` = single-use, expires after the first connection is established."
          },
          "domain": {
            "type": "string",
            "example": "acme-corp.com",
            "description": "Optional custom domain for the invitation URL. Defaults to the Hovi agent domain if omitted."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/connection.png",
            "description": "Organization's image displayed in the holder's wallet during the connection acceptance flow. Must be a publicly accessible URL returning a valid image."
          }
        }
      },
      "getCredentialById": {
        "title": "Get Credential By ID",
        "type": "object",
        "required": [
          "credentialExchangeId"
        ],
        "description": "The data required to retrieve a specific credential exchange record by its unique identifier.",
        "example": {
          "credentialExchangeId": "97fca255-438f-49bb-afb7-defbf1b12ced"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "97fca255-438f-49bb-afb7-defbf1b12ced",
            "description": "Unique identifier of the credential exchange record to retrieve."
          }
        }
      },
      "issueAnoncredCredential": {
        "title": "Issue AnonCreds Credential",
        "type": "object",
        "required": [
          "connectionId",
          "credentialTemplateId",
          "credentialValues"
        ],
        "description": "The data required to issue an AnonCreds Verifiable Credential to a holder over an existing DIDComm connection. The credential offer is sent directly to the holder's wallet via the DIDComm peer channel — no QR code or OID4VCI offer URL is used for AnonCreds issuance on Cheqd.",
        "example": {
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          },
          "comment": "Issuing patient ID credential for registered patient."
        },
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Established DIDComm connection to the holder's wallet over which the credential offer will be sent (must be in `completed` state)."
          },
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "AnonCreds credential template to use for this issuance — defines which on-chain schema and Credential Definition on Cheqd will be used to sign the credential."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "Key-value map of attribute names to their values for this specific credential instance. Keys must match the template attribute names. All AnonCreds values must be strings (e.g., `\"30\"` not `30`).",
            "additionalProperties": {
              "type": "string"
            }
          },
          "comment": {
            "type": "string",
            "example": "Issuing patient ID credential for registered patient.",
            "description": "Optional human-readable comment attached to the credential offer for internal tracking or holder context."
          }
        }
      },
      "issueJsonLdCredential": {
        "title": "Issue JSON-LD Credential",
        "type": "object",
        "required": [
          "connectionId",
          "holderDid",
          "credentialTemplateId",
          "credentialValues"
        ],
        "description": "The data required to issue a W3C JSON-LD Verifiable Credential to a holder over an existing DIDComm connection. The credential is signed using the organization's `did:cheqd` DID and delivered to the holder's wallet via the DIDComm peer channel.",
        "example": {
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
          "holderDid": "did:key:z6MkhKV3YrsT9SFzEYH8JDay6MF8Psk25ditSp1etvJUaowi",
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          },
          "comment": "Issuing university degree credential for graduating student."
        },
        "properties": {
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Established DIDComm connection to the holder's wallet (must be in `completed` state)."
          },
          "holderDid": {
            "type": "string",
            "example": "did:key:z6MkhKV3YrsT9SFzEYH8JDay6MF8Psk25ditSp1etvJUaowi",
            "description": "The holder's DID — set as `credentialSubject.id` in the issued W3C JSON-LD credential. Typically the holder's `did:key` or `did:peer` DID from their wallet."
          },
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "JSON-LD credential template to use — defines the schema context URL and `@type` embedded in the signed W3C Verifiable Credential."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "Key-value map of attribute names to their values. Keys must match the template attribute names.",
            "additionalProperties": {
              "type": "string"
            }
          },
          "comment": {
            "type": "string",
            "example": "Issuing university degree credential for graduating student.",
            "description": "Optional human-readable comment attached to the credential offer."
          }
        }
      },
      "issueJwtVcCredential": {
        "title": "Issue JWT-VC Credential",
        "type": "object",
        "required": [
          "schemaId",
          "credentialValues"
        ],
        "description": "The data required to issue a JWT-VC (W3C Verifiable Credential encoded as a signed JWT rather than JSON-LD) to a holder.",
        "example": {
          "schemaId": "ceff35e7-8625-40f3-a0f3-316784593e29",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          }
        },
        "properties": {
          "schemaId": {
            "type": "string",
            "format": "uuid",
            "example": "ceff35e7-8625-40f3-a0f3-316784593e29",
            "description": "Unique identifier of the schema to use for this JWT-VC issuance."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "Key-value map of attribute names to their values for this JWT-VC credential instance.",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "issueSdJwtCredential": {
        "title": "Issue SD-JWT Credential",
        "type": "object",
        "required": [
          "credentialTemplateId",
          "credentialValues"
        ],
        "description": "The data required to issue an SD-JWT Verifiable Credential (Selective Disclosure JWT — individual claims are independently salted and hashed, allowing the holder to selectively disclose only chosen attributes to a Verifier).",
        "example": {
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
          "credentialValues": {
            "name": "John Doe",
            "age": "30"
          }
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "Identifier of the SD-JWT credential template to use for this issuance."
          },
          "credentialValues": {
            "type": "object",
            "example": {
              "name": "John Doe",
              "age": "30"
            },
            "description": "Key-value map of attribute names to their values. Each attribute will be individually salted and hashed in the SD-JWT, enabling selective disclosure by the holder.",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "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": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "description": "Unique identifier of the verification template to retrieve."
          }
        }
      },
      "createAnoncredVerificationTemplate": {
        "title": "Create AnonCreds Verification Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description"
        ],
        "description": "The data required to create a new AnonCreds verification template (a proof request blueprint specifying which AnonCreds credential attributes to request, which zero-knowledge predicates to enforce, and on-chain schema/issuer restrictions for the Cheqd network).",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Patient ID",
          "version": "1.0.1",
          "description": "Patient ID Card Verification",
          "image": "https://acme-corp.com/patient.png",
          "requestedAttributes": [
            {
              "name": "name",
              "label": "Name",
              "type": "string",
              "description": "Name of the patient"
            },
            {
              "name": "age",
              "label": "Age",
              "type": "string",
              "description": "Age of the patient"
            }
          ],
          "requestedPredicates": [
            {
              "name": "age",
              "p_type": ">=",
              "p_value": 18
            }
          ],
          "restrictions": [
            {
              "issuer_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
              "schema_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L/anoncreds/v0/SCHEMA/Patient ID/1.0.3"
            },
            {
              "issuer_id": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L"
            }
          ],
          "nonRevokeInterval": {
            "from": 0,
            "to": 1818287379415
          }
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this verification template belongs to.\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": "Patient ID",
            "description": "Human-readable name for the verification template."
          },
          "version": {
            "type": "string",
            "example": "1.0.1",
            "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 pointing to the credential logo (the image shown for this credential).\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          },
          "requestedAttributes": {
            "type": "array",
            "description": "Credential attributes (claims) the Verifier is requesting the holder to disclose in their AnonCreds proof presentation. All requested attributes are required for verification.",
            "items": {
              "$ref": "#/components/schemas/VerificationRequestedAttribute"
            }
          },
          "requestedPredicates": {
            "type": "array",
            "description": "Zero-knowledge predicates to enforce — conditions the holder proves about their attributes without revealing raw values (e.g., proving `age >= 18` without disclosing the actual value).",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "age",
                  "description": "Credential attribute name this predicate applies to."
                },
                "p_type": {
                  "type": "string",
                  "enum": [
                    ">=",
                    "<=",
                    ">",
                    "<"
                  ],
                  "example": ">=",
                  "description": "Comparison operator for the zero-knowledge predicate."
                },
                "p_value": {
                  "type": "number",
                  "example": 18,
                  "description": "Threshold value the attribute is compared against."
                }
              }
            }
          },
          "restrictions": {
            "type": "array",
            "description": "AnonCreds proof restrictions constraining which credentials can satisfy this proof request. Each object can specify `issuer_id` (only accept credentials from this Cheqd DID) and/or `schema_id` (only accept credentials issued against this on-chain schema URL). Multiple restriction objects are OR-ed together.",
            "items": {
              "type": "object",
              "properties": {
                "issuer_id": {
                  "type": "string",
                  "example": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
                  "description": "Restricts accepted credentials to those signed by this specific issuer DID on the Cheqd network."
                },
                "schema_id": {
                  "type": "string",
                  "example": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L/anoncreds/v0/SCHEMA/Patient ID/1.0.3",
                  "description": "Restricts accepted credentials to those issued against this specific AnonCreds schema resource URL on Cheqd."
                }
              }
            }
          },
          "nonRevokeInterval": {
            "type": "object",
            "description": "Optional non-revocation interval — the time window during which the credential must have been non-revoked on the Cheqd StatusList2021 on-chain registry. If omitted, revocation status is not checked.",
            "properties": {
              "from": {
                "type": "number",
                "example": 0,
                "description": "Start of the non-revocation interval as a Unix epoch timestamp in milliseconds."
              },
              "to": {
                "type": "number",
                "example": 1818287379415,
                "description": "End of the non-revocation interval as a Unix epoch timestamp in milliseconds."
              }
            }
          }
        }
      },
      "createJsonLdVerificationTemplate": {
        "title": "Create JSON-LD Verification Template",
        "type": "object",
        "required": [
          "name",
          "version",
          "description"
        ],
        "description": "The data required to create a new JSON-LD verification template (a proof request blueprint targeting W3C JSON-LD Verifiable Credentials restricts accepted credentials by schema URL, issuer DID, or credential template rather than on-chain AnonCreds identifiers).",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Patient ID",
          "version": "1.0.1",
          "description": "Patient ID Card Verification",
          "image": "https://acme-corp.com/patient.png",
          "requestedAttributes": [
            {
              "name": "fullName",
              "type": "string",
              "label": "Full Name",
              "description": "Full legal name"
            },
            {
              "name": "age",
              "type": "number",
              "label": "Age",
              "description": "Age of the user"
            },
            {
              "name": "isVerified",
              "type": "boolean",
              "label": "Verification Status",
              "description": "Indicates whether the user is verified"
            },
            {
              "name": "profileImage",
              "type": "image",
              "label": "Profile Image",
              "description": "Profile picture of the user",
              "required": false
            },
            {
              "name": "dateOfBirth",
              "type": "date",
              "label": "Date of Birth",
              "description": "Birth date of the user",
              "required": true
            },
            {
              "name": "address",
              "type": "object",
              "label": "Address Information",
              "description": "Primary address details",
              "required": true,
              "attributes": [
                {
                  "name": "street",
                  "type": "string",
                  "label": "Street",
                  "description": "Street address",
                  "required": true
                },
                {
                  "name": "postalCode",
                  "type": "number",
                  "label": "Postal Code",
                  "description": "ZIP or postal code",
                  "required": true
                }
              ]
            },
            {
              "name": "organization",
              "type": "object",
              "label": "Organization Information",
              "description": "Organization related details",
              "required": true,
              "attributes": [
                {
                  "name": "organizationName",
                  "type": "string",
                  "label": "Organization Name",
                  "description": "Name of the organization",
                  "required": true
                },
                {
                  "name": "department",
                  "type": "object",
                  "label": "Department Information",
                  "description": "Nested department details",
                  "required": true,
                  "attributes": [
                    {
                      "name": "departmentName",
                      "type": "string",
                      "label": "Department Name",
                      "description": "Name of the department",
                      "required": true
                    },
                    {
                      "name": "employeeCount",
                      "type": "number",
                      "label": "Employee Count",
                      "description": "Number of employees in the department",
                      "required": false
                    }
                  ]
                }
              ]
            }
          ],
          "restrictions": {
            "credentialTemplateId": "68ca8867-7352-4b7a-95f4-0682e827f048",
            "issuerDid": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
            "schemaType": "mango",
            "schemaUrl": "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreic2polspfhmjo2e3i5znztnf376lgk2iyxo6gfco6q2gfxxk5hqrq"
          }
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this verification template belongs to.\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": "Patient ID",
            "description": "Human-readable name for the verification template."
          },
          "version": {
            "type": "string",
            "example": "1.0.1",
            "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 pointing to the credential logo (the image shown for this credential).\n\n**File Requirements:**\n* **Supported Formats:** `.jpeg`, `.jpg`, `.png`, `.gif`\n* **Maximum Size:** 3 MB"
          },
          "requestedAttributes": {
            "type": "array",
            "description": "JSON-LD credential attributes the Verifier is requesting the holder to disclose. All requested attributes are required for verification.",
            "items": {
              "$ref": "#/components/schemas/VerificationRequestedAttribute"
            }
          },
          "restrictions": {
            "type": "object",
            "description": "Defines which JSON-LD credentials can satisfy this proof request. All provided fields are AND-ed together.",
            "properties": {
              "credentialTemplateId": {
                "type": "string",
                "format": "uuid",
                "example": "7471bb29-e875-4462-996a-69b2379a5049",
                "description": "Restricts accepted credentials to those issued from this specific Hovi credential template ID."
              },
              "issuerDid": {
                "type": "string",
                "example": "did:cheqd:testnet:a7DYfoHpzJ1ksKt3SDV3L",
                "description": "Restricts accepted credentials to those signed by this specific issuer DID on the Cheqd network."
              },
              "schemaType": {
                "type": "string",
                "example": "Patient Record",
                "description": "Restricts accepted credentials to those whose JSON-LD `@type` matches this schema type string."
              },
              "schemaUrl": {
                "type": "string",
                "format": "url",
                "example": "https://hovi.id/schemas/QmfDe5Xr8ur73L6NU8xJXZkwxkEDb6f1YZh8e4KrJo96TA",
                "description": "Restricts accepted credentials to those issued against this specific JSON-LD schema URL."
              }
            }
          }
        }
      },
      "createJwtVcVerificationTemplate": {
        "title": "Create JWT-VC Verification Template",
        "type": "object",
        "required": [
          "name",
          "description"
        ],
        "description": "The data required to create a new JWT-VC verification template (a proof request blueprint targeting JWT-encoded W3C Verifiable Credentials).",
        "example": {
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "schemaId": "ceff35e7-8625-40f3-a0f3-316784593e29",
          "schemaType": "Patient Record",
          "name": "Patient ID",
          "description": "Patient ID Card Verification",
          "image": "https://acme-corp.com/patient.png",
          "requestedAttributes": []
        },
        "properties": {
          "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": "The unique identifier specifying the industry or sector this verification template belongs to.\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` |"
          },
          "schemaId": {
            "type": "string",
            "format": "uuid",
            "example": "ceff35e7-8625-40f3-a0f3-316784593e29",
            "description": "Unique identifier of the schema this JWT-VC verification template targets."
          },
          "schemaType": {
            "type": "string",
            "example": "Patient Record",
            "description": "JWT-VC credential type string — restricts accepted credentials to those of this specific type."
          },
          "name": {
            "type": "string",
            "example": "Patient ID",
            "description": "Human-readable name 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 verification request screen."
          },
          "requestedAttributes": {
            "type": "array",
            "description": "Credential attributes the Verifier is requesting the holder to disclose.",
            "items": {
              "$ref": "#/components/schemas/CredentialAttribute"
            }
          }
        }
      },
      "getProofRequestById": {
        "title": "Get Proof Request By ID",
        "type": "object",
        "required": [
          "proofExchangeId"
        ],
        "description": "The data required to retrieve a specific proof exchange record by its unique identifier.",
        "example": {
          "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
            "description": "Unique identifier of the proof exchange session to retrieve."
          }
        }
      },
      "getProofResponseById": {
        "title": "Get Proof Response By ID",
        "type": "object",
        "required": [
          "presentationId"
        ],
        "description": "The data required to retrieve a specific proof presentation response by its presentation identifier.",
        "example": {
          "presentationId": "75a869fa-0d6b-49e1-9332-35c959e42653"
        },
        "properties": {
          "presentationId": {
            "type": "string",
            "format": "uuid",
            "example": "75a869fa-0d6b-49e1-9332-35c959e42653",
            "description": "Unique identifier of the proof presentation to retrieve."
          }
        }
      },
      "sendProofRequest": {
        "title": "Send Proof Request",
        "type": "object",
        "required": [
          "verificationTemplateId",
          "connectionId"
        ],
        "description": "The data required to send a DIDComm proof request to a holder over an established connection, using a previously created verification template as the blueprint for the proof request.",
        "example": {
          "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
          "comment": "Please present your Patient ID credential for age verification."
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "description": "Verification template to use as the proof request blueprint — defines which attributes to request and which ZK predicates to enforce."
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "Established DIDComm connection to the holder's wallet over which the proof request will be sent (must be in `completed` state)."
          },
          "comment": {
            "type": "string",
            "example": "Please present your Patient ID credential for age verification.",
            "description": "Optional human-readable comment attached to the proof request providing context to the holder about why their credentials are being requested."
          }
        }
      },
      "DeleteTemplateByVerificationTemplateId": {
        "title": "Delete Verification Template",
        "type": "object",
        "required": [
          "verificationTemplateId"
        ],
        "description": "The data required to permanently delete a verification template. Deleted templates cannot be used in future proof requests.",
        "example": {
          "verificationTemplateId": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "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": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "name": "Updated Patient ID Verification",
          "description": "Updated description for patient ID verification",
          "image": "https://acme-corp.com/updated-patient.png"
        },
        "properties": {
          "verificationTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "8b9f12e8-3bab-423d-b1dc-2797b2df77ca",
            "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 or sector category identifier 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` |"
          },
          "name": {
            "type": "string",
            "example": "Updated Patient ID Verification",
            "description": "Updated human-readable name for the verification template."
          },
          "description": {
            "type": "string",
            "example": "Updated description for patient ID 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": "URL pointing to the credential logo (the image shown for this credential).\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. Note: the underlying AnonCreds schema and Credential Definition on the Cheqd blockchain cannot be modified — only Hovi-side display fields (image, category) can be updated.",
        "example": {
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049",
          "categoryId": "9636b597-cbe2-492a-bf92-87641729e6e4",
          "image": "https://acme-corp.com/updated-patient.png"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "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 or sector category identifier for this credential 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` |"
          },
          "image": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/updated-patient.png",
            "description": "Updated URL of the credential card background image displayed in the holder's wallet. Must be a publicly accessible URL; recommended formats: PNG or JPEG."
          }
        }
      },
      "DeleteCredentialTemplate": {
        "title": "Delete Credential Template",
        "type": "object",
        "required": [
          "credentialTemplateId"
        ],
        "description": "The data required to permanently delete a credential template from Hovi. Note: this removes the Hovi record only — the AnonCreds schema and Credential Definition previously published to the Cheqd blockchain remain on-chain and cannot be deleted.",
        "example": {
          "credentialTemplateId": "7471bb29-e875-4462-996a-69b2379a5049"
        },
        "properties": {
          "credentialTemplateId": {
            "type": "string",
            "format": "uuid",
            "example": "7471bb29-e875-4462-996a-69b2379a5049",
            "description": "Unique identifier of the credential template to delete."
          }
        }
      },
      "acceptConnectionInvitation": {
        "title": "Accept Connection Invitation",
        "type": "object",
        "required": [
          "invitationUrl"
        ],
        "description": "The data required for the organizational wallet to accept an inbound DIDComm OOB connection invitation from another party. Initiates the DIDComm DID Exchange handshake from the acceptor's side, establishing a new secure peer channel.",
        "example": {
          "invitationUrl": "https://hovi.id/agent?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIxN2Q3NjhjYS05MTFiLTQ1ZDMtOGM4MC04YzZiYjdmMDhmODIifQ==",
          "label": "Acme Corp",
          "alias": "acme-corp-connection",
          "imageUrl": "https://acme-corp.com/logo.png"
        },
        "properties": {
          "invitationUrl": {
            "type": "string",
            "format": "url",
            "example": "https://hovi.id/agent?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIxN2Q3NjhjYS05MTFiLTQ1ZDMtOGM4MC04YzZiYjdmMDhmODIifQ==",
            "description": "Full DIDComm OOB invitation URL to accept. The `oob` query parameter contains the Base64-encoded invitation — copy directly from the `invitationUrl` field of a `CreateConnectionResponse`."
          },
          "label": {
            "type": "string",
            "example": "Acme Corp",
            "description": "This organization's label presented to the inviting party during the DIDComm handshake — the name the inviter's system will see for this connection."
          },
          "alias": {
            "type": "string",
            "example": "acme-corp-connection",
            "description": "Optional internal alias for this connection in the organizational wallet's own systems — not visible to the other party."
          },
          "imageUrl": {
            "type": "string",
            "format": "url",
            "example": "https://acme-corp.com/logo.png",
            "description": "Optional URL of this organization's logo image to share with the inviting party during the connection handshake."
          }
        }
      },
      "AcceptConnectionResponse": {
        "title": "Accept Connection Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully initiates acceptance of a DIDComm connection invitation. The connection starts in `pending` state and transitions to `completed` once the DIDComm DID Exchange handshake is finalized by both parties.",
        "example": {
          "success": true,
          "response": {
            "invitationId": "41eb5887-f058-4a83-9e33-0da43e6b0ca3",
            "connectionId": "5bbfc16d-d9d0-45a2-baa8-04717ee353e3",
            "state": "peding",
            "theirLabel": "Cheqd Test Org",
            "alias": "my-connection",
            "imageUrl": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the connection acceptance was successfully initiated."
          },
          "response": {
            "type": "object",
            "properties": {
              "invitationId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the OOB invitation that was accepted."
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the new DIDComm connection record created by accepting this invitation."
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "completed",
                  "abandoned"
                ],
                "description": "Current connection state. Starts as `pending` during the DIDComm handshake; transitions to `completed` once both parties have exchanged DID documents."
              },
              "alias": {
                "type": "string",
                "description": "This organization's alias assigned to this connection."
              },
              "imageUrl": {
                "type": "string",
                "format": "url",
                "description": "URL of this organization's logo shared during the connection handshake."
              },
              "theirLabel": {
                "type": "string",
                "description": "The label provided by the inviting party during the DIDComm handshake — the name the other organization or wallet presented."
              }
            }
          }
        }
      },
      "acceptCredentialOffer": {
        "title": "Accept Credential Offer",
        "type": "object",
        "required": [
          "credentialExchangeId"
        ],
        "description": "The data required for the organizational wallet to accept an inbound credential offer from an Issuer. Accepting triggers the DIDComm Issue Credential protocol — the Issuer signs and delivers the credential to the organizational wallet.",
        "example": {
          "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "16950792-f3ac-4041-abc7-788b5f863d4f",
            "description": "Unique identifier of the credential exchange record for the offer to accept (obtained from the credential offer webhook notification or by listing credential exchanges)."
          }
        }
      },
      "AcceptCredentialOfferResponse": {
        "title": "Accept Credential Offer Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully accepts a credential offer. The Issuer will now sign and deliver the Verifiable Credential to the organizational wallet.",
        "example": {
          "success": true,
          "message": "Credential offer accepted successfully."
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the credential offer was successfully accepted."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "declineCredentialOffer": {
        "title": "Decline Credential Offer",
        "type": "object",
        "required": [
          "credentialExchangeId"
        ],
        "description": "The data required for the organizational wallet to decline (reject) an inbound credential offer from an Issuer. The credential exchange will move to `abandoned` state.",
        "example": {
          "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "16950792-f3ac-4041-abc7-788b5f863d4f",
            "description": "Unique identifier of the credential exchange record for the offer to decline."
          }
        }
      },
      "DeclineCredentialOfferResponse": {
        "title": "Decline Credential Offer Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully declines a credential offer.",
        "example": {
          "success": true,
          "message": "Credential offer declined successfully."
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the credential offer was successfully declined."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "deleteCredential": {
        "title": "Delete Credential",
        "type": "object",
        "required": [
          "credentialId"
        ],
        "description": "The data required to delete a stored Verifiable Credential from the organizational wallet. Removes the credential from local storage — does not affect the on-chain credential definition or revocation registry.",
        "example": {
          "credentialId": "54c157b7-7819-4818-8098-04a5e1ed9b81"
        },
        "properties": {
          "credentialId": {
            "type": "string",
            "format": "uuid",
            "example": "54c157b7-7819-4818-8098-04a5e1ed9b81",
            "description": "Unique identifier of the stored credential record to delete from the organizational wallet."
          }
        }
      },
      "previewCredentialOffer": {
        "title": "Preview Credential Offer",
        "type": "object",
        "required": [
          "credentialExchangeId",
          "connectionId"
        ],
        "description": "The data required to preview the contents of an inbound credential offer before accepting or declining it. Returns the credential's type, attributes, issuer DID, and issuance metadata so the organization can make an informed decision.",
        "example": {
          "credentialExchangeId": "16950792-f3ac-4041-abc7-788b5f863d4f",
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
        },
        "properties": {
          "credentialExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "16950792-f3ac-4041-abc7-788b5f863d4f",
            "description": "Unique identifier of the credential exchange record to preview."
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "UUID of the DIDComm connection over which this credential offer was received."
          }
        }
      },
      "PreviewCredentialOfferResponse": {
        "title": "Preview Credential Offer Response",
        "type": "object",
        "description": "Returned when previewing an inbound credential offer before accepting or declining. Contains the credential's format, claim values, issuer DID, holder DID, JSON-LD context, and issuer display metadata — giving the holder agent a complete view of what will be stored if the offer is accepted.",
        "example": {
          "success": true,
          "response": {
            "credentialType": "ldp_vc",
            "communicationProtocol": "didcomm",
            "type": "jsonld.creden",
            "name": "jsonld.creden",
            "attributes": {
              "name": "John Doe"
            },
            "issuer": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
            "issuanceDate": "2026-05-06T10:26:45.375Z",
            "holder": "did:key:z6Mkr9A5EhymnYLmbF1trgn5GAhKDC7HdLJ5riFkv5AgQ11L",
            "context": [
              "https://www.w3.org/2018/credentials/v1",
              "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreifi3qupvhxbv47af2abpfzmrxqouql2z5akocsbllvjnrrczczwba"
            ],
            "metadata": {
              "issuer": {
                "alias": "my-connection",
                "name": "Cheqd Test Org",
                "logo": {
                  "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
                }
              }
            }
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates whether the credential offer preview was successfully retrieved. `false` signals the `credentialExchangeId` was not found or the offer is no longer previewable."
          },
          "response": {
            "type": "object",
            "description": "Full preview payload of the inbound credential offer — all information needed to make an informed accept or decline decision.",
            "properties": {
              "credentialType": {
                "type": "string",
                "enum": [
                  "ldp_vc",
                  "jwt_vc",
                  "anoncreds",
                  "sd_jwt_vc",
                  "mdoc"
                ],
                "description": "VC proof format of this offered credential. `ldp_vc` — W3C VC with Linked Data Proof. `jwt_vc` — W3C VC as signed JWT. `anoncreds` — Hyperledger AnonCreds with ZK proof. `sd_jwt_vc` — Selective Disclosure JWT VC. `mdoc` — ISO/IEC 18013-5 mobile document."
              },
              "communicationProtocol": {
                "type": "string",
                "enum": [
                  "didcomm"
                ],
                "description": "Protocol used to deliver this credential offer. `didcomm` — received as a DIDComm v1 `offer-credential` message over an established peer connection. `openid4vci` — received via the OID4VCI protocol."
              },
              "type": {
                "type": "string",
                "description": "JSON-LD `@type` value of the offered credential identifying its semantic type (e.g., `\"jsonld.creden\"`, `\"PatientRecord\"`). Shown to the holder before accepting."
              },
              "name": {
                "type": "string",
                "description": "Human-readable display name of the offered credential shown in the holder's wallet preview UI."
              },
              "attributes": {
                "type": "object",
                "description": "Flat key-value map of claim names and their concrete values as they will be encoded in the credential if accepted. Allows the holder to verify the exact data before committing.",
                "additionalProperties": {
                  "type": "string",
                  "description": "Claim value as a string."
                }
              },
              "issuer": {
                "type": "string",
                "description": "DID of the issuer who will sign this credential (e.g., `did:key:z6Mk...`, `did:cheqd:testnet:...`). Maps to the W3C VC `issuer` field. Holders can resolve this DID to verify the issuer's identity before accepting."
              },
              "issuanceDate": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp of when this credential was or will be issued. Maps to the W3C VC `issuanceDate` field and will be embedded in the signed credential."
              },
              "holder": {
                "type": "string",
                "description": "DID of the intended credential holder — the `credentialSubject.id` embedded in the signed credential. The holder agent should verify this matches its own DID before accepting."
              },
              "context": {
                "type": "array",
                "description": "JSON-LD `@context` URL array defining the semantic meaning of each claim field. First entry is always `https://www.w3.org/2018/credentials/v1`; subsequent entries point to schema-specific context documents.",
                "items": {
                  "type": "string",
                  "format": "url",
                  "description": "URL of a JSON-LD context document."
                }
              },
              "metadata": {
                "type": "object",
                "description": "Hovi-managed display metadata for wallet UI rendering. Contains issuer branding from the issuing organization's Hovi Studio profile.",
                "properties": {
                  "issuer": {
                    "type": "object",
                    "description": "Display metadata for the organization that sent this credential offer.",
                    "properties": {
                      "alias": {
                        "type": "string",
                        "description": "Local connection alias assigned to the DIDComm connection with this issuer on the holder's side — the holder-side label for the peer relationship."
                      },
                      "name": {
                        "type": "string",
                        "description": "Issuing organization's display name as configured in Hovi Studio. Shown in the holder's wallet during the credential preview."
                      },
                      "logo": {
                        "type": "object",
                        "description": "Issuing organization's logo for credential preview rendering in the holder's wallet.",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "url",
                            "description": "URL of the issuer's logo image. May point to a tenant-specific asset in blob storage."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "GetStoredCredentialsResponse": {
        "title": "Get Stored Credentials Response",
        "type": "object",
        "description": "Returned when listing all Verifiable Credentials stored in the organizational wallet. Each item represents a credential that has been issued to and accepted by this organization's wallet.",
        "example": {
          "success": true,
          "credentials": [
            {
              "id": "54c157b7-7819-4818-8098-04a5e1ed9b81",
              "createdAt": "2025-05-31T01:31:52.360Z",
              "updatedAt": "2025-05-31T01:31:52.360Z",
              "communicationProtocol": "didcomm",
              "credentialType": "ldp_vc",
              "issuerDid": "did:key:z6MketkTi8unsq2hoGpQp6ZMUkBABdm5UtPwQ91JBR6Wfx7T",
              "name": "Patient_Record",
              "type": "Patient_Record",
              "context": [
                "https://maroon-additional-grouse-745.mypinata.cloud/ipfs/bafkreicorx6edjj4hdqchl6vmipvt6auncg5ifhxfvwel6766hqacyzski",
                "https://www.w3.org/2018/credentials/v1"
              ],
              "attributes": {
                "name": "Geovany",
                "age": "45"
              },
              "issuanceDate": "2025-05-31T01:16:25.646Z",
              "holderDid": "did:key:z6Mkf4j8ePKm8ndg5UQFknxiydFM9YdaPzaehNg34jaM2f9P",
              "state": "done",
              "credentialExchangeId": "a8aff780-c38d-44ed-878a-9981dde27499",
              "metadata": {
                "issuer": {
                  "name": "test-label-37468",
                  "logo": {
                    "url": "https://loremflickr.com/640/480",
                    "alt": "test-label-37468"
                  }
                },
                "credential": {
                  "name": "Patient_Record"
                }
              }
            }
          ]
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "credentials": {
            "type": "array",
            "description": "All Verifiable Credentials stored in the organizational wallet.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Unique identifier for this stored credential record in the organizational wallet."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this credential was stored in the wallet."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this credential record was last updated."
                },
                "communicationProtocol": {
                  "type": "string",
                  "enum": [
                    "didcomm",
                    "openid4vci"
                  ],
                  "description": "Protocol used to deliver this credential to the wallet."
                },
                "credentialType": {
                  "type": "string",
                  "enum": [
                    "ldp_vc",
                    "jwt_vc",
                    "anoncreds",
                    "sd_jwt"
                  ],
                  "description": "Technical credential format of this stored credential."
                },
                "issuerDid": {
                  "type": "string",
                  "description": "DID of the Issuer who signed this credential."
                },
                "name": {
                  "type": "string",
                  "description": "Human-readable name of the credential."
                },
                "type": {
                  "type": "string",
                  "description": "JSON-LD `@type` string identifying the credential type."
                },
                "context": {
                  "type": "array",
                  "description": "JSON-LD `@context` URLs for this credential.",
                  "items": {
                    "type": "string",
                    "format": "url"
                  }
                },
                "attributes": {
                  "type": "object",
                  "description": "Key-value map of the credential's claim names and their disclosed values.",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "issuanceDate": {
                  "type": "string",
                  "format": "date-time",
                  "description": "ISO 8601 timestamp of when this credential was issued."
                },
                "holderDid": {
                  "type": "string",
                  "description": "DID of the credential holder — this organizational wallet's DID as the `credentialSubject.id`."
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "done",
                    "pending",
                    "abandoned"
                  ],
                  "description": "Current state of the credential in the wallet. `done` — credential is fully issued and stored."
                },
                "credentialExchangeId": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the credential exchange session that resulted in this stored credential."
                },
                "metadata": {
                  "type": "object",
                  "description": "Display metadata for rendering the credential in the wallet UI.",
                  "properties": {
                    "issuer": {
                      "type": "object",
                      "description": "Issuer display information shown in the wallet UI.",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Display name of the issuing organization."
                        },
                        "logo": {
                          "type": "object",
                          "description": "Issuer logo metadata.",
                          "properties": {
                            "url": {
                              "type": "string",
                              "format": "url",
                              "description": "URL of the issuer's logo image."
                            },
                            "alt": {
                              "type": "string",
                              "description": "Accessibility alt-text for the issuer's logo."
                            }
                          }
                        }
                      }
                    },
                    "credential": {
                      "type": "object",
                      "description": "Credential-level display metadata.",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Display name of the credential."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "declineProofRequest": {
        "title": "Decline Proof Request",
        "type": "object",
        "required": [
          "proofExchangeId"
        ],
        "description": "The data required for the organizational wallet to decline (reject) an inbound proof request from a Verifier. The proof exchange will move to `abandoned` state and the Verifier will be notified.",
        "example": {
          "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
            "description": "Unique identifier of the proof exchange session to decline."
          }
        }
      },
      "DeclineProofRequestResponse": {
        "title": "Decline Proof Request Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully declines a proof request.",
        "example": {
          "success": true,
          "message": "Proof request declined successfully."
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the proof request was successfully declined."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "submitPresentation": {
        "title": "Submit Presentation",
        "type": "object",
        "required": [
          "proofExchangeId"
        ],
        "description": "The data required for the organizational wallet to submit a Verifiable Presentation (a cryptographically signed response containing selected credentials or derived proofs that satisfy the Verifier's requested attributes and predicates) in response to an inbound proof request.",
        "example": {
          "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
          "credentialId": "54c157b7-7819-4818-8098-04a5e1ed9b81"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
            "description": "Unique identifier of the proof exchange session to respond to."
          },
          "credentialId": {
            "type": "string",
            "format": "uuid",
            "example": "54c157b7-7819-4818-8098-04a5e1ed9b81",
            "description": "Optional UUID of the specific stored credential to use in the presentation. If omitted, Hovi automatically selects the best matching credential from the wallet that satisfies the proof request requirements."
          }
        }
      },
      "SubmitPresentationResponse": {
        "title": "Submit Presentation Response",
        "type": "object",
        "description": "Returned after the organizational wallet successfully submits a Verifiable Presentation to the Verifier. The Verifier's system will cryptographically verify the presentation and update the proof exchange state.",
        "example": {
          "success": true,
          "message": "Presentation submitted successfully."
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the presentation was successfully submitted."
          },
          "message": {
            "type": "string",
            "description": "Human-readable confirmation message."
          }
        }
      },
      "previewProofRequest": {
        "title": "Preview Proof Request",
        "type": "object",
        "required": [
          "proofExchangeId",
          "connectionId"
        ],
        "description": "The data required to preview the details of an inbound proof request before accepting or declining it. Returns the requested attributes, zero-knowledge predicates, and the presentation definition so the organization can review what credentials will be shared.",
        "example": {
          "proofExchangeId": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
          "connectionId": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb"
        },
        "properties": {
          "proofExchangeId": {
            "type": "string",
            "format": "uuid",
            "example": "43d737ae-6a03-4b1e-a670-94a1c2adc4b5",
            "description": "Unique identifier of the proof exchange session to preview."
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "example": "5f3d9cc9-6ce1-434e-af8e-c7df69a46bcb",
            "description": "UUID of the DIDComm connection over which this proof request was received."
          }
        }
      },
      "PreviewProofRequestResponse": {
        "title": "Preview Proof Request Response",
        "type": "object",
        "description": "Returned when previewing an inbound proof request. Contains the credential format, requested attributes, zero-knowledge predicates, and the full AnonCreds presentation definition — allowing the organizational wallet to understand exactly what will be shared before submitting a presentation.",
        "example": {
          "success": true,
          "response": {
            "credentials": [],
            "presentationDefinition": {
              "name": "Marraige Verify",
              "version": "1.0.0",
              "nonce": "208751094815570559888756",
              "requested_attributes": {
                "attributes": {
                  "names": [
                    "name"
                  ],
                  "restrictions": [
                    {
                      "schema_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368/resources/5bb29482-e694-48cc-bd48-188ac367f797",
                      "issuer_id": "did:cheqd:testnet:a142e875-b39e-43c7-a434-faf3e1f58368"
                    }
                  ]
                }
              },
              "requested_predicates": {}
            },
            "metadata": {
              "verifier": {
                "alias": "my-connection",
                "name": "Cheqd Test Org",
                "logo": {
                  "url": "https://hovidevelopment.blob.core.windows.net/studio-assets/tenants/images/cheqd-test-org-image-1778051932556.svg%2Bxml"
                }
              }
            }
          }
        },
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the operation was successful."
          },
          "response": {
            "type": "object",
            "properties": {
              "credentialType": {
                "type": "string",
                "enum": [
                  "ldp_vc",
                  "jwt_vc",
                  "anoncreds",
                  "sd_jwt"
                ],
                "description": "The credential format this proof request targets."
              },
              "communicationProtocol": {
                "type": "string",
                "enum": [
                  "didcomm",
                  "openid4vp"
                ],
                "description": "Protocol used to deliver this proof request. `didcomm` — received over a DIDComm peer connection."
              },
              "zkpAttributes": {
                "type": "array",
                "description": "Zero-knowledge predicate conditions in this proof request — attributes the holder must prove satisfy a condition without revealing the raw value.",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The attribute name the predicate applies to."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        ">=",
                        "<=",
                        ">",
                        "<"
                      ],
                      "description": "Comparison operator for the zero-knowledge predicate."
                    },
                    "value": {
                      "type": "number",
                      "description": "Threshold value the attribute is compared against."
                    }
                  }
                }
              },
              "attributes": {
                "type": "object",
                "description": "Key-value map of requested attribute names and their values from the matching wallet credential — preview of what will be shared.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "presentationDefinition": {
                "type": "object",
                "description": "Full AnonCreds proof request / presentation definition sent by the Verifier — contains the name, version, cryptographic nonce, requested attribute groups with restrictions, and requested predicates."
              }
            }
          }
        }
      },
      "DidCommExchangeBase": {
        "type": "object",
        "required": [
          "id",
          "tenantId",
          "agentState",
          "state",
          "role",
          "threadId",
          "connectionId",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Organization-local exchange record identifier."
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization receiving this webhook."
          },
          "threadId": {
            "type": "string",
            "format": "uuid",
            "description": "DIDComm thread correlating both organizations’ records."
          },
          "connectionId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization-local DIDComm connection identifier."
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the exchange state."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "DidExchangeWebhook": {
        "type": "object",
        "required": [
          "type",
          "payload"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "did-exchange"
          },
          "payload": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DidCommExchangeBase"
              },
              {
                "type": "object",
                "required": [
                  "invitationId",
                  "connectionProtocol",
                  "myDid",
                  "theirDid"
                ],
                "properties": {
                  "agentState": {
                    "type": "string",
                    "const": "completed",
                    "description": "A connection webhook is emitted only after the DIDComm connection completes."
                  },
                  "state": {
                    "type": "string",
                    "const": "completed",
                    "description": "Normalized completed connection state."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "requester",
                      "responder"
                    ],
                    "description": "The receiving organization is the invitation requester or responder."
                  },
                  "invitationId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "connectionProtocol": {
                    "type": "string",
                    "example": "https://didcomm.org/didexchange/1.x"
                  },
                  "myDid": {
                    "type": "string",
                    "description": "Pairwise DID controlled by the receiving organization."
                  },
                  "theirDid": {
                    "type": "string",
                    "description": "Pairwise DID controlled by the counterparty."
                  },
                  "alias": {
                    "type": "string"
                  },
                  "theirLabel": {
                    "type": "string"
                  },
                  "accept": {
                    "type": "string",
                    "example": "auto"
                  },
                  "imageUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            ]
          }
        }
      },
      "CredentialExchangeWebhook": {
        "type": "object",
        "required": [
          "type",
          "payload"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "credential-exchange"
          },
          "payload": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DidCommExchangeBase"
              },
              {
                "type": "object",
                "required": [
                  "credentialExchangeId"
                ],
                "properties": {
                  "agentState": {
                    "type": "string",
                    "enum": [
                      "offer-received",
                      "request-received",
                      "done",
                      "abandoned"
                    ],
                    "description": "Exchange lifecycle state. Credential examples use offer-received, done, or abandoned; completed is connection-only."
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "done",
                      "abandoned"
                    ],
                    "description": "Normalized credential exchange state."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "holder",
                      "issuer"
                    ],
                    "description": "The receiving organization is the holder or issuer."
                  },
                  "credentialExchangeId": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            ]
          }
        }
      },
      "ProofExchangeWebhook": {
        "type": "object",
        "required": [
          "type",
          "payload"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "proof-exchange"
          },
          "payload": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DidCommExchangeBase"
              },
              {
                "type": "object",
                "required": [
                  "proofExchangeId",
                  "isVerified"
                ],
                "properties": {
                  "agentState": {
                    "type": "string",
                    "enum": [
                      "offer-received",
                      "request-received",
                      "done",
                      "abandoned"
                    ],
                    "description": "Exchange lifecycle state. Proof examples use request-received, done, or abandoned; completed is connection-only."
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "done",
                      "abandoned"
                    ],
                    "description": "Normalized proof exchange state."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "prover",
                      "verifier"
                    ],
                    "description": "The receiving organization is the prover or verifier."
                  },
                  "proofExchangeId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "isVerified": {
                    "type": "boolean",
                    "description": "Whether the verifier successfully verified the submitted presentation."
                  }
                }
              }
            ]
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "webhooks": {
    "cheqd-connection-event": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "operationId": "cheqd-connection-event",
        "summary": "Connection Event",
        "description": "Sent when a DIDComm connection completes.",
        "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/DidExchangeWebhook"
              },
              "examples": {
                "issuerResponderCompleted": {
                  "summary": "Issuer responder completed",
                  "value": {
                    "type": "did-exchange",
                    "payload": {
                      "id": "fa5e56f5-5b3c-4e14-8a7b-015bfc3dab3c",
                      "tenantId": "d1ace9ac-1556-427f-b631-22e7fe044228",
                      "agentState": "completed",
                      "state": "completed",
                      "role": "responder",
                      "threadId": "9091a67a-de91-45b4-9e13-6529dcf0beb1",
                      "connectionId": "fa5e56f5-5b3c-4e14-8a7b-015bfc3dab3c",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "invitationId": "2b40f4fe-4f75-439f-8164-13dc31a4f3d1",
                      "connectionProtocol": "https://didcomm.org/didexchange/1.x",
                      "myDid": "did:peer:4zQmIssuerPairwiseDid...",
                      "theirDid": "did:peer:4zQmHolderPairwiseDid...",
                      "alias": "Issuer Connection",
                      "theirLabel": "Holder Org",
                      "accept": "auto"
                    }
                  }
                },
                "holderRequesterCompleted": {
                  "summary": "Holder requester completed",
                  "value": {
                    "type": "did-exchange",
                    "payload": {
                      "id": "755d4d1d-dfa6-4eec-996f-33e623adc181",
                      "tenantId": "b9318fe8-6b76-4def-aef9-7828209a07bb",
                      "agentState": "completed",
                      "state": "completed",
                      "role": "requester",
                      "threadId": "9091a67a-de91-45b4-9e13-6529dcf0beb1",
                      "connectionId": "755d4d1d-dfa6-4eec-996f-33e623adc181",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "invitationId": "a622cf92-2492-437b-bd05-18ad774c296a",
                      "connectionProtocol": "https://didcomm.org/didexchange/1.x",
                      "myDid": "did:peer:4zQmHolderPairwiseDid...",
                      "theirDid": "did:peer:4zQmIssuerPairwiseDid...",
                      "alias": "Holder Connection",
                      "theirLabel": "Issuer Org",
                      "accept": "auto",
                      "imageUrl": "https://example.com/issuer-logo.png"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Webhook acknowledged successfully by the receiver. No response body is required."
          }
        }
      }
    },
    "cheqd-credential-exchange-event": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "operationId": "cheqd-credential-exchange-event",
        "summary": "Credential Exchange Event",
        "description": "Sent during the AnonCred credential lifecycle. The holder receives offer-received and credential-stored events; the issuer receives accepted or declined outcomes.",
        "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/CredentialExchangeWebhook"
              },
              "examples": {
                "holderOfferReceived": {
                  "summary": "Holder offer received",
                  "value": {
                    "type": "credential-exchange",
                    "payload": {
                      "id": "7237844e-1af9-4501-ab33-f35b2d706f9e",
                      "tenantId": "b9318fe8-6b76-4def-aef9-7828209a07bb",
                      "agentState": "offer-received",
                      "state": "pending",
                      "role": "holder",
                      "threadId": "76327bff-b7cf-4230-8843-5da4f77bd77b",
                      "connectionId": "755d4d1d-dfa6-4eec-996f-33e623adc181",
                      "message": "Credential offer received. Accept to store it.",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "credentialExchangeId": "7237844e-1af9-4501-ab33-f35b2d706f9e"
                    }
                  }
                },
                "holderCredentialStored": {
                  "summary": "Holder credential stored",
                  "value": {
                    "type": "credential-exchange",
                    "payload": {
                      "id": "7237844e-1af9-4501-ab33-f35b2d706f9e",
                      "tenantId": "b9318fe8-6b76-4def-aef9-7828209a07bb",
                      "agentState": "done",
                      "state": "done",
                      "role": "holder",
                      "threadId": "76327bff-b7cf-4230-8843-5da4f77bd77b",
                      "connectionId": "755d4d1d-dfa6-4eec-996f-33e623adc181",
                      "message": "Credential has been stored in the wallet.",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "credentialExchangeId": "7237844e-1af9-4501-ab33-f35b2d706f9e"
                    }
                  }
                },
                "issuerCredentialAccepted": {
                  "summary": "Issuer credential accepted",
                  "value": {
                    "type": "credential-exchange",
                    "payload": {
                      "id": "6697b72e-8701-44eb-bd69-e0369273630b",
                      "tenantId": "d1ace9ac-1556-427f-b631-22e7fe044228",
                      "agentState": "done",
                      "state": "done",
                      "role": "issuer",
                      "threadId": "76327bff-b7cf-4230-8843-5da4f77bd77b",
                      "connectionId": "fa5e56f5-5b3c-4e14-8a7b-015bfc3dab3c",
                      "message": "Credential has been accepted by the holder.",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "credentialExchangeId": "6697b72e-8701-44eb-bd69-e0369273630b"
                    }
                  }
                },
                "issuerCredentialDeclined": {
                  "summary": "Issuer credential declined",
                  "value": {
                    "type": "credential-exchange",
                    "payload": {
                      "id": "fa72b0a8-078a-4c83-a342-ed45b80f023f",
                      "tenantId": "d1ace9ac-1556-427f-b631-22e7fe044228",
                      "agentState": "abandoned",
                      "state": "abandoned",
                      "role": "issuer",
                      "threadId": "14d6af4f-8821-4cd7-bc83-ab317449f38a",
                      "connectionId": "fa5e56f5-5b3c-4e14-8a7b-015bfc3dab3c",
                      "message": "issuance-abandoned: Offer declined",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "credentialExchangeId": "fa72b0a8-078a-4c83-a342-ed45b80f023f"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Webhook acknowledged successfully by the receiver. No response body is required."
          }
        }
      }
    },
    "cheqd-proof-exchange-event": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "operationId": "cheqd-proof-exchange-event",
        "summary": "Proof Exchange Event",
        "description": "Sent during the AnonCred proof lifecycle. The holder receives request-received and presentation-sent events; the verifier receives verified or declined outcomes.",
        "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/ProofExchangeWebhook"
              },
              "examples": {
                "holderProofRequestReceived": {
                  "summary": "Holder proof request received",
                  "value": {
                    "type": "proof-exchange",
                    "payload": {
                      "id": "d02cb3ff-eecc-47e1-83cd-2870ec67e4d6",
                      "tenantId": "b9318fe8-6b76-4def-aef9-7828209a07bb",
                      "agentState": "request-received",
                      "state": "pending",
                      "role": "prover",
                      "threadId": "362f0d95-77f8-4ee7-88a3-42493a2e1a48",
                      "connectionId": "755d4d1d-dfa6-4eec-996f-33e623adc181",
                      "message": "Proof request received from verifier but presentation not submitted.",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "proofExchangeId": "d02cb3ff-eecc-47e1-83cd-2870ec67e4d6",
                      "isVerified": false
                    }
                  }
                },
                "holderPresentationSent": {
                  "summary": "Holder presentation sent",
                  "value": {
                    "type": "proof-exchange",
                    "payload": {
                      "id": "d02cb3ff-eecc-47e1-83cd-2870ec67e4d6",
                      "tenantId": "b9318fe8-6b76-4def-aef9-7828209a07bb",
                      "agentState": "done",
                      "state": "done",
                      "role": "prover",
                      "threadId": "362f0d95-77f8-4ee7-88a3-42493a2e1a48",
                      "connectionId": "755d4d1d-dfa6-4eec-996f-33e623adc181",
                      "message": "Presentation has been sent to the verifier.",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "proofExchangeId": "d02cb3ff-eecc-47e1-83cd-2870ec67e4d6",
                      "isVerified": false
                    }
                  }
                },
                "verifierPresentationVerified": {
                  "summary": "Verifier presentation verified",
                  "value": {
                    "type": "proof-exchange",
                    "payload": {
                      "id": "9ddfcf87-69e6-4961-8d59-7975043cd220",
                      "tenantId": "d1ace9ac-1556-427f-b631-22e7fe044228",
                      "agentState": "done",
                      "state": "done",
                      "role": "verifier",
                      "threadId": "362f0d95-77f8-4ee7-88a3-42493a2e1a48",
                      "connectionId": "fa5e56f5-5b3c-4e14-8a7b-015bfc3dab3c",
                      "message": "Presentation has been received and verified.",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "proofExchangeId": "9ddfcf87-69e6-4961-8d59-7975043cd220",
                      "isVerified": true
                    }
                  }
                },
                "verifierProofRequestDeclined": {
                  "summary": "Verifier proof request declined",
                  "value": {
                    "type": "proof-exchange",
                    "payload": {
                      "id": "95cc38ec-3663-41c5-a86a-4f3043ffed80",
                      "tenantId": "d1ace9ac-1556-427f-b631-22e7fe044228",
                      "agentState": "abandoned",
                      "state": "abandoned",
                      "role": "verifier",
                      "threadId": "03355d9c-ada7-4e00-8f02-f751d09becf1",
                      "connectionId": "fa5e56f5-5b3c-4e14-8a7b-015bfc3dab3c",
                      "message": "abandoned: Request declined",
                      "createdAt": "2026-08-14T11:08:23.739Z",
                      "updatedAt": "2026-08-14T11:21:29.338Z",
                      "proofExchangeId": "95cc38ec-3663-41c5-a86a-4f3043ffed80",
                      "isVerified": false
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Webhook acknowledged successfully by the receiver. No response body is required."
          }
        }
      }
    }
  }
}