Make a share link
POST
/api/v1/shares
const url = 'http://localhost:3000/api/v1/shares';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"kind":"view","collection":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","asset":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","password":"example","expiresAt":"2026-04-15T12:00:00Z","emails":["hello@example.com"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/shares \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "kind": "view", "collection": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "asset": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "password": "example", "expiresAt": "2026-04-15T12:00:00Z", "emails": [ "hello@example.com" ] }'For people without an account. view: a collection’s approved assets, or one asset, to see and download. upload: files sent in land proposed, in the collection (or the project), for review. Either can expire and ask for a password. Needs write on what it shares.
Scope: write.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
kind
required
View: see and download; upload: send files in, as proposals
string
collection
The collection it shows, or files uploads into
string format: uuid
asset
For a view link: one asset instead of a collection
string format: uuid
name
What the holder sees it called, e.g. Press kit
string
password
string
expiresAt
It stops working then
string format: date-time
emails
Email the link to these people, through the organization’s email
Array<string>
Responses
Section titled “Responses”The link, and how many of emails it was sent to
Media typeapplication/json
object
data
required
object
id
required
string format: uuid
kind
required
string
name
required
string | null
target
required
url
required
string format: uri
password
required
boolean
expired
required
boolean
createdBy
required
string
createdAt
required
string format: date-time
emailed
required
integer
Example
{ "data": { "kind": "view", "target": { "type": "collection" } }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}