Skip to main content
POST
/
v1
/
assistants
/
custom
/
{assistant_id}
/
files
Upload File To A Custom Assistant
curl --request POST \
  --url https://{api_endpoint}/api/v1/assistants/custom/{assistant_id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

assistant_id
string
required

Query Parameters

extraction_strategy
enum<string>
default:express
Available options:
express,
standard,
high_quality

Body

multipart/form-data
file
file
required

Response

Successful Response