---
title: "Get Challenges History"
method: GET
path: "/api/challenges/history/{user_id}"
tags: ["Challenges"]
---

# Get Challenges History

`GET /api/challenges/history/{user_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/challenges/history/{user_id}`
- Auth: HTTP bearer

Get completed and expired challenge history with stats.

## Path parameters

- `user_id` string, uuid, required

## Response `200`

Successful Response

- ChallengeHistoryResponse
  - `challenges` ChallengeHistoryItem[], required
    - `id` string, required
    - `title` string, required
    - `status` string, required
    - `difficulty` string, required
    - `target_amount` number, required
    - `completed_at` string, nullable
  - `total_completed` integer, required
  - `total_xp_earned` integer, required
  - `total_saved` number, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
