/api/user-challenges/active
Requires authentication.
Bearer token obtained from
/api/auth/login or /api/auth/signup. Format: Bearer <token>.When the user has no active challenge, the endpoint returns
null with a 200 OK status — not
a 404. Always check whether the response body is null before accessing its fields.Example
Response
200 OK Returns the active user challenge object joined with its template, ornull if no challenge is
currently active.
Unique numeric identifier for this user challenge.
UUID of the authenticated user.
ID of the challenge template this challenge is based on.
Current status. Always
ACTIVE for this endpoint.ISO 8601 timestamp of when the challenge was started.
Always
null for active challenges.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 (active challenge)
Example response (no active challenge)
Errors
| Status | Description |
|---|---|
401 | Missing, invalid, or expired token. |