Make a link that opens a private preview, for a limited time.
The answer carries the link's url once; Koidog keeps only a hash of its token, and an idempotent replay answers 409 idempotency_secret_not_replayable instead of showing it again.
POST/api/v1/previews/{id}/share-links
Scopecrews
Opening the link sends the browser on to the preview's own address with Boat's access token. The link stops working when it expires (expiresInMinutes, 5 to 10080, default 60), is revoked, or its preview stops; a browser that already opened it keeps Boat's access until the preview stops, so stop the preview to shut everyone out. A link lets anyone who holds it in, so it is active at once only for the session and a key with approve; a key with crews alone gets a pending_approval link and an approval of kind preview_link that the founder, or a key with approve, decides. The timeline records the key ID, action and outcome.
Path parameters.
idstringrequired
The preview's id.
Headers.
Idempotency-Keystring
Retry the same request with the same key. Retry rules.
Body.
An omitted body is read as {}.
expiresInMinutes5–10080
Minutes until the link stops working, 5 to 10080 (7 days). Left out, 60. It also stops when its preview stops. Default 60.
labelstring
A name for the link, shown in its list and on the timeline, such as who it was sent to. 1 to 80 characters.
Response.
201 Created · JSON object
- 409 preview_ended
- Refused with
409 preview_endedfor a preview that stopped or failed. - 422 validation_failed
- Each schema error appears in
details.