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. Anunchangedwrite 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.
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’snext_cursor.
Response
documents: The page: each document as Get returns it, withouttext.next_cursor: Pass it ascursorfor the next page.nullon the last page.
list() fetches every page. An empty or missing namespace returns
404 namespace_not_found.