v8

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

Accept an offer (demo: server-side PoP)

Accept a credential offer through Didit's server-side demo shortcut. Didit redeems the OpenID4VCI (OpenID for Verifiable Credential Issuance) offer, creates a holder key, and returns the issued SD-JWT VC (Selective-Disclosure JWT Verifiable Credential). Use this only for demo flows where the server accepts the offer for the holder.

post/v1/credential-offers/{uuid}/accept

Path parameters

uuidstring uuid required

Send the offer UUID.

Request body

object required

Response

Didit accepted the offer and minted the credential.

vctstring

You receive the VCT (Verifiable Credential Type) as a top-level convenience field.

Example response

{
  "credential": {
    "claims": [
      {
        "label": "<redacted>",
        "name": "<redacted>",
        "selective_disclosure": true,
        "value": "<redacted>"
      },
      {
        "label": "<redacted>",
        "name": "<redacted>",
        "selective_disclosure": true,
        "value": "<redacted>"
      }
    ],
    "credential_name": "<redacted>",
    "expires_at": "<redacted>",
    "format": "<redacted>",
    "id": "<redacted>",
    "issued_at": "<redacted>",
    "issuer": {
      "did": "<redacted>",
      "domain": "<redacted>",
      "id": "<redacted>",
      "name": "<redacted>"
    },
    "sd_jwt": "<redacted>",
    "status": "<redacted>",
    "subject": "<redacted>",
    "vct": "<redacted>"
  },
  "holder_jwk": {
    "crv": "P-256",
    "kty": "EC",
    "x": "gAKpvhAnew8YslTtTF7YdOp8LQEgyV4kaR5a7nSe6YE",
    "y": "wG9wk6df7491AtKC9F13X9nvhAwigohTd5nJC7PPrR0"
  },
  "vct": "AirlineLoyalty"
}