Skip to main content

Two resources, not one

When you call Issue a credential, the platform creates two kinds of resource at once:
  • Issuance. The offer session. It has offerUri and offerQrUri, a status that tracks the offer and acceptance flow (from offered to completed, or to failed or expired), and any errors that happened along the way.
  • Credentials. One or more, and these are what end up in the user’s wallet. Each has its own id, its own status (offered, issued, or revoked), and is what you act on later, for example to revoke it.
In the issuance response, the credentials live one level deeper, in a credentials[] array:
The two ids look similar but mean different things, and the API has separate endpoints for each.

Which one do you need?

Lifecycles, side by side

Each resource has its own state machine, and a third one starts in the wallet once delivery finishes. Everything to the left of the thick arrow answers “did the credential arrive?”. Only what is to its right answers “did the holder want it?”. The platform passes this value through from the underlying issuance session without constraining it, so handle an unrecognised status rather than assuming the list is closed.

Delivery is not acceptance

completed and issued both describe delivery: the credential reached the holder’s wallet. Neither means the holder agreed to keep it. A delivered credential lands in the wallet as pending, where the holder can still accept or reject it. That consent is a separate step with its own outcome.
Don’t treat completed as consent. If your integration marks an order fulfilled, a benefit granted, or an account opened the moment an issuance reports completed, it will act on credentials the holder has not accepted and may yet reject. Use the wallet webhooks for consent.
See Webhooks for the full event list.

Capture both ids at issuance time

The issuance and credential ids are both stable from the moment the issuance is created. You don’t need to wait for the user to accept. Store both against your own record when you issue:
  • Issuance id. Lets you ask “was this offer ever collected?” later, or wire up the openid4vc.issuance.completed webhook.
  • Credential id. Lets you revoke the credential without hunting for it first.

Read the ids back later

If you didn’t capture an id at issuance time, you can recover it: By issuance id, fetch the issuance back and read credentials[].id from it:
Without any id, list credentials and narrow with filters:
Supported filters are filter[status], filter[format], filter[credentialTemplateId], and filter[exchange]. Cursor pagination uses page[size], page[before], and page[after]. Listing issuances at GET /v1/issuances takes filter[id] and filter[status] instead.
Filter by template id, not preset id. There is no filter[presetId]. The issuance response reports the credentialTemplateId the platform resolved your preset to, so capture it from the first issuance if you want to list everything issued from that preset later. The value is stable for a given preset within your tenant.
Full schemas are in the Credentials API reference.