---
title: "Batch metadata fetch for a set of context ids (e.g. a \"recent contexts\" rail)"
method: GET
path: "/api/contexts/recent"
tags: ["Contexts"]
---

# Batch metadata fetch for a set of context ids (e.g. a "recent contexts" rail)

`GET /api/contexts/recent`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/contexts/recent`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

Rows not visible to the caller (wrong tenant, another user's personal row) are silently omitted rather than causing a 404. Results are ordered to match the request order, not database order.

## Query parameters

- `ids` string

## Response `200`

Matching contexts as ContextSummary rows, in request order.

- object
  - `results` object[]

## Other responses

- `401`: Missing or invalid credentials.

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
