v1

latestOpenAPI 3.1.0AGPL-3.0 license2026-07-1210336283.6 KB
Documents

Retrieve a document

Retrieve a document by its unique identifier for the authenticated team.

get/documents/{id}

Path parameters

idstring nullable required

Response

Retrieve a document by its unique identifier

idstring required

Unique identifier for the document.

titlestring nullable required

Title of the document.

pathTokensstring[] required

Array of path tokens representing the document's location.

processingStatusstring required

Processing status of the document.

summarystring nullable required

Summary or extracted content from the document.

datestring nullable required

Date associated with the document (ISO 8601).

Example response

{
  "id": "doc_1234567890abcdef",
  "title": "Invoice April 2024",
  "pathTokens": [
    "invoices",
    "2024",
    "april",
    "invoice-123.pdf"
  ],
  "metadata": {
    "size": 204800,
    "mimetype": "application/pdf"
  },
  "processingStatus": "processed",
  "summary": "Invoice for April 2024, total $1,200.00",
  "date": "2024-04-30"
}