Dokumentation
ReferenzDocuments

List documents.

GET
/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.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Query Parameters

directory?string

Only documents directly inside this directory.

Formatuuid
state?DocumentState

Only documents in this state.

Value in"processing""ready""rejected""error"
name?string

Only documents whose name begins with this text, case-insensitive.

Lengthlength <= 255
sortBy?string

Sort order of the page.

Default"name"
Value in"name""-name""createdAt""-createdAt""lastModifiedAt""-lastModifiedAt"
limit?integer

Number of documents per page, at most 500.

Rangevalue <= 500
Default100
offset?integer

Index of the first document of the page.

Default0

Response Body

The document list.

application/json
  1. response
count*integer

Total 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"    }  ]}