Skip to main content
POST
/
api
/
v1
/
onboarding
/
register
Register user
curl --request POST \
  --url https://api.digitalreceiptprotocol.org/api/v1/onboarding/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "identifiers": [
    {
      "type": "email",
      "value": "[email protected]",
      "verified": true,
      "verifiedAt": "2025-12-15T00:00:00Z"
    }
  ],
  "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A...",
  "keyId": "550e8400-e29b-41d4-a716-446655440000"
}
'
{
"success": true,
"data": {
"userId": "550e8400-e29b-41d4-a716-446655440001",
"status": "active",
"registeredAt": "2025-12-15T12:00:00Z"
}
}

Body

application/json
identifiers
object[]
required

At least one identifier is required

Minimum array length: 1
publicKey
string
required

Base64-encoded public key from generate-keys endpoint

Example:

"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."

keyId
string<uuid>
required

Key ID from generate-keys endpoint

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

User registered successfully

success
boolean
Example:

true

data
object