Sharing
Share files
Share files with a link
POST
A link that streams up to 100 files to people without a Fastwater account. Each browser that plays from it takes one of maxViewers places (up to 10); a full link plays only for the browsers that already have a place. Links last expiresInDays (up to 30). Viewers use none of your screens. Deleting a file takes it out of every link.
bearer files:writeheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: files:write
application/json- body
fileIds*array<>Items
1 <= items <= 100maxViewers?integerRange
1 <= value <= 10Default
2expiresInDays?integerRange
1 <= value <= 30Default
7Share link
application/json- response
id*stringurl*stringFormat
urifiles*array<>maxViewers*integerviewers*integerexpiresAt*stringFormat
date-timerevokedAt*|Format
date-timecreatedAt*stringFormat
date-timecurl -X POST 'https://fastwater.app/v1/shares' \ -H 'Content-Type: application/json' \ -d '{ "fileIds": [ "string" ]}'Example Response
{ "id": "string", "url": "http://example.com", "files": [ { "id": "string", "name": "string" } ], "maxViewers": 0, "viewers": 0, "expiresAt": "2019-08-24T14:15:22Z", "revokedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z"}