Streaks
Read the current user's streak state and record a qualifying event.
POST /client/events automatically qualifies streaks whose qualifying_event matches. Use POST /client/streaks/:idOrKey/qualify for manual qualification (e.g. UI actions not mapped to an event).
The :idOrKey parameter accepts either a streak's UUID or its human-readable key (e.g. "daily_play"). If the value looks like a UUID it is treated as an id-lookup; otherwise it is treated as a key-lookup. The two paths are mutually exclusive.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /client/streaks | All of the current user's streaks. |
| POST | /client/streaks/:idOrKey/qualify | Record a qualifying event against a streak definition. |
GET /client/streaks
Response 200
Errors
500 FETCH_FAILED.
Try it:
GET
client auth/client/streakscurl -X GET 'https://api.amba.dev/v1/client/streaks'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
POST /client/streaks/:idOrKey/qualify
Response 200 (existing row updated) / 201 (first-time qualifier)
Errors
404 STREAK_NOT_FOUND— no streak definition with the given id or key. Includes ahintfield pointing toamba_create_streak.500 QUALIFY_FAILED.
Try it:
POST
client auth/client/streaks/daily_play/qualifycurl -X POST 'https://api.amba.dev/v1/client/streaks/daily_play/qualify'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: