Ga naar inhoud

Query presentations (Resolution API)

POST
/dcp/presentations/query
curl --request POST \
--url https://example.com/dcp/presentations/query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'

DCP 1.0 Resolution API: a verifier asks for verifiable presentations of this participant’s credentials with a PresentationQueryMessage and the scope it may read. The Self-Issued ID token must carry an access token that this participant issued for that verifier; access tokens are single-use. presentationDefinition queries are not supported.

A PresentationQueryMessage.

Media typeapplication/json

A DCP message in the OpenAPI descriptions: JSON-LD as the protocol defines it, checked by the handler (documentation only).

object

Example generated

{}

A PresentationResponseMessage with a VP as JWT.

Media typeapplication/json

A DCP message in the OpenAPI descriptions: JSON-LD as the protocol defines it, checked by the handler (documentation only).

object

Example generated

{}

The request is not valid.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

No valid token, or the access token was used before.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

A presentationDefinition query.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}