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

companyId
string
required

Company ID

content
string
required

Document content

id
string
required

Document ID

name
string
required

Document name

type
string
required

File type (e.g., .txt)

path
string
default:/

Document path

tags
string[]

Array of tag strings

Response

Document updated successfully

Success response

msg
string

Success message