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

id
string
required

Document ID

name
string
required

Document name

content
string
required

Document content

type
string
required

File type (e.g., .txt)

companyId
string
required

Company ID

path
string
default:/

Document path

tags
string[]

Array of tag strings

Response

Document updated successfully

Success response

msg
string

Success message