Returns a file of the specified agent thread.

Returns file metadata for a file attached to the specified agent thread. Both the thread id and file id must match the attachment. Returns not found if the file is not attached to that thread. <Check title="Required Permissions" icon="key">The user must have `read` access to the agent thread.</Check>

Authentication

AuthorizationBearer

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

Path parameters

threadIdstringRequiredformat: "uuid"
The agent thread id.
fileIdstringRequiredformat: "uuid"
The file id.

Response

OK
namestring or nullOptional

The user-specified name of the file.

descriptionstring or nullOptional
The description of the file.
idstringOptionalformat: "uuid"
The id of the file info.
projectIdstring or nullOptionalformat: "uuid"
projectTemplateIdstring or nullOptionalformat: "uuid"
companyIdstring or nullOptionalformat: "uuid"
taskIdstring or nullOptionalformat: "uuid"
taskTemplateIdstring or nullOptionalformat: "uuid"
userIdstring or nullOptionalformat: "uuid"
documentIdstring or nullOptionalformat: "uuid"
fileNamestring or nullOptional
The name of the file.
entityTypestring or nullOptional
The name of the linked entity type.
mimeTypestring or nullOptional
The MIME type of the file.
createdOnstringOptionalformat: "date-time"
The date this file was created.
createdBystringOptionalformat: "uuid"
The id of the user who created this file.
updatedOnstringOptionalformat: "date-time"
The date this file was last modified.
updatedBystringOptionalformat: "uuid"
The id of the user who last modified this file.
fileVersionslist of objects or nullOptional
List of all versions.
isCommentFilebooleanOptional
Whether the file is related to a comment.
externalProviderstring or nullOptional
The external provider for the file. Like 'google' or 'onedrive'.
externalFileUrlstring or nullOptional
The file url of the external provider.
isHiddenForConnectUsersbooleanOptional
Whether the file is hidden for connect users.
entityIdstring or nullOptionalformat: "uuid"Deprecated
Deprecated. The id of the linked entity derived from entity specific owner ids.

Errors

401
Unauthorized Error
404
Not Found Error