/api/challenge-templates
Requires authentication.
string
required
Bearer token obtained from
/api/auth/login or /api/auth/signup. Format: Bearer <token>.The API is pre-seeded with 7 built-in challenge templates ranging from 1 to 60 days. They are
available to all authenticated users immediately after the service starts.
Example
Response
200 OK Returns an array of challenge template objects ordered by creation date, most recent first.number
required
Unique numeric identifier for the template.
string
required
Display name of the challenge.
string
required
Full description of the challenge goal and instructions.
number
required
Number of consecutive days the challenge runs.
string
required
ISO 8601 timestamp of when the template was created.
string
required
ISO 8601 timestamp of the last update to the template.
Example response