Skip to main content
Version: Next

Store credential

POST 

/api/dcp/credentials

Stores a new credential

Request

Header Parameters

    Authorization stringrequired

    Access Token from Self-Issued ID Token

Bodyrequired

    @contextstring[]required
    Example: ["https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"]
    typestringrequired
    Example: CredentialMessage
    issuerPidstringrequired
    holderPidstringrequired
    statusstringrequired

    Possible values: [ISSUED, REJECTED]

    rejectionReasonstring
    credentials object[]
  • Array [
  • typestringrequired
    payloadstringrequired
    credentialTypestringrequired
    formatstringrequired
  • ]

Responses

curl -L -X POST 'https://tsg.dataspac.es/api/dcp/credentials' \
-H 'Content-Type: application/json'
Request Collapse all
Parameters
— headerrequired
Body required
{
  "@context": [
    "https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"
  ],
  "type": "CredentialMessage",
  "issuerPid": "string",
  "holderPid": "string",
  "status": "ISSUED",
  "rejectionReason": "string",
  "credentials": [
    {
      "type": "string",
      "payload": "string",
      "credentialType": "string",
      "format": "string"
    }
  ]
}