OpenID4VCI Protocol

Accept an offer (demo: server-side PoP)

Changed on

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

Request

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

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"
}

Changes

    • breaking

      for the path request parameter uuid, the format changed from no format to uuid

    • breaking

      the credential/claims/items response's property type changed from string to object for status

    • breaking

      the credential/expires_at response's property format changed from date-time to no format for status

    14 more changes in this revision