v1

latestOpenAPI 3.0.0MIT2026-07-264001,540832.7 KB

Create AI agent document

Create a knowledge document. The projectUuid and agentAccess body fields are deprecated: scope the document by creating it on the agent route instead. Without them the document is available to every agent.

post/api/v1/aiAgents/documents

Request body

agentAccessstring[]
projectUuidstring nullable
contentstring required
mimeTypestring required
originalFilenamestring required
namestring required

Response

Created

status'ok' required