Skip to main content
GET
Download an attachment
Returns the attachment’s bytes as a file download. Use it to save files the agent produced or that someone shared in the thread. Related guide: Agent access: grant credentials to agents. The bytes, always served as Content-Disposition: attachment with nosniff.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

conversationId
string
required
attachmentId
string
required

Response

The file

The response is of type file.