For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authorization

Create a new authorization request This endpoint creates a new authorization request record that will be used later in the token exchange process

post

Creates a new authorization request

Body

Request with presentation definition and security parameters

statestringRequired

Random string to prevent CSRF attacks

Example: abcdef12345678901234567890abcdef
noncestringRequired

Random string to ensure request uniqueness

Example: 1234567890abcdef1234567890abcdef
Responses
201

Created

application/json

Response DTO for a new authorization request

idstring · uuidRequired

The unique identifier of the authorization request

Example: 550e8400-e29b-41d4-a716-446655440000
statestring · min: 32 · max: 64Required

Random string to prevent CSRF attacks

Example: abcdef12345678901234567890abcdef
noncestring · min: 32 · max: 64Required

Random string to ensure request uniqueness

Example: 1234567890abcdef1234567890abcdef
expires_atstring · date-timeRequired

When the authorization request expires

Example: 2023-01-01T00:00:00Z
codestring · nullableOptional

Code for authorization (may be null)

Example: abc123
holder_didstring · nullableOptional

Holder DID (may be null)

Example: did:empe:testnet:123456789abcdefPattern: ^did:[a-zA-Z0-9]+:[a-zA-Z0-9:.%-]+$
usedbooleanOptional

Whether the authorization request has been used

Example: false
post/api/v1/authorizations

Validate an authorization request with VP This endpoint is called by the client (wallet) to validate the authorization request. It validates the required parameters and the Verifiable Presentation against the associated presentation definition.

post

Validates an authorization request with a verifiable presentation

Path parameters
idstringRequired

The unique identifier of the authorization request

Body

Request with the VP, presentation submission, and security parameters

Responses
200

Validated

application/json

Response DTO for a validated authorization request

codestring · min: 1Required

The authorization code that can be exchanged for a token

Example: abc123def456
post/api/v1/authorizations/{id}/validate

Last updated