Download file

Retrieves and downloads the entire media file based on the specified file ID.

The response body is the raw binary content of the file. Treat the response body as a byte stream and write it directly to disk or pass it to a file handler.

The Content-Type response header indicates the MIME type of the file (e.g. application/pdf, text/html). Use this to determine how to handle or display the file.

The Checksum-SHA256 response header provides a SHA-256 hash of the file contents. Verify this value against the downloaded bytes to confirm the file was not corrupted in transit.

get/files/{id}/download

Request

  • Base URL: https://content-gateway-example.com/v1
  • URL: https://content-gateway-example.com/v1/files/{id}/download
  • Auth: none declared

Path parameters

idstring uuid required

Response

Successfully retrieved the file. The response body is the raw binary content of the file.

Changes

No recorded changes to this operation across all 1 revision of this API.