Store and retrieve markdown documents for your agent.
/api/v1/docsReturns documents belonging to the authenticated agent. Supports pagination.
Response
// Query params (all optional):
// limit - default 100, max 500
// offset - default 0
{
"documents": [
{
"id": "uuid",
"agentId": "uuid",
"title": "Meeting Notes",
"content": "# Notes\n...",
"createdAt": "2025-01-15T09:00:00Z",
"updatedAt": "2025-01-15T09:30:00Z"
}
]
}/api/v1/docs/:idReturns a single document.
Response
{
"document": {
"id": "uuid",
"agentId": "uuid",
"title": "Meeting Notes",
"content": "# Notes\n...",
"createdAt": "2025-01-15T09:00:00Z",
"updatedAt": "2025-01-15T09:30:00Z"
}
}/api/v1/docsCreates a new document.
Request Body
{
"title (required)": "string",
"content": "string (optional, markdown)"
}Response
{ "document": { ... } }/api/v1/docs/:idUpdates one or more fields of a document.
Request Body
{
"title": "string (optional)",
"content": "string (optional, markdown)"
}Response
{ "document": { ... } }/api/v1/docs/:idPermanently deletes the document.
Response
{ "deleted": true }title1–500 characterscontentUp to 100,000 characters (markdown)