API Reference
Create an Authorization Code flow Credential Offer
Returns an OID4VCI credential offer URI. See https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#section-10.1
This offer can be used more than once, and can be shared with multiple users. Each user will authenticate independently during the credential issuance workflow, allowing the same offer URI to issue credentials with different user-specific data to multiple holders.
Roles
Analytics Events
bearerAuthAuthorizationBearer <token>application/json- body
credentials*array<string>This array includes a list of identifiers for credential configurations that will be included in the credential offer. These identifiers are the id elements returned in the response when you create a credential configuration. To issue multiple credential formats of the same credential in a single flow, include all the required credential configuration id elements in the request payload.
request_parameters?Specifies a list of additional request parameters that the wallet can include in the authentication request.
Credential offer URI created
application/json- response
uri*stringGenerated URI that can be sent to a user's digital wallet via a message, a QR code or a deep link. When a multi-format credential offer is created, the generated URI offer is used to issue all the credential formats in a single workflow. The credential offer payload carries the offered credential configuration identifiers in both credential_configuration_ids and the deprecated credentials element. Wallet clients should read credential_configuration_ids, as credentials is retained for backward compatibility only and will be removed. Refer to the OID4VCI v1.0 alignment changelog entry.
curl -X POST "https://example.com/v1/openid/offers" \ -H "Content-Type: application/json" \ -d '{ "credentials": [ "707e920a-f342-443b-ae24-6946b7b5033e" ] }'{ "uri": "openid-credential-offer://?credential_offer=%7B%22credential_issuer%22%3A%22https%3A%2F%2Fmyissuer.example.com%22%2C%22credentials%22%3A%5B%22707e920a-f342-443b-ae24-6946b7b5033e%22%5D%2C%22credential_configuration_ids%22%3A%5B%22707e920a-f342-443b-ae24-6946b7b5033e%22%5D%2C%22request_parameters%22%3A%7B%22login_hint%22%3A%22user%40example.com%22%2C%22prompt%22%3A%22login%22%7D%7D"}Create a Pre-Authorized Code flow Credential Offer
Generate a new OID4VCI Pre-Authorized Code credential offer.
This offer can only be used once. Once the offer is successfully claimed and the credential is issued, the pre-authorized code is consumed and the offer becomes invalid. The offer cannot be claimed again, even if the same user attempts to claim it. This is a security measure to prevent unauthorized credential duplication. If you need to issue another credential to the same user, you must generate a new credential offer.
The total size of the request cannot exceed 500KB, including any claims. This is mostly relevant when including large claims such as images. When holders present credentials over Bluetooth Low Energy (BLE), keep payloads as small as practical, as large claims can degrade the transfer experience. Reserve larger payloads for remote presentation flows.
Roles
Analytics Events
bearerAuthAuthorizationBearer <token>application/json- body
credentials*array<string>|The credentials to include in the offer, provided either as an array of mDocs credential configuration identifiers, or as a map of those identifiers to claim set identifiers.
userId?stringUnique system generated identifier to reference the user for this offer. This can be obtained by searching for a user. If not provided, a new user entity will be created.
When credentialBundleId is provided and userId is omitted, the offer is automatically scoped to the userId associated with that bundle.
transactionCodeConfiguration?Configure whether a second-factor transaction code is required for this offer. If a configuration is provided, a code will be generated for the offer, and the end user must submit it during credential retrieval. If an incorrect transaction code is entered three times by the holder, the credential offer is permanently invalidated and the wallet can no longer claim the credential.
credentialBundleId?stringThe identifier of an existing credential bundle. When provided, the issued credential replaces the credential in the specified bundle rather than creating a new bundle, updating the credential in place. The bundle keeps its credentialBundleId and credentialReferenceId, so references you hold against the bundle stay valid.
credentials must still be provided, and must name exactly one credential configuration that resolves to the same credential type as the bundle. A bundle holds a single credential type, so an offer naming more than one configuration cannot target one.
If the bundle was issued for a claim set, credentials must use the map form and name exactly that claim set. Use the array form only for a bundle issued without a claim set. See Update a credential issued for a claim set.
When userId is omitted and credentialBundleId is supplied, the offer is automatically scoped to the bundle's userId. When userId is provided, it must match the bundle's userId.
If the bundle is bound to a wallet instance, only that wallet instance can claim the offer. MATTR VII checks the claiming wallet's client attestation key against the key bound to the bundle, and does not issue a credential if they do not match. To make sure only the wallet instance that holds the credential can claim an update, issue the original credential with Wallet Attestation.
If a prior offer targeting the same bundle has expired or was not claimed, you may call this endpoint again with the same credentialBundleId.
Credential update is offered as an open beta preview feature and is not generally available yet. It is available on all tenants, and its behavior may change in a way that breaks existing integrations before it becomes generally available.
claims?Additional user claims that are available during credential issuance for this offer.
claimSets?The claims for each claim set, keyed by credential configuration identifier and then by claim set identifier.
This property requires the map form of credentials, and every claim set identifier it references must be listed against the same credential configuration in credentials.
Claims provided here are specific to a single claim set. Where the same claim name also appears in the sibling claims object, the claim set value is used for that credential.
claimsToPersist?array<string>This array includes a list of claims that will be persisted against the user object in the MATTR VII database. These claims are then available for any future credential offers or issuance operations for this user. By default no claims are persisted, and it is recommended to consider carefully which claims to persist, if any, as this has implications for data privacy and security. When claimSets is provided, the listed claims are also persisted from each claim set against the user's claimSets.
expiresIn?Specifies when the offer will expire. Once the offer expires, the user can no longer use it to claim a credential, and a new offer must be generated. The expiration period can include any combination of minutes and seconds. By default, the offer expires in 5 minutes, and the maximum allowed duration is 10 minutes.
Credential offer created
application/json- response
id*stringUnique system generated identifier to reference this offer.
userId*stringA unique system-generated identifier used to reference the user for this offer.
uri*stringGenerated offer URI that can be sent to the intended holder embedded in a QR code or deep link. The credential offer payload carries the offered credential configuration identifiers in both credential_configuration_ids and the deprecated credentials element. Wallet clients should read credential_configuration_ids, as credentials is retained for backward compatibility only and will be removed. Refer to the OID4VCI v1.0 alignment changelog entry.
expiresAt*stringOffer expiry time in ISO 8601 format.
date-timetransactionCode?stringThe system-generated transaction code. This property is only present if the transactionCodeConfiguration parameter is provided. The transaction code can be shared with the intended holder through an alternative secure communication channel. The holder must enter this code during the credential retrieval flow to successfully claim the credential. If an incorrect transaction code is entered three times, the offer is permanently invalidated and can no longer be used to claim the credential.
curl -X POST "https://example.com/v1/openid/offers/pre-authorized" \ -H "Content-Type: application/json" \ -d '{ "credentials": [ "707e920a-f342-443b-ae24-6946b7b5033e" ] }'{ "id": "string", "userId": "string", "uri": "openid-credential-offer://?credential_offer=%7B%22credential_issuer%22%3A%22https%3A%2F%2Fexample.com%22%2C%22credentials%22%3A%5B%222edaf985-fcc2-4448-9c8e-a04c6c7351c2%22%5D%2C%22credential_configuration_ids%22%3A%5B%222edaf985-fcc2-4448-9c8e-a04c6c7351c2%22%5D%2C%22grants%22%3A%7B%22urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Apre-authorized_code%22%3A%7B%22pre-authorized_code%22%3A%22stukD6lg9c9tQ3jUCa32wVi1HI%2BQIVsFK%2FQPvC2CHRs%3D%22%2C%22tx_code%22%3A%7B%22length%22%3A6%2C%22input_mode%22%3A%22numeric%22%2C%22description%22%3A%22Please%20provide%20the%20one-time%20code%20that%20was%20sent%20via%20e-mail%22%7D%7D%7D%7D", "expiresAt": "2025-05-01T00:01:00.000Z", "transactionCode": "493536"}Delete a Pre-Authorized Code flow Credential Offer
Delete an OID4VCI Pre-authorized Code credential offer.
Roles
Analytics Events
bearerAuthAuthorizationBearer <token>id*stringPre-authorized credential offer ID
uuidCredential offer deleted
curl -X DELETE "https://example.com/v1/openid/offers/pre-authorized/8241400f-de3b-42c5-ad7c-8a380039e796"How would you rate this page?
Last updated on