---
title: "Get Archive"
method: GET
path: "/tasks/archive"
---

# Get Archive

`GET /tasks/archive`

Return the last N archived (done/failed) task records.

## Query parameters

- `limit` integer
- `tenant` string, nullable

## Response `200`

Successful Response

- ArchiveRecord[]
  - `task_id` string, required
  - `title` string, required
  - `role` string, required
  - `tenant_id` string, required
  - `status` string, required
  - `created_at` number, required
  - `completed_at` number, required
  - `duration_seconds` number, required
  - `result_summary` string, nullable, required
  - `cost_usd` number, nullable, required
  - `assigned_agent` string, nullable, required
  - `owned_files` string[], required
  - `claimed_by_session` string, nullable, required

## Other responses

- `403` — Tenant scope access denied
- `404` — Resource not found or tenant mismatch
- `422` — Validation Error

## Changes

> 15 revisions in range; 7 could not be searched.

- **2026-07-26** `2a1299ef19fa` — 2 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`

[Change history](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/changes/tasks/archive/get.md)

---

[API](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/7f4871ff054a/schema)
