Skip to main content
Version: Next

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 by id. Served via the X-Accel-Redirect header.
  • fax — look up a fax file id by name. 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 by id.

Request​

Responses​

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).