Unreleased documentation. These pages follow the main branch and can change before the next release. For supported guidance, use v0.43.0.
Exchange one claimed token and plural proofs for plural credentials
POST
/credential
const url = 'https://example.com/credential';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"credential_configuration_id":"example","proofs":{"jwt":["example"]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/credential \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "credential_configuration_id": "example", "proofs": { "jwt": [ "example" ] } }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
credential_configuration_id
required
string
proofs
required
object
jwt
required
Array<string>
Example generated
{ "credential_configuration_id": "example", "proofs": { "jwt": [ "example" ] }}Responses
Section titled “Responses”Evidence credentials, byte-for-byte
Media typeapplication/json
object
credentials
required
Array<object>
object
credential
required
string
Example generated
{ "credentials": [ { "credential": "example" } ]}Headers
Section titled “Headers”Cache-Control
string
Pragma
string
The configuration, nonce, proof, or post-claim credential request was terminally refused
Media typeapplication/json
object
error
required
error_description
required
string
error
required
Examples
ExamplepostClaimCredentialRequestDenied
A claimed authorization cannot be retried
{ "error": "credential_request_denied", "error_description": "this credential request cannot be completed"}Headers
Section titled “Headers”Cache-Control
string
Pragma
string
The access token is missing, unknown, expired, or already claimed
Media typeapplication/json
object
error
required
error_description
required
string
Example
{ "error": "invalid_request"}Headers
Section titled “Headers”Cache-Control
string
Pragma
string
WWW-Authenticate
string
The configured request deadline elapsed
Media typeapplication/json
object
error
required
error_description
required
string
Example
{ "error": "invalid_request"}Headers
Section titled “Headers”Cache-Control
string
Pragma
string
The request body exceeds the configured byte limit
Media typetext/plain; charset=utf-8
string
Headers
Section titled “Headers”Cache-Control
string
Pragma
string
Bounded state is unavailable before the access token can be claimed
Media typeapplication/json
object
error
required
error_description
required
string
Example
{ "error": "invalid_request"}Headers
Section titled “Headers”Cache-Control
string
Pragma
string