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
- 302
- 401
- 404
- 410
- 422
Redirect to the freshly-signed object-storage download URL (Content-Disposition: attachment, ~5-min TTL).
Response Headers
Signed object-storage URL for the artifact bytes.
Always no-store so the signed URL is never cached.
Authentication required
The response does not belong to this agent, or no artifact with this id exists on the response.
The response is unknown / expired, or its backing job no longer exists.
Validation failed