Skip to content
brain.GitHub
Developer docs OPEN SOURCE
HTTP APIEndpoints

Download an attachment

GET
/sessions/{id}/attachments

Streams a finalized attachment selected by the reference query parameter. Requires read access to the owning session.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string

Opaque session ID.

Length1 <= length <= 128

Query Parameters

reference*string

Response Body

Download an attachment

response?fileapplication/octet-stream
Formatbinary
curl -X GET 'http://127.0.0.1:8080/sessions/string/attachments?reference=string' \  -H 'Authorization: Bearer <BRAIN_TOKEN>'
"string"