Skip to main content
POST
Attach a file to the chat

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

multipart/form-data
file
file
required

The file to attach.

Response

Successful Response

A file dropped into the chat, now a document the sender owns.

document_id
string<uuid>
required
filename
string
required
mime_type
string
required
status
string
required

indexed, ocr_required or failed.

needs_ocr
boolean
required

Scanned: OCR (with approval) would read it.

reference
string
required

The line to put in the message: '[attachment] — document_id: — '.

page_count
integer | null

Pages, slides or sheets.

chunk_count
integer | null
warning
string | null

E.g. a spreadsheet read only in part.