Skip to content

Set what the code page says

PUT
/v1/artifacts/{id}/view-codes/gate
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.

id
required
string

Artifact ID (e.g. art_abc123).

Media typeapplication/json

What the code page says before anything opens. Null fields use the defaults.

object
title
string | null
<= 80 characters

Example

Carta del socio fundador
message
string | null
<= 200 characters

Example

Roberto te comparte el cierre de octubre.
button
string | null
<= 30 characters

Example

Abrir la carta
preview

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.

boolean
image_url

Public path of the preview image (/vg/…); set with PUT …/view-codes/gate/image.

string | null

Saved

Media typeapplication/json
object
gate

What the code page says before anything opens. Null fields use the defaults.

object
title
string | null
<= 80 characters
message
string | null
<= 200 characters
button
string | null
<= 30 characters
preview

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.

boolean
image_url

Public path of the preview image (/vg/…); set with PUT …/view-codes/gate/image.

string | null

Example

{
"gate": {
"title": "Carta del socio fundador",
"message": "Roberto te comparte el cierre de octubre.",
"button": "Abrir la carta",
"preview": false
}
}

Invalid request

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}

Access denied

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}