Dokumentation
ReferenzDocuments

Read a document.

GET
/documents/{documentId}

One document by its id: its name, its directory, where its processing stands and who created it. It is the same record the list answers; reading one alone is for a caller that stored the id from an earlier listing.

Not included is the document itself. Neither the text nor the original file nor a rendering of any page is available through this API, for any role and with any key. The content of a document is read in the Galilea application; this operation tells an integration what Galilea holds and in which state, nothing more.

What is not visible is not found. A document of another tenant, one in a directory the key cannot reach, and an id that exists nowhere are all answered with 404.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Path Parameters

documentId*string

The id of the document, as returned by GET /documents.

Formatuuid

Response Body

The document.

application/json
  1. response

One document as this API answers it, in the list and alone: what it is called, where it sits, where its processing stands and who created it. Nothing more. There is no content property and no file reference, and there will be neither in this API.

id*string
Formatuuid
name*string

The document name as shown in the Galilea application; for an upload, the file name without its extension.

directory*string

The directory the document is in.

Formatuuid
state*DocumentState

Processing state of a document.

  • processing: the document runs through parsing and indexing.
  • ready: the document was processed and can be used.
  • rejected: the document was not processed because the file or the available credits do not permit it; repeating the processing changes nothing until the cause is removed.
  • error: processing was attempted and failed; repeating it can succeed. For rejected and error, errorMessage carries the text Galilea recorded, if it recorded one.
Value in"processing""ready""rejected""error"
errorMessage?|

For rejected and error: the English text Galilea recorded for the case, written for support rather than for display. Not translated, not a stable code, and null when nothing was recorded; the API puts no substitute text in its place. Null in every other state.

createdAt*string
Formatdate-time
createdBy*

The user the document was created on behalf of; for an API upload, the user the key belongs to.

lastModifiedAt*string
Formatdate-time
curl -X GET "https://example.com/documents/0ea697ea-a714-4c30-a80c-00e4e45d1f60"
{  "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"}