Upload an organization document

Upload a document to an organization.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <API_KEY>, where API_KEY is your API key.

Path parameters

orgIdstringRequired
Organization that will store the document.

Headers

X-Account-IdstringRequired
Account that owns the organization.

Request

This endpoint expects a multipart form containing a file.
filefileRequired

Document to upload. Supported file types: pdf, docx, pptx, odt, odp, txt, md, rst, adoc, org, html, csv, epub. File size limits apply.

folderstringOptional

Target folder name. Must already exist. Defaults to custom-documents when omitted.

Response

The uploaded and processed document.
documentobject
The stored document, in the lean shape.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
413
Content Too Large Error
500
Internal Server Error