Upload the link-preview image
const url = 'https://shareout.site/v1/artifacts/example/view-codes/gate/image';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'image/png'}, body: 'binary'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://shareout.site/v1/artifacts/example/view-codes/gate/image \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: image/png' \ --data binaryThe picture a link preview shows (1200×630 reads best). PNG, JPG or WEBP up to 1 MB, sent as the raw body with its Content-Type. It is public as soon as it is uploaded — never a picture of the confidential part. Each upload gets a new URL, so no cache keeps the old one. Owner or editor.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Artifact ID (e.g. art_abc123).
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Stored
object
What the code page says before anything opens. Null fields use the defaults.
object
Draw a link preview (WhatsApp, Slack, iMessage…): the code page answers 200 with Open Graph tags made of this title, message and the preview image (or the workspace logo). Off, a one-time page advertises nothing. Missing on PUT means off.
Public path of the preview image (/vg/…); set with PUT …/view-codes/gate/image.
Example
{ "gate": { "title": "Carta del socio fundador", "message": "Roberto te comparte el cierre de octubre.", "button": "Abrir la carta", "preview": false }}Invalid request
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Access denied
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}