Skip to main content
POST
/
file
curl -X POST "https://api2.circlemind.co/api/v1/file" \
-H "apikey: YOUR_API_KEY" \
-F "file=@/path/to/your/file.txt"
{
  "id": "<string>"
}

Authorizations

apikey
string
header
required

Body

multipart/form-data
file
file
required
name
string

Optional custom name for the file. If not provided, the original file name will be used.

purpose
string

Optional short description of the file to describe its purpose (i.e., 'the bank statement pdf').

Response

File successfully uploaded.

Response model for uploading a file.

id
string
required

The ID assigned to the uploaded file.

I