Skip to main content
POST
Create or update a document.

Authorizations

X-API-Key
string
header
required

Company API key - scoped to a specific company. Generate from the Integrations page in your dashboard.

Body

application/json

Document data

Request body for updating a document

name
string
required

Document name

content
string
required

Document content

type
string
required

File type (e.g., .txt)

companyId
string
required

Company ID

id
string

ID of the document to update. Omit it to create a new document; the response returns the generated ID.

path
string
default:/

Document path

tags
string[]

Array of tag strings

Response

Document saved successfully

Document save response

id
string

ID of the saved document