# Document files

Returns the list of files generated for the specified document.

Endpoint: GET /documents/{documentId}/files
Version: 1.0
Security: NowInfinity_oAuth

## Security:

  - `NowInfinity_oAuth` (unknown)
    oauth2 scopes: api1

## Path parameters:

  - `documentId` (string, required)
    Unique id of the document.

## Response 200:

  - `200` (unknown)
    Success (Ok)

## Response 200 fields (application/json):

  - `FileName` (string)
    Example: change-of-registered-office.pdf

  - `CreatedOn` (string)
    Example: 2026-07-16T23:05:44Z

  - `Links` (array)

  - `Links.Rel` (string)
    Example: documents

  - `Links.Href` (string)
    Example: /companies/123456789/documents

  - `Links.Action` (string)
    Example: GET

  - `Links.MediaType` (string)
    Example: application/json

## Response 202:

  - `202` (unknown)
    Files are still being generated for the specified document. Retry the request later.

## Response 204:

  - `204` (unknown)
    Files have not been generated because the specified document is still in draft state.

## Response 404:

  - `404` (unknown)
    A document with the specified Id cannot be found.

