private-order.task.{orderId}
Events for a single order. Someone else's order is out of reach: subscription auth returns 403.
Channel parameters
Fill in your values — they appear in the channel name, in the code below and in the console. They are sent nowhere and never end up in the page URL.
is the UUID from the POST /orders response.
Channel name to subscribe to
private-order.task.{orderId}
The name still contains placeholders in braces. You cannot subscribe with it: the server authorizes channels by exact name.
import Pusher from 'pusher-js';
const pusher = new Pusher('7c4dd881d8116ac76fe89aff71d8c2ff', {
wsHost: 'ws.lumean.app',
wsPort: 443, wssPort: 443,
forceTLS: true,
enabledTransports: ['ws', 'wss'],
cluster: '',
channelAuthorization: {
endpoint: 'https://api.lumean.app/api/public/broadcasting/auth',
headers: { 'X-API-KEY': 'YOUR_API_KEY' },
},
});
const channel = pusher.subscribe('private-order.task.{orderId}');
channel.bind('paragraph_regenerate.completed', (data) => {
console.log(data);
});import Echo from 'laravel-echo';
import Pusher from 'pusher-js';
window.Pusher = Pusher;
const echo = new Echo({
broadcaster: 'pusher',
key: '7c4dd881d8116ac76fe89aff71d8c2ff',
wsHost: 'ws.lumean.app',
wsPort: 443, wssPort: 443,
forceTLS: true,
enabledTransports: ['ws', 'wss'],
cluster: '',
authEndpoint: 'https://api.lumean.app/api/public/broadcasting/auth',
auth: { headers: { 'X-API-KEY': 'YOUR_API_KEY' } },
});
echo.private('order.task.{orderId}')
// the leading dot is for Laravel Echo; pusher-js has none
.listen('.paragraph_regenerate.completed', (e) => {
console.log(e);
});# pip install websocket-client requests
import json, requests, websocket
APP_KEY = "7c4dd881d8116ac76fe89aff71d8c2ff"
WS_URL = "wss://ws.lumean.app:443/app/" + APP_KEY + "?protocol=7&client=python&version=1.0"
CHANNEL = "private-order.task.{orderId}"
ws = websocket.create_connection(WS_URL)
# 1. grab socket_id from the pusher:connection_established event
hello = json.loads(ws.recv())
socket_id = json.loads(hello["data"])["socket_id"]
# 2. authorize the private subscription with your API key
auth = requests.post("https://api.lumean.app/api/public/broadcasting/auth",
headers={"X-API-KEY": "YOUR_API_KEY"},
data={"socket_id": socket_id, "channel_name": CHANNEL},
).json()["auth"]
# 3. subscribe and listen for events
ws.send(json.dumps({"event": "pusher:subscribe",
"data": {"auth": auth, "channel": CHANNEL}}))
while True:
print(ws.recv())Payload example
Channel: private-order.task.{orderId}
This is a sample event; there is no connection. Subscribing needs your API key.
.paragraph_regenerate.completed
{
"order_id": "01a0d8c6-86d3-70b5-a86e-5a12b1d860df",
"paragraph_index": 1,
"created_count": 1,
"failed_count": 1
}Channel events: 9
Every event has its own anchor, a full payload table with descriptions and enums, and a sample shape. Names are shown in Laravel Echo notation — with the leading dot.
.paragraph_regenerate.completed
Echo: .paragraph_regenerate.completed · pusher-js: paragraph_regenerate.completed
Payload fields
Payload example
{
"order_id": "01a0d8c6-86d3-70b5-a86e-5a12b1d860df",
"paragraph_index": 1,
"created_count": 1,
"failed_count": 1
}An example of the event shape. Values are illustrative.
.order.queue.updated
Echo: .order.queue.updated · pusher-js: order.queue.updated
The order's place in the worker queue moved — for every task type except voice_search. queue_position is how many orders are ahead, 0 means next; null means the order left the queue (a worker took it or the order was cancelled), so hide the queue badge. Sent only when the position changes, at most once every ~2 s; moves within the 100+ zone are not sent — the exact number is in GET /orders/{order}. The position counts orders, not people; several workers pick tasks at once, so the number can drop in jumps and work can start while the position is above zero. queue_wait_seconds is always null. A missed frame is not resent: after reconnecting, re-read the order over REST.
Payload fields
Payload example
{
"order_id": "example",
"queue_position": 1,
"queue_wait_seconds": 1
}An example of the event shape. Values are illustrative.
.voice_search.queue.updated
Echo: .voice_search.queue.updated · pusher-js: voice_search.queue.updated
The voice-search queue moved — only for voice_search orders, which are checked one at a time. queue_position is how many orders are ahead, 0 means your order is being processed now. queue_wait_seconds is the estimated wait in seconds (an estimate, not a promise), or null while there are no statistics yet. The same values are in the order fields over REST.
Payload fields
Payload example
{
"order_id": "example",
"queue_position": 1,
"queue_wait_seconds": 1
}An example of the event shape. Values are illustrative.
.bulk_retry.completed
Echo: .bulk_retry.completed · pusher-js: bulk_retry.completed
Payload fields
Payload example
{
"order_id": "01a1d77e-7c84-723f-9acf-ed6700e3454a",
"batch_id": "example",
"created_count": 1,
"failed_count": 1
}An example of the event shape. Values are illustrative.
.renamed
Echo: .renamed · pusher-js: renamed
Payload fields
orderrequiredobject
templaterequiredobject
May arrive as null.
May arrive as null.
currency_assetrequiredobject
May arrive as null.
May arrive as null.
May arrive as null.
May arrive as null.
May arrive as null.
May arrive as null.
May arrive as null.
May arrive as null.
May arrive as null.
retentionrequiredobject
chunksrequiredobject
May arrive as null.
filesrequiredobject
May arrive as null.
May arrive as null.
May arrive as null.
May arrive as null.
May arrive as null.
Payload example
{
"order": {
"id": "01a1cfe4-f20e-731b-99e7-98f30b2c6706",
"user_id": 115,
"name": "example",
"template": {
"id": "01a1cfe4-f20c-72bb-a2e6-3545e39e7994",
"user_id": 116,
"slug": "97d71387-1622-3762-94b1-f7b15341aa9b",
"name": "sunt",
"service_key": "example",
"service": {},
"config": [],
"is_public": true,
"folder_id": "string",
"created_at": "2026-11-12T13:14:10+00:00",
"updated_at": "2026-11-12T13:14:10+00:00"
},
"template_id": "01a1cfe4-f20c-72bb-a2e6-3545e39e7994",
"task_type": "tts",
"status": "created",
"price_units": 6.35,
"price_formatted": 0.06,
"currency_asset": {
"id": 0,
"code": "LUMC",
"kind": "string",
"precision": 2,
"name": "string",
"deleted_at": "<date-time>",
"created_at": "<date-time>",
"updated_at": "<date-time>"
},
"total_tokens": 0,
"total_duration_ms": 0,
"tokens_from_quota": 0,
"tokens_from_payg": 0,
"tokens_spent": 0,
"task_data": {},
"result": {},
"created_at": "2026-11-12T13:14:10+00:00",
"updated_at": "2026-11-12T13:14:10+00:00",
"dispatch_scheduled_at": "2026-11-12T13:14:10+00:00",
"files_expire_at": "<date-time>",
"files_expired": false,
"retention": {
"chunks": {
"expires_at": "<date-time>",
"expired": false,
"expires_early": false,
"reason": "string"
},
"files": {
"expires_at": "<date-time>",
"expired": false
}
},
"eta_seconds": 0,
"eta_at": "<date-time>",
"completed_chunks": 0,
"total_chunks": 0,
"progress_percent": 0,
"stitching": false,
"paragraphs": []
}
}An example of the event shape. Values are illustrative.
.status.changed
Echo: .status.changed · pusher-js: status.changed
The order changed status.
Payload fields
A snapshot of the order without the chunk list — per-chunk changes arrive as separate item.status.changed events.
items_summaryrequiredA summary of the order's chunks instead of the full list.
object
A summary of the order's chunks instead of the full list.
How many chunks are in each status: pending, processing, completed, failed, policy_flagged.
Payload example
{
"order": {},
"items_summary": {
"total": 12,
"by_status": {
"completed": 10,
"failed": 2
}
},
"previous_status": "created",
"new_status": "created"
}An example of the event shape. Values are illustrative.
.item.status.changed
Echo: .item.status.changed · pusher-js: item.status.changed
An order chunk changed status.
Payload fields
itemrequiredThe chunk index, its status, the result file path and the audio duration.
object
The chunk index, its status, the result file path and the audio duration.
pipelineoptionalPipeline run node state; null for items of regular orders.
object | null
Pipeline run node state; null for items of regular orders.
Port -> list of {path, mime}: absolute paths of sub-order files.
Whether the order's audio is being stitched. The last finished chunk of a multi-chunk order means stitching has started, not that the order is done: while true the result is not final.
Payload example
{
"item": {
"id": "<uuid>",
"chunk_index": 3,
"status": "pending",
"result_file": {},
"duration_ms": 12480,
"pipeline": {
"node_id": "tts_1",
"attempt": 1,
"status": "processing",
"orders": [],
"outputs": {},
"actions": [],
"error": {}
}
},
"previous_status": "string",
"new_status": "string",
"completed_chunks": 3,
"total_chunks": 7,
"progress_percent": 43,
"stitching": false
}An example of the event shape. Values are illustrative.
.stitch.changed
Echo: .stitch.changed · pusher-js: stitch.changed
Payload fields
stitchrequiredobject
May arrive as null.
Payload example
{
"order_id": "01a12b4f-d2ba-70ef-b1a8-14aff97d1da2",
"order_status": "created",
"stitching": false,
"stitch": {
"id": "01a12b4f-d2bc-7117-83c6-a16f11eac8f4",
"status": "pending",
"paragraph_index": 0,
"restitch": false
}
}An example of the event shape. Values are illustrative.
.progress
Echo: .progress · pusher-js: progress
Live progress of the order.
Payload fields
The order UUID — the same value as the channel's {orderId}.
Kept for compatibility and does not reflect progress — rely on the progress events of the orders channel, or on eta_seconds.
Kept for compatibility and does not reflect how many parts are done — count completion from item.status.changed events.
Total number of parts in the order.
How many seconds the task has been running. This is elapsed time, not remaining.
Estimated time remaining, in seconds. Computed by the API from service statistics.
How much to trust the estimate: high — statistics for chunks of the same size, medium — for the service overall, low — little data, so show it with a «≈».
Payload example
{
"task_id": "<uuid>",
"progress": 42.5,
"chunks_done": 0,
"chunks_total": 0,
"duration_seconds": 0,
"eta_seconds": 95,
"eta_confidence": "high",
"timestamp": "<date-time>"
}An example of the event shape. Values are illustrative.
All channels and connection parameters·POST /broadcasting/auth
This page for AI
API version 1.0.0