List documents.
The documents the calling key can see, as a paginated list, narrowed by directory, state and name. This is also how an integration follows its uploads: a document is named after the uploaded file without its extension, so it is found by directory and name, and the list tells which are ready, which failed and what Galilea recorded about it.
Each entry carries the document's name, directory and state and who created it, nothing more. No entry carries content. This API never delivers the text of a document nor its file; what Galilea made of an upload is read in the Galilea application.
directory lists the documents directly inside one directory, not those of its
subdirectories; walk the tree with GET /directories if a run spread over several.
name matches the beginning of the document name, case-insensitive, which is how a
tool finds the documents of one source file whose names share a prefix.
Visibility follows the calling user: documents in directories the key cannot reach are
not listed, and a directory the key cannot reach is answered with an empty list, not
with 404, so that a listing never reveals what exists elsewhere.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
directory?stringOnly documents directly inside this directory.
uuidstate?DocumentStateOnly documents in this state.
"processing""ready""rejected""error"name?stringOnly documents whose name begins with this text, case-insensitive.
length <= 255sortBy?stringSort order of the page.
"name""name""-name""createdAt""-createdAt""lastModifiedAt""-lastModifiedAt"limit?integerNumber of documents per page, at most 500.
value <= 500100offset?integerIndex of the first document of the page.
0The document list.
application/json- response
count*integerTotal number of documents matching the filter.
next?|URL of the next page, or null on the last one.
previous?|URL of the previous page, or null on the first one.
results*array<>curl -X GET "https://example.com/documents"{ "count": 0, "next": "string", "previous": "string", "results": [ { "id": "0ea697ea-a714-4c30-a80c-00e4e45d1f60", "name": "esx-4cl-ag_08_connecting", "directory": "5491d698-d876-4e72-bceb-f6259c10ce9c", "state": "ready", "errorMessage": null, "createdAt": "2026-10-02T10:02:48Z", "createdBy": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Integration STW" }, "lastModifiedAt": "2026-10-02T10:05:11Z" } ]}