Loyalty.lt
System

Publish to an Upload Session Channel

Broadcast to the public `upload-session.{session_code}` channel. Used by storefront integrations that hand a file from a phone to a desktop, because Reverb has no client-side publish. Call this from your server — it requires the API secret — never from a browser.

POST/{locale}/shop/realtime/publish

Broadcast to the public upload-session.{session_code} channel. Used by storefront integrations that hand a file from a phone to a desktop, because Reverb has no client-side publish. Call this from your server — it requires the API secret — never from a browser.

Authorization

bearerAuth
AuthorizationBearer <token>

Enter JWT token in the format: Bearer {token}

In: header

Path Parameters

locale*string

Locale code (lt, en)

Value in

  • "lt"
  • "en"

Header Parameters

X-API-Key*string

API Key

X-API-Secret*string

API Secret

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/lt/shop/realtime/publish" \  -H "X-API-Key: lty_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "X-API-Secret: your_api_secret_here" \  -H "Content-Type: application/json" \  -d '{    "session_code": "a1b2c3d4",    "event": "image-upload"  }'
{  "success": true,  "message": "Published"}