Set what the code page says
const url = 'https://shareout.site/v1/artifacts/example/view-codes/gate';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"Carta del socio fundador","message":"Roberto te comparte el cierre de octubre.","button":"Abrir la carta","preview":false}'};
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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Carta del socio fundador", "message": "Roberto te comparte el cierre de octubre.", "button": "Abrir la carta", "preview": false }'The page’s own title, message and button on its code page, instead of the generic “Enter your code · Open”. A missing or empty field goes back to the default. The workspace’s logo, name and color (workspace branding) show there too. Anyone holding the link sees this page, so never put the confidential part here. 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”What the code page says before anything opens. Null fields use the defaults.
object
Example
Carta del socio fundadorExample
Roberto te comparte el cierre de octubre.Example
Abrir la cartaDraw 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.
Responses
Section titled “Responses”Saved
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" ] }}