get_file
Return a file plus a short-lived presigned download URL. Cost class: fast.
No separate GET .../content route: the presigned URL keeps raw bytes off the API path. The URL expires after DOWNLOAD_URL_TTL_SECONDS seconds; fetch it promptly.
A direct read of a named file is the one case where hard denial (403 access_denied) is correct: the caller named the file, so there is nothing to narrow and nothing to infer — they already knew it existed.
Args: context: Resolved workspace plus the caller's access predicate. session: Database session. file_id: The file to fetch.
Returns: FileDetail including the presigned download_url.
Raises: PlatformError: file_not_found when the file does not exist. PlatformError: access_denied when the caller does not hold the required access label.
Request
- Base URLhttps://ndi-api.nace.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Workspace identifier.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.