v1

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

List all documents

Retrieve a list of documents for the authenticated team.

get/documents

Query parameters

cursorstring nullable

A cursor for pagination. Pass the value returned from the previous response to get the next page.

Example:20

A cursor for pagination. Pass the value returned from the previous response to get the next page.

sortstring[] nullable

Sort as [column, direction]. Currently documents are sorted by created date descending.

Sort as [column, direction]. Currently documents are sorted by created date descending.

pageSizenumber

Number of documents to return per page.

Example:20

Number of documents to return per page.

qstring nullable

Search query string to filter documents by text.

Example:invoice

Search query string to filter documents by text.

tagsstring[] nullable

Array of tag IDs to filter documents by tags.

Array of tag IDs to filter documents by tags.

[
  "tag1",
  "tag2"
]
startstring nullable

Start date for filtering documents (ISO 8601 date).

Example:2024-01-01

Start date for filtering documents (ISO 8601 date).

endstring nullable

End date for filtering documents (ISO 8601 date).

Example:2024-12-31

End date for filtering documents (ISO 8601 date).

Response

Retrieve a list of documents for the authenticated team.

Example response

{
  "meta": {
    "cursor": "20",
    "hasPreviousPage": false,
    "hasNextPage": true
  },
  "data": [
    {
      "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"
    }
  ]
}