Events (Admin)

Preview a label without creating a print job (Admin)

POST/manage/events/:eventId/label-print/preview

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

AuthLogin required
Available toOfficial 4S apps only (other apps' access tokens get 403)

Path parameters

eventIdstringrequired

Event ID.

Request body

printerIdstringoptional

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

entryIdstringoptional

Entry ID; omitted for a test label.

locale"ja" | "en"optional

Display language; defaults to ja.

namestringoptional

Name to print on this label instead (1-100 characters). Defaults to the speaker or profile name. Not saved.

titlestringoptional

Title to print on this label instead (up to 200 characters). An empty string prints no title. Not saved.

Response

FieldTypeDescription
namestringName printed on this label.
titlestringTitle printed on this label; empty for none.
titleTruncatedbooleanTrue when the title did not fit and its end is cut off with “…”.
pngBase64stringLabel image. Do not log.
previewHashstringHash used to verify that printed content matches the preview.
mediastringMedia type.
lengthMmnumberLabel length in mm.
widthPxnumberImage width in pixels.
heightPxnumberImage 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..."
}