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.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /client/xp | Current user's XP + level. |
| GET | /client/xp/config | Effective level curve. |
| GET | /client/xp/history | Paginated XP ledger. |
| GET | /client/xp/rules | Active rules (public view — no internal fields). |
GET /client/xp/config
The effective level curve the server uses to compute levels — surface it so your UI shows exact thresholds instead of reverse-engineering them. thresholds is the cumulative-XP array when the project set one, else null (a flat curve via xp_per_level).
Response 200
Errors
500 FETCH_FAILED.
Try it:
GET
client auth/client/xp/configcurl -X GET 'https://api.amba.dev/v1/client/xp/config'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
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/v1/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/v1/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/v1/client/xp/rules'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: