OpenID4VCI Protocol

Credential endpoint (holder proof-of-possession → SD-JWT VC)

Changed on

Redeem an issuance access token and holder proof for an SD-JWT VC (Selective-Disclosure JWT Verifiable Credential). Send the proof generated by the holder wallet after you mint a nonce. Didit returns the issued credential and its VCT (Verifiable Credential Type).

post/v1/credential

Request

  • Base URL
    https://idv0.staging.didit.me
  • Auth
    none required

Request body

Example request

{
  "proof": {
    "jwt": "<redacted>",
    "proof_type": "<redacted>"
  }
}

Response

Didit issued the credential.

credentialstring

Store this issued SD-JWT VC (Selective-Disclosure JWT Verifiable Credential) string in the holder wallet.

vctstring

You receive the VCT (Verifiable Credential Type) of the issued credential.

Example response

{
  "credential": "<redacted>",
  "credentials": [
    {
      "credential": "<redacted>"
    }
  ],
  "vct": "AirlineLoyalty"
}

Changes

    • breaking

      the request property proof/jwt became required

    • info

      added the optional property credentials to the response with the status

    • info

      added the optional property error_description to the response with the status