When to use a credential
A credential is a self-contained proof you can hand to someone outside Dataerai. Reach for one when you want to:- give an external reviewer or collaborator portable proof that a record is yours and unchanged, without inviting them into the app;
- attach a verifiable claim about a DID to a report, submission, or pipeline that travels independently of the record;
- share that proof with one specific party — a person, organization, or group — using a sealed credential share that only they can open.
Credentials are available through the REST API (and any SDK or script that
calls it) — there is no dedicated web UI for issuing, sharing, or verifying them
yet. Every example below is a
curl request you can adapt.$DATAERAI_SERVER with your Dataerai host in the examples below.
$DATAERAI_TOKEN is an OAuth2 access token — see
Authentication for how to get one. The verify
and public-fetch endpoints need no token.
Before you issue a public credential
You can issue a credential only for a DID that is already published. Private or gated DIDs cannot receive public credentials. The person issuing the credential must own the record.Issue a public credential
id as the UUID path segment,
credential_id as the full credential URL, and a status URL inside the
credential JSON. The credential contains the DID, the public identity
commitment, the latest identity sequence, and the Dataerai issuer. It does not
include private record metadata.
You can add an optional future expires_at timestamp when you want the
credential to stop verifying after a specific time.
Share a credential
Share either the credential JSON or the returnedcredential_id URL:
id value:
Issue a sealed credential share
Use a sealed credential share when the credential should be readable only by an intended party. The recipient can be a user, linked person, organization, or group. The signed credential is encrypted with the shared key; the shared key is not stored by Dataerai. Shared keys must be at least 24 characters.recipient_type can be user, person, organization, or group.
Sealed credential responses include a share id, the credential URL, recipient
metadata, and status. They do not include the signed credential body.
Open a sealed credential share
The caller must belong to the recipient party and provide the same shared key:Verify a credential
To verify a credential JSON document:Check status
Revoke a credential
Revoke a sealed share
Verifiable credentials use the same Dataerai DID and key trust model as identity
verification. Sealed shares add party membership plus shared-key decryption.
Neither flow requires a blockchain wallet or any on-chain transaction.
Next steps
Publish & cite
Make a DID public before issuing a credential.
Resolve & verify
Verify a DID directly through the public identity endpoints.