Open a share link
curl --request GET \
--url http://localhost:3000/api/v1/shared/{token}import requests
url = "http://localhost:3000/api/v1/shared/{token}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/api/v1/shared/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/shared/{token}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/v1/shared/{token}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/api/v1/shared/{token}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/shared/{token}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"share": {
"kind": "view",
"name": "<string>",
"workspace": "<string>",
"organization": "<string>",
"target": {
"type": "collection",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>"
},
"expiresAt": "2023-11-07T05:31:56Z",
"brand": {
"name": "<string>",
"tagline": "<string>",
"logo": "<string>",
"icon": "<string>",
"accent": "<string>",
"emailFooter": "<string>",
"custom": true
}
},
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"title": "<string>",
"description": "<string>",
"creator": "<string>",
"copyright": "<string>",
"mime": "<string>",
"size": 0,
"width": 0,
"height": 0,
"url": "<string>",
"download": "<string>",
"thumbnail": "<string>"
}
],
"total": 0
}{
"error": {
"code": "<string>",
"message": "<string>",
"detail": "<unknown>"
}
}API Reference
Open a share link
What the link is, and for a view link its approved assets with download URLs. A password goes in X-Share-Password: 401 password without it or with a wrong one, 410 gone once expired.
No key needed.
GET
/
api
/
v1
/
shared
/
{token}
Open a share link
curl --request GET \
--url http://localhost:3000/api/v1/shared/{token}import requests
url = "http://localhost:3000/api/v1/shared/{token}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/api/v1/shared/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/shared/{token}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/v1/shared/{token}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/api/v1/shared/{token}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/shared/{token}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"share": {
"kind": "view",
"name": "<string>",
"workspace": "<string>",
"organization": "<string>",
"target": {
"type": "collection",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>"
},
"expiresAt": "2023-11-07T05:31:56Z",
"brand": {
"name": "<string>",
"tagline": "<string>",
"logo": "<string>",
"icon": "<string>",
"accent": "<string>",
"emailFooter": "<string>",
"custom": true
}
},
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"title": "<string>",
"description": "<string>",
"creator": "<string>",
"copyright": "<string>",
"mime": "<string>",
"size": 0,
"width": 0,
"height": 0,
"url": "<string>",
"download": "<string>",
"thumbnail": "<string>"
}
],
"total": 0
}{
"error": {
"code": "<string>",
"message": "<string>",
"detail": "<unknown>"
}
}Path Parameters
From the share link
Query Parameters
Page size
Required range:
1 <= x <= 200Skip this many
Required range:
x >= 0