Create a public delivery link
POST
/v1/workspaces/{workspaceId}/assets/collections/{collectionId}/share
const url = 'https://shareout.site/v1/workspaces/example/assets/collections/example/share';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expiresAt":"2026-04-15T12:00:00Z","gate":"none","password":"example","domains":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shareout.site/v1/workspaces/example/assets/collections/example/share \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expiresAt": "2026-04-15T12:00:00Z", "gate": "none", "password": "example", "domains": [ "example" ] }'Mint an unguessable /d/<token> download page for a collection. Optional gate (none, password, domain), expiresAt, and gate inputs. Protected deliveries stream bytes through /d/<token>/file/<blobId>.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspaceId
required
string
Workspace ID or slug.
collectionId
required
string
Request Body
Section titled “Request Body ” Media type application/json
object
expiresAt
string format: date-time
gate
string
password
Required when gate=password.
string
domains
Required when gate=domain (e.g. acme.com).
Array<string>
Responses
Section titled “ Responses ”Share link created
Media type application/json
object
id
string
url
string format: uri
collectionName
string
fileCount
integer
gate
string
expiresAt
string format: date-time
viewCount
integer
revoked
boolean
expired
boolean
Example
{ "gate": "none"}Invalid request
Media type application/json
object
success
required
boolean
error
required
Human-readable message.
string
code
required
Machine-readable error code.
string
Example
{ "success": false}Access denied
Media type application/json
object
success
required
boolean
error
required
Human-readable message.
string
code
required
Machine-readable error code.
string
Example
{ "success": false}