OpenID4VCI Protocol
Create a credential offer
Changed onCreate an OpenID4VCI (OpenID for Verifiable Credential Issuance) credential offer from one of your templates. You provide captured claim values, and Didit returns the claim URL, the wallet deep link, and the pre-authorized grant data. Send the returned transaction code to the holder through your own channel when the offer requires one.
post/v1/credential-offers
Request
- Base URLhttps://idv0.staging.didit.me
- AuthHTTP bearer
Request body
Example request
{
"claims": {
"given_name": "Ada",
"tier": "gold"
},
"template_id": "5588f83f-620b-4614-8ffa-933634a0b708"
}Response
Didit created the credential offer and returned the claim links and grant data.
Example response
{
"claim_url": "http://localhost:3012/claim?offer=f7219265-039a-4c72-b2bd-54432bf443b3",
"credential_issuer": "http://localhost:8011/v1/issuers/docs-capture-6clew6",
"credential_offer_uri": "openid-credential-offer://?credential_offer_uri=http%3A%2F%2Flocalhost%3A8011%2Fv1%2Fcredential-offers%2Ff7219265-039a-4c72-b2bd-54432bf443b3%2Foffer",
"expires_at": "2026-07-02T23:43:33.649962+00:00",
"grants": {
"urn:ietf:params:oauth:grant-type:pre-authorized_code": {
"pre-authorized_code": "<redacted>"
}
},
"offer_id": "f7219265-039a-4c72-b2bd-54432bf443b3",
"pre_authorized_code": "<redacted>",
"tx_code": "<redacted>"
}Changes
- breaking
removed the success response with the status
- warning
removed the request property
tx_code - info
added the new optional request property
claims/given_name
6 more changes in this revision
- breaking