Documents
The Documents operations of the Hub REST API (6 operations).
bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
userId*stringworkspaceId?string|nulltitle*stringcontent?stringtype?DocumentType"text""markdown""code""html""pdf""docx"reasoning?stringagentUserId?stringsourceMessageId?stringsessionId?stringexpectedLabel?stringurl?stringentityId?stringidempotencyKey?stringCreated document
application/json- response
id*stringuserId*stringworkspaceId?string|nulltitle*stringcontent?stringtype?DocumentType"text""markdown""code""html""pdf""docx"createdAt?string|updatedAt?string|[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/documents' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string", "title": "string"}'{ "id": "string", "userId": "string", "workspaceId": "string", "title": "string", "content": "string", "type": "text", "createdAt": "string", "updatedAt": "string", "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
documentId*stringuserId*stringformat?string"raw""readable"Document
application/json- response
id*stringuserId*stringworkspaceId?string|nulltitle*stringcontent?stringtype?DocumentType"text""markdown""code""html""pdf""docx"createdAt?string|updatedAt?string|[key: string]?unknowncurl -X GET 'https://pod.example.com/api/hub/documents/string?userId=string'{ "id": "string", "userId": "string", "workspaceId": "string", "title": "string", "content": "string", "type": "text", "createdAt": "string", "updatedAt": "string", "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
documentId*stringapplication/json- body
userId*stringtitle?stringcontent?stringbaseRevision?integer0 <= valueallowRemovingEmbeds?booleanagentUserId?stringsourceMessageId?stringsessionId?stringUpdated document
application/json- response
id*stringuserId*stringworkspaceId?string|nulltitle*stringcontent?stringtype?DocumentType"text""markdown""code""html""pdf""docx"createdAt?string|updatedAt?string|[key: string]?unknowncurl -X PATCH 'https://pod.example.com/api/hub/documents/string' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string"}'{ "id": "string", "userId": "string", "workspaceId": "string", "title": "string", "content": "string", "type": "text", "createdAt": "string", "updatedAt": "string", "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
documentId*stringuserId*stringagentUserId?stringsourceMessageId?stringsessionId?stringproposedContent*stringbaseRevision?integer0 <= valueallowRemovingEmbeds?booleanreasoning?stringCreated proposal
application/json- response
id*stringstatus?string[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/documents/proposals' \ -H 'Content-Type: application/json' \ -d '{ "documentId": "string", "userId": "string", "proposedContent": "string"}'{ "id": "string", "status": "string", "property1": null, "property2": null}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
documentId*stringuserId*stringRaw document bytes
response?stringapplication/jsoncurl -X GET 'https://pod.example.com/api/hub/documents/string/raw?userId=string'"string"bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
documentId*stringapplication/json- body
userId?stringagentUserId?stringsourceMessageId?stringsessionId?stringbaseRevision?integer0 <= valueops*array<|||>1 <= items <= 50allowRemovingEmbeds?booleanreasoning?stringApplied (or proposed — 202)
application/json- response
status*string[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/documents/string/patch' \ -H 'Content-Type: application/json' \ -d '{ "ops": [ { "op": "upsert_section", "id": "string", "title": "string", "body": "string" } ]}'{ "status": "string", "property1": null, "property2": null}