Disks
Create Share URL
Creates a signed, time-limited URL for downloading a file without
authentication. The URL expires after 24 hours by default; pass
expiresIn to set a custom lifetime up to 7 days.
The returned URL points to a public endpoint (GET /api/shared/{token})
that verifies the signature, checks expiry, and streams the file with a
sensible Content-Type and Content-Disposition. Range requests are
supported. No credentials are needed to open the URL.
POST
/
api
/
disks
/
{id}
/
share
Create a share URL for a file
curl --request POST \
--url https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "reports/2026-08/summary.csv",
"expiresIn": 3600
}
'import requests
url = "https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share"
payload = {
"key": "reports/2026-08/summary.csv",
"expiresIn": 3600
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: 'reports/2026-08/summary.csv', expiresIn: 3600})
};
fetch('https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => 'reports/2026-08/summary.csv',
'expiresIn' => 3600
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share"
payload := strings.NewReader("{\n \"key\": \"reports/2026-08/summary.csv\",\n \"expiresIn\": 3600\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"reports/2026-08/summary.csv\",\n \"expiresIn\": 3600\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"reports/2026-08/summary.csv\",\n \"expiresIn\": 3600\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"url": "<string>",
"expiresIn": 123
}
}{
"success": false,
"error": "Invalid request parameters"
}{
"success": false,
"error": "Invalid request parameters"
}{
"success": false,
"error": "Invalid request parameters"
}{
"success": false,
"error": "Invalid request parameters"
}Authorizations
API key
Path Parameters
Disk ID (format dsk-{16 hex chars})
Pattern:
^dsk-[0-9a-f]{16}$Example:
"dsk-0123456789abcdef"
Body
application/json
Was this page helpful?
⌘I
Create a share URL for a file
curl --request POST \
--url https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "reports/2026-08/summary.csv",
"expiresIn": 3600
}
'import requests
url = "https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share"
payload = {
"key": "reports/2026-08/summary.csv",
"expiresIn": 3600
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: 'reports/2026-08/summary.csv', expiresIn: 3600})
};
fetch('https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => 'reports/2026-08/summary.csv',
'expiresIn' => 3600
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share"
payload := strings.NewReader("{\n \"key\": \"reports/2026-08/summary.csv\",\n \"expiresIn\": 3600\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"reports/2026-08/summary.csv\",\n \"expiresIn\": 3600\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/share")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"reports/2026-08/summary.csv\",\n \"expiresIn\": 3600\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"url": "<string>",
"expiresIn": 123
}
}{
"success": false,
"error": "Invalid request parameters"
}{
"success": false,
"error": "Invalid request parameters"
}{
"success": false,
"error": "Invalid request parameters"
}{
"success": false,
"error": "Invalid request parameters"
}