/api/user-challenges
Requires authentication.
Bearer token obtained from
/api/auth/login or /api/auth/signup. Format: Bearer <token>.Example
Response
200 OK Returns an array of all user challenge objects, includingACTIVE, COMPLETED, and ABANDONED
challenges. Results are ordered by start_date descending (most recent first). Each object
includes the associated template data.
Returns an empty array [] if the user has never accepted a challenge.
Unique numeric identifier for this user challenge.
UUID of the authenticated user.
ID of the challenge template this challenge is based on.
Current status of the challenge. One of
ACTIVE, COMPLETED, or ABANDONED.ISO 8601 timestamp of when the challenge was started.
ISO 8601 timestamp of when the challenge was completed.
null if not yet completed.Progress notes for the challenge.
null if none have been added.ISO 8601 timestamp of when the record was created.
ISO 8601 timestamp of the last update to this record.
The challenge template this challenge is based on.
Example response
Errors
| Status | Description |
|---|---|
401 | Missing, invalid, or expired token. |