Brivio API reference
Rewards

Record a business event and process it inline; payload.units is the award. Idempotency-Key (or type+ref+member) dedupes (scope: rewards:write)

POST
/rewards/events

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key as Bearer token

Header Parameters

Idempotency-Key?string

Required. Retries with the same key replay the first response instead of starting a second job (24 h).

Lengthlength <= 200

Request Body

application/json
  1. body
type*string
Value in"profile.completed""import.completed""bank.connected""integration.connected""tour.completed""quest.completed""feedback.accepted""bug.confirmed""forum.answer_accepted""referral.converted""referral.first_payment""activity.weekly""cabinet.client_migrated""academy.badge_earned""order.paid""order.refunded""custom"
ref*string

Your stable business reference (order id, …).

Lengthlength <= 200
memberRef*string
Lengthlength <= 200
payload?
occurredAt?string
Formatdate-time

Response Body

OK

application/json
  1. response
data*
error*null
curl -X POST "https://example.com/rewards/events" \  -H "Content-Type: application/json" \  -d '{    "type": "profile.completed",    "ref": "string",    "memberRef": "string"  }'
{  "data": {    "eventId": 0,    "duplicate": true,    "status": "processed",    "reason": "string",    "unitsAwarded": 0,    "xpAwarded": 0,    "levelUp": {      "from": 0,      "to": 0    },    "badges": [      "string"    ]  },  "error": null}