---
title: "Admin Queries"
method: GET
path: "/admin/queries"
---

# Admin Queries

`GET /admin/queries`

## Request

- Base URL: `https://api.colourmemory.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.colourmemory.com/admin/queries`
- Auth: none declared

Return the last n queries in reverse-chronological order.
In-memory only -- resets on redeploy. Use for tester review.

Requires X-Admin-Key header matching ADMIN_SECRET env var.

Example: GET /admin/queries?n=50

## Query parameters

- `n` integer

## Headers

- `x-admin-key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/colourmemory/apis/colour-memory-api.md) · [All operations](https://skmtc.dev/colourmemory/apis/colour-memory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/colourmemory/apis/colour-memory-api/revisions/4ba028f64042?raw)
