Skip to main content
POST
https://api.unify.ai
/
v0
/
storage
/
download
curl --request POST \
  --url 'https://api.unify.ai/v0/storage/download' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "content_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
    "content_type": "image/png",
    "size_bytes": 68
}
Downloads the content of a Google Cloud Storage object and returns it as a base64-encoded string. This is useful for retrieving binary content (images, files) through the API without requiring direct GCS access.

Authorizations

Authorization
string
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

gcs_uri
string
required
GCS URI of the object (e.g., gs://bucket-name/path/to/object)
curl --request POST \
  --url 'https://api.unify.ai/v0/storage/download' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "content_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
    "content_type": "image/png",
    "size_bytes": 68
}