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

Credential Offers

Create credential offer

post

Creates a credential offer. The credential offer object can be retrieved via the uri in the response.

claims will be validated against the registered credentialTemplate.schema

An authorization_code or urn:ietf:params:oauth:grant-type:authorized_code grant MUST be provided. However, issuer_state and pre-authorized_code are optional. If not provided, Wallet will generate random values for them.

user_id can only be used if Resource Hook is configured. user_id can only be used with Pre-authorized Code Grant. user_id will be sent to the external resource server via the resource hook.

One of claims OR user_id MUST be provided.

Credential offers expire. Expiration is controlled by runtime configuration - issuer.issuance_policy.credential_offer_expiry.

Supported Standards

Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Body
claimsobjectOptional

Claims to be included in the issued verifiable credential

credential_configuration_idsstring[]Required

Credential configuration identifiers to include in the offer.

user_idstringOptional

user_id sent to the external resource server via resource hook

Responses
200

OK

application/json
credential_offer_uristringOptional

credential offer URI

tx_codestringOptional

randomly generated code that will be required when claiming the credential offer

post/issuer/offers

Get credential offer by ID

get

Get credential offer by ID. The credential offer object contains necessary information for the wallet to proceed with credential issuance.

id path parameter refers to the issuer_state or pre-authorized_code of the credential offer.

Expired credential offers cannot be retrieved by using this endpoint.

Path parameters
idstringRequired

ID of the credential offer to retrieve

Responses
200

OK

application/json
credential_issuerstringOptionalExample: https://issuer.example.com
credential_configuration_idsstring[]Optional

Credential configuration identifiers included in the offer.

get/issuer/offers/{id}
200

OK

Delete credential offer by ID

delete

Delete credential offer by ID. Deleted credential offers can no longer be retrieved or used for credential issuance. Ensure to review the implications before deleting a credential offer.

id path parameter refers to the issuer_state or pre-authorized_code of the credential offer.

Expired credential offers can be deleted by using this endpoint.

Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the credential offer to delete

Responses
204

Credential offer deleted

No content

delete/issuer/offers/{id}
204

Credential offer deleted

No content

Last updated