Download File / Fax Lookup
GET
/org/{tenant}/v2/files/{file_type}
Platform support: MT and CC
Token Cost: 2 tokens (low)
Behaviour depends on the {file_type} path segment:
- any non-special value (e.g.
regular) — download a regular file byid. Served via theX-Accel-Redirectheader. fax— look up a fax file id byname. Returns a JSON object{ "file_id": "..." }(empty string when not found). The returned id can then be downloaded as a regular file.omni— download an omni file byid.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
For downloads the file bytes are served via the X-Accel-Redirect
header (FSS returns an empty body). For a fax lookup the body is a
JSON object.
Response Headers
X-Accel-Redirect
Internal nginx path of the file to serve (download variants only).
Bad Request — malformed request or a validation error (e.g. empty file, non-image group icon, missing required field, invalid tenant). Both bad-request and validation error codes are returned as HTTP 400.
Unauthorized (missing or invalid X-User-Identity).
Forbidden (caller not allowed to perform the operation).
Not Found.
Internal Server Error.