Skip to main content

Download an agent-generated artifact

GET 

/agent/:id/responses/:response_id/artifacts/:artifact_id

Redirects to a freshly-signed, short-lived object-storage URL for a downloadable artifact (docx / xlsx / pdf) produced by the agent during the response's run. The artifact reference is surfaced live on the SSE stream as a response.output_item.added item of type artifact.

The redirect carries Content-Disposition: attachment and a Cache-Control: no-store header; the signed URL has a short TTL (~5 minutes), so clients re-request this endpoint on expiry rather than caching the Location. See the Artifacts guide.

Request

Responses

Redirect to the freshly-signed object-storage download URL (Content-Disposition: attachment, ~5-min TTL).

Response Headers
    Location

    Signed object-storage URL for the artifact bytes.

    Cache-Control

    Always no-store so the signed URL is never cached.