XP
Current user's XP, per-event ledger history, and active XP rules.
XP is awarded automatically by POST /client/events based on matching xp_rules. These endpoints are read-only.
Source: apps/api/src/routes/client/xp.ts.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /client/xp | Current user's XP + level. |
| GET | /client/xp/history | Paginated XP ledger. |
| GET | /client/xp/rules | Active rules (public view — no internal fields). |
GET /client/xp
Returns defaults (total_xp: 0, level: 1) if no row exists yet.
Response 200
Errors
500 FETCH_FAILED.
Try it:
GET
client auth/client/xpcurl -X GET 'https://api.amba.dev/client/xp'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /client/xp/history
Query
| Param | Default |
|---|---|
limit | 50 |
offset | 0 |
Response 200
Try it:
GET
client auth/client/xp/historycurl -X GET 'https://api.amba.dev/client/xp/history'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /client/xp/rules
Active XP rules (public columns only).
Response 200
Try it:
GET
client auth/client/xp/rulescurl -X GET 'https://api.amba.dev/client/xp/rules'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: