Skip to content

Upload the link-preview image

PUT
/v1/artifacts/{id}/view-codes/gate/image
curl --request PUT \
--url https://shareout.site/v1/artifacts/example/view-codes/gate/image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: image/png' \
--data binary

The 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.

id
required
string

Artifact ID (e.g. art_abc123).

string format: binary

Stored

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"
]
}
}