Skip to content

ProposeCredential

POST
/credentials/propose-credential

Initiate a new credential exchange as holder by sending a propose credential message to the connection with a specified connection id.

Authorizations

Request Body required

object
protocolVersion
required
string
Allowed values: v1 v2
credentialFormats
required

Get the payload for a specific method from a list of CredentialFormat interfaces and a method

object
indy

Indy object

object
jsonld

Jsonld object

object
anoncreds

Anoncreds object

object
autoAcceptCredential

Typing of the state for auto acceptance

string
Allowed values: always contentApproved never
comment
string
connectionId
required
string
821f9b26-ad04-4f56-89b6-e2ef9c72b36e

Responses

200

CredentialExchangeRecord

Construct a type with a set of properties K of type T

object
Examples
{
"_tags": {
"state": "offer-sent",
"threadId": "82701488-b43c-4d7b-9244-4bb204a7ae26",
"connectionId": "ac6d0fdd-0db8-4f52-8a3d-de7ff8ddc14b"
},
"metadata": {
"_internal/indyCredential": {
"credentialDefinitionId": "q7ATwTYbQDgiigVijUAej:3:CL:318187:latest",
"schemaId": "q7ATwTYbQDgiigVijUAej:2:Employee Badge:1.0"
}
},
"credentials": [],
"id": "821f9b26-ad04-4f56-89b6-e2ef9c72b36e",
"createdAt": "2022-01-01T00:00:00.000Z",
"connectionId": "ac6d0fdd-0db8-4f52-8a3d-de7ff8ddc14b",
"threadId": "82701488-b43c-4d7b-9244-4bb204a7ae26",
"credentialAttributes": [],
"protocolVersion": "v1"
}