Skip to main content
GET
/
agent
/
{agentId}
/
context
/
file
/
{fileId}
/
download
Download Context File
curl --request GET \
  --url https://api.beamstudio.ai/agent/{agentId}/context/file/{fileId}/download \
  --header 'Authorization: Bearer <token>' \
  --header 'current-workspace-id: <current-workspace-id>'
{
  "downloadUrl": "https://storage.example.com/files/123e4567-e89b-12d3-a456-426614174000?signature=abc123&expires=1640000000"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

current-workspace-id
string
required

Path Parameters

agentId
string
required
fileId
string
required

Response

200 - application/json

Download link generated successfully

downloadUrl
string
required

Pre-signed URL for downloading the context file. This URL has a limited validity period and should be used immediately.

Example:

"https://storage.example.com/files/123e4567-e89b-12d3-a456-426614174000?signature=abc123&expires=1640000000"