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
Body
Request with presentation definition and security parameters
statestringRequiredExample:
Random string to prevent CSRF attacks
abcdef12345678901234567890abcdefnoncestringRequiredExample:
Random string to ensure request uniqueness
1234567890abcdef1234567890abcdefResponses
201
Created
application/json
Response DTO for a new authorization request
idstring · uuidRequiredExample:
The unique identifier of the authorization request
550e8400-e29b-41d4-a716-446655440000statestring · min: 32 · max: 64RequiredExample:
Random string to prevent CSRF attacks
abcdef12345678901234567890abcdefnoncestring · min: 32 · max: 64RequiredExample:
Random string to ensure request uniqueness
1234567890abcdef1234567890abcdefexpires_atstring · date-timeRequiredExample:
When the authorization request expires
2023-01-01T00:00:00Zcodestring · nullableOptionalExample:
Code for authorization (may be null)
abc123holder_didstring · nullableOptionalExample:
Holder DID (may be null)
did:empe:testnet:123456789abcdefPattern: ^did:[a-zA-Z0-9]+:[a-zA-Z0-9:.%-]+$usedbooleanOptionalExample:
Whether the authorization request has been used
false400
Bad Request
application/json
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
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: 1RequiredExample:
The authorization code that can be exchanged for a token
abc123def456400
Bad Request
application/json
404
Not Found
application/json
post/api/v1/authorizations/{id}/validate
Last updated