Skip to main content

Get a document

GET /namespaces/:namespace/documents/:id Returns the document with its full text.
Response

Response

  • id, text, metadata: The document.
  • updated_at: When it was last written, in UTC, to the second. An unchanged write leaves it as it was.
  • version: Its version.
  • user: Its user. Left out if it has none.
  • seq: Its sequence number. Left out if it has none.
A missing document returns 404 document_not_found.

List documents

GET /namespaces/:namespace/documents Returns a page of documents in id order, without their text.
Response

Request

  • limit (integer, default 50): Documents per page, 1-100.
  • cursor (string): The previous page’s next_cursor.

Response

  • documents: The page: each document as Get returns it, without text.
  • next_cursor: Pass it as cursor for the next page. null on the last page.
The SDK’s list() fetches every page. An empty or missing namespace returns 404 namespace_not_found.