List one-time view codes
const url = 'https://shareout.site/v1/artifacts/example/view-codes';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://shareout.site/v1/artifacts/example/view-codes \ --header 'Authorization: Bearer <token>'Every code on the page: who it is for, whether it was opened, from what kind of device, and what the viewer tried while it was open (copy, print, save, right-click, the screenshot key, leaving the page). The codes themselves are never returned again. Owner or editor.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Artifact ID (e.g. art_abc123).
Responses
Section titled “Responses”The page’s codes
object
The page opens with a code (auth_method onetime).
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.
object
Who the code is for (their watermark).
Browser and system, from the user agent.
Approximate city it was opened from, as Cloudflare reports it. The IP is never stored.
ISO 3166-1 alpha-2 country code.
What the viewer tried while it was open, by kind. Signals, not proof.
object
Example
{ "gate": { "title": "Carta del socio fundador", "message": "Roberto te comparte el cierre de octubre.", "button": "Abrir la carta", "preview": false }, "view_codes": [ { "status": "unused", "opened_device": "phone", "opened_browser": "Chrome · Android", "opened_region": "Santa Fe", "opened_country": "AR", "attempts": { "copy": 2, "left_page": 1 } } ]}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" ] }}