Skip to navigation

Create an upload link

Returns a temporary link that uploads exactly one file to this key through the S3 gateway: the file whose size and SHA-256 you send. Send the file with a single HTTP PUT to url, with exactly the headers in the answer; the file never passes through this API. The link carries at most 80,000,000 bytes (larger files: an S3 tool, which uploads in parts) and replaces an object with the same key. It works for expires_in seconds (60 to 1,800; 900 when not given), and anyone holding it can use it until then, so treat it like a password. When the file arrives, an organization verified only by the Rs 1 payment that has used its free storage is refused with 403 free_storage_limit_reached, and 503 with Retry-After means the storage allowance could not be checked: retry later. Check the result with Get object metadata. Requires scope: object-storage.write.

# 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/upload-link?workspace_id=$WORKSPACE_ID" \
-H "Authorization: Bearer $IBEE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"size_bytes": 1, "checksum_sha256": "<checksum_sha256>"}'

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.
size_byteslongRequired1-80000000

The file’s exact size in bytes; at most 80,000,000.

checksum_sha256stringRequired

The file’s SHA-256, base64-encoded (44 characters), as openssl dgst -sha256 -binary FILE | base64 prints it.

content_typestringOptional<=255 characters

The file’s media type, such as application/pdf. Sent with the upload when given.

expiresintegerOptional60-1800Defaults to 900
Seconds the link works.

Response

The upload link and the headers to send with the file.
urlstringformat: "uri"
The link, on the workspace's S3 host.
methodenum
Allowed values:
headersmap from strings to strings

Headers the upload must send unchanged (Content-Length, x-amz-checksum-sha256, and Content-Type when given).

expires_ininteger
Seconds the link works from now.
max_byteslong

The most one upload link carries (80,000,000).

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