Skip to navigation

Create a download link

Returns a temporary link that downloads one object through the S3 gateway with an HTTP GET. Anyone holding the link can download the object until it expires, so share it only with whom it is meant for. It works for expires_in seconds (60 to 1,800; 900 when not given). disposition: attachment makes a browser save the file instead of showing it. The link is made even when no object has this key; the download then answers 404. Requires scope: object-storage.read.

# Example request with curl (set IBEE_API_TOKEN to a platform API token and WORKSPACE_ID to the workspace first).
# BUCKET_NAME: Logical bucket name
# OBJECT_PATH: The object's key, such as `photos/2026/cat
curl -X POST "https://api.ibee.ai/v1/object-storage/buckets/$BUCKET_NAME/objects/$OBJECT_PATH/download-link?workspace_id=$WORKSPACE_ID" \
-H "Authorization: Bearer $IBEE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"expires": 900, "disposition": "inline"}'

Authentication

AuthorizationBearer

IBEE platform API token. Production tokens start with ibee_prod_key_; development tokens start with ibee_dev_key_. Use a token only with its matching gateway environment.

Path parameters

bucket_namestringRequired
Logical bucket name.
object_pathstringRequired>=1 character

The object’s key, such as photos/2026/cat.jpg, sent with plain / between segments; percent-encode other reserved characters in a segment (a space as %20). At most 1,024 bytes. A key with an empty, . or .. segment, or with ?, #, %, \ or a control character, is refused with 400.

Query parameters

workspace_idstringRequiredformat: "^[1-9][0-9]*$">=1 character

The positive numeric workspace ID to scope this request to. Zero, negative, and non-numeric values are rejected.

Request

This endpoint expects an object.
expiresintegerOptional60-1800Defaults to 900
Seconds the link works.
dispositionenumOptional

attachment makes a browser save the file under its name; inline lets it show the file. Not set: the browser decides.

Allowed values:

Response

The download link.
urlstringformat: "uri"
expires_ininteger
Seconds the link works from now.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
413
Content Too Large Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
503
Service Unavailable Error
504
Gateway Timeout Error