---
title: "An earlier export's record and a fresh download URL"
method: GET
path: "/preview/artifacts/{id}"
tags: ["artifacts"]
---

# An earlier export's record and a fresh download URL

`GET /preview/artifacts/{id}`

## Request

- Base URL: `https://autoresearch.sfcompute.com`
- URL: `https://autoresearch.sfcompute.com/preview/artifacts/{id}`
- Auth: HTTP bearer

Fetch an artifact's record and a fresh download URL by id - the way back to an export after the original export_file response is gone, and the poll for an export that export_file answered with state "pending" (list_artifacts and a mission page list artifact ids; this turns one back into bytes). Returns the export_file shape: {artifact_id, state, source_path, size_bytes, sha256, download: {url, expires_at}} for a ready artifact (a fresh ~7-day presigned GET; the stored object itself lives ~30 days, after which the download is omitted and re-exporting is the fix). A pending artifact answers state "pending" and next_step (this is not an error: call again in a few seconds). A failed one answers its error plus error_code and retryable (the export_file refusal vocabulary). A capture that landed in your own store or platform storage shows where it went instead of a link. To put the file in front of a human (Slack, a doc, <img src>), share_artifact mints a public embeddable link instead.

## Path parameters

- `id` string, required: The art-... id returned by export_file / copy_file / get_job (or listed on get_mission).

## Query parameters

- `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)
