Returns content from a file attached to the specified agent thread.
Changed onReturns the binary content of a file attached to the specified agent thread. Use the thread id and file id from the attachment metadata. For images, width, height, and crop control resizing. <Check title="Required Permissions" icon="key">The user must have read access to the agent thread.</Check>
Request
- Base URLhttps://api.awork.com/api/v1
- URLhttps://api.awork.com/api/v1/agents/threads/{threadId}/files/{fileId}/download
- AuthHTTP bearer
Path parameters
The agent thread id.
The file id.
Query parameters
The optional image width.
The optional image height.
Whether to crop the image when resizing it.
Response
OK
Changes
- info
api operation id
agentThreadFiles_GetAgentThreadFileContentremoved and replaced withagentThreadFiles_GetAgentsThreadsFilesDownloadByThreadIdAndFileId - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
oauth2was added to the API
- warning