Events (Admin)
Preview a label without creating a print job (Admin)
POST
/manage/events/:eventId/label-print/previewRequires authentication and event management permissions, plus eventWrite when entryId is omitted. Does not create a job, history entry or expiry. Pass the returned previewHash when creating a job on print.
| Auth | Login required |
|---|---|
| Available to | Official 4S apps only (other apps' access tokens get 403) |
Path parameters
eventIdstringrequiredEvent ID.
Request body
printerIdstringoptionalRegistered printer ID. If omitted, the label is drawn on the default paper (62 mm continuous, 60 mm), so it can be checked before a printer is registered.
entryIdstringoptionalEntry ID; omitted for a test label.
locale"ja" | "en"optionalDisplay language; defaults to ja.
namestringoptionalName to print on this label instead (1-100 characters). Defaults to the speaker or profile name. Not saved.
titlestringoptionalTitle to print on this label instead (up to 200 characters). An empty string prints no title. Not saved.
Response
| Field | Type | Description |
|---|---|---|
name | string | Name printed on this label. |
title | string | Title printed on this label; empty for none. |
titleTruncated | boolean | True when the title did not fit and its end is cut off with “…”. |
pngBase64 | string | Label image. Do not log. |
previewHash | string | Hash used to verify that printed content matches the preview. |
media | string | Media type. |
lengthMm | number | Label length in mm. |
widthPx | number | Image width in pixels. |
heightPx | number | Image height in pixels. |
Request
curl https://api.4s.link/manage/events/EVENT_ID/label-print/preview \-X POST \-H "Authorization: Bearer 4s_at_..." \-H "Content-Type: application/json" \-d '{"printerId": "printer-1","entryId": "entry-1","locale": "ja"}'
Example response
{"name": "山田 太郎","title": "Engineer","media": "CONTINUOUS_62","lengthMm": 60,"widthPx": 696,"heightPx": 639,"pngBase64": "iVBORw0KGgo...","previewHash": "3f9a1c2e5b7d..."}