OpenID4VP Presentation Definition Management API
Manage presentation definitions used by the OpenID4VP verifier.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:8090/oauth2/token, authorization URL https://localhost:8090/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
clientCredentials flow, token URL https://localhost:8090/oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
Presentation Definitions
Create and manage OpenID4VP presentation definitions.
List presentation definitions
GET /openid4vp/presentation-definitions
Returns presentation definition summaries with resolved organization-unit handles.
Scopes: system
Responses
| Code | Description | Schema |
|---|---|---|
200 | Presentation definition summaries | VPPresentationDefinitionList |
400 | The request is malformed, omits a required field, uses an unsupported format, references an invalid organization unit, or contains invalid claim definitions. | VPError |
401 | Authentication is required. | VPError |
403 | The authenticated principal lacks permission to access this management API. | VPError |
500 | Internal server error. | VPError |
Create presentation definition
POST /openid4vp/presentation-definitions
Creates a presentation definition for the supplied organization unit.
Scopes: system
Request body (required): application/json
Schema: VPPresentationDefinitionRequest
12 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Unique presentation definition handle. |
ouId | string | Yes | ID of the organization unit that owns this definition. |
name | string | ||
description | string | ||
vct | string | Yes | Verifiable credential type URI. |
format | string | Credential format. Allowed values: | |
requestedClaims | array of string | ||
mandatoryClaims | array of string | ||
optionalClaims | array of string | ||
claimValues | object | ||
enforceTrustedIssuer | boolean | ||
trustedAuthorities | array of string |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Presentation definition created | VPPresentationDefinition |
400 | The request is malformed, omits a required field, uses an unsupported format, references an invalid organization unit, or contains invalid claim definitions. | VPError |
401 | Authentication is required. | VPError |
403 | The authenticated principal lacks permission to access this management API. | VPError |
409 | A presentation definition with the supplied handle already exists. | VPError |
500 | Internal server error. | VPError |
Get presentation definition
GET /openid4vp/presentation-definitions/{id}
Returns a presentation definition by ID with its resolved organization-unit handle.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Presentation definition ID. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Presentation definition | VPPresentationDefinition |
400 | The request is malformed, omits a required field, uses an unsupported format, references an invalid organization unit, or contains invalid claim definitions. | VPError |
401 | Authentication is required. | VPError |
403 | The authenticated principal lacks permission to access this management API. | VPError |
404 | No presentation definition exists for the supplied ID. | VPError |
500 | Internal server error. | VPError |
Update presentation definition
PUT /openid4vp/presentation-definitions/{id}
Replaces a presentation definition by ID.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Presentation definition ID. |
Request body (required): application/json
Schema: VPPresentationDefinitionRequest
12 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Unique presentation definition handle. |
ouId | string | Yes | ID of the organization unit that owns this definition. |
name | string | ||
description | string | ||
vct | string | Yes | Verifiable credential type URI. |
format | string | Credential format. Allowed values: | |
requestedClaims | array of string | ||
mandatoryClaims | array of string | ||
optionalClaims | array of string | ||
claimValues | object | ||
enforceTrustedIssuer | boolean | ||
trustedAuthorities | array of string |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Presentation definition updated | VPPresentationDefinition |
400 | The request is malformed, omits a required field, uses an unsupported format, references an invalid organization unit, or contains invalid claim definitions. | VPError |
401 | Authentication is required. | VPError |
403 | The authenticated principal lacks permission to access this management API. | VPError |
404 | No presentation definition exists for the supplied ID. | VPError |
409 | The supplied handle already exists, or the definition is declarative and cannot be changed. | VPError |
500 | Internal server error. | VPError |
Delete presentation definition
DEL /openid4vp/presentation-definitions/{id}
Deletes a presentation definition by ID. Deleting an absent definition succeeds.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Presentation definition ID. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Presentation definition deleted | |
400 | The request is malformed, omits a required field, uses an unsupported format, references an invalid organization unit, or contains invalid claim definitions. | VPError |
401 | Authentication is required. | VPError |
403 | The authenticated principal lacks permission to access this management API. | VPError |
409 | The presentation definition is declarative and cannot be deleted through the management API. | VPError |
500 | Internal server error. | VPError |
Schemas
VPPresentationDefinitionRequest
Type: object
12 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Unique presentation definition handle. |
ouId | string | Yes | ID of the organization unit that owns this definition. |
name | string | ||
description | string | ||
vct | string | Yes | Verifiable credential type URI. |
format | string | Credential format. Allowed values: | |
requestedClaims | array of string | ||
mandatoryClaims | array of string | ||
optionalClaims | array of string | ||
claimValues | object | ||
enforceTrustedIssuer | boolean | ||
trustedAuthorities | array of string |
VPPresentationDefinition
Type: VPPresentationDefinitionRequest
14 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Unique presentation definition handle. |
ouId | string | Yes | ID of the organization unit that owns this definition. |
name | string | ||
description | string | ||
vct | string | Yes | Verifiable credential type URI. |
format | string | Yes | Credential format. Allowed values: |
requestedClaims | array of string | ||
mandatoryClaims | array of string | ||
optionalClaims | array of string | ||
claimValues | object | ||
enforceTrustedIssuer | boolean | ||
trustedAuthorities | array of string | ||
id | string | Yes | Presentation definition ID. |
ouHandle | string | Resolved organization-unit handle returned for display. |
VPPresentationDefinitionList
Type: array of object
VPError
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | VPI18nMessage | Yes | |
description | VPI18nMessage | Yes |
Was this page helpful?