Skip to main content
POST
Create A File

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
mime_type
string
required
size
integer
required

File size in bytes. Max:

Required range: 0 <= x <= 52428800
purpose
enum<string>
required
Available options:
knowledge-base,
email,
chat

Response

Successful response

attachment
object
required
presigned_url
object
required