📁 Files Official Documentation

⋙ List Files

Returns a list of files that belong to the user's organization.

msg.payload Properties

purpose string
Only return files with the given purpose.
limit integer
A limit on the number of objects to be returned.
order string
Sort order by the created_at timestamp of the objects.
after string
A cursor for use in pagination.

⋙ Upload File

msg.payload Properties

file file
Absolute path to the file that's being uploaded.
purpose string
The intended purpose of the uploaded file.

⋙ Delete File

Delete a file.

msg.payload Properties

file_id string
The ID of the file to use for this request.

⋙ Retrieve File

Returns information about a specific file.

msg.payload Properties

file_id string
The ID of the file to use for this request.

⋙ Retrieve File Content

Returns the contents of the specified file.

msg.payload Properties

file_id string
The ID of the file to use for this request.