Skip to Content
CerebrumDocs
GuidesAPI referenceTrust & security

Create Credential Type

Related workflow: Working with Beams and credentials

POST
/v1/credential-type

Create a credential type schema that can be issued by a beam.

Behavior

  • The slug is generated from the beam name and the version is 1.0.0.

Related: Get Credential Type

Authorization

apiKey
headerapikey<token>

Request Body

application/json
  1. body
schema*object

JSON schema that describes the stored credential data

beamId*string

The id of the Beam to attach the CredentialType to

Response Body

Credential type created; returns its ID and generated slug.

application/json
  1. response
credentialTypeId*string

The id of the created CredentialType

credentialTypeSlug*string

The slug of the created CredentialType, used to identify different versions of the same input

Example Request
curl -X POST 'https://api.cerebrum.com/v1/credential-type' \  -H 'apikey: CEREBRUM_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "schema": {},  "beamId": "string"}'
Example Response
{  "credentialTypeId": "string",  "credentialTypeSlug": "string"}