---
title: "Get a request"
method: GET
path: "/v1/requests/{id}"
---

# Get a request

`GET /v1/requests/{id}`

Inspect a customer-owned Request. Poll queued or running requests after retryAfterSeconds. Successful output is retained for 24 hours; metadata remains after the result expires.

## Path parameters

- `id` string, uuid, required

## Response `200`

Current request snapshot.

- RequestSnapshot
  - `completedAt` string, date-time
  - `createdAt` string, date-time, required
  - `error` object
    - `code` string, required
  - `expiresAt` string, date-time
  - `requestId` string, uuid, required
  - `result` object
    - `costUsd` number, required — USD charged on the ORIGINAL run, echoed for envelope parity; this re-read is free.
    - `items` integer — Number of result rows returned by the original run.
    - `jqError` string — Present only when a `jq` expression failed; `output` then carries the full unshaped result and this explains why the reshape did not apply.
    - `output` unknown, required
    - `provider` string, required — Always "AnyAPI".
    - `replayed` boolean, required — False on this cached-result endpoint; true is reserved for durable idempotency replays from POST /v1/run/{sku}.
    - `resultId` string — The id you requested, echoed so you can keep re-reading the same cached result.
  - `resultExpired` boolean
  - `retryAfterSeconds` integer
  - `sku` string, required
  - `status` 'queued' | 'running' | 'succeeded' | 'failed' | 'expired', required

## Other responses

- `401` — Missing or invalid API key.
- `404` — Unknown request id, or a request owned by another customer.

---

[API](https://skmtc.net/getanyapi-com/apis/anyapi.md) · [All operations](https://skmtc.net/getanyapi-com/apis/anyapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getanyapi-com/anyapi/versions/f7ea58230898/schema)
