Actions35
- File Actions
- Folder Actions
- Room Actions
- User Actions
File → Get File Info
AI-generatedSummary
Fetches the metadata of a single ONLYOFFICE DocSpace file by its numeric ID and returns it as JSON. This is a read-only call that makes one GET request to api/2.0/files/file/{fileId}.
Inputs
- Authentication (required) — Credential type used for the request: API Key (default), Basic Auth, OAuth2 or Personal Access Token. The matching DocSpace credential must be configured.
- File ID (required) — Numeric ID of the file to look up. It defaults to 0, so set a real ID. It can be an expression, for example one taken from an earlier node.
Output shape
One output item per input item. Each item's JSON is the file object from the DocSpace API's response field.
The source doesn't enumerate the fields. Other operations read
titleandfileExstfrom this same endpoint, so expect them to be present. The file content is not downloaded. If the request fails (for example, the file is missing or access is denied), the node throws an error. With Continue On Fail enabled, it returns an item with anerrormessage instead.
Examples
Example 1: Check a file's title and extension before downloading or converting it.
Resource: File, Operation: Get File Info, File ID: {{ $json.fileId }}, Authentication: API Key.
Example 2: Look up details of a file that was just uploaded.
Place after Upload File and set File ID to the uploaded file's id from the previous node's output.