Skip to main content
Version: v4

OpenId4VcCreateCredentialOfferBodyDto

jsonSchemaCredentialIdstringrequired

Credential type of the offer. The agent derives no credential type yet, so every identifier answers UNKNOWN_ID.

Example: employee
claims objectrequired

Claim values of the offered credential. Any subset of the configured claims, at least one, each non-empty; an omitted claim is left out of the credential.

property name*any

Claim values of the offered credential. Any subset of the configured claims, at least one, each non-empty; an omitted claim is left out of the credential.

Example: {"name":"Ada Lovelace","role":"engineer"}
ttlSecondsnumberrequired

Lifetime of the credential in seconds, from 60 up to 7776000 (90 days). Nothing revokes the credential, so this lifetime is its only bound.

Possible values: >= 60 and <= 7776000

Example: 3600
statusListIdstring

Status list the credential is registered on, with statusListIndex. The agent hosts no status list yet, so every identifier answers UNKNOWN_ID.

Example: list-1
statusListIndexnumber

Index of the credential on that status list. Required whenever statusListId is present.

Possible values: >= 0

Example: 42
OpenId4VcCreateCredentialOfferBodyDto
{
"jsonSchemaCredentialId": "employee",
"claims": {
"name": "Ada Lovelace",
"role": "engineer"
},
"ttlSeconds": 3600,
"statusListId": "list-1",
"statusListIndex": 42
}