v8

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-05730512.7 KB
OpenID4VCI Protocol

Token endpoint (pre-authorized_code grant)

Exchange an OpenID4VCI (OpenID for Verifiable Credential Issuance) pre-authorized code for an issuance access token. Send the transaction code when the offer requires one. Use the returned token at the credential endpoint.

post/v1/oauth/token

Request body

grant_typestring required

Send the pre-authorized code grant type.

pre-authorized_codestring required

Send the pre-authorized code from the credential offer.

tx_codestring

Send the transaction code when the credential offer requires one.

Example request

{
  "grant_type": "urn:ietf:params:oauth:grant-type:pre-authorized_code",
  "pre-authorized_code": "<redacted>",
  "tx_code": "<redacted>"
}

Response

Didit issued a short-lived access token for credential issuance.

access_tokenstring

Send this token as the bearer token when you call the credential endpoint.

expires_ininteger

You receive the access-token lifetime in seconds.

token_typestring

You receive the token type for the access token.

Example response

{
  "access_token": "<redacted>",
  "expires_in": 300,
  "token_type": "Bearer"
}