Skip to Content
CerebrumDocs
GuidesAPI referenceTrust & security

Get Credential

Related workflow: Working with Beams and credentials

GET
/v1/credential/{id}

Retrieve a credential and its metadata by credential ID.

Authorization

apiKey
headerapikey<token>

Path Parameters

id*string

Response Body

The credential with its data and status.

application/json
  1. response
id*string

The id of the Credential

name*string

The name of the Credential

createdAt*string

The creation date of the Credential

Formatdate-time
typeId*string

The id of the credential type used to create the credential

userId*string

The id of the user the credential was issued to

organizationId*string

The id of the organization that issued the credential

data*object

The raw credential data

status*object

The status of the credential. One of "PENDING", "ACTIVE" or "REVOKED"

Example Request
curl -X GET 'https://api.cerebrum.com/v1/credential/string' \  -H 'apikey: CEREBRUM_API_KEY'
Example Response
{  "id": "string",  "name": "string",  "createdAt": "2019-08-24T14:15:22Z",  "typeId": "string",  "userId": "string",  "organizationId": "string",  "data": {},  "status": {    "value": "ACTIVE"  }}