---
title: "Challenge"
method: GET
path: "/profile/{public_id}/challenge/"
tags: ["profile"]
---

# Challenge

`GET /profile/{public_id}/challenge/`

Provides a list of challenges where the profile can participate and is already participating in.

This endpoint returns a list of objects.

## Query parameters

- `recent` integer
- `date_start` string, date-time
- `date_end` string, date-time

## Response `200`

OK

- ProfileChallengeList
  - `url` string, uri
  - `public_id` string, uuid
  - `title` string, required
  - `slogan` string
  - `description` string
  - `start` string, date-time, required
  - `end` string, date-time, nullable
  - `type` 'INDIVIDUAL' | 'GROUP' | 'TEAM', required
  - `goal` 'DAILY' | 'TOTAL' | 'WEEKLY' | 'MONTHLY', required
  - `goal_value` integer, nullable
  - `goal_type` 'POINTS' | 'DISTANCE' | 'CALORIES' | 'DURATION' | 'STEPS', required
  - `visibility` 'PUBLIC' | 'PRIVATE', required
  - `num_members` string
  - `leaderboard_rank` integer — Current or final rank among the participants of the challenge as determined by the relevant score.
  - `leaderboard_score` number — The profile's current or final score.
  - `is_participating` boolean — Does the current profile participate in this challenge?
  - `enrollment` EnrollmentInformation
    - `team` string
    - `team_public_id` string
    - `team_size` integer
    - `leaderboard_rank` integer — Current or final rank among the participants of the challenge as determined by the relevant score.
    - `leaderboard_score` number — The profile's current or final score.

---

[API](https://skmtc.net/wefitter/apis/wefitter-api.md) · [All operations](https://skmtc.net/wefitter/apis/wefitter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wefitter/wefitter-api/revisions/52b0eb5e8b96/schema)
