---
title: "List uploaded contexts (?limit=&include_deleted=)"
method: GET
path: "/preview/contexts"
tags: ["contexts"]
---

# List uploaded contexts (?limit=&include_deleted=)

`GET /preview/contexts`

## Request

- Base URL: `https://autoresearch.sfcompute.com`
- URL: `https://autoresearch.sfcompute.com/preview/contexts`
- Auth: HTTP bearer

Your workspace's uploaded contexts, newest first: {context_id, sha256, size_bytes, status, created_at, finalized_at, lifecycle_expires_at}. The enumeration create_context/get_context never had - use it to find what you uploaded when the ids are no longer in your context, and to decide what to delete_context. Contexts live in the workspace they were created in (like nodes and artifacts): another workspace's uploads are not listed here and their ids answer as unknown. `status` is get_context's vocabulary (uploading / finalizing-or-failed / ready / expired / deleted); `lifecycle_expires_at` is when a finalized context stops being fetchable (~30 days after finalize). Pass include_deleted:true to see purge tombstones and their bytes_deleted_at confirmations.

## Query parameters

- `limit` integer, nullable: Max contexts to return (default 50, cap 200), newest first.
- `include_deleted` boolean, nullable: Include deleted contexts (delete_context tombstones, readable for a week after deletion) - that is where `bytes_deleted_at` confirms a purge actually removed the stored bytes. Default false.
- `workspace` string

## Response `200`

The capability's JSON result.

- Result: The capability's result: the same object the MCP tool returns as structuredContent. Resources carry an `object` type discriminator and an immutable id; money is integer micro-dollars in `*_usd_micros` fields.
  - `object` string: The resource type, when the result is one resource.

## Other responses

- `400`: Malformed request: bad JSON, a parameter that does not parse, or a value outside its range. Code `invalid`.
- `401`: No bearer token, or one this API cannot verify. Code `unauthenticated`.
- `403`: Authenticated, but the token's scopes or the account's role do not reach this operation. The message names the scope word to request. Code `forbidden`.
- `404`: No such route. Code `not_found`; the body names the OpenAPI document.
- `422`: A well-formed request the platform declined: no such node, a cap reached, a state that forbids the move. The message says which, and what to do instead. Code `refused`.
- `429`: Over this door's per-customer budget. Wait `Retry-After` seconds. Code `rate_limited`.
- `500`: Our fault. Retry; if it persists, quote the request-id. Code `internal`.

---

[API](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api.md) · [All operations](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api/revisions/f88dcb70ac6c?raw)
