FirstSpirit REST API icon

FirstSpirit REST API

Interact with FirstSpirit REST API

Media → Get Binary Data Of Medium

AI-generated

Summary

Download and return the binary content of a specific medium from a FirstSpirit project.

Inputs

  • Project ID (required) — The ID of the FirstSpirit project containing the medium.
  • Medium UID (required) — The unique identifier (UID) of the medium whose binary data you want to retrieve.

Output shape

binary file attached to the output item under the property 'data' in the 'binary' data section.

The operation returns the binary data of the medium as the output's binary property named 'data'. The filename is derived from the HTTP response's Content-Disposition header if present; otherwise, a default name 'file' is used. The request is performed with a GET method, and the response encoding is treated as binary.

Examples

Example 1: Retrieve an image file stored as a medium in a FirstSpirit project for further processing or download.

Set 'Project ID' to the target project, and 'Medium UID' to the identifier of the image media asset you want to get the binary data for.

Discussion