agentThreadFiles

Returns content from a file attached to the specified agent thread.

Changed on

Returns 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>

get/agents/threads/{threadId}/files/{fileId}/download

Request

  • Base URL
    https://api.awork.com/api/v1
  • URL
    https://api.awork.com/api/v1/agents/threads/{threadId}/files/{fileId}/download
  • Auth
    HTTP bearer

Path parameters

threadIdstring uuid required

The agent thread id.

fileIdstring uuid required

The file id.

Query parameters

widthnumber double

The optional image width.

heightnumber double

The optional image height.

cropboolean

Whether to crop the image when resizing it.

Response

OK

string binary required

Changes

    • info

      api operation id agentThreadFiles_GetAgentThreadFileContent removed and replaced with agentThreadFiles_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

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API