Skip to Content
CerebrumDocs
GuidesAPI referenceTrust & security

Create Wallet Credential

Related workflow: Working with Beams and credentials

POST
/v1/wallet/credentials

Issue a wallet credential for a target user with optional PDF, DOC, DOCX, PNG, JPG, or JPEG file attachments in one request.

Related: Create Wallet Share Link

Authorization

apiKey
headerapikey<token>

Request Body

multipart/form-data
  1. body
orderId?string
userId?string
passTypeId?string
beamId*string
data*object

JSON payload; structure must match the BeamInputType schema

credentialData?object
attachments?array<WalletCredentialAttachment>

Response Body

The issued credential: its pass, beam input and output, status and stored files.

application/json
  1. response
passId*string|null
beamInputId*string
beamOutputId*string
credentialId*string
status*string
files*array<WalletCredentialFileResponse>
Example Request
curl -X POST 'https://api.cerebrum.com/v1/wallet/credentials' \  -H 'apikey: CEREBRUM_API_KEY' \  -F 'beamId=BEA-123' \  -F 'data={}'
Example Response
{  "passId": "string",  "beamInputId": "string",  "beamOutputId": "string",  "credentialId": "string",  "status": "ACTIVE",  "files": [    {      "partName": "string",      "fileId": "string",      "name": "string",      "type": "string"    }  ]}