Ga naar inhoud

Request credentials

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

DCP 1.0 Credential Request API: a holder asks for credentials with a CredentialRequestMessage. Issuance runs asynchronously; the issuer delivers the credentials to the holder’s Storage API, and Location points at the status of the request.

A CredentialRequestMessage.

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

{}

Accepted; Location is the status of the request.

Not a valid request, or an unsupported credential.

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"
}
}

Not authenticated.

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 request with this holderPid exists.

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"
}
}