> For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://ibee.ai/docs/llms.txt (full text of every page: https://ibee.ai/docs/llms-full.txt). For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://ibee.ai/docs/_mcp/server.

# Create a download link

POST https://api.ibee.ai/v1/object-storage/buckets/{bucket_name}/objects/{object_path}/download-link
Content-Type: application/json

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"}'
```

Reference: https://ibee.ai/docs/api-reference/object-storage/create-object-download-link

## Authentication

- `Authorization` header (bearer token, required) — 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.

## Servers

- `https://api.ibee.ai/v1` (Production, default)
- `https://api.ibee.co.in/v1` (Development)

## Request

### Path parameters

- `bucket_name` (string, required) — Logical bucket name.
- `object_path` (string, required) — 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_id` (string, required) — The positive numeric workspace ID to scope this request to. Zero, negative, and non-numeric values are rejected.

### Body (application/json)

This endpoint expects an ObjectDownloadLinkRequest.

- `expires` (integer, optional, default: 900) — Seconds the link works.
- `disposition` (enum, optional) — `attachment` makes a browser save the file under its name; `inline` lets it show the file. Not set: the browser decides.
  - Allowed values: `inline`, `attachment`

## Response

### 200

The download link.

- `url` (string, required)
- `expires_in` (integer, required) — Seconds the link works from now.

## Errors

### 400 Bad Request Error

The request is invalid. From the gateway: `workspace_id_required` or `invalid_workspace_id`; on billable creates also `invalid_json_body` and selection codes such as `plan_id_required`, `invalid_site_id`, `compute_billing_term_required` or `invalid_block_storage_selection`. Otherwise the product service's `detail`.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 401 Unauthorized Error

The API token is missing, malformed or unknown (`invalid_api_key`).

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 403 Forbidden Error

The token may not make this call. Gateway codes: `insufficient_scope` (with `required_scope`), `key_revoked`, `key_disabled`, `key_inactive`, `key_expired`, `unknown_route`, `workspace_not_allowed`, `principal_inactive`, `principal_not_member` and `principal_permission_denied`. `product_not_enabled` when the product is not enabled for the organization (IBEE turns some products on per organization; ask support for access). On writes, also `organization_restricted` (an admin restricted the organization) and `verification_required` (the token's user has not completed identity verification). A product service may also refuse with `detail`.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 404 Not Found Error

The requested resource was not found. Paused or unknown public gateway routes can return an empty body; an empty 404 for a paused method does not prove that an existing resource has been deleted.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 413 Content Too Large Error

The request body is too large. Keep bodies at or below 64 KiB (65,536 bytes). A billable create over that size answers `request_body_too_large`; a much larger body can be refused earlier with a plain-text answer. Nothing was changed. Send a smaller body.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 422 Unprocessable Entity Error

The request failed validation. Detail can contain a list of validation errors.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 429 Too Many Requests Error

A concurrency limit was reached. Retry later. For console sessions, `detail.code` is `user_limit` or `workspace_limit` (active sessions per user or per workspace).

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 500 Internal Server Error

The service could not complete the request. Use request_id when contacting support.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 502 Bad Gateway Error

A service behind the gateway failed or sent an answer that could not be used (`bad_gateway`). The response may be a JSON error, a Cloudflare problem-details object, HTML or plain text. Reads can be retried. A write may still have taken effect, so check the resource before repeating it, or retry a networking create with the same key and body.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 503 Service Unavailable Error

A service the request depends on did not answer. Gateway codes: `workspace_verification_unavailable`, `principal_verification_unavailable`, `principal_authorization_unavailable` and `product_check_unavailable` (whether the organization has the product could not be checked; retry later); on billable creates also `billing_admission_timeout`, `billing_admission_unavailable`, `billing_admission_disabled`, `billing_admission_not_configured` and the catalog codes `compute_catalog_unavailable`, `compute_catalog_not_configured`, `product_catalog_timeout`, `product_catalog_unavailable`, `product_catalog_not_configured` and `unsupported_product_quote`. Otherwise the product service's `detail`.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

### 504 Gateway Timeout Error

The gateway or a dependency timed out. The response may be a JSON error, a Cloudflare problem-details object, HTML or plain text. A timed-out create may still have succeeded; use the same idempotency key where supported.

- `error` (string, optional, nullable) — Machine-readable code, for example `invalid_api_key`, `insufficient_scope`, `organization_restricted`, `organization_suspended`, `verification_required`, `product_not_enabled`, `billing_denied`, `validation_error` or `idempotency_conflict`. The response descriptions list the codes for each status.
- `message` (string, optional) — Human-readable explanation, present on most errors.
- `request_id` (string, optional) — Correlation ID, present on most errors and in X-Request-Id.
- `required_scope` (string, optional, nullable) — The scope the token lacks, with `insufficient_scope`.
- `billing_reason` (string, optional, nullable) — Billing's reason with `billing_denied`, passed through unchanged: for example `insufficient_balance`, `credit_limit_exceeded`, `initial_topup_required`, `resource_limit_reached` or `resource_usage_unavailable`.
- `required_topup_minor` (integer, optional, nullable) — With `billing_reason` `initial_topup_required`: Billing's first top-up minimum in minor units of `billing_currency` (50000 is ₹500). Absent when Billing did not send one.
- `billing_currency` (string, optional, nullable) — The wallet currency `required_topup_minor` is in.
- `billing_sku_code` (string, optional, nullable) — The SKU the billing admission checked, when there was one.
- `billing_evaluated_at` (string, optional, nullable) — When Billing made the decision, as Billing returned it.
- `admission_context_id` (string, optional, nullable) — Billing admission context for this request, derived from the token, workspace, route and `X-Idempotency-Key`, so a retry with the same key gets the same id.
- `detail` (ErrorDetail, optional) — Error detail from the product service.

## Types

### ErrorDetail

Error detail from the product service.

- string
- map from string to any
- list of any

## Examples

**Request**

```json
{
  "expires": 900,
  "disposition": "inline"
}
```

**Response**

```json
{
  "url": "https://example.com/resource",
  "expires_in": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.ibee.ai/v1/object-storage/buckets/my-bucket/objects/object_path_123/download-link"

querystring = {"workspace_id":"710995"}

payload = {
    "expires": 900,
    "disposition": "inline"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.ibee.ai/v1/object-storage/buckets/my-bucket/objects/object_path_123/download-link?workspace_id=710995';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"expires":900,"disposition":"inline"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.ibee.ai/v1/object-storage/buckets/my-bucket/objects/object_path_123/download-link?workspace_id=710995"

	payload := strings.NewReader("{\n  \"expires\": 900,\n  \"disposition\": \"inline\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.ibee.ai/v1/object-storage/buckets/my-bucket/objects/object_path_123/download-link?workspace_id=710995")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"expires\": 900,\n  \"disposition\": \"inline\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.ibee.ai/v1/object-storage/buckets/my-bucket/objects/object_path_123/download-link?workspace_id=710995")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"expires\": 900,\n  \"disposition\": \"inline\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.ibee.ai/v1/object-storage/buckets/my-bucket/objects/object_path_123/download-link?workspace_id=710995', [
  'body' => '{
  "expires": 900,
  "disposition": "inline"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.ibee.ai/v1/object-storage/buckets/my-bucket/objects/object_path_123/download-link?workspace_id=710995");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"expires\": 900,\n  \"disposition\": \"inline\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "expires": 900,
  "disposition": "inline"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.ibee.ai/v1/object-storage/buckets/my-bucket/objects/object_path_123/download-link?workspace_id=710995")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```