Ga naar inhoud

Receive a credential offer

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

DCP 1.0: a trusted issuer offers credentials, for example a successor of one that expires, in a CredentialOfferMessage. The participant may request them.

A CredentialOfferMessage.

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 offer is recorded.

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

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

Not a trusted issuer.

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