Skip to main content

Files

The Files API allows you to upload files for use with other Assistive APIs, such as Chat and Tools. It returns a File ID that can be reused in other API requests.

Currently, file hosting is free, however this may change in the future. Do not rely on this API for file hosting outside of use with Assistive APIs.

Note: the Files API is hosted on the subdomain services.assistive.chat. API key authentication is the same.

Upload file

POST https://services.assistive.chat/v1/files

Request body formdata

  • file file required
    • The file you are uploading.

Returns

{
"success": true,
"file_id": "[FILE]"
}