Streaks
Read the current user's streak state and record a manual qualifying event.
POST /client/events automatically qualifies streaks whose qualifying_event matches. Use POST /client/streaks/:streakId/qualify for manual qualification (e.g. UI actions not mapped to an event).
Source: apps/api/src/routes/client/streaks.ts.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /client/streaks | All of the current user's streaks, with definition metadata. |
| POST | /client/streaks/:streakId/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/client/streaks'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
POST /client/streaks/:streakId/qualify
Response 200 (existing row updated) / 201 (first-time qualifier)
Errors
500 UPDATE_FAILED.
Try it:
POST
client auth/client/streaks/%7B%7BstreakId%7D%7D/qualifycurl -X POST 'https://api.amba.dev/client/streaks/%7B%7BstreakId%7D%7D/qualify'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: