Live Streaming API (New)
Base URL: http://localhost:8765/api/v1 (local) Β· https://dev.api.nexgate.co/api/v1 (staging)
Media servers: SRS stream.dev.nexgate.co (video in and out) Β· LiveKit wss://livekit.dev.nexgate.co (the stage) Β·
Centrifugo wss://β¦/connection/websocket (real time)
Short Description: NexGate Live lets a person or a shop go live with video or audio, sell while live (pinned products, coupon drops, flash prices, group buys, bargains, auctions, gifts), bring guests on the screen, and hold an online event for ticket holders. This document explains how live works from zero (Part A), then documents every endpoint (Part B), the shared answer shapes (Part C), every real-time event (Part D) and the notifications (Part E). It is written for the app developers (Android, iOS, web).
Hints:
- Every endpoint needs
Authorization: Bearer <access token>(a signed-in account). The only exception is the SRS hooks (Part F), which are server to server. - The backend decides, the app draws. Cards come with
buttons[], the host toolbar comes fromGET β¦/tools, the start quality comes fromplay. Never compute these on the phone. - The backend sends data, not sentences (times, counts, keys). The app writes the sentence in the user's language.
A few
β¦Textfields (watchingText) are ready-made short labels. - A person is always an
accountIdwith aLiveHostcard (accountId,name,userName,userProfileMedia). - Refusals are HTTP 409 with a
codeindata. Branch ondata.code, never on the message. - Money is TZS. It is only shown to the people allowed to see it (the shop owner, the event organiser).
- Times are ISO 8601 with offset (
2026-11-28T20:00:00+03:00).atinside real-time events is epoch milliseconds. - No recording. When a live ends, the video is gone. Only the numbers (the summary) stay.
- Live Spaces is gone: it is merged into audio lives. There is no
/live/spaces/β¦any more (those calls fail). A "Space" is now a live withmode: LIVE_AUDIO: host, speakers on the stage, listeners, raise a hand. How the old Space parts map to the new ones: A6 βΊ F7a. - This is the one live doc. It replaces the short reference
live_api_doc.md(v3.0) and the oldlive_streaming_api_doc.md(v1.1); both removed 2026-11-27 (in git history). What changed for the app, change by change:docs/changelog/frontend_changelog_2026-11-25_live.mdandfrontend_changelog_2026-11-26_event_venue.md.
Standard Response Format
All answers use the Globe Response Builder envelope.
Success Response Structure
{
"success": true,
"httpStatus": "OK",
"message": "Live created",
"action_time": "2026-11-26T10:30:45",
"data": { }
}
Error Response Structure
{
"success": false,
"httpStatus": "BAD_REQUEST",
"message": "Error description",
"action_time": "2026-11-26T10:30:45",
"data": "Error description"
}
Refusal Structure (409) β the one the app branches on
Every "no" the live rules give (not live now, not your live, the screen is full, buy a ticketβ¦) is a 409 CONFLICT with a machine code:
{
"success": false,
"httpStatus": "CONFLICT",
"message": "This live isn't on now",
"action_time": "2026-11-26T10:30:45",
"data": {
"code": "NOT_LIVE",
"reason": "This live isn't on now",
"details": null
}
}
Standard Response Fields
| Field | Type | Description |
|---|---|---|
success |
boolean | true for success, false for errors and refusals |
httpStatus |
string | HTTP status name (OK, CONFLICT, NOT_FOUNDβ¦) |
message |
string | Human-readable message (never branch on it) |
action_time |
string | When the answer was made |
data |
object | The answer; for a refusal {code, reason, details} |
Standard Error Types (used by every endpoint below)
400 BAD_REQUEST: malformed body or parameter.401 UNAUTHORIZED: missing, invalid or expired token.403 FORBIDDEN: the account may not use this area at all (for example admin endpoints).404 NOT_FOUND: the live does not exist, or the host blocked you / you blocked the host (the app can't tell the difference on purpose).409 CONFLICT: a live rule said no. Readdata.code. Each endpoint lists its codes under Refusals.422 UNPROCESSABLE_ENTITY: field validation failed (details per field).500 INTERNAL_SERVER_ERROR: unexpected; retry later.
HTTP Method Badge Standards
- GET - GET - Green (read)
- POST - POST - Blue (create / act)
- PUT - PUT - Yellow (set / switch)
- PATCH - PATCH - Orange (change part)
- DELETE - DELETE - Red (remove)
Part A β How live works (start here)
A1. The pieces
Five systems take part in a live. The phone talks to each for one job only:
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β NexGate backend (this API) β
β rules Β· bookings Β· comments Β· selling Β· money β
βββββ¬βββββββββββββ¬ββββββββββββββββ¬ββββββββββββββββ
REST (this doc) β β publishes β checks every
βββββββββββββββββββββ β events β publish / play
β βΌ β (SRS hooks)
β ββββββββββββββββββββββ β
β β Centrifugo β β
β β real-time events β β
β βββββββββββ¬βββββββββββ β
β βββββββββΌββββββββ websocket (everyone)
β βΌ β
βββββββββ΄βββββββββ RTMP / WHIP βββββββββββββββ FLV / HLS ββββββββββββββββ
β HOST PHONE β ββββββββββββββΊ β SRS video β βββββββββββΊ β VIEWER PHONE β
β (or a camera) β 2β3 qualities β server β + CDN edge β (player) β
βββββββββ¬βββββββββ ββββββββ²βββββββ ββββββββββββββββ
β joins the stage room β (audio live: the server mixes
βΌ β the stage and sends it to SRS)
ββββββββββββββββββ β
β LiveKit stage β βββββββββββββββββββββββ
β host + guests β guests βββ talk / camera βββ host phone mixes them (video)
ββββββββββββββββββ
| Piece | What it does | The phone uses it for |
|---|---|---|
| Backend | Every rule, every list, every button, every money step | All REST calls in this document |
| SRS (video server) | Receives the host's video and sends it out to viewers | Host: publish to the rtmpUrl / whipUrl from ingest-key. Viewer: play the URLs from play |
| Centrifugo | Pushes events (comments, pins, reactions, pollsβ¦) to everyone in the room in under a second | Subscribe to the channels from realtime |
| LiveKit | A small real-time room for the host and the people on the screen (guests, co-hosts, speakers) | Host and guests join with the token from stage/token |
| File Thunder | Stores pictures (the live's banner) | Upload the banner with context LIVE_COVER, send its id |
The backend never carries video. It hands out addresses and checks, and SRS asks the backend before it lets anyone publish or play.
A2. Words used in this document
| Word | Meaning |
|---|---|
| Live | One broadcast (streamId). Video (LIVE_VIDEO) or audio (LIVE_AUDIO). |
| Host | The person who runs the live. For a shop live, the shop's owner (or the staff member hosting). |
| Shop live | A live "as the shop" (as: SHOP). Followers of the shop are told; sales go to the shop. |
| Booking | A live set for later (SCHEDULED). Public (with a post and Remind me) or private. |
| Draft | A live made for "now" that hasn't started sending video yet. |
| Viewer | Anyone watching. |
| Stage / screen | The people shown next to the host: guests and up to 2 co-hosts. In an audio live they are speakers. |
| Moderator | Someone the host trusts to clean comments. Picked once, helps in every live of that host (or shop). |
| Host's team | Host + co-hosts + moderators. Some screens and actions are team only. |
| Room | The live's stream of events (comments, pins, pollsβ¦). Everyone watching reads it. |
| Hosts' room | A second stream only the team reads (held comments, requests to join, sales). |
| Shelf | Things attached to a live (products, tickets, the shopβ¦). One of them can be pinned (shown big). |
| Event live | The live of an online event: only online ticket holders watch (see A6 βΊ F12). |
A3. The states of a live
publish first video
βββββββββββ (SRS says media arrived) ββββββββββββ first video piece ββββββββββ
β DRAFT β ββββββββββββββββββββββββββββΊ β STARTING β βββββββββββββββββββββΊ β LIVE β
ββββββ²βββββ ββββββ²ββββββ βββββ¬βββββ
β β β
β "Continue" (within 10 min) β host taps End β reports
β β or away > 2 min β βββββββββΊββββββββββ
β ββββββ΄βββββββ β β PAUSED β
β β SCHEDULED β (a booking; goes βββββββββββ ββββββββββ
β ββββββ¬βββββββ STARTING when the β NexGate lets it continue
β β host publishes) βΌ
β β cancel ββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββ β ENDED β
βΌ β (video gone; the β
βββββββββββββ β summary stays) β
β CANCELLED β ββββββββββββββββββββββ
βββββββββββββ
| State | Meaning | What the app shows |
|---|---|---|
DRAFT |
Made for now, no video yet | Host: the go-live screen |
SCHEDULED |
Booked for later | Card with time, Remind me / Edit / Cancel |
STARTING |
The host's video arrived, the first piece is on its way (a second or two) | "Startingβ¦" |
LIVE |
On air | The player; hostAway: true means the host's video dropped, back within 2 min |
PAUSED |
NexGate paused it after reports | "This live is being reviewed" |
ENDED |
Over. endedReason: HOST_ENDED, HOST_LOST, NEVER_STARTED, ADMIN_ENDED |
End screen; host: summary, "Continue" until canContinueUntil |
CANCELLED |
A booking that will not happen | Card shows cancelled |
There is no "go live" button that changes the state. The host asks for an ingest key and starts sending video. The
live becomes LIVE when SRS tells the backend that video arrived. The app never sets a state.
A4. Kinds of live
| Kind | How it is made | Differences |
|---|---|---|
| Personal video | POST /live/streams {mode: LIVE_VIDEO} |
The host phone sends 2β3 qualities; guests join through LiveKit and the host phone mixes them in |
| Personal audio | {mode: LIVE_AUDIO} |
No camera. The host and speakers talk in the LiveKit room; the server mixes them and sends one sound to SRS; listeners hear it like radio (screen off works) |
| Shop live | {as: SHOP, shopId} |
Owned by the shop; shop followers told; selling tools for the shop |
| Staff live | From the NexGate Shop terminal app | A staff member hosts for the shop; money stays with the owner (F13) |
| Event live | Chosen in the event form (venue NexGate Live) | Booked when the event is published; only online ticket holders (and the team) get in (F12) |
| External camera | source: CAMERA |
A camera or OBS sends the video instead of the phone (F10) |
A5. Real time: the three channels
phone ββ GET /realtime/connection βββΊ { wsUrl, token } ββ connect the Centrifugo SDK once per app session
β
βββ personal:#<myAccountId> Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· always subscribed (no extra token)
β "your friend went live", "a seat is free for you", "someone replied to you"
β
β opening a live:
βββ POST /live/streams/{id}/realtime βββΊ { room: {channel, token}, hosts: {channel, token} | null }
β
βββ live_room:<streamId> Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· everyone watching: comments, pins, reactions, polls, dealsβ¦
βββ live_hosts:<streamId> Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· the host's team only: held comments, join requests, sales
- Join: read
GET /live/streams/{id}/roomonce (the last 100 events), then subscribe tolive_room:<id>. Apply events inseqorder. If aseqis missing, readroomagain. - Fallback: if Centrifugo can't be reached (
enabled: false, or the socket keeps failing), readGET β¦/roomeveryfallbackPollSeconds(2 s) and apply events newer than your lastseq. - Every event looks the same:
{seq, type, streamId, at, data}. All types are in Part D. live_list:all(Live now screen): view counts every 30 s and "this live ended".
A6. The flows, screen by screen
Each flow says who does what and which endpoint to call. Endpoint numbers (#) point to Part B.
F1. Go live now (host, from the phone)
Host phone Backend SRS Followers
ββββββββββ βββββββ βββ βββββββββ
1 create {when: NOW} ββββββββββββββΊ DRAFT, checks rules
2 ingest-key {network} ββββββββββββΊ key + 2β3 publish targets
3 start the encoder ββββββββββββββββββββββββββββββββββββββββββββββΊ publish ?key=β¦
βββββββ hook "publish": key ok? β
STARTING
βββββββ hook "hls": first piece
LIVE βββΊ "is live" push + FEED_NEW nudge βββββββββββββββΊ π
4 realtime + room βββββββββββββββββΊ channels for comments etc.
5 β¦ the live β¦
6 end βββββββββββββββββββββββββββββΊ ENDED, summary built in 3 s
POST /live/streams(#1){when: "NOW", title, mode}β aLiveCardinDRAFT. The rules are checked here (account age, 18+, not banned, one live at a time).POST /live/streams/{id}/ingest-key(#9) with the phone's network (WIFI,MOBILE,WEAK) β the key and the qualities to send (publish[], each with anrtmpUrland awhipUrl). Send exactly what it says.- Start the encoder to those URLs. The live becomes
STARTING, thenLIVEby itself. POST β¦/realtime(#14) +GET β¦/room(#15): open the room and show comments.- During the live: the toolbar
GET β¦/tools(#86) decides which buttons the host sees. POST β¦/end(#12). The host sees the summary (#130) a few seconds later.
F2. Book a live for later (host)
Monday: book Friday 8 pm βββΊ post "Kanga sale Friday" βββΊ 12 people tap π
Thursday 8 pm Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·βΊ "goes live soon" (day before)
Friday 7:45 pm Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·βΊ "starts in 15 min" + host "get ready"
Friday 8:00 pm host publishes βββΊ LIVE βββΊ "is live now" to the 12 + followers
F3. Watch a live (viewer)
Viewer phone Backend SRS
1 open the card (Live now, post, pushβ¦)
2 play {deviceId, network} βββββββββββββββββββΊ addresses + start quality
3 player opens the FLV (or HLS) URL ββββββββββββββββββββββββββββββββββββββΊ play ?token=β¦
βββββ hook "play": token ok? β
4 realtime + room ββββββββββββββββββββββββββββΊ room channel
5 watching (every 30 s) ββββββββββββββββββββββΊ counts you, checks a ticket in
6 LIVE_ENDED arrives ββββΊ end screen: GET β¦/after
F4. Comments and keeping the live clean
- Post:
POST β¦/comments(#24). The answer says where it went:ROOM: everyone sees it (it also comes back on the room channel).ONLY_YOU: a blocked word. Show it only to the writer, as if sent.HELD: a phone number or link from a viewer. It waits for the team (hosts' roomHELD_COMMENT).
- Reply with a quote: send
replyToSeq. The person replied to getsCOMMENT_REPLYon their personal channel. - Badges: every comment carries
role(HOST,CO_HOST,MODERATOR,ON_STAGE,VIEWER) andspeaksAs(when someone talks as their shop). - The team can delete (#27), pin (#28), mute a person (#25), slow mode (#26), approve or decline held comments (#30β32), and remove someone from the live (#33). Moderators and blocked words: #35β39.
- Anyone can report the live (#34). Many trusted reports in 2 minutes pause it (
PAUSED); NexGate then continues or ends it.
F5. Taking part: reactions, polls, questions
- Reactions (#40): send taps in batches (
[{reaction: "HEART", count: 7}]), at most 15 a second. Everyone gets aREACTIONSmix every 2 seconds. Draw the floating hearts from it. - Polls (#44): host or co-host, 2β4 options (words or products on the shelf), 1, 2 or 5 minutes or until ended. Votes
#47; results every 2 s (
POLL_RESULTS). - Questions (#49): one every 30 s per person; others tap "me too"; the host puts one on screen
(
QUESTION_ON_SCREEN) and marks it done. - Who's watching: top fans for everyone (#42), the full list for the team (#43).
F6. Guests and co-hosts on the screen (video live)
viewer asks to join host accepts
Viewer ββββ POST β¦/stage/requests βββββΊ hosts' room STAGE_REQUEST βββββΊ POST β¦/requests/{id}/accept
β
STAGE_CHANGED (room) ββββββββββββββββββββ
Guest ββββ POST β¦/stage/token βββββΊ LiveKit token βββΊ joins the LiveKit room "live-stage-<id>"
Host phone ββ sees the guest in LiveKit βββΊ mixes host + guests into the video it sends to SRS
Viewers ββ see everyone in the one video
- Three ways onto the screen:
- Ask: a viewer asks (#55); the host accepts (#58).
- Invite: the host invites someone (#63) as
GUESTorCO_HOST(max 2). Before the live or during it. They getLIVE_STAGE_INVITEand answer (#67) or join (#68). - Speaker link: the host makes a link (#70); whoever opens it (#71) is invited.
- Seats:
seatsNownext to the host now,seatsMaxat most (video 2 / 5, audio 4 / 7). A full screen answersSCREEN_FULL. - Who can go on: accounts at least 3 days old, 18+, not removed, nobody on screen blocked.
- Everyone on the screen gets a LiveKit token (#72). The host mixes them in (video).
- Leave (#74), remove (#73: a co-host is removed by the host only).
F7. Audio live
- Create with
mode: LIVE_AUDIOand who may ask to speak (whoCanAsk:EVERYONE,FOLLOWED,INVITED). ingest-keyanswersserverMix: trueand an emptypublish[]. The host phone does not send to SRS. It joins the LiveKit room (stage/token), and the server mixes everyone on the stage and sends it to SRS.- Listeners play the
AUDIO(orAUDIO_32Kon a weak network) address. It keeps playing with the screen off. - Stage tools: mute someone (never unmute, #75), raise a hand (#76), who is talking (#77, the host phone reports LiveKit's active speakers at most once a second), send listeners on to another live at the end (#78).
F7a. Live Spaces β audio live (Spaces is gone)
Spaces was removed on 2026-11-25 (live revamp phase 6). Everything a Space did, an audio live does, and more
(comments, reactions, polls, gifts, selling, booking, reminders). An app that still calls /live/spaces/β¦ gets errors:
move it to these.
| Old Space | Now (audio live) |
|---|---|
POST /live/spaces create |
#1 POST /live/streams {mode: LIVE_AUDIO, whoCanAsk} |
GET /live/spaces/{id} read |
#8 GET /live/streams/{id} |
POST /live/spaces/{id}/stage open the stage |
#9 ingest-key (answers serverMix: true) + #72 stage token: the host joins the LiveKit room, the server mixes |
POST /live/spaces/{id}/join join the audience |
#10 play addresses (AUDIO / AUDIO_32K): listen like radio |
PUT /live/spaces/{id}/hand raise / lower a hand |
#76 raise / lower my hand (or #55 ask to join the stage) |
PUT /live/spaces/{id}/speakers/{userId} make a speaker |
#58 accept a request Β· #63 invite someone to the stage Β· #70 / #71 speaker link |
DELETE /live/spaces/{id}/speakers/{userId} back to listener |
#73 remove someone from the stage |
DELETE /live/spaces/{id}/me leave |
#74 leave the stage (a listener just stops playing) |
GET /live/spaces/{id}/participants who is here |
#54 the stage now Β· #77 who is talking Β· #43 who is watching |
POST /live/spaces/{id}/end end |
#12 end a live |
| Space chat / stage events | Part D (room live_room:<id>): COMMENT, STAGE_β¦, SPEAKING |
Group voice that should not be public (a team, friends): use a meeting or a group call β
docs/calls/calls_meetings_api_doc.md.
F8. Selling in a live
shelf (attach) βββΊ pin one βββΊ PIN (room) with a ready card βββΊ viewer taps βββΊ checkout (normal app checkout)
#80 #82 price, flash, group, #85 the order remembers
instalments, free delivery "sold in this live"
- Shelf: attach products, tickets, the shop, an event (#80). Pin one at a time (#82); a viewer's tap (#85). A pinned product comes with its live card (price now, flash price, group, instalments, free delivery). A pinned donation ticket carries its target.
- Coupon drop (#89): the shop drops a coupon for N people for some seconds; viewers grab (#94).
DROP_STARTED,DROP_LEFT,DROP_ENDED. - Flash price (#95): a lower price for 1β10 minutes, optional limited pieces. Checkout applies it to people who tapped in the live.
- Free delivery (#99): a shop live pays delivery (or half) for orders from the live.
- Goals (#101): up to 2 at once (orders, pieces, revenue, followers, watching, gifts), optional timer, optional reward fired by the backend (a drop, a flash price, free delivery, or a promise).
- Group buy (#106) / ticket group (#109): start a group from the live; progress on the room.
- Bargain (#110): viewers offer a price; the shop accepts, counters or says no; an agreed price becomes a chat offer.
- Auction (#118): timed bidding; bids are held from the wallet; the win becomes a pickup order paid by the held bid. The winner can pick delivery in the order.
- Gifts (#123): on or off. Gifts go to the host and anyone on the screen (shop live: to the shop's owner). Sending a gift uses the gift API (gift spec).
- Sales so far (#88, team, money to the seller only) and the after-live summary.
F9. Bad network and coming back
- The host phone tells
ingest-keyits network. On a weak network it sends fewer qualities. - Host's video drops: the live stays
LIVEwithhostAway: true(roomHOST_RECONNECTING). If the video comes back within 2 minutes (same key), it carries on (HOST_BACK). After 2 minutes it ends (HOST_LOST). - Continue: for 10 minutes after any end (lost connection or a mistaken End), the host sees
CONTINUE.POST β¦/continue(#11) reopens the same live (same viewers' links, same comments); followers aren't told again. - Viewer's network:
playpicks the start quality; the player usesplayer.targetDelayMs, catches up atcatchUpRateand jumps to now when more thanjumpWhenBehindMsbehind.
F10. External camera (OBS, a camera with RTMP)
GET /live/stream-from(#124): may this account use a camera? (30-day account with a verified phone, or a verified shop.)- Create the live with
source: CAMERA(or switch later, #127). GET β¦/camera(#125): the server URL and the camera's own key (separate from the phone's). Reset it if it leaks (#126).- The camera connects β a private preview (
cameraConnected, health). The host getsLIVE_CAMERA_CONNECTED. POST β¦/go-live(#128) makes it public (orautoStartat the booked time).- Switch back to the phone at any time (#127). Only one source is on air at a time.
- Guests for OBS:
GET β¦/stage/window(#79) gives a page token for an OBS browser source.
F11. After the live
- Host:
GET β¦/summary(#130): duration, peak, average watch time, new followers, reactions, gifts, drops, auctions, groups, polls, goals, where viewers came from, viewers per minute with markers, and sales (money only to the seller). Ready 3 s after the end;LIVE_SUMMARY_READYnotification. - Viewer:
GET β¦/after(#131): the end screen. - "From my last live":
GET /live/last-live(#132): the products of someone's last live, for 24 h.
F12. Event lives (online events)
Event form β Online details β "Where?" [ π΄ NexGate Live (default) ] [ π₯ NexGate Meeting ] [ π Other link ]
β
publish the event βββΊ backend books the live at the event's start (no post, no Remind me)
β β
move / cancel the event βββΊ the live moves / is cancelled with it
β
Ticket holder ββ GET /e-events/{id}/online βββΊ button STARTS_LATER βββΊ JOIN (10 min before)
β β
βββββ EVENT_ONLINE_STARTED notice when it goes on air ββββββΊ open the live (roomId) and watch
No ticket βββΊ card BUY_TICKET; play / room / realtime / comments β TICKET_REQUIRED
- Who gets in without a ticket: the organiser, the organiser's moderators, anyone on the stage or invited to it (including by speaker link).
- Everyone else needs an online ticket. Watching checks the ticket in.
- The live's own time and cancel are refused (
EVENT_LIVE): move or cancel the event. GET /e-events/{eventId}/online(#135) is the one button for the event page and the ticket.- Since v4.1: an online ticket has no QR (the gate refuses online tickets); a ticket bought for someone can be given to
their account (
otherAttendees[].accountId, they watch on their own phone); watching checks in once per event day; a multi-day event gets one live per day (the button'sroomIdmoves to the next day's live); the live can be audio (virtualDetails.liveMode); if it never goes on air, online tickets are refunded 60 min after the start; the organiser is paid only 24 h after the end.
F13. Shop staff live
- Staff go live for the shop only from the NexGate Shop terminal app (shop right
GO_LIVE). - They use the same endpoints; money tools that need the owner (drops of new coupons, lowering group prices) stay with
the owner.
LiveCard.staffHost: true. - Hand over to another staff member (#129). The owner can end a staff-hosted live.
F14. Finding lives
Home feed
( π΄ )( π΄ )( π΄ )( π΄ )( π΄ ) ( See all β ) β #143 the row Β· #17 See all
Mama DJ Duka Neema Ali
Clips feed: clip Β· clip Β· clip Β· π΄ LIVE preview Β· clip β¦ β clips feed with lives=true
Bubble: "π΄ Mama Yoyo is live Β· 12 new posts" β FEED_NEW nudge β GET /feed/home/has-new
- The row above the home feed (#143): up to 10 circles, people / shops the viewer knows first, then friends watching,
then β suggestions;
seeAllβ show See all. - See all (#17): full cards with a reason (
FOLLOWING,FRIENDS_WATCHING,TRENDING,SELLINGβ¦), filterskind=VIDEO|AUDIO|SHOP(Shop = live shopping), Later today. Page withcursor(send it empty first, then eachnextCursor), so the order never jumps while scrolling. There is no Live tab: See all is reached from the row. - Lives in the clips feed:
GET /feed/reels?lives=truemay return one itemkind: "LIVE"between clips (about one in 20β30 clips, learning per person; followed people sooner). Play it muted at low quality in the slot; it is a viewer only after 3 s or a tap (then call #22 heartbeat as usual). Tell the backend how long they stayed: #146. Tapping any live opens it; swiping up from a live continues into the clips feed. Swipe (#18) is removed. - The bubble: when someone the viewer follows goes live (or posts), a connected app gets
FEED_NEWon the personal channel (no content) and asksGET /feed/home/has-new; itsliveslists followed people / shops live now, once. A celebrity's live sends no nudge: it is pulled (has-new, row, See all) β Part D. - "π All lives" (#144, #145): a follower who wants the phone notification for every live of a person / shop, even a celebrity's (celebrities notify only Remind me + All lives).
- The red ring:
live: {streamId, kind}(or null) on post and clip authors, profiles, shop pages and shop cards, search results, people / shop suggestions, followers / following lists and comment authors. A shop live rings the shop, never the staff member hosting it. - My lives (#19), someone's lives (#20), a shop's lives (#21).
- A live attached to a post: the post carries a
LiveCard(#23).
A7. Which endpoint for which screen
| Screen | Endpoints |
|---|---|
| Create live form | #1 create Β· File Thunder upload (LIVE_COVER) Β· #124 may I use a camera |
| Booking card (host) | #2 edit Β· #3 cancel Β· #4 reminders switch Β· #5 who's waiting Β· #6 book again |
| Booking card (viewer) | #7 Remind me |
| Go-live screen | #8 read Β· #9 ingest key Β· #125β#128 camera |
| Host on air | #14 channels Β· #15 room Β· #16 hosts' room Β· #86 toolbar Β· #12 end Β· stage #54β#79 Β· shelf #80β#85 Β· selling #87β#123 |
| Viewer player | #10 play Β· #14 Β· #15 Β· #22 heartbeat Β· #24 comment Β· #40 reactions Β· #47 vote Β· #49 ask Β· #55 ask to join Β· #147 tap Β· #94 grab Β· #112 offer Β· #120 bid |
| End screens | #130 summary (host) Β· #131 after (viewer) Β· #11 continue Β· #6 book again |
| Home row / See all / clips | #143 row Β· #17 See all Β· clips feed lives=true Β· #146 preview time Β· channel live_list:all |
| Profile / shop | #20 Β· #21 Β· #132 from the last live |
| My lives | #19 |
| Post composer | #23 attach a live |
| Settings | #133 read Β· #134 change |
| Moderators and blocked words | #35β#39 |
| My stage invites | #65β#69 |
| Event page / ticket | #135 online button |
| App start | #13 real-time connection |
| Admin | #136β#142 |
Part B β Endpoints
Every path below starts with the base URL (/api/v1). Shapes used by many endpoints (LiveCard, StreamResponse, PlayResponse, the room event) are in Part C; real-time event types are in Part D.
B1. Creating and booking a live
1. Create a live (now or booked)
Purpose: Make a live to start now (a DRAFT) or book one for later (SCHEDULED), as yourself or as your shop.
Endpoint: POST {base_url}/live/streams
Access Level: π Protected (any account allowed to go live; staff only from the shop terminal)
Authentication: Bearer token
Request JSON Sample:
{
"as": "ME",
"shopId": null,
"when": "LATER",
"scheduledFor": "2026-11-28T20:00:00+03:00",
"mode": "LIVE_VIDEO",
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMediaId": "9a1fβ¦",
"remindersOpen": true,
"caption": "Friday 8 pm, come early for the drop π",
"whoCanAsk": "EVERYONE",
"source": "PHONE",
"autoStart": null,
"stageInvites": [{"accountId": "55aaβ¦", "role": "CO_HOST"}]
}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
as |
string | No | Who goes live | enum ME, SHOP; default ME |
shopId |
uuid | If as: SHOP |
The shop | you must own it (staff: from the terminal) |
when |
string | No | Start now or book | enum NOW, LATER; default LATER if scheduledFor is given, else NOW |
scheduledFor |
datetime | If LATER |
Start time | 15 min to 30 days ahead |
mode |
string | No | Video or audio | enum LIVE_VIDEO, LIVE_AUDIO; default LIVE_VIDEO |
title |
string | Yes | Shown on every card | max 120 characters |
description |
string | No | Longer text | |
coverMediaId |
uuid | No | Banner picture | uploaded to File Thunder with context LIVE_COVER, yours, READY or LIVE_PARTIAL |
remindersOpen |
boolean | No | "Let people get reminded": a booking makes a post with Remind me | default true; false = private booking |
caption |
string | No | The post text for a public booking | max 5,000 characters |
whoCanAsk |
string | No | Who may ask to come on the screen | enum EVERYONE, FOLLOWED, INVITED; default EVERYONE |
source |
string | No | Phone or external camera | enum PHONE, CAMERA; default PHONE |
autoStart |
boolean | No | Camera: go public by itself at the booked time once the camera is connected | |
stageInvites |
array | No | People invited on the screen at once | {accountId, role: GUEST|CO_HOST}; max 2 co-hosts |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live created",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
* |
A LiveCard (Part C1): draw its buttons[] exactly |
postId |
Not returned: the booking post appears in feeds; the card is what to draw |
Refusals (409, data.code):
| Code | When |
|---|---|
TITLE_REQUIRED |
no title |
TITLE_TOO_LONG |
over 120 characters |
CAPTION_TOO_LONG |
caption over 5,000 |
TIME_REQUIRED |
LATER without scheduledFor |
BOOKING_TOO_SOON |
less than 15 minutes ahead |
BOOKING_TOO_FAR |
more than 30 days ahead |
TOO_MANY_BOOKINGS |
5 bookings already waiting (person or shop) |
TOO_CLOSE |
another live of yours (or your shops) within 2 hours |
ALREADY_LIVE |
you are live now |
SHOP_ALREADY_LIVE |
the shop is live now |
SHOP_REQUIRED |
as: SHOP without shopId |
NOT_SHOP_OWNER |
not your shop |
ACCOUNT_TOO_NEW |
the account is too new to go live |
AGE_RESTRICTED |
under 18 |
BANNED_FROM_LIVE |
NexGate stopped this account from going live for a time |
COVER_NOT_FOUND / COVER_NOT_YOURS / COVER_CONTEXT / COVER_NOT_IMAGE / COVER_FAILED / COVER_UPLOADING |
banner problems (see the code name) |
STAFF_CAMERA_LATER |
staff can only use the shop app's camera for now |
Notes:
- A booking with
remindersOpen: truemakes a normal post (author: you; for a shop, the owner). Followers see it in their feed. - Booking a public live sends no push. The "is live" push goes at the real start to Remind-me people, followers and friends.
- An event's live is not made here: it is booked from the event form (Part A βΊ F12).
2. Edit a live
Purpose: Change the title, description, banner or (for a booking) the start time.
Endpoint: PATCH {base_url}/live/streams/{streamId}
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{
"title": "Kanga sale (part 2)",
"description": null,
"coverMediaId": null,
"removeCover": false,
"scheduledFor": "2026-11-29T20:00:00+03:00"
}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
title |
string | No | New title | max 120 |
description |
string | No | New description | empty clears it |
coverMediaId |
uuid | No | New banner | as create |
removeCover |
boolean | No | Take the banner off | |
scheduledFor |
datetime | No | Move a booking | only SCHEDULED; booking rules apply |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live updated",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
* |
A LiveCard (Part C1): draw its buttons[] exactly |
Refusals (409, data.code):
| Code | When |
|---|---|
STREAM_FINISHED |
the live has ended |
NOT_SCHEDULED |
moving something that is not a booking |
TIME_LOCKED |
moving in the last 30 minutes before the start |
EVENT_LIVE |
an event's live: move the event instead |
NOT_HOST |
not your live |
BOOKING_TOO_SOON / BOOKING_TOO_FAR / TOO_CLOSE |
the new time breaks a booking rule |
Notes:
- A move sends one
LIVE_MOVEDto the people waiting and moves their reminders. Title and banner changes send nothing.
3. Cancel a booking or draft
Purpose: Call off a live that has not started.
Endpoint: POST {base_url}/live/streams/{streamId}/cancel
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live cancelled",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "CANCELLED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["BOOK_AGAIN"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
* |
A LiveCard (Part C1): draw its buttons[] exactly |
Refusals (409, data.code):
| Code | When |
|---|---|
CANT_CANCEL |
it has started (use End) |
EVENT_LIVE |
an event's live: change the event |
NOT_HOST |
not your live |
Notes:
- People waiting get
LIVE_CANCELLED. The booking post stays and its card showsCANCELLED(deleting the post is the host's choice).
4. Switch "Let people get reminded"
Purpose: Turn a private booking public (makes the post) or a public one private.
Endpoint: PUT {base_url}/live/streams/{streamId}/reminders-open
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"open": true, "caption": "Friday 8 pm!"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
open |
boolean | Yes | true public, false private |
|
caption |
string | No | The post text when turning on | max 5,000 |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Saved",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
* |
A LiveCard (Part C1): draw its buttons[] exactly |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_SCHEDULED |
only a booking has this switch |
PEOPLE_WAITING |
turning off while people tapped Remind me |
EVENT_LIVE |
an event's live stays private (the event page is its advert) |
CAPTION_TOO_LONG |
caption over 5,000 |
Notes:
- Off β on makes the post now. On β off deletes the post. If the host deleted the post herself, the live stays booked; off β on makes a fresh one.
5. Who is waiting
Purpose: The people who tapped Remind me on a booking.
Endpoint: GET {base_url}/live/streams/{streamId}/waiting
Access Level: π Protected (the host or the shop owner)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
page |
int | No | Page | from 0 | 0 |
size |
int | No | Page size | 30 |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Waiting",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"count": 12,
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"page": 0,
"size": 30,
"hasNext": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
count |
Everyone waiting |
people |
LiveHost cards, this page |
hasNext |
Another page exists |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST |
not your live |
6. Book again
Purpose: Make a new booking copying an ended (or cancelled) live: title, description, banner, mode, shop.
Endpoint: POST {base_url}/live/streams/{streamId}/book-again
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample (the body is optional):
{"scheduledFor": "2026-12-05T20:00:00+03:00", "remindersOpen": true, "caption": "Same time next week"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
scheduledFor |
datetime | No | When | default: the same time next week |
remindersOpen |
boolean | No | Public or private | default true |
caption |
string | No | Post text | max 5,000 |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Booked",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
* |
A LiveCard (Part C1): draw its buttons[] exactly |
Refusals (409, data.code):
| Code | When |
|---|---|
BOOKING_TOO_SOON / BOOKING_TOO_FAR / TOO_MANY_BOOKINGS / TOO_CLOSE |
booking rules |
NOT_HOST |
not your live |
Notes:
- Right after a live ends the host gets
LIVE_BOOK_AGAINwithdata.suggestedAtto prefill.
7. Remind me
Purpose: A viewer asks to be reminded of a public booking, picking when.
Endpoint: PUT {base_url}/live/streams/{streamId}/reminder
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
wanted |
boolean | No | false removes the reminder |
true |
Request JSON Sample (the body is optional):
{"leads": ["DAY_BEFORE", "MINUTES_15"]}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
leads |
array | No | When to remind | DAY_BEFORE, HOUR_BEFORE, MINUTES_15; default DAY_BEFORE + MINUTES_15; AT_START is always on |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "You will be reminded",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"reminded": true,
"myReminder": [
{"lead": "DAY_BEFORE", "at": "2026-11-27T20:00:00+03:00"},
{"lead": "MINUTES_15", "at": "2026-11-28T19:45:00+03:00"},
{"lead": "AT_START", "at": "2026-11-28T20:00:00+03:00"}
]
}
}
Success Response Fields:
| Field | Description |
|---|---|
reminded |
Whether you are now reminded |
myReminder |
When each reminder goes (the app writes "We'll remind you tomorrow at 8 pm") |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_SCHEDULED |
not a public booking |
Notes:
- Leads already in the past are skipped.
B2. Going live and watching
8. Read a live
Purpose: The live's current state, for the host's and the viewer's screens.
Endpoint: GET {base_url}/live/streams/{streamId}
Access Level: π Protected (anyone who can see it (private bookings: host only))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live",
"action_time": "2026-11-26T10:30:45",
"data": {
"id": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "LIVE",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"watching": 214,
"watchingText": "214 watching",
"title": "Kanga sale",
"description": "β¦",
"coverMedia": {"fileId": "β¦", "status": "READY"},
"scheduledFor": null,
"audioOnly": false,
"hostAway": false,
"startedAt": "2026-11-28T20:00:04+03:00",
"endedAt": null,
"endedReason": null,
"canContinueUntil": null,
"peakViewers": 230,
"source": "PHONE",
"cameraConnected": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
* |
A StreamResponse (Part C2) |
9. Get the ingest key (what the host phone sends)
Purpose: Before going live: the key and the exact qualities to send, chosen for the phone's network.
Endpoint: POST {base_url}/live/streams/{streamId}/ingest-key
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample (the body is optional):
{"network": "WIFI", "weakDevice": false}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
network |
string | No | The phone's network now | enum WIFI, MOBILE, WEAK, UNKNOWN |
weakDevice |
boolean | No | An old / weak phone | sends one middle quality |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Ingest key issued",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"ingestKey": "k_4fβ¦",
"expiresAt": "2026-11-28T20:30:00+03:00",
"serverMix": false,
"publish": [
{
"quality": "Q720",
"width": 1280,
"height": 720,
"videoKbps": 1500,
"audioKbps": 96,
"fps": 30,
"keyframeSeconds": 1,
"rtmpUrl": "rtmp://stream.dev.nexgate.co/live/7d1cβ¦?key=k_4fβ¦",
"whipUrl": "https://stream.dev.nexgate.co/rtc/v1/whip/?app=live&stream=7d1cβ¦&key=k_4fβ¦"
},
{
"quality": "Q480",
"width": 854,
"height": 480,
"videoKbps": 800,
"audioKbps": 64,
"fps": 30,
"keyframeSeconds": 1,
"rtmpUrl": "rtmp://β¦/live_mid/7d1cβ¦?key=k_4fβ¦",
"whipUrl": "β¦"
},
{
"quality": "Q240",
"width": 426,
"height": 240,
"videoKbps": 300,
"audioKbps": 48,
"fps": 24,
"keyframeSeconds": 1,
"rtmpUrl": "rtmp://β¦/live_low/7d1cβ¦?key=k_4fβ¦",
"whipUrl": "β¦"
}
]
}
}
Success Response Fields:
| Field | Description |
|---|---|
ingestKey |
The secret that lets this phone publish |
expiresAt |
Before going live: start publishing before this (30 min) |
publish[] |
Send every target, each to its own URL (RTMP or WHIP) |
serverMix |
true for an audio live: send nothing to SRS, join the stage room instead (F7) |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST |
not your live |
STREAM_FINISHED |
the live has ended |
SOURCE_IS_CAMERA |
this live uses the external camera: switch to the phone first |
ALREADY_LIVE / SHOP_ALREADY_LIVE |
you (or the shop) already have another live on air |
Notes:
WIFI/UNKNOWNβ Q720 + Q480 + Q240 Β·MOBILEβ Q480 + Q240 Β·weakDeviceβ Q480 Β·WEAKβ Q240. Audio β oneAUDIOtarget (orserverMix).- Before the live: every call makes a new key. While live: the same key and targets come back, so a dropped encoder can reconnect.
- The viewers' address never contains this key.
10. Get the play addresses (watch)
Purpose: Signed addresses to watch a live that is on, with the start quality and player settings.
Endpoint: POST {base_url}/live/streams/{streamId}/play
Access Level: π Protected (any viewer (event live: ticket holders and the team))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"deviceId": "a1b2c3-install-id", "network": "MOBILE"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
deviceId |
string | Yes | A stable id of this app install | |
network |
string | No | Viewer's network | enum WIFI, MOBILE, WEAK, UNKNOWN |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Play",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"startBefore": "2026-11-28T20:06:00+03:00",
"preferredFormat": "FLV",
"startQuality": "Q480",
"player": {"targetDelayMs": 2000, "catchUpRate": 1.1, "jumpWhenBehindMs": 10000},
"addresses": [
{"format": "FLV", "quality": "Q720", "url": "https://edgeβ¦/live/7d1cβ¦.flv?token=β¦"},
{"format": "HLS", "quality": "Q720", "url": "https://β¦/live/7d1cβ¦.m3u8?token=β¦"},
{"format": "FLV", "quality": "Q480", "url": "β¦"},
{"format": "HLS", "quality": "Q480", "url": "β¦"},
{"format": "FLV", "quality": "LISTEN_ONLY", "url": "https://edgeβ¦/live_audio/7d1cβ¦.flv?token=β¦"}
]
}
}
Success Response Fields:
| Field | Description |
|---|---|
addresses[] |
One per format and quality; LISTEN_ONLY is sound only |
preferredFormat |
Try this first (FLV: 2β3 s behind) |
startQuality |
Start here (lowest with data saver or WEAK) |
player |
Player targets: delay, catch-up speed, when to jump to now |
startBefore |
Playback must start before this (5 min) |
Refusals (409, data.code):
| Code | When |
|---|---|
DEVICE_REQUIRED |
no deviceId |
NOT_LIVE |
not on air |
PAUSED |
NexGate is reviewing it |
REMOVED_FROM_LIVE |
the team removed you |
TICKET_REQUIRED |
an event live and no online ticket |
Notes:
- One token for all addresses. Asking from another phone makes the older phone's next start fail (the one playing is not cut).
- Audio live:
AUDIOandAUDIO_32K(weak networks).
11. Continue the same live
Purpose: Reopen a live that ended less than 10 minutes ago (lost connection or a mistaken End).
Endpoint: POST {base_url}/live/streams/{streamId}/continue
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live reopened",
"action_time": "2026-11-26T10:30:45",
"data": {
"id": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "DRAFT",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"watching": 214,
"watchingText": "214 watching",
"title": "Kanga sale",
"description": "β¦",
"coverMedia": {"fileId": "β¦", "status": "READY"},
"scheduledFor": null,
"audioOnly": false,
"hostAway": false,
"startedAt": "2026-11-28T20:00:04+03:00",
"endedAt": null,
"endedReason": null,
"canContinueUntil": null,
"peakViewers": 230,
"source": "PHONE",
"cameraConnected": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
* |
A StreamResponse (Part C2) |
Refusals (409, data.code):
| Code | When |
|---|---|
CANT_CONTINUE |
past canContinueUntil |
NOT_HOST |
not your live |
Notes:
- The live goes back to
DRAFT: askingest-keyand publish again. Comments and viewers' links stay; followers are not told again.
12. End a live
Purpose: Stop the live now.
Endpoint: POST {base_url}/live/streams/{streamId}/end
Access Level: π Protected (the host (shop live: also the owner))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live ended",
"action_time": "2026-11-26T10:30:45",
"data": {
"id": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "ENDED",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"watching": 214,
"watchingText": "214 watching",
"title": "Kanga sale",
"description": "β¦",
"coverMedia": {"fileId": "β¦", "status": "READY"},
"scheduledFor": null,
"audioOnly": false,
"hostAway": false,
"startedAt": "2026-11-28T20:00:04+03:00",
"endedAt": null,
"endedReason": "HOST_ENDED",
"canContinueUntil": "2026-11-28T21:10:00+03:00",
"peakViewers": 230,
"source": "PHONE",
"cameraConnected": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
* |
A StreamResponse (Part C2) |
canContinueUntil |
Show "Continue" until then |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_STARTED |
never started: use cancel |
NOT_HOST |
not your live |
Notes:
- Everyone on the screen leaves, open stage invites expire, the summary is built 3 s later (
LIVE_SUMMARY_READY).
B3. Real time
13. Connect to real time
Purpose: The Centrifugo address and connection token for this account. Call once when the app starts (and when the token expires).
Endpoint: GET {base_url}/realtime/connection
Access Level: π Protected (any account)
Authentication: Bearer token
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Realtime connection",
"action_time": "2026-11-26T10:30:45",
"data": {
"enabled": true,
"wsUrl": "wss://rt.dev.nexgate.co/connection/websocket",
"token": "eyJβ¦",
"expiresAt": "2026-11-28T21:00:00+03:00",
"personalChannel": "personal:#3213c20e-β¦"
}
}
Success Response Fields:
| Field | Description |
|---|---|
enabled |
false: real time is off; use the 2 s fallback (GET β¦/room) |
token |
Give it to the Centrifugo SDK; it refreshes by calling this again |
personalChannel |
Subscribe at once; needs no extra token |
14. Open a live's channels
Purpose: Subscription tokens for the live room (everyone) and the hosts' room (team only).
Endpoint: POST {base_url}/live/streams/{streamId}/realtime
Access Level: π Protected (any viewer (event live: ticket holders and the team))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live channels",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"enabled": true,
"fallbackPollSeconds": 2,
"room": {"channel": "live_room:7d1cβ¦", "token": "eyJβ¦", "expiresAt": "β¦"},
"hosts": {"channel": "live_hosts:7d1cβ¦", "token": "eyJβ¦", "expiresAt": "β¦"},
"personalChannel": "personal:#3213c20e-β¦"
}
}
Success Response Fields:
| Field | Description |
|---|---|
room |
Subscribe with recovery on |
hosts |
null unless you are on the team |
fallbackPollSeconds |
Poll GET β¦/room this often if Centrifugo fails |
Refusals (409, data.code):
| Code | When |
|---|---|
STREAM_FINISHED |
the live has ended |
TICKET_REQUIRED |
an event live and no online ticket |
15. Read the room (join snapshot and fallback)
Purpose: The last 100 room events, oldest first. Read once when opening a live; poll it only when Centrifugo is down.
Endpoint: GET {base_url}/live/streams/{streamId}/room
Access Level: π Protected (any viewer (event live: ticket holders and the team))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live room",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"lastSeq": 1842,
"events": [
{
"seq": 1841,
"type": "COMMENT",
"streamId": "7d1cβ¦",
"at": 1795716004000,
"data": {
"accountId": "β¦",
"name": "Asha",
"userName": "asha",
"userProfileMedia": {},
"body": "Bei gani?",
"role": "VIEWER",
"speaksAs": null,
"replyTo": null
}
},
{
"seq": 1842,
"type": "WATCHING",
"streamId": "7d1cβ¦",
"at": 1795716006000,
"data": {"watching": 214, "watchingText": "214 watching"}
}
]
}
}
Success Response Fields:
| Field | Description |
|---|---|
lastSeq |
The newest event; apply live events after it |
events[] |
Room events (Part D) |
Refusals (409, data.code):
| Code | When |
|---|---|
TICKET_REQUIRED |
an event live and no online ticket |
Notes:
- Rebuilt at most every 2 s, so polling is cheap.
16. Read the hosts' room
Purpose: The last 100 team-only events (held comments, join requests, sales).
Endpoint: GET {base_url}/live/streams/{streamId}/hosts-room
Access Level: π Protected (the host's team)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Hosts' room",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"lastSeq": 77,
"events": [
{
"seq": 77,
"type": "STAGE_REQUEST",
"streamId": "7d1cβ¦",
"at": 1795716010000,
"data": {
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"voiceOnly": false,
"askedAt": "β¦"
}
}
]
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST |
not on the team |
B4. Finding lives and lists
17. Live now
Purpose: The Live now screen: lives on air for this viewer with a reason, plus "Later today".
Endpoint: GET {base_url}/live/now
Access Level: π Protected (any account)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
page |
int | No | Page | from 0 | 0 |
size |
int | No | Page size | 20 | |
kind |
string | No | Filter | enum ALL, VIDEO, AUDIO, SHOP |
ALL |
cursor |
string | No | See all paging: send it empty (cursor=) for the first page, then each nextCursor. Without it, page works as before |
opaque; kept 10 min | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live now",
"action_time": "2026-11-26T10:30:45",
"data": {
"items": [
{
"live": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "LIVE",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": 214,
"watchingText": "214 watching",
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["WATCH", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
},
"reasonKind": "FOLLOWING",
"reason": "You follow Mama Yoyo",
"sellingLive": true
}
],
"laterToday": [
{
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
],
"page": 0,
"size": 20,
"hasNext": true
}
}
Success Response Fields:
| Field | Description |
|---|---|
items[].reasonKind |
FOLLOWING, FOLLOWING_SHOP, BOUGHT_HERE, YOU_MAY_KNOW, FRIENDS_WATCHING, TRENDING, SELLING, LIVE |
items[].sellingLive |
Something is pinned or on sale: show the bag icon |
laterToday |
Bookings later today (first page only) |
nextCursor |
With cursor: the next page, null at the end. An expired one β 409 CURSOR_EXPIRED (open See all again) |
Notes:
- Subscribe to
live_list:allwhile this screen is open for counts every 30 s andLIVE_ENDED.
18. Swipe (removed)
Removed 2026-11-27. Nobody goes into a lives-only swipe: lives come in the clips feed (GET /feed/reels?lives=true),
the row (#143) and See all (#17). GET /live/swipe answers 404.
19. My lives
Purpose: My lives and my shops' lives.
Endpoint: GET {base_url}/live/mine
Access Level: π Protected (any account)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
status |
string | No | Tab | enum UPCOMING, LIVE, ENDED |
all |
page |
int | No | Page | 0 | |
size |
int | No | Size | 20 |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "My lives",
"action_time": "2026-11-26T10:30:45",
"data": {
"items": [
{
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
],
"page": 0,
"size": 20,
"hasNext": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
items |
LiveCard[] |
20. Someone's lives (profile)
Purpose: A person's personal lives: on now and upcoming (public bookings only).
Endpoint: GET {base_url}/live/people/{accountId}
Access Level: π Protected (any account)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accountId |
uuid | Yes | The person | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Lives",
"action_time": "2026-11-26T10:30:45",
"data": {
"liveNow": null,
"upcoming": [
{
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
]
}
}
21. A shop's lives
Purpose: The shop's lives: on now and upcoming.
Endpoint: GET {base_url}/live/shops/{shopId}
Access Level: π Protected (any account)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
shopId |
uuid | Yes | The shop | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Lives",
"action_time": "2026-11-26T10:30:45",
"data": {
"liveNow": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "LIVE",
"as": "SHOP",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
},
"upcoming": []
}
}
22. Watching heartbeat
Purpose: Say "I am still watching" every 30 s while the player is on screen. Counts the viewer, checks an event ticket in.
Endpoint: POST {base_url}/live/streams/{streamId}/watching
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
from |
string | No | Where the viewer came from (send on the first beat) | enum LIVE_FEED, SWIPE, NOTIFICATION, POST, PROFILE, SHARE_LINK, CHAT, OTHER |
β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Watching",
"action_time": "2026-11-26T10:30:45",
"data": {"streamId": "7d1cβ¦", "watching": 214, "watchingText": "214 watching"}
}
Notes:
- Stopping the beats is how the viewer leaves. Removed, blocked and ticket-locked viewers are not counted.
23. Attach a live to my post draft
Purpose: Put a live (on air or a public booking) on the post being written. One live per post.
Endpoint: POST {base_url}/e-social/posts/draft/attach-live/{streamId}
Access Level: π Protected (any account)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live attached to draft",
"action_time": "2026-11-26T10:30:45",
"data": {
"id": "post-draft-uuid",
"status": "DRAFT",
"attachments": {
"live": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
}
}
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
LIVE_NOT_FOUND |
no such live, or a block either way |
LIVE_NOT_AVAILABLE |
private booking, ended or cancelled |
ONE_LIVE_PER_POST |
already one live on this post |
Notes:
- Remove:
DELETE /e-social/posts/draft/remove-live/{streamId}. Create-post body:attachments.streamIds: ["β¦"]. - Every post answer carries
attachments.liveas aLiveCardread fresh (booked β live β ended).
B5. Comments and keeping the live clean
24. Post a comment
Purpose: Write in the live, optionally replying to a comment.
Endpoint: POST {base_url}/live/streams/{streamId}/comments
Access Level: π Protected (any viewer (event live: ticket holders and the team))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"body": "Bei gani?", "replyToSeq": null}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
body |
string | Yes | The text | max 300 characters |
replyToSeq |
long | No | The seq of the comment you reply to (quote + ding to them) |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Posted",
"action_time": "2026-11-26T10:30:45",
"data": {
"visibility": "ROOM",
"seq": 1843,
"heldId": null,
"comment": {
"accountId": "β¦",
"name": "Asha",
"userName": "asha",
"userProfileMedia": {"thumbUrl": "https://β¦"},
"body": "Bei gani?",
"role": "VIEWER",
"speaksAs": null,
"replyTo": null
}
}
}
Success Response Fields:
| Field | Description |
|---|---|
visibility |
ROOM everyone sees it Β· ONLY_YOU a blocked word: show it only to the writer Β· HELD a number or link: waits for the team |
seq |
Its room seq (ROOM only) |
heldId |
Set when HELD |
comment.role |
HOST, CO_HOST, MODERATOR, ON_STAGE, VIEWER: the badge |
comment.speaksAs |
A LiveShop when someone speaks as their shop |
comment.replyTo |
{seq, accountId, name, body} quote |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_LIVE |
not on air |
EMPTY |
no text |
TOO_LONG |
over 300 |
MUTED |
the team muted you |
TOO_FAST |
more than 3 in 2 seconds |
SLOW_MODE |
slow mode: wait the seconds |
REMOVED_FROM_LIVE |
removed from this live |
REPLY_NOT_FOUND |
the comment replied to is gone |
TICKET_REQUIRED |
event live, no ticket |
Notes:
- The team skips slow mode and the rate limit, and may share numbers / links.
25. Mute a person
Purpose: Stop someone commenting for a while, or let them again.
Endpoint: PUT {base_url}/live/streams/{streamId}/comments/mute/{accountId}
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
accountId |
uuid | Yes | The person | UUID |
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
muted |
boolean | No | false lifts the mute |
true | |
for |
string | No | How long | enum ONE_MINUTE, FIVE_MINUTES, WHOLE_LIVE |
WHOLE_LIVE |
Success Response JSON Sample:
{"success": true, "httpStatus": "OK", "message": "Muted", "action_time": "2026-11-26T10:30:45", "data": null}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
Notes:
- Message
Unmutedwhen lifting.
26. Slow mode
Purpose: Allow one comment per N seconds per viewer (0 turns it off).
Endpoint: PUT {base_url}/live/streams/{streamId}/comments/slow-mode
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
seconds |
int | Yes | Seconds between comments | 0 = off | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Slow mode on",
"action_time": "2026-11-26T10:30:45",
"data": {"streamId": "7d1cβ¦", "seconds": 10}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
27. Delete a comment
Purpose: Take a comment out of the room.
Endpoint: DELETE {base_url}/live/streams/{streamId}/comments/{seq}
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
seq |
long | Yes | The comment's seq |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Comment removed",
"action_time": "2026-11-26T10:30:45",
"data": null
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
Notes:
- Room event
COMMENT_REMOVED {seq}.
28. Pin a comment
Purpose: Keep a comment at the top of the room.
Endpoint: PUT {base_url}/live/streams/{streamId}/comments/{seq}/pin
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
seq |
long | Yes | The comment's seq |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Comment pinned",
"action_time": "2026-11-26T10:30:45",
"data": null
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
Notes:
- Room event
COMMENT_PINNED(the comment). One pinned comment at a time.
29. Unpin the comment
Purpose: Remove the pinned comment.
Endpoint: DELETE {base_url}/live/streams/{streamId}/comments/pin
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Comment unpinned",
"action_time": "2026-11-26T10:30:45",
"data": null
}
Notes:
- Room event
COMMENT_UNPINNED.
30. Held comments
Purpose: Comments with a phone number or link waiting for the team.
Endpoint: GET {base_url}/live/streams/{streamId}/comments/held
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Held comments",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"heldId": "b7β¦",
"comment": {
"accountId": "β¦",
"name": "Asha",
"userName": "asha",
"userProfileMedia": {"thumbUrl": "https://β¦"},
"body": "Call me 0744β¦",
"role": "VIEWER",
"speaksAs": null,
"replyTo": null
},
"at": 1795716004000
}
]
}
31. Approve a held comment
Purpose: Let a held comment into the room.
Endpoint: POST {base_url}/live/streams/{streamId}/comments/held/{heldId}/approve
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
heldId |
uuid | Yes | The held comment |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Approved",
"action_time": "2026-11-26T10:30:45",
"data": {
"visibility": "ROOM",
"seq": 1850,
"heldId": null,
"comment": {
"accountId": "β¦",
"name": "Asha",
"userName": "asha",
"userProfileMedia": {"thumbUrl": "https://β¦"},
"body": "Bei gani?",
"role": "VIEWER",
"speaksAs": null,
"replyTo": null
}
}
}
Notes:
- Hosts' room event
HELD_RESOLVED.
32. Decline a held comment
Purpose: Drop a held comment.
Endpoint: DELETE {base_url}/live/streams/{streamId}/comments/held/{heldId}
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
heldId |
uuid | Yes | The held comment |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Declined",
"action_time": "2026-11-26T10:30:45",
"data": null
}
33. Remove someone from the live
Purpose: Throw someone out of this live: they can't watch, comment or come back to it.
Endpoint: POST {base_url}/live/streams/{streamId}/people/{accountId}/remove
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
accountId |
uuid | Yes | The person | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Removed from the live",
"action_time": "2026-11-26T10:30:45",
"data": null
}
Refusals (409, data.code):
| Code | When |
|---|---|
CANT_REMOVE_HOST |
the host |
NOT_HOST_TEAM |
not on the team |
Notes:
- They get
REMOVED_FROM_LIVEon their personal channel; their play token stops working.
34. Report a live
Purpose: Tell NexGate something is wrong with a live that is on.
Endpoint: POST {base_url}/live/streams/{streamId}/report
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"reason": "SCAM", "details": "Asks people to pay by phone"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
reason |
string | Yes | Why | enum SPAM, MISLEADING_INFO, FALSE_INFORMATION, HATE_SPEECH, HARASSMENT, BULLYING, THREATS, NUDITY, SEXUAL_CONTENT, VIOLENCE, GRAPHIC_CONTENT, ILLEGAL_GOODS, FRAUD, SCAM, INTELLECTUAL_PROPERTY, SELF_HARM, SUICIDE, PRIVACY_VIOLATION, PERSONAL_INFO_EXPOSED, IMPERSONATION, FAKE_ACCOUNT, UNDERAGE_USER, OTHER |
details |
string | No | More |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Thanks, we'll look at it",
"action_time": "2026-11-26T10:30:45",
"data": {"streamId": "7d1cβ¦", "received": true}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_LIVE |
only a live that is on |
CANT_REPORT_OWN |
your own live |
REASON_REQUIRED |
no reason |
Notes:
- NexGate keeps a picture (video) or the last 30 s of sound (audio) with the report. Enough trusted reports in 2 minutes pause the live.
35. My moderators
Purpose: The people who moderate my lives (or my shop's).
Endpoint: GET {base_url}/live/moderators
Access Level: π Protected (any account)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
shopId |
uuid | No | For a shop's moderators | you own it | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Moderators",
"action_time": "2026-11-26T10:30:45",
"data": {
"ownerId": "3213c20e-β¦",
"moderators": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"max": 10
}
}
36. Add a moderator
Purpose: Trust someone to clean comments in all my lives.
Endpoint: PUT {base_url}/live/moderators/{accountId}
Access Level: π Protected (any account)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accountId |
uuid | Yes | The person | UUID |
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
shopId |
uuid | No | For a shop | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Moderator added",
"action_time": "2026-11-26T10:30:45",
"data": {
"ownerId": "3213c20e-β¦",
"moderators": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"max": 10
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
CANT_MODERATE_SELF |
yourself |
TOO_MANY_MODERATORS |
already 10 |
37. Remove a moderator
Purpose: Stop someone moderating.
Endpoint: DELETE {base_url}/live/moderators/{accountId}
Access Level: π Protected (any account)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accountId |
uuid | Yes | The person | UUID |
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
shopId |
uuid | No | For a shop | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Moderator removed",
"action_time": "2026-11-26T10:30:45",
"data": {"ownerId": "3213c20e-β¦", "moderators": [], "max": 10}
}
38. My blocked words
Purpose: Words that never show in my lives (on top of NexGate's list).
Endpoint: GET {base_url}/live/words
Access Level: π Protected (any account)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
shopId |
uuid | No | For a shop | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Blocked words",
"action_time": "2026-11-26T10:30:45",
"data": {"ownerId": "3213c20e-β¦", "words": ["fake", "scam"], "max": 100}
}
39. Set my blocked words
Purpose: Replace the list.
Endpoint: PUT {base_url}/live/words
Access Level: π Protected (any account)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
shopId |
uuid | No | For a shop | β |
Request JSON Sample:
{"words": ["fake", "scam"]}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
words |
array | Yes | The whole list | max 100 words |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Blocked words saved",
"action_time": "2026-11-26T10:30:45",
"data": {"ownerId": "3213c20e-β¦", "words": ["fake", "scam"], "max": 100}
}
Refusals (409, data.code):
| Code | When |
|---|---|
TOO_MANY_WORDS |
over 100 |
WORD_TOO_LONG |
a word is too long |
Notes:
- Words match inside words ("fake" also hides "fakes"). A filtered comment shows only to its writer.
B6. Taking part: reactions, viewers, polls, questions
40. Send reactions
Purpose: Send the viewer's taps in batches.
Endpoint: POST {base_url}/live/streams/{streamId}/reactions
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"taps": [{"reaction": "HEART", "count": 7}, {"reaction": "FIRE", "count": 2}]}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
taps[].reaction |
string | Yes | Which | enum HEART, LAUGH, FIRE, LOVE, CLAP |
taps[].count |
int | Yes | How many taps |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Reactions",
"action_time": "2026-11-26T10:30:45",
"data": {"counted": 9}
}
Success Response Fields:
| Field | Description |
|---|---|
counted |
Taps counted (at most 15 a second per person) |
Notes:
- Everyone gets
REACTIONS {mix}every 2 s. Draw the floating hearts from the mix, not from your own taps only.
41. Reaction totals
Purpose: Totals for the team's screen.
Endpoint: GET {base_url}/live/streams/{streamId}/reactions
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Reaction totals",
"action_time": "2026-11-26T10:30:45",
"data": {"total": 5120, "most": "HEART", "byReaction": [{"reaction": "HEART", "emoji": "β€οΈ", "count": 4000}]}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
42. Top fans
Purpose: Who is watching (count) and the top fans, for everyone.
Endpoint: GET {base_url}/live/streams/{streamId}/viewers/top
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Top fans",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"watching": 214,
"topFans": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"rank": 1
}
]
}
}
43. Who is watching (full list)
Purpose: Everyone watching, for the team.
Endpoint: GET {base_url}/live/streams/{streamId}/viewers
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
page |
int | No | Page | 0 | |
size |
int | No | Size | 30 |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Who's watching",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"watching": 214,
"viewers": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"watchingSince": "β¦",
"followsYou": true,
"topFanRank": 3,
"boughtHere": true
}
],
"page": 0,
"size": 30,
"hasMore": true
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
44. Start a poll
Purpose: Ask the room a question with 2β4 answers.
Endpoint: POST {base_url}/live/streams/{streamId}/polls
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{
"question": "Which colour next?",
"options": [{"text": "Red", "productId": null}, {"text": null, "productId": "prod-uuid"}],
"seconds": 120
}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
question |
string | Yes | The question | |
options[] |
array | Yes | 2β4 answers: words or a product on the shelf | |
seconds |
int | No | How long | 60, 120, 300 or null (until ended) |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Poll started",
"action_time": "2026-11-26T10:30:45",
"data": {
"pollId": "p1β¦",
"streamId": "7d1cβ¦",
"question": "Which colour next?",
"options": [
{"index": 0, "text": "Red", "productId": null, "votes": 40, "percent": 62},
{"index": 1, "text": "Blue", "productId": null, "votes": 24, "percent": 38}
],
"totalVotes": 64,
"endsAt": "2026-11-28T20:12:00+03:00",
"ended": false,
"winner": null,
"myVote": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST |
not host / co-host |
POLL_RUNNING |
one poll at a time |
POLL_TIMER |
bad length |
POLL_OPTION |
an empty option |
POLL_PRODUCT |
a product not on the shelf |
Notes:
- Room
POLL_STARTED, thenPOLL_RESULTSevery 2 s, thenPOLL_ENDEDwith the winner.
45. The poll running now
Purpose: For someone joining mid-poll.
Endpoint: GET {base_url}/live/streams/{streamId}/polls/current
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Poll",
"action_time": "2026-11-26T10:30:45",
"data": {
"pollId": "p1β¦",
"streamId": "7d1cβ¦",
"question": "Which colour next?",
"options": [
{"index": 0, "text": "Red", "productId": null, "votes": 40, "percent": 62},
{"index": 1, "text": "Blue", "productId": null, "votes": 24, "percent": 38}
],
"totalVotes": 64,
"endsAt": "2026-11-28T20:12:00+03:00",
"ended": false,
"winner": null,
"myVote": null
}
}
Success Response Fields:
| Field | Description |
|---|---|
myVote |
My option index, or null |
46. Finished polls
Purpose: The results of this live's polls.
Endpoint: GET {base_url}/live/streams/{streamId}/polls
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Polls",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"pollId": "p1β¦",
"options": [
{"index": 0, "text": "Red", "productId": null, "votes": 40, "percent": 62},
{"index": 1, "text": "Blue", "productId": null, "votes": 24, "percent": 38}
],
"totalVotes": 64,
"ended": true,
"winner": 0
}
]
}
47. Vote
Purpose: Pick an answer.
Endpoint: POST {base_url}/live/streams/{streamId}/polls/{pollId}/votes
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
pollId |
uuid | Yes | The poll |
Request JSON Sample:
{"option": 0}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
option |
int | Yes | The option index |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Voted",
"action_time": "2026-11-26T10:30:45",
"data": {
"pollId": "p1β¦",
"streamId": "7d1cβ¦",
"question": "Which colour next?",
"options": [
{"index": 0, "text": "Red", "productId": null, "votes": 40, "percent": 62},
{"index": 1, "text": "Blue", "productId": null, "votes": 24, "percent": 38}
],
"totalVotes": 64,
"endsAt": "2026-11-28T20:12:00+03:00",
"ended": false,
"winner": null,
"myVote": 0
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
ALREADY_VOTED |
one vote |
POLL_ENDED |
too late |
48. End a poll
Purpose: Close it now.
Endpoint: POST {base_url}/live/streams/{streamId}/polls/{pollId}/end
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
pollId |
uuid | Yes | The poll |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Poll ended",
"action_time": "2026-11-26T10:30:45",
"data": {
"pollId": "p1β¦",
"options": [
{"index": 0, "text": "Red", "productId": null, "votes": 40, "percent": 62},
{"index": 1, "text": "Blue", "productId": null, "votes": 24, "percent": 38}
],
"totalVotes": 64,
"ended": true,
"winner": 0
}
}
49. Ask a question
Purpose: Ask the host something (kept in a list, not lost in comments).
Endpoint: POST {base_url}/live/streams/{streamId}/questions
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"text": "Does it come in XL?", "productId": null}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
text |
string | Yes | The question | max 150 |
productId |
uuid | No | About a product on the shelf | default: whatever is pinned |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Question sent",
"action_time": "2026-11-26T10:30:45",
"data": {
"questionId": "q1β¦",
"asker": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"text": "Does it come in XL?",
"productId": "prod-uuid",
"meToo": 12,
"meTooByMe": false,
"state": "OPEN",
"askedAt": "β¦"
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
TOO_FAST |
one per 30 seconds |
MUTED |
muted |
QUESTION_PRODUCT |
product not on the shelf |
QUESTIONS_FULL |
too many open questions |
Notes:
- Hosts' room
QUESTION_ASKED. A filtered question is kept for the asker only (HIDDEN).
50. All questions
Purpose: The question list (open, on screen, done).
Endpoint: GET {base_url}/live/streams/{streamId}/questions
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Questions",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"questions": [
{
"questionId": "q1β¦",
"asker": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"text": "Does it come in XL?",
"productId": "prod-uuid",
"meToo": 12,
"meTooByMe": false,
"state": "OPEN",
"askedAt": "β¦"
}
],
"notAnswered": 4
}
}
51. Me too
Purpose: Back someone's question.
Endpoint: POST {base_url}/live/streams/{streamId}/questions/{questionId}/me-too
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
questionId |
uuid | Yes | The question |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Me too",
"action_time": "2026-11-26T10:30:45",
"data": {
"questionId": "q1β¦",
"asker": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"text": "Does it come in XL?",
"productId": "prod-uuid",
"meToo": 13,
"meTooByMe": true,
"state": "OPEN",
"askedAt": "β¦"
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
OWN_QUESTION |
your own |
QUESTION_GONE |
closed |
52. Put a question on screen
Purpose: Show it big while answering.
Endpoint: POST {base_url}/live/streams/{streamId}/questions/{questionId}/answer
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
questionId |
uuid | Yes | The question |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "On screen",
"action_time": "2026-11-26T10:30:45",
"data": {
"questionId": "q1β¦",
"asker": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"text": "Does it come in XL?",
"productId": "prod-uuid",
"meToo": 12,
"meTooByMe": false,
"state": "ON_SCREEN",
"askedAt": "β¦"
}
}
Notes:
- Room
QUESTION_ON_SCREEN.
53. Mark a question done
Purpose: Answered.
Endpoint: POST {base_url}/live/streams/{streamId}/questions/{questionId}/done
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
questionId |
uuid | Yes | The question |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Answered",
"action_time": "2026-11-26T10:30:45",
"data": {
"questionId": "q1β¦",
"asker": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"text": "Does it come in XL?",
"productId": "prod-uuid",
"meToo": 12,
"meTooByMe": false,
"state": "DONE",
"askedAt": "β¦"
}
}
Notes:
- Room
QUESTION_DONE {questionId}.
B7. The stage: guests, co-hosts, speakers
People on the stage appear next to the host (video) or speak (audio). They join a LiveKit room named live-stage-<streamId>. Seats: video 2 now / 5 at most, audio 4 now / 7 at most, co-hosts at most 2. To go on: account at least 3 days old, 18+, not removed, nobody on the stage blocked either way, not live yourself.
54. The stage now
Purpose: Who is on, the seats, and my own state.
Endpoint: GET {base_url}/live/streams/{streamId}/stage
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Stage",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "NONE",
"myInviteId": null
}
}
Success Response Fields:
| Field | Description |
|---|---|
me |
ON_STAGE, REQUESTED, INVITED, NONE: which button to show me |
myInviteId |
Set when INVITED |
hands |
Raised hands on the stage (audio) |
55. Ask to join the screen
Purpose: A viewer asks to come on.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/requests
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample (the body is optional):
{"voiceOnly": false, "asShopId": null}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
voiceOnly |
boolean | No | Join without camera | |
asShopId |
uuid | No | Appear as my shop | you own it |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Asked to join",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "REQUESTED",
"myInviteId": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
REQUESTS_OFF |
the host isn't taking requests |
ASK_FOLLOWED_ONLY |
only people the host follows |
ASK_INVITED_ONLY |
invite only |
ALREADY_ON_STAGE |
already on |
IS_HOST |
the host |
NOT_LIVE |
not on air |
ACCOUNT_TOO_NEW |
account under 3 days |
AGE_RESTRICTED |
under 18 |
REMOVED_FROM_LIVE |
removed |
IN_OWN_LIVE |
you are live yourself |
CANT_JOIN |
a block with someone on the stage |
SCREEN_FULL |
no seat free |
Notes:
- Hosts' room
STAGE_REQUEST.
56. Withdraw my request
Purpose: Stop asking.
Endpoint: DELETE {base_url}/live/streams/{streamId}/stage/requests/me
Access Level: π Protected (the asker)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Request withdrawn",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "NONE",
"myInviteId": null
}
}
57. Requests to join
Purpose: The people asking, oldest first.
Endpoint: GET {base_url}/live/streams/{streamId}/stage/requests
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Requests",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"voiceOnly": false,
"askedAt": "β¦"
}
]
}
58. Accept a request
Purpose: Bring them on.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/requests/{accountId}/accept
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
accountId |
uuid | Yes | The person | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "On the screen",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 2,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "NONE",
"myInviteId": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
REQUEST_GONE |
they withdrew |
SCREEN_FULL |
no seat |
ACCOUNT_TOO_NEW |
account under 3 days |
AGE_RESTRICTED |
under 18 |
REMOVED_FROM_LIVE |
removed |
IN_OWN_LIVE |
you are live yourself |
CANT_JOIN |
a block with someone on the stage |
Notes:
- Room
STAGE_CHANGED. The person then asks for their LiveKit token (#72 below).
59. Ignore a request
Purpose: Dismiss quietly.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/requests/{accountId}/ignore
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
accountId |
uuid | Yes | The person | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Ignored",
"action_time": "2026-11-26T10:30:45",
"data": null
}
60. Stop someone asking
Purpose: They can't ask again in this live.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/requests/{accountId}/block
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
accountId |
uuid | Yes | The person | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Can't ask again in this live",
"action_time": "2026-11-26T10:30:45",
"data": null
}
61. Requests on / off
Purpose: Take requests or not.
Endpoint: PUT {base_url}/live/streams/{streamId}/stage/requests-open
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"open": false}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
open |
boolean | Yes | Take requests |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Requests",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": false,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "NONE",
"myInviteId": null
}
}
62. Who may ask to speak
Purpose: Everyone, people I follow, or invite only.
Endpoint: PUT {base_url}/live/streams/{streamId}/stage/who-can-ask
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"who": "FOLLOWED"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
who |
string | Yes | enum EVERYONE, FOLLOWED, INVITED |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Who can ask",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "FOLLOWED",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "NONE",
"myInviteId": null
}
}
63. Invite someone to the screen
Purpose: Invite a guest or co-host, before or during the live.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/invites
Access Level: π Protected (the host (co-hosts: people watching, as guests))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"accountId": "55aaβ¦", "role": "CO_HOST"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accountId |
uuid | Yes | Who | |
role |
string | Yes | enum GUEST, CO_HOST |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Invited",
"action_time": "2026-11-26T10:30:45",
"data": {
"inviteId": "i1β¦",
"streamId": "7d1cβ¦",
"streamTitle": "Kanga sale",
"scheduledFor": "β¦",
"live": true,
"inviter": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"invitee": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "CO_HOST",
"state": "PENDING",
"createdAt": "β¦",
"expiresAt": "β¦"
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST |
co-hosts invite only watchers, as guests |
ALREADY_ON_STAGE |
already on |
CO_HOSTS_FULL |
already 2 |
CANT_INVITE |
their "Who can invite me" says no |
INVITE_LIMIT |
20 invites a day |
STREAM_FINISHED |
ended |
Notes:
- They get
LIVE_STAGE_INVITE(push) andSTAGE_INVITE_STATE(personal). During the live the invite lasts 5 minutes; before it, until the live ends. - Event live: an invited person needs no ticket.
64. This live's invites
Purpose: The invites sent for this live.
Endpoint: GET {base_url}/live/streams/{streamId}/stage/invites
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Invites",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"inviteId": "i1β¦",
"streamId": "7d1cβ¦",
"streamTitle": "Kanga sale",
"scheduledFor": "β¦",
"live": true,
"inviter": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"invitee": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "CO_HOST",
"state": "PENDING",
"createdAt": "β¦",
"expiresAt": "β¦"
}
]
}
65. My stage invites
Purpose: Invites I have received that are still open.
Endpoint: GET {base_url}/live/stage-invites
Access Level: π Protected (any account)
Authentication: Bearer token
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live invites",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"inviteId": "i1β¦",
"streamId": "7d1cβ¦",
"streamTitle": "Kanga sale",
"scheduledFor": "β¦",
"live": true,
"inviter": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"invitee": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "CO_HOST",
"state": "PENDING",
"createdAt": "β¦",
"expiresAt": "β¦"
}
]
}
66. People I can invite
Purpose: The invite picker: contacts and past co-hosts first.
Endpoint: GET {base_url}/live/stage-invites/people
Access Level: π Protected (any account)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
q |
string | No | Search by name | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "People you can invite",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"contact": true,
"pastCoHost": false
}
]
}
67. Answer an invite
Purpose: Say yes or no.
Endpoint: POST {base_url}/live/stage-invites/{inviteId}/respond
Access Level: π Protected (the invited person)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
inviteId |
uuid | Yes | The invite |
Request JSON Sample:
{"accept": true, "asShopId": null}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accept |
boolean | Yes | Yes or no | |
asShopId |
uuid | No | Co-host as my shop | you own it |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Answered",
"action_time": "2026-11-26T10:30:45",
"data": {
"inviteId": "i1β¦",
"streamId": "7d1cβ¦",
"streamTitle": "Kanga sale",
"scheduledFor": "β¦",
"live": true,
"inviter": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"invitee": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "CO_HOST",
"state": "ACCEPTED",
"createdAt": "β¦",
"expiresAt": "β¦"
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
INVITE_ENDED |
expired or withdrawn |
NOT_SHOP_OWNER |
not your shop |
68. Join from an invite
Purpose: Take the seat now (the live is on).
Endpoint: POST {base_url}/live/stage-invites/{inviteId}/join
Access Level: π Protected (the invited person)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
inviteId |
uuid | Yes | The invite |
Request JSON Sample (the body is optional):
{"voiceOnly": false, "asShopId": null}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
voiceOnly |
boolean | No | Without camera | |
asShopId |
uuid | No | As my shop |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "On the screen",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "ON_STAGE",
"myInviteId": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
INVITE_ENDED |
expired |
SCREEN_FULL |
full: the invite stays open; STAGE_SEAT_FREE tells you when a seat frees |
ACCOUNT_TOO_NEW |
account under 3 days |
AGE_RESTRICTED |
under 18 |
REMOVED_FROM_LIVE |
removed |
IN_OWN_LIVE |
you are live yourself |
CANT_JOIN |
a block with someone on the stage |
69. Withdraw an invite
Purpose: Take an invite back.
Endpoint: POST {base_url}/live/stage-invites/{inviteId}/revoke
Access Level: π Protected (the inviter)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
inviteId |
uuid | Yes | The invite |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Invite withdrawn",
"action_time": "2026-11-26T10:30:45",
"data": {
"inviteId": "i1β¦",
"streamId": "7d1cβ¦",
"streamTitle": "Kanga sale",
"scheduledFor": "β¦",
"live": true,
"inviter": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"invitee": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "CO_HOST",
"state": "REVOKED",
"createdAt": "β¦",
"expiresAt": "β¦"
}
}
70. Make the speaker link
Purpose: One link per live; whoever opens it is invited.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/link
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Speaker link",
"action_time": "2026-11-26T10:30:45",
"data": {"streamId": "7d1cβ¦", "code": "Zk3vβ¦"}
}
Notes:
71. Open a speaker link
Purpose: Opening is the yes: on the screen now if the live is on, otherwise an accepted invite for the start.
Endpoint: POST {base_url}/live/stage-links/{code}
Access Level: π Protected (any account)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
code |
string | Yes | From the link |
Request JSON Sample (the body is optional):
{"voiceOnly": false, "asShopId": null}
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Speaker link",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "ON_STAGE",
"myInviteId": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
LINK_ENDED |
the live ended |
ACCOUNT_TOO_NEW |
account under 3 days |
AGE_RESTRICTED |
under 18 |
REMOVED_FROM_LIVE |
removed |
IN_OWN_LIVE |
you are live yourself |
CANT_JOIN |
a block with someone on the stage |
SCREEN_FULL |
no seat free |
72. Get the stage room token (LiveKit)
Purpose: For the host and the people on the stage: join the LiveKit room.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/token
Access Level: π Protected (host and people on the stage)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Stage room",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"url": "wss://livekit.dev.nexgate.co",
"room": "live-stage-7d1cβ¦",
"identity": "3213c20e-β¦",
"token": "eyJβ¦",
"camera": true,
"startMuted": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
camera |
May publish a camera (false for voice-only and audio lives) |
startMuted |
Join with the mic off |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_ON_STAGE |
not on the stage |
NOT_LIVE |
not on air (an audio live's host may join before) |
Notes:
- If LiveKit says someone left (after its own reconnect time) the seat frees (
DROPPED).
73. Remove someone from the screen
Purpose: Back to watching.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/members/{accountId}/remove
Access Level: π Protected (the host's team (host, co-hosts, moderators); a co-host only by the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
accountId |
uuid | Yes | The person | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Removed from the screen",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "NONE",
"myInviteId": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_ON_STAGE |
not on it |
NOT_HOST |
only the host removes a co-host |
Notes:
- They get
STAGE_REMOVEDon their personal channel.
74. Leave the screen
Purpose: Go back to watching.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/leave
Access Level: π Protected (someone on the stage)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Back to watching",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "NONE",
"myInviteId": null
}
}
75. Mute a speaker
Purpose: Turn someone's mic off (they can turn it on again; the team never unmutes).
Endpoint: POST {base_url}/live/streams/{streamId}/stage/members/{accountId}/mute
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
accountId |
uuid | Yes | The person | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Muted",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": [],
"me": "NONE",
"myInviteId": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
CANT_MUTE_HOST |
the host |
Notes:
- Room
STAGE_MUTED {accountId}.
76. Raise / lower my hand
Purpose: On the stage: ask for the next turn (audio).
Endpoint: PUT {base_url}/live/streams/{streamId}/stage/hand
Access Level: π Protected (someone on the stage)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"raised": true}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
raised |
boolean | Yes |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Hand",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"seatsNow": 2,
"seatsMax": 5,
"seatsTaken": 1,
"coHostsMax": 2,
"requestsOpen": true,
"whoCanAsk": "EVERYONE",
"members": [
{
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"role": "GUEST",
"asShop": null,
"voiceOnly": false,
"newHere": false,
"joinedAt": "β¦"
}
],
"hands": ["3213c20e-β¦"],
"me": "NONE",
"myInviteId": null
}
}
Notes:
- Room
STAGE_HANDS {hands}.
77. Who is talking
Purpose: The host phone reports LiveKit's active speakers, at most once a second.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/speaking
Access Level: π Protected (host or someone on the stage)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"speaking": ["3213c20e-β¦"]}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
speaking |
array | Yes | accountIds talking now |
Success Response JSON Sample:
{"success": true, "httpStatus": "OK", "message": "Seen", "action_time": "2026-11-26T10:30:45", "data": null}
Notes:
- Room
SPEAKING {speaking}(not kept in the room snapshot). Listeners use it to ring the talker's picture.
78. Send listeners on
Purpose: At the end, point the audience to another live.
Endpoint: POST {base_url}/live/streams/{streamId}/stage/send-on
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"toStreamId": "9e2β¦"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
toStreamId |
uuid | Yes | The live to send them to | on air |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Listeners sent on",
"action_time": "2026-11-26T10:30:45",
"data": {
"toStreamId": "9e2β¦",
"title": "Late show",
"mode": "LIVE_AUDIO",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
}
}
Notes:
- Room
LIVE_SEND_ON. The live does not end by itself.
79. Guests window (OBS)
Purpose: A page token showing the guests, for an OBS browser source (external camera lives).
Endpoint: GET {base_url}/live/streams/{streamId}/stage/window
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Guests window",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"pageUrl": "https://β¦/guests-window",
"livekitUrl": "wss://β¦",
"room": "live-stage-7d1cβ¦",
"token": "eyJβ¦",
"connected": false
}
}
B8. The shelf: attachments and the pinned item
80. Attach something
Purpose: Put a product, ticket, the shop, an event, a post or a link on the shelf.
Endpoint: POST {base_url}/live/streams/{streamId}/attachments
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"type": "PRODUCT", "targetId": "prod-uuid"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
type |
string | Yes | What | enum PRODUCT, SHOP, EVENT, TICKET, POST, LINK (PRODUCT_GROUP, TICKET_GROUP are added by the group tools) |
targetId |
uuid | Yes | Its id |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Attached",
"action_time": "2026-11-26T10:30:45",
"data": {"id": "a1β¦", "type": "PRODUCT", "targetId": "prod-uuid", "state": "SHELF", "pinnedAt": null, "taps": 0}
}
Refusals (409, data.code):
| Code | When |
|---|---|
BAD_ATTACHMENT |
type or id missing |
ALREADY_ATTACHED |
already on the shelf |
Notes:
- The owner of a featured shop / event (if not the host) gets
SOC_SHOP_FEATURED/SOC_EVENT_FEATURED.
81. The shelf
Purpose: Everything attached (not removed).
Endpoint: GET {base_url}/live/streams/{streamId}/attachments
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Attachments",
"action_time": "2026-11-26T10:30:45",
"data": [{"id": "a1β¦", "type": "PRODUCT", "targetId": "prod-uuid", "state": "SHELF", "pinnedAt": null, "taps": 0}]
}
82. Pin an item
Purpose: Show one item big; the previous pin goes back to the shelf.
Endpoint: PUT {base_url}/live/streams/{streamId}/attachments/{attachmentId}/pin
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
attachmentId |
uuid | Yes | The attachment |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Pinned",
"action_time": "2026-11-26T10:30:45",
"data": {"id": "a1β¦", "type": "PRODUCT", "targetId": "prod-uuid", "state": "PINNED", "pinnedAt": "β¦", "taps": 0}
}
Refusals (409, data.code):
| Code | When |
|---|---|
REMOVED |
it was removed |
Notes:
- Room
PINcarries{attachmentId, type, targetId, card, donation}:cardis the product's live deal card (price, flash, group, instalments, free delivery);donationis a DONATION ticket's{target, raised, donations}.
83. Unpin
Purpose: Nothing pinned.
Endpoint: DELETE {base_url}/live/streams/{streamId}/attachments/pin
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Unpinned",
"action_time": "2026-11-26T10:30:45",
"data": null
}
Notes:
- Room
UNPIN.
84. Remove from the shelf
Purpose: Take an item off.
Endpoint: DELETE {base_url}/live/streams/{streamId}/attachments/{attachmentId}
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
attachmentId |
uuid | Yes | The attachment |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Removed",
"action_time": "2026-11-26T10:30:45",
"data": null
}
Notes:
- Sends
UNPINif it was pinned.
85. Tap an item (removed)
Removed 2026-11-27. Use #147 POST /sale-taps with from: "LIVE", sourceId: the streamId, item + itemId: the
product / event on the shelf. It counts the tap for the live's numbers exactly as #85 did.
B9. Selling tools
Money tools run for the seller only: on a shop live the shop's owner (or staff with the right); on an event live the organiser for its tickets. Products must be on the shelf first. One deal per product at a time (DEAL_RUNNING).
86. The host toolbar
Purpose: Which buttons the host team sees, decided by the backend.
Endpoint: GET {base_url}/live/streams/{streamId}/tools
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Tools",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"main": ["PIN", "DROP", "STAGE", "COMMENTS", "MORE"],
"drop": ["COUPON_DROP", "FLASH_PRICE", "FREE_DELIVERY", "GROUP_BUY"],
"more": ["BARGAIN", "AUCTION", "GIFTS", "GOAL", "POLL", "QUESTIONS", "MODERATORS", "SAFETY", "SHARE", "END"]
}
}
Success Response Fields:
| Field | Description |
|---|---|
main |
The 5 toolbar buttons |
drop |
Under "Drop" |
more |
Under "More" |
Notes:
- Values:
PIN,DROP,STAGE,COMMENTS,MORE,COUPON_DROP,FLASH_PRICE,FREE_DELIVERY,GROUP_BUY,TICKET_GROUP,BARGAIN,AUCTION,GIFTS,GOAL,POLL,QUESTIONS,MODERATORS,SAFETY,SHARE,END. Draw only what comes back (coupons off β no coupon drop; personal live β no shop tools).
87. A product's live card
Purpose: Price now, volume price steps, flash price, running group, instalment plans, free delivery, and the buttons to draw.
Endpoint: GET {base_url}/live/streams/{streamId}/products/{productId}/card
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
productId |
uuid | Yes | The product | on this live's shelf |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Product card",
"action_time": "2026-11-26T10:30:45",
"data": {
"productId": "prod-uuid",
"price": 25000,
"flash": null,
"group": null,
"instalments": [
{
"planId": "β¦",
"planName": "3 months",
"payments": 3,
"frequency": "MONTHLY",
"downPaymentPercent": 30,
"payNow": 7500,
"apr": 0
}
],
"freeDelivery": true,
"volumePrices": [ { "fromQuantity": 3, "price": 22500 }, { "fromQuantity": 10, "price": 20000 } ],
"actions": ["PAY_IN_PARTS", "BUY_NOW", "ADD_TO_CART"]
}
}
| Field | Description |
|---|---|
volumePrices |
The product's volume steps a buyer can reach ("22,500 each from 3"); empty for a flat price |
actions |
The buttons to draw, in this order: BUY_NOW, ADD_TO_CART, JOIN_GROUP (group price), BUY_ALONE (normal / step price), PAY_IN_PARTS, MAKE_OFFER, BID. An auction shows only BID; out of stock β empty |
88. Sales so far
Purpose: Orders and money from this live.
Endpoint: GET {base_url}/live/streams/{streamId}/sales
Access Level: π Protected (the host's team (host, co-hosts, moderators); money only to the seller)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Sales from this live",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"money": true,
"orders": 18,
"pieces": 25,
"ticketBookings": 0,
"paid": 410000,
"refundedOrders": 1,
"refunded": 15000,
"net": 395000,
"instalments": {"orders": 2, "paidNow": 30000, "total": 100000},
"products": [{"productId": "prod-uuid", "taps": 120, "orders": 12, "pieces": 15}]
}
}
Success Response Fields:
| Field | Description |
|---|---|
money |
false: the money fields are null for you (not the seller) |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
Notes:
- The hosts' room gets
SALES(counts) as orders come in.
89. Drop a coupon
Purpose: Give a shop coupon to the first N people who grab it, for some seconds.
Also in shop meetings since 2026-11-27, with the same request and answer:
docs/calls/calls_meetings_api_doc.md#71β#74.
Endpoint: POST {base_url}/live/streams/{streamId}/drops
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"couponId": "c1β¦", "people": 50, "seconds": 60, "validFor": "HOURS_24", "watchersOnly": true}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
couponId |
uuid | Yes | An existing coupon of the shop | |
people |
int | Yes | How many can grab | 1β1000 |
seconds |
int | Yes | How long the drop stays | 15β900 |
validFor |
string | Yes | How long a grabbed coupon can be used | enum HOUR_1, HOURS_6, HOURS_24, DAYS_3, DAYS_7 |
watchersOnly |
boolean | No | Only people watching a while can grab |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Coupon dropped",
"action_time": "2026-11-26T10:30:45",
"data": {
"dropId": "d1β¦",
"streamId": "7d1cβ¦",
"couponId": "c1β¦",
"title": "10% off",
"kind": "PERCENT",
"value": 10,
"cap": 5000,
"minOrder": 20000,
"shopId": "shop-uuid",
"eventId": null,
"people": 50,
"left": 50,
"endsAt": "β¦",
"validFor": "HOURS_24",
"watchersOnly": true,
"ended": false
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_SELLER |
not the seller |
NOT_FOUND |
coupon not found |
Notes:
- Room
DROP_STARTED(the drop),DROP_LEFT {dropId, left},DROP_ENDED {dropId, grabbed}. Only when coupons are on.
90. Running drops
Purpose: Drops still on.
Endpoint: GET {base_url}/live/streams/{streamId}/drops
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Coupon drops",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"dropId": "d1β¦",
"streamId": "7d1cβ¦",
"couponId": "c1β¦",
"title": "10% off",
"kind": "PERCENT",
"value": 10,
"cap": 5000,
"minOrder": 20000,
"shopId": "shop-uuid",
"eventId": null,
"people": 50,
"left": 50,
"endsAt": "β¦",
"validFor": "HOURS_24",
"watchersOnly": true,
"ended": false
}
]
}
91. Drops report
Purpose: How each drop did.
Endpoint: GET {base_url}/live/streams/{streamId}/drops/report
Access Level: π Protected (the host's team (host, co-hosts, moderators))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Coupon drops",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"drop": {
"dropId": "d1β¦",
"streamId": "7d1cβ¦",
"couponId": "c1β¦",
"title": "10% off",
"kind": "PERCENT",
"value": 10,
"cap": 5000,
"minOrder": 20000,
"shopId": "shop-uuid",
"eventId": null,
"people": 50,
"left": 0,
"endsAt": "β¦",
"validFor": "HOURS_24",
"watchersOnly": true,
"ended": true
},
"grabbed": 50,
"used": 21
}
]
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
92. Change a drop
Purpose: Add people or seconds.
Endpoint: PATCH {base_url}/live/streams/{streamId}/drops/{dropId}
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
dropId |
uuid | Yes | The drop |
Request JSON Sample:
{"addPeople": 20, "addSeconds": 30}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
addPeople |
int | No | More people | |
addSeconds |
int | No | More time |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Drop changed",
"action_time": "2026-11-26T10:30:45",
"data": {
"dropId": "d1β¦",
"streamId": "7d1cβ¦",
"couponId": "c1β¦",
"title": "10% off",
"kind": "PERCENT",
"value": 10,
"cap": 5000,
"minOrder": 20000,
"shopId": "shop-uuid",
"eventId": null,
"people": 70,
"left": 30,
"endsAt": "β¦",
"validFor": "HOURS_24",
"watchersOnly": true,
"ended": false
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
DROP_ENDED |
over: drop a new one |
93. Stop a drop
Purpose: End it now.
Endpoint: POST {base_url}/live/streams/{streamId}/drops/{dropId}/stop
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
dropId |
uuid | Yes | The drop |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Drop stopped",
"action_time": "2026-11-26T10:30:45",
"data": {
"dropId": "d1β¦",
"streamId": "7d1cβ¦",
"couponId": "c1β¦",
"title": "10% off",
"kind": "PERCENT",
"value": 10,
"cap": 5000,
"minOrder": 20000,
"shopId": "shop-uuid",
"eventId": null,
"people": 50,
"left": 50,
"endsAt": "β¦",
"validFor": "HOURS_24",
"watchersOnly": true,
"ended": true
}
}
94. Grab a dropped coupon
Purpose: A viewer takes one.
Endpoint: POST {base_url}/live/streams/{streamId}/drops/{dropId}/grab
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
dropId |
uuid | Yes | The drop |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Grabbed",
"action_time": "2026-11-26T10:30:45",
"data": {"dropId": "d1β¦", "couponId": "c1β¦", "usableUntil": "2026-11-29T20:01:00+03:00"}
}
Refusals (409, data.code):
| Code | When |
|---|---|
DROP_ALL_TAKEN |
none left |
DROP_ENDED |
too late |
ALREADY_GRABBED |
one each |
ACCOUNT_TOO_NEW |
under 3 days |
WATCH_FIRST |
watchersOnly: watch a little first |
Notes:
- The coupon is in the person's wallet of coupons; checkout uses it as usual.
95. Start a flash price
Purpose: A lower price for a few minutes, optionally limited pieces.
Also in shop meetings since 2026-11-27, with the same request, answer and checkout:
docs/calls/calls_meetings_api_doc.md#68β#70.
Endpoint: POST {base_url}/live/streams/{streamId}/flash
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"productId": "prod-uuid", "price": 18000, "minutes": 5, "pieces": 20, "watchersOnly": false, "maxPerPerson": 2}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
productId |
uuid | Yes | The product | on this live's shelf |
price |
number | Yes | The flash price (TZS) | below the price |
minutes |
int | Yes | How long | 1, 3, 5 or 10 |
pieces |
int | No | Limited pieces | |
watchersOnly |
boolean | No | Only for watchers | |
maxPerPerson |
int | No | Pieces one buyer may take at the flash price (held + paid) | 1β99, default 2 |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Flash price on",
"action_time": "2026-11-26T10:30:45",
"data": {
"flashId": "f1β¦",
"streamId": "7d1cβ¦",
"productId": "prod-uuid",
"price": 18000,
"originalPrice": 25000,
"pieces": 20,
"left": 20,
"endsAt": "β¦",
"watchersOnly": false,
"ended": false,
"maxPerPerson": 2
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_ON_SHELF |
put it on the shelf |
DEAL_RUNNING |
another deal on it |
FLASH_TIME |
bad length |
FLASH_PRICE |
not lower |
Notes:
- Room
FLASH_STARTED,FLASH_LEFT {flashId, left},FLASH_ENDED {flashId, sold}. Pieces are held 10 min per buyer at checkout. - At checkout (since v4.1): too few pieces left β 409
FLASH_PIECES_LEFTdetails: {left, productId}; over the buyer's limit β 409FLASH_MAX_PER_PERSONdetails: {max, yours}. Offer "Take {left} at the flash price" (resend with that quantity) or "All at the normal price" (resend withskipLiveDeal: true). Never the normal price in silence. - A product with volume prices: the buyer pays the lower of the flash price and the volume step, never both.
- No coupon on a flash item; a coupon still works on the order's other items and other shops (
NO_COUPON_ON_FLASHonly for that shop). - The cart shows the flash price before checkout: cart item
liveDeal {flashId, price, endsAt, piecesLeft, maxPerPerson}.
96. Running flash prices
Purpose:
Endpoint: GET {base_url}/live/streams/{streamId}/flash
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Flash prices",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"flashId": "f1β¦",
"streamId": "7d1cβ¦",
"productId": "prod-uuid",
"price": 18000,
"originalPrice": 25000,
"pieces": 20,
"left": 20,
"endsAt": "β¦",
"watchersOnly": false,
"ended": false
}
]
}
97. Change a flash price
Purpose: Lower the price or add pieces.
Endpoint: PATCH {base_url}/live/streams/{streamId}/flash/{flashId}
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
flashId |
uuid | Yes | The flash |
Request JSON Sample:
{"price": 16000, "addPieces": 10}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
price |
number | No | New price | only lower |
addPieces |
int | No | More pieces |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Flash price changed",
"action_time": "2026-11-26T10:30:45",
"data": {
"flashId": "f1β¦",
"streamId": "7d1cβ¦",
"productId": "prod-uuid",
"price": 16000,
"originalPrice": 25000,
"pieces": 30,
"left": 30,
"endsAt": "β¦",
"watchersOnly": false,
"ended": false
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
FLASH_PRICE_UP |
only lower |
FLASH_ENDED |
over |
98. Stop a flash price
Purpose:
Endpoint: POST {base_url}/live/streams/{streamId}/flash/{flashId}/stop
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
flashId |
uuid | Yes | The flash |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Flash price stopped",
"action_time": "2026-11-26T10:30:45",
"data": {
"flashId": "f1β¦",
"streamId": "7d1cβ¦",
"productId": "prod-uuid",
"price": 18000,
"originalPrice": 25000,
"pieces": 20,
"left": 20,
"endsAt": "β¦",
"watchersOnly": false,
"ended": true
}
}
99. Free delivery from the live
Purpose: The shop pays delivery (or half) for orders from this live.
Endpoint: POST {base_url}/live/streams/{streamId}/free-delivery
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{
"half": false,
"cap": 5000,
"areas": [{"level": "REGION", "regionCode": "DSM", "districtCode": null, "wardId": null}]
}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
half |
boolean | No | Pay half instead of all | |
cap |
number | No | At most this per order (TZS) | |
areas |
array | No | Only to these areas | {level: REGION|DISTRICT|WARD, regionCode, districtCode, wardId} |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Free delivery on",
"action_time": "2026-11-26T10:30:45",
"data": {"campaignId": "fd1β¦", "streamId": "7d1cβ¦", "half": false, "cap": 5000, "running": true}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_SHOP_LIVE |
a personal live |
Notes:
- Room
FREE_DELIVERY_ON/FREE_DELIVERY_OFF. Uses a seller delivery campaign (the shop's spending limit applies).
100. Stop free delivery
Purpose:
Endpoint: POST {base_url}/live/streams/{streamId}/free-delivery/{campaignId}/stop
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
campaignId |
uuid | Yes | From the start answer |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Free delivery off",
"action_time": "2026-11-26T10:30:45",
"data": {"campaignId": "fd1β¦", "streamId": "7d1cβ¦", "half": false, "cap": 5000, "running": false}
}
101. Set a goal
Purpose: A target on screen (up to 2 at once) with an optional timer and reward.
Endpoint: POST {base_url}/live/streams/{streamId}/goals
Access Level: π Protected (host or co-host (sales goals: the seller))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{
"type": "ORDERS",
"target": 50,
"productId": null,
"timerMinutes": 15,
"reward": {
"kind": "COUPON_DROP",
"drop": {"couponId": "c1β¦", "people": 100, "seconds": 60, "validFor": "HOURS_24", "watchersOnly": true},
"flash": null,
"freeDelivery": null,
"text": null,
"campaignId": null
}
}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
type |
string | Yes | What counts | enum ORDERS, PIECES, REVENUE, FOLLOWERS, WATCHING, GIFTS |
target |
long | Yes | The number | β₯ 1 (revenue in TZS) |
productId |
uuid | No | Only this product | on the shelf |
timerMinutes |
int | No | A countdown | 5, 10, 15 or 30 |
reward.kind |
string | No | What happens when reached | enum COUPON_DROP, FLASH_PRICE, FREE_DELIVERY, TEXT |
reward.drop / flash / freeDelivery |
object | If that kind | The deal fired by the backend (same bodies as #89, #95, #99) | |
reward.text |
string | If TEXT |
A promise ("I sing the last song") |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Goal set",
"action_time": "2026-11-26T10:30:45",
"data": {
"goalId": "g1β¦",
"streamId": "7d1cβ¦",
"type": "ORDERS",
"productId": null,
"target": 50,
"progress": 18,
"percent": 36,
"state": "RUNNING",
"endsAt": "β¦",
"reward": "COUPON_DROP",
"rewardText": null,
"rewardGiven": false,
"reachedAt": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
GOALS_FULL |
already 2 |
GOAL_SAME_TYPE |
same type running |
GOAL_TIMER |
bad timer |
GOAL_TARGET |
under 1 |
GOAL_REWARD |
promise text missing |
NOT_SELLER |
sales goal not by the seller |
NOT_ON_SHELF |
product not on the shelf |
NOT_HOST |
not host / co-host |
STREAM_FINISHED |
ended |
Notes:
- Room
GOAL_STARTED,GOAL_PROGRESS,GOAL_REACHED,GOAL_TIME_UP,GOAL_ENDED. Rewards fire by themselves when reached.
102. Goals
Purpose:
Endpoint: GET {base_url}/live/streams/{streamId}/goals
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Goals",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"goalId": "g1β¦",
"streamId": "7d1cβ¦",
"type": "ORDERS",
"productId": null,
"target": 50,
"progress": 18,
"percent": 36,
"state": "RUNNING",
"endsAt": "β¦",
"reward": "COUPON_DROP",
"rewardText": null,
"rewardGiven": false,
"reachedAt": null
}
]
}
103. Change a goal
Purpose: Lower the target or add minutes.
Endpoint: PATCH {base_url}/live/streams/{streamId}/goals/{goalId}
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
goalId |
uuid | Yes | The goal |
Request JSON Sample:
{"target": 40, "addMinutes": 5}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
target |
long | No | New target | only lower |
addMinutes |
int | No | More time |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Goal changed",
"action_time": "2026-11-26T10:30:45",
"data": {
"goalId": "g1β¦",
"streamId": "7d1cβ¦",
"type": "ORDERS",
"productId": null,
"target": 40,
"progress": 18,
"percent": 45,
"state": "RUNNING",
"endsAt": "β¦",
"reward": "COUPON_DROP",
"rewardText": null,
"rewardGiven": false,
"reachedAt": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
GOAL_RAISE |
only lower |
GOAL_ENDED |
over |
104. Cancel a goal
Purpose: Stop it, optionally giving the reward anyway.
Endpoint: POST {base_url}/live/streams/{streamId}/goals/{goalId}/cancel
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
goalId |
uuid | Yes | The goal |
Request JSON Sample (the body is optional):
{"giveReward": true}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
giveReward |
boolean | No | Fire the reward anyway |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Goal cancelled",
"action_time": "2026-11-26T10:30:45",
"data": {
"goalId": "g1β¦",
"streamId": "7d1cβ¦",
"type": "ORDERS",
"productId": null,
"target": 50,
"progress": 18,
"percent": 36,
"state": "CANCELLED",
"endsAt": "β¦",
"reward": "COUPON_DROP",
"rewardText": null,
"rewardGiven": true,
"reachedAt": null
}
}
105. Give the reward (time is up)
Purpose: The timer ran out short of the target: reward the room anyway.
Endpoint: POST {base_url}/live/streams/{streamId}/goals/{goalId}/reward
Access Level: π Protected (host or co-host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
goalId |
uuid | Yes | The goal |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Reward given",
"action_time": "2026-11-26T10:30:45",
"data": {
"goalId": "g1β¦",
"streamId": "7d1cβ¦",
"type": "ORDERS",
"productId": null,
"target": 50,
"progress": 18,
"percent": 36,
"state": "TIME_UP",
"endsAt": "β¦",
"reward": "COUPON_DROP",
"rewardText": null,
"rewardGiven": true,
"reachedAt": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
GOAL_NOT_TIME_UP |
only when the time is up |
106. Start a group buy
Purpose: Start a group for a product with group buying on.
Endpoint: POST {base_url}/live/streams/{streamId}/group-buys
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal); staff at the product's group price)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"productId": "prod-uuid"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
productId |
uuid | Yes | The product | on this live's shelf |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Group buy started",
"action_time": "2026-11-26T10:30:45",
"data": {
"groupId": "gr1β¦",
"productId": "prod-uuid",
"groupPrice": 20000,
"regularPrice": 25000,
"seatsOccupied": 3,
"totalSeats": 5,
"expiresAt": "2026-11-29T20:00:00",
"status": "OPEN",
"startedHere": true
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
GROUP_BUYING_OFF |
turn on group buying on the product first |
GROUP_RUNNING |
one group per product per live |
DEAL_RUNNING |
another deal on it |
NOT_SELLER |
not the seller |
Notes:
- Pinned at once (
PRODUCT_GROUP); roomGROUP_PROGRESS(the card) whenever seats change. Buyers join with the normal group checkout.
107. Lower the group price
Purpose:
Endpoint: POST {base_url}/live/streams/{streamId}/group-buys/{groupId}/price
Access Level: π Protected (the shop owner)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
groupId |
uuid | Yes | The group |
Request JSON Sample:
{"price": 18000}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
price |
number | Yes | New group price | lower |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Group price lowered",
"action_time": "2026-11-26T10:30:45",
"data": {
"groupId": "gr1β¦",
"productId": "prod-uuid",
"groupPrice": 18000,
"regularPrice": 25000,
"seatsOccupied": 3,
"totalSeats": 5,
"expiresAt": "2026-11-29T20:00:00",
"status": "OPEN",
"startedHere": true
}
}
108. Give the group price to everyone in it
Purpose: Complete the group now with the people already in it.
Endpoint: POST {base_url}/live/streams/{streamId}/group-buys/{groupId}/give-through
Access Level: π Protected (the shop owner)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
groupId |
uuid | Yes | The group |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Everyone gets the group price",
"action_time": "2026-11-26T10:30:45",
"data": {
"groupId": "gr1β¦",
"productId": "prod-uuid",
"groupPrice": 20000,
"regularPrice": 25000,
"seatsOccupied": 3,
"totalSeats": 3,
"expiresAt": "2026-11-29T20:00:00",
"status": "COMPLETED",
"startedHere": true
}
}
109. Start a ticket group
Purpose: The event organiser starts a ticket group in the live without buying a seat.
Endpoint: POST {base_url}/live/streams/{streamId}/ticket-groups
Access Level: π Protected (the event's organiser)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"ticketId": "ticket-uuid"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
ticketId |
uuid | Yes | A ticket type with group buying on |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Ticket group started",
"action_time": "2026-11-26T10:30:45",
"data": {
"groupId": "tg1β¦",
"ticketId": "ticket-uuid",
"eventId": "event-uuid",
"groupCode": "TG-4K2",
"groupPrice": 12000,
"regularPrice": 15000,
"seatsOccupied": 0,
"totalSeats": 4,
"expiresAt": "β¦",
"status": "OPEN",
"startedHere": true
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_SELLER |
not the organiser |
GROUP_BUYING_OFF |
off on the ticket |
GROUP_RUNNING |
one per ticket per live |
Notes:
- The group holds its own seats until it fills or ends. Room
TICKET_GROUP_PROGRESS.
110. Open a product for offers (bargain)
Purpose: Viewers may offer a price; offers under the lowest are refused for you.
Endpoint: POST {base_url}/live/streams/{streamId}/bargain
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"productId": "prod-uuid", "lowestPrice": 19000}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
productId |
uuid | Yes | The product | on this live's shelf |
lowestPrice |
number | Yes | Never accept below (hidden from viewers) |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Offers open",
"action_time": "2026-11-26T10:30:45",
"data": {"productId": "prod-uuid", "on": true}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_ON_SHELF |
not on the shelf |
DEAL_RUNNING |
another deal on it |
111. Close offers
Purpose:
Endpoint: DELETE {base_url}/live/streams/{streamId}/bargain/{productId}
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
productId |
uuid | Yes | The product | on this live's shelf |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Offers closed",
"action_time": "2026-11-26T10:30:45",
"data": {"productId": "prod-uuid", "on": false}
}
112. Make an offer
Purpose: A viewer offers a price.
Endpoint: POST {base_url}/live/streams/{streamId}/bargain/{productId}/offers
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
productId |
uuid | Yes | The product | on this live's shelf |
Request JSON Sample:
{"price": 7500, "quantity": 20}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
price |
number | Yes | The offer per piece (TZS) | below the price for that quantity (the volume step) |
quantity |
int | No | How many pieces ("20 at 7,500 each") | β₯ 1, default 1; not above stock / the max order |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Offer sent",
"action_time": "2026-11-26T10:30:45",
"data": {
"productId": "prod-uuid",
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"price": 20000,
"counter": null,
"state": "WAITING",
"at": "β¦",
"chatOfferId": null,
"payBy": null,
"quantity": 20
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
BARGAIN_OFF |
not open for offers |
OFFER_QUANTITY |
not that many pieces to sell |
OFFER_OPEN |
one waiting already |
OFFER_TRIES |
3 offers on it in this live |
OFFER_NOT_LOWER |
not below the price: just buy |
OFFER_TOO_LOW |
under the lowest: "Not this time" |
IS_HOST |
the host |
ACCOUNT_TOO_NEW |
under 3 days |
WATCH_FIRST |
watch a little first |
Notes:
- Room
OFFER_MADE,OFFER_ANSWERED(both carryquantity). A counter changes the price per piece, never the quantity. Accepted β a chat offer for exactly that many pieces (minQuantity=maxQuantity=quantity), 15 minutes to pay.
113. Offers on a product
Purpose: Waiting offers.
Endpoint: GET {base_url}/live/streams/{streamId}/bargain/{productId}/offers
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
productId |
uuid | Yes | The product | on this live's shelf |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Offers",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"productId": "prod-uuid",
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"price": 20000,
"counter": null,
"state": "WAITING",
"at": "β¦",
"chatOfferId": null,
"payBy": null
}
]
}
114. Accept an offer
Purpose: Agree: the buyer gets a chat offer to pay within 15 min.
Endpoint: POST {base_url}/live/streams/{streamId}/bargain/{productId}/offers/{buyerId}/accept
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
productId |
uuid | Yes | The product | on this live's shelf |
buyerId |
uuid | Yes | The buyer |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Offer accepted",
"action_time": "2026-11-26T10:30:45",
"data": {
"productId": "prod-uuid",
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"price": 20000,
"counter": null,
"state": "ACCEPTED",
"at": "β¦",
"chatOfferId": "co1β¦",
"payBy": "β¦"
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
OFFER_GONE |
no longer open |
Notes:
- The deal is a personal chat offer in the buyerβshop thread; the buyer pays it from there.
115. Counter an offer
Purpose: Answer with a higher price.
Endpoint: POST {base_url}/live/streams/{streamId}/bargain/{productId}/offers/{buyerId}/counter
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
productId |
uuid | Yes | The product | on this live's shelf |
buyerId |
uuid | Yes | The buyer |
Request JSON Sample:
{"price": 22000}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
price |
number | Yes | The counter | above their offer |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Counter sent",
"action_time": "2026-11-26T10:30:45",
"data": {
"productId": "prod-uuid",
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"price": 20000,
"counter": 22000,
"state": "COUNTERED",
"at": "β¦",
"chatOfferId": null,
"payBy": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
COUNTER_NOT_HIGHER |
not above their offer |
116. Say no to an offer
Purpose:
Endpoint: POST {base_url}/live/streams/{streamId}/bargain/{productId}/offers/{buyerId}/no
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
productId |
uuid | Yes | The product | on this live's shelf |
buyerId |
uuid | Yes | The buyer |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Not this time",
"action_time": "2026-11-26T10:30:45",
"data": {
"productId": "prod-uuid",
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"price": 20000,
"counter": null,
"state": "DECLINED",
"at": "β¦",
"chatOfferId": null,
"payBy": null
}
}
117. Accept the counter
Purpose: The buyer takes the shop's counter price.
Endpoint: POST {base_url}/live/streams/{streamId}/bargain/{productId}/counter/accept
Access Level: π Protected (the buyer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
productId |
uuid | Yes | The product | on this live's shelf |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Deal",
"action_time": "2026-11-26T10:30:45",
"data": {
"productId": "prod-uuid",
"person": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"price": 20000,
"counter": 22000,
"state": "ACCEPTED",
"at": "β¦",
"chatOfferId": "co1β¦",
"payBy": "β¦"
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
OFFER_GONE |
no longer open |
118. Start an auction
Purpose: Timed bidding on one piece.
Endpoint: POST {base_url}/live/streams/{streamId}/auctions
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{
"productId": "prod-uuid",
"startPrice": 10000,
"step": 1000,
"seconds": 60,
"lowestPrice": 13000,
"watchersOnly": true
}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
productId |
uuid | Yes | The product | on this live's shelf |
startPrice |
number | Yes | First bid | |
step |
int | Yes | Each bid adds | 500, 1000, 5000 or 10000 |
seconds |
int | Yes | How long | 30, 60, 180 or 300 |
lowestPrice |
number | No | Not sold below (hidden) | |
watchersOnly |
boolean | No | Only watchers bid |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Auction started",
"action_time": "2026-11-26T10:30:45",
"data": {
"auctionId": "au1β¦",
"streamId": "7d1cβ¦",
"productId": "prod-uuid",
"startPrice": 10000,
"step": 1000,
"topBid": null,
"topBidder": null,
"nextBid": 10000,
"bids": 0,
"lowestReached": false,
"endsAt": "β¦",
"state": "RUNNING",
"winnerOfferId": null,
"winnerOrderId": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_ON_SHELF |
not on the shelf |
AUCTION_TIME |
bad length |
AUCTION_STEP |
bad step |
DEAL_RUNNING |
another deal on it |
Notes:
- Room
AUCTION_STARTED,AUCTION_BID(the view),AUCTION_ENDED.
119. Auctions
Purpose: This live's auctions.
Endpoint: GET {base_url}/live/streams/{streamId}/auctions
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Auctions",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"auctionId": "au1β¦",
"streamId": "7d1cβ¦",
"productId": "prod-uuid",
"startPrice": 10000,
"step": 1000,
"topBid": 14000,
"topBidder": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"nextBid": 15000,
"bids": 5,
"lowestReached": true,
"endsAt": "β¦",
"state": "RUNNING",
"winnerOfferId": null,
"winnerOrderId": null
}
]
}
120. Bid
Purpose: Bid the next amount (nextBid); it is held from your wallet.
Endpoint: POST {base_url}/live/streams/{streamId}/auctions/{auctionId}/bids
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
auctionId |
uuid | Yes | The auction |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Bid placed",
"action_time": "2026-11-26T10:30:45",
"data": {
"auctionId": "au1β¦",
"streamId": "7d1cβ¦",
"productId": "prod-uuid",
"startPrice": 10000,
"step": 1000,
"topBid": 15000,
"topBidder": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"nextBid": 16000,
"bids": 6,
"lowestReached": true,
"endsAt": "β¦",
"state": "RUNNING",
"winnerOfferId": null,
"winnerOrderId": null
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
TOP_UP_TO_BID |
not enough in the wallet |
ALREADY_TOP |
you are the top bid |
AUCTION_ENDED |
over |
IS_SELLER |
sellers don't bid |
ACCOUNT_TOO_NEW |
under 3 days |
WATCH_FIRST |
watch a little first |
Notes:
- An outbid hold is refunded at once. The win is the order: the held top bid pays a pickup order (
winnerOrderId). The winner can choose delivery in the order (POST /shipping/orders/{orderId}/switch-to-delivery, pays only the fee). If the order can't be made, the hold is refunded and a 30-minute chat offer (winnerOfferId) is the fallback.
121. Cancel an auction
Purpose: Stop it; every hold is refunded.
Endpoint: POST {base_url}/live/streams/{streamId}/auctions/{auctionId}/cancel
Access Level: π Protected (the seller: the shop's owner on a shop live (staff with the right on the terminal))
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
auctionId |
uuid | Yes | The auction |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Auction cancelled",
"action_time": "2026-11-26T10:30:45",
"data": {
"auctionId": "au1β¦",
"streamId": "7d1cβ¦",
"productId": "prod-uuid",
"startPrice": 10000,
"step": 1000,
"topBid": 14000,
"topBidder": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"nextBid": 15000,
"bids": 5,
"lowestReached": true,
"endsAt": "β¦",
"state": "CANCELLED",
"winnerOfferId": null,
"winnerOrderId": null
}
}
122. Gifts on or off?
Purpose:
Endpoint: GET {base_url}/live/streams/{streamId}/gifts
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Gifts",
"action_time": "2026-11-26T10:30:45",
"data": {"streamId": "7d1cβ¦", "open": true}
}
123. Turn gifts on or off
Purpose: Let viewers send gifts in this live.
Endpoint: PUT {base_url}/live/streams/{streamId}/gifts
Access Level: π Protected (the personal host / the shop's owner)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"open": false}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
open |
boolean | Yes |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Gifts",
"action_time": "2026-11-26T10:30:45",
"data": {"streamId": "7d1cβ¦", "open": false}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_OWNER |
not the owner |
Notes:
- Gifts go to the host and anyone on the screen (shop live: to the shop's owner). Sending uses the gift API (place
LIVE, thestreamId). RoomGIFT_MOMENT/GIFT_CARD{refId}. Under 18: no receiver.
B10. External camera and handing over
124. May I stream from a camera?
Purpose: Which sources this account (or shop) may use.
Endpoint: GET {base_url}/live/stream-from
Access Level: π Protected (any account)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
shopId |
uuid | No | For a shop live | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Stream from",
"action_time": "2026-11-26T10:30:45",
"data": {"phone": true, "camera": false}
}
Notes:
- Camera: a 30-day account with a verified phone, or a verified shop.
125. Camera setup
Purpose: What to type into OBS / the camera, and whether it is connected.
Endpoint: GET {base_url}/live/streams/{streamId}/camera
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Camera setup",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"serverUrl": "rtmp://stream.dev.nexgate.co/live",
"streamKey": "7d1cβ¦?key=cam_9xβ¦",
"width": 1920,
"height": 1080,
"fps": 30,
"keyframeSeconds": 1,
"connected": true,
"health": "GOOD",
"kbps": 1800,
"autoStart": false
}
}
Success Response Fields:
| Field | Description |
|---|---|
serverUrl / streamKey |
Paste into OBS (Server / Stream key) |
health |
EXCELLENT β₯ 2,000 kbps, GOOD β₯ 800, POOR below, UNKNOWN |
connected |
The camera is sending: a private preview until Go live |
Refusals (409, data.code):
| Code | When |
|---|---|
SOURCE_IS_PHONE |
this live uses the phone |
126. New camera key
Purpose: If the key leaked: the old one stops working.
Endpoint: POST {base_url}/live/streams/{streamId}/camera/reset
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "New camera key",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"serverUrl": "rtmp://stream.dev.nexgate.co/live",
"streamKey": "7d1cβ¦?key=cam_newβ¦",
"width": 1920,
"height": 1080,
"fps": 30,
"keyframeSeconds": 1,
"connected": false,
"health": "GOOD",
"kbps": 1800,
"autoStart": false
}
}
127. Switch source
Purpose: Phone β camera, before or during the live (one source on air at a time).
Endpoint: PUT {base_url}/live/streams/{streamId}/source
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"source": "CAMERA", "autoStart": true}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
source |
string | Yes | enum PHONE, CAMERA |
|
autoStart |
boolean | No | Go public at the booked time once connected |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Stream from",
"action_time": "2026-11-26T10:30:45",
"data": {"streamId": "7d1cβ¦", "source": "CAMERA"}
}
Refusals (409, data.code):
| Code | When |
|---|---|
CAMERA_NOT_ALLOWED |
not allowed a camera |
CAMERA_VIDEO_ONLY |
an audio live |
Notes:
- Room
SOURCE_CHANGED. Switching drops the other sender at once.
128. Go live (camera preview β public)
Purpose: Make the camera preview public.
Endpoint: POST {base_url}/live/streams/{streamId}/go-live
Access Level: π Protected (the host)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live",
"action_time": "2026-11-26T10:30:45",
"data": {
"id": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "LIVE",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"watching": 214,
"watchingText": "214 watching",
"title": "Kanga sale",
"description": "β¦",
"coverMedia": {"fileId": "β¦", "status": "READY"},
"scheduledFor": null,
"audioOnly": false,
"hostAway": false,
"startedAt": "2026-11-28T20:00:04+03:00",
"endedAt": null,
"endedReason": null,
"canContinueUntil": null,
"peakViewers": 230,
"source": "CAMERA",
"cameraConnected": true
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
CAMERA_NOT_CONNECTED |
nothing is arriving |
TOO_EARLY |
before a booked time |
129. Hand over a shop live
Purpose: Pass hosting to another staff member (shop lives).
Endpoint: POST {base_url}/live/streams/{streamId}/hand-over
Access Level: π Protected (the host or the shop owner)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample:
{"accountId": "staff-uuid"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accountId |
uuid | Yes | The next host | has the Go live right |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Handed over",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
}
}
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_SHOP_LIVE |
a personal live |
ALREADY_HOST |
they host already |
CANT_HOST |
they may not go live for the shop |
NOT_HOST |
not host / owner |
Notes:
- Room
HOST_CHANGED.
B11. After the live
130. The summary (host)
Purpose: Everything about a live that ended.
Endpoint: GET {base_url}/live/streams/{streamId}/summary
Access Level: π Protected (the host's team (host, co-hosts, moderators); money only to the seller)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live summary",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"money": true,
"builtAt": "β¦",
"data": {
"startedAt": "β¦",
"endedAt": "β¦",
"durationSeconds": 3720,
"peakViewers": 230,
"watched": 980,
"averageWatchSeconds": 410,
"newFollowers": 37,
"reactions": {"total": 5120, "most": "HEART"},
"gifts": {
"count": 14,
"amount": 42000,
"topFan": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
},
"drops": {"drops": 2, "grabbed": 150, "used": 61},
"auctions": [{"auctionId": "β¦", "productId": "β¦", "state": "SOLD", "soldFor": 15000}],
"groups": [],
"polls": [],
"questionsNotAnswered": 3,
"goals": [],
"sources": [{"source": "LIVE_FEED", "people": 410}, {"source": "NOTIFICATION", "people": 220}],
"viewers": [{"minute": "β¦", "watching": 120}],
"markers": [
{
"kind": "COUPON_DROP",
"refId": "d1β¦",
"at": "β¦",
"viewersBefore": 150,
"viewersAfter": 210,
"ordersAfter": 9
}
]
},
"sales": {"streamId": "7d1cβ¦", "money": true, "orders": 18, "pieces": 25, "paid": 410000, "net": 395000}
}
}
Success Response Fields:
| Field | Description |
|---|---|
data.viewers |
Viewers per minute (draw the graph) |
data.markers |
Moments on the graph; numbers only, the app writes the sentence |
sales |
Read fresh each time (refunds come later) |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_HOST_TEAM |
not on the team |
Notes:
- Built 3 s after the end (
LIVE_SUMMARY_READY). Kept forever, unlike the video.
131. The viewer's end screen
Purpose: Follow the host, their next live, other lives on now.
Endpoint: GET {base_url}/live/streams/{streamId}/after
Access Level: π Protected (any viewer)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live ended",
"action_time": "2026-11-26T10:30:45",
"data": {
"streamId": "7d1cβ¦",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"followsHost": false,
"nextLive": {
"streamId": "7d1cβ¦",
"mode": "LIVE_VIDEO",
"state": "SCHEDULED",
"as": "ME",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"shop": null,
"title": "Kanga sale",
"description": "New kangas from Mombasa",
"coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "https://β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00",
"startingSoon": false,
"privateBooking": false,
"startedAt": null,
"endedAt": null,
"watching": null,
"watchingText": null,
"waitingCount": 12,
"friendsWatching": null,
"friendsWaiting": {
"people": [
{
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
}
],
"others": 3,
"text": "Asha and 3 others are waiting"
},
"myReminder": null,
"buttons": ["EDIT", "CANCEL", "SEE_WAITING", "SHARE"],
"onStage": [],
"locked": false,
"eventId": null,
"staffHost": false
},
"liveNow": []
}
}
132. From the last live
Purpose: The products of someone's last live, for 24 h after it ended ("From my last live" on the profile / shop).
Endpoint: GET {base_url}/live/last-live
Access Level: π Protected (any account)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
accountId |
uuid | One of | A person | β | |
shopId |
uuid | One of | A shop | β |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "From the last live",
"action_time": "2026-11-26T10:30:45",
"data": {"streamId": "7d1cβ¦", "endedAt": "β¦", "until": "β¦", "productIds": ["prod-uuid"]}
}
B12. My live settings
133. Read my settings
Purpose:
Endpoint: GET {base_url}/live/settings
Access Level: π Protected (any account)
Authentication: Bearer token
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live settings",
"action_time": "2026-11-26T10:30:45",
"data": {"dataSaver": false, "showWhenIJoin": true, "whoCanInvite": "CONTACTS"}
}
Success Response Fields:
| Field | Description |
|---|---|
dataSaver |
Every live starts in the lowest quality |
showWhenIJoin |
Show my name in the joins line |
whoCanInvite |
EVERYONE, CONTACTS (default), NOBODY: who can invite me on a live's screen and to meetings. Contacts = people you really have a link with: you follow each other, you have each other's number saved, or an accepted message request. (Same as "Who can call me"; before 2026-11-27: only people who follow each other) |
134. Change my settings
Purpose: Send only what changes.
Endpoint: PUT {base_url}/live/settings
Access Level: π Protected (any account)
Authentication: Bearer token
Request JSON Sample:
{"dataSaver": true}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
dataSaver |
boolean | No | ||
showWhenIJoin |
boolean | No | ||
whoCanInvite |
string | No | enum above |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live settings saved",
"action_time": "2026-11-26T10:30:45",
"data": {"dataSaver": true, "showWhenIJoin": true, "whoCanInvite": "CONTACTS"}
}
B13. An online event's room (event page and ticket)
135. The event's online button
Purpose: One answer for the event page and the ticket: where it happens and what the viewer's button is.
Endpoint: GET {base_url}/e-events/{eventId}/online
Access Level: π Protected (any account)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
eventId |
uuid | Yes | The event | ONLINE or HYBRID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Online room",
"action_time": "2026-11-26T10:30:45",
"data": {
"eventId": "event-uuid",
"venue": "NEXGATE_LIVE",
"roomId": "7d1cβ¦",
"startsAt": "2026-11-28T19:00:00+03:00",
"doorsOpenAt": "2026-11-28T18:50:00+03:00",
"endsAt": "2026-11-28T22:00:00+03:00",
"button": "JOIN",
"meetingLink": null,
"meetingId": null,
"passcode": null
}
}
Success Response Fields:
| Field | Description |
|---|---|
venue |
NEXGATE_LIVE, NEXGATE_MEETING, LINK |
roomId |
The streamId (live) or the meeting id (meeting) |
button |
HOST organiser Β· STARTS_LATER before the doors Β· JOIN doors open until the end Β· OPEN_LINK a link event (holders) Β· BUY_TICKET no ticket Β· ENDED Β· CANCELLED |
meetingLink / meetingId / passcode |
Only for a LINK event, only to ticket holders and the organiser |
Refusals (409, data.code):
| Code | When |
|---|---|
NOT_ONLINE_EVENT |
an in-person event |
Notes:
JOINon a live: open the player forroomId(#10). On a meeting:POST /meetings/{roomId}/join.- Ticket holders get
EVENT_ONLINE_STARTEDwhen it goes on air.
B14. Admin (NexGate staff)
Base /api/v1/admin/live. Roles SUPER_ADMIN or STAFF_ADMIN. Every action is audited.
136. Live reports
Purpose: Reports, newest first.
Endpoint: GET {base_url}/admin/live/reports
Access Level: π Protected (SUPER_ADMIN / STAFF_ADMIN)
Authentication: Bearer token
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
status |
string | No | enum OPEN, CONTINUED, ENDED, DISMISSED |
all | |
page |
int | No | 0 | ||
size |
int | No | 30 |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live reports",
"action_time": "2026-11-26T10:30:45",
"data": [
{
"reportId": "r1β¦",
"streamId": "7d1cβ¦",
"title": "Kanga sale",
"state": "PAUSED",
"host": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"reporter": {
"accountId": "3213c20e-0000-4000-8000-000000000001",
"name": "Mama Yoyo",
"userName": "mamayoyo",
"userProfileMedia": {"fileId": "β¦", "thumbUrl": "https://β¦/thumb.webp", "mediumUrl": "https://β¦/medium.webp"}
},
"reason": "SCAM",
"details": "β¦",
"comments": [],
"hasSnapshot": true,
"hasSound": false,
"onStage": [],
"status": "OPEN",
"createdAt": "β¦"
}
]
}
137. Report picture
Purpose: The picture kept with a video live's report (image/png, not the JSON envelope).
Endpoint: GET {base_url}/admin/live/reports/{reportId}/snapshot
Access Level: π Protected (SUPER_ADMIN / STAFF_ADMIN)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
reportId |
uuid | Yes | The report |
Success Response JSON Sample:
{"success": true, "httpStatus": "OK", "message": "β", "action_time": "2026-11-26T10:30:45", "data": null}
138. Report sound
Purpose: The last 30 s of an audio live (video/mp2t, not the JSON envelope).
Endpoint: GET {base_url}/admin/live/reports/{reportId}/sound
Access Level: π Protected (SUPER_ADMIN / STAFF_ADMIN)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
reportId |
uuid | Yes | The report |
Success Response JSON Sample:
{"success": true, "httpStatus": "OK", "message": "β", "action_time": "2026-11-26T10:30:45", "data": null}
139. Let a paused live continue
Purpose:
Endpoint: POST {base_url}/admin/live/streams/{streamId}/continue
Access Level: π Protected (SUPER_ADMIN / STAFF_ADMIN)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample (the body is optional):
{"reason": "Checked, nothing wrong"}
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live continues",
"action_time": "2026-11-26T10:30:45",
"data": null
}
Notes:
- Room
LIVE_RESUMED.
140. End a live
Purpose:
Endpoint: POST {base_url}/admin/live/streams/{streamId}/end
Access Level: π Protected (SUPER_ADMIN / STAFF_ADMIN)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
streamId |
uuid | Yes | The live | UUID |
Request JSON Sample (the body is optional):
{"reason": "Sold fake goods"}
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live ended",
"action_time": "2026-11-26T10:30:45",
"data": null
}
Notes:
- The host gets
LIVE_ENDED_BY_NEXGATE.
141. Ban from going live
Purpose: Stop an account going live for a time (ends their live now).
Endpoint: POST {base_url}/admin/live/bans
Access Level: π Protected (SUPER_ADMIN / STAFF_ADMIN)
Authentication: Bearer token
Request JSON Sample:
{"accountId": "acc-uuid", "days": 7, "reason": "Repeated scams"}
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accountId |
uuid | Yes | ||
days |
int | No | How long | 1, 7, 30 or null (forever) |
reason |
string | No |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Banned from going live",
"action_time": "2026-11-26T10:30:45",
"data": {"banId": "b1β¦", "accountId": "acc-uuid", "until": "β¦", "forever": false}
}
Refusals (409, data.code):
| Code | When |
|---|---|
ACCOUNT_REQUIRED |
no account |
BAD_BAN_LENGTH |
bad length |
Notes:
- The person gets
LIVE_BANNED.
142. Lift a ban
Purpose:
Endpoint: DELETE {base_url}/admin/live/bans/{accountId}
Access Level: π Protected (SUPER_ADMIN / STAFF_ADMIN)
Authentication: Bearer token
Path Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accountId |
uuid | Yes | The person | UUID |
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Ban lifted",
"action_time": "2026-11-26T10:30:45",
"data": null
}
143. The row above the home feed
Purpose: Up to 10 circles of who is live now, for the home feed's top row.
Endpoint: GET {base_url}/live/row
Access Level: π Protected (any account)
Authentication: Bearer token
Success Response JSON Sample:
{
"success": true,
"httpStatus": "OK",
"message": "Live row",
"action_time": "2026-11-27T20:05:00",
"data": {
"circles": [
{ "streamId": "7d1cβ¦", "mode": "LIVE_VIDEO", "as": "ME",
"host": { "accountId": "3213c20e-β¦", "name": "Mama Yoyo", "userName": "mamayoyo", "userProfileMedia": { "β¦": "β¦" } },
"shop": null, "reasonKind": "FOLLOWING" },
{ "streamId": "91aaβ¦", "mode": "LIVE_VIDEO", "as": "SHOP", "host": { "β¦": "β¦" },
"shop": { "shopId": "β¦", "name": "Duka la Asha", "logoMedia": { "β¦": "β¦" } }, "reasonKind": "SUGGESTED" }
],
"seeAll": true
}
}
Response Fields:
| Field | Description |
|---|---|
circles[].reasonKind |
FOLLOWING Β· FOLLOWING_SHOP Β· BOUGHT_HERE Β· FRIENDS_WATCHING Β· SUGGESTED (β a fill) |
circles[].shop |
Set for a shop live: show the shop's logo and name |
seeAll |
More lives than the row shows: draw "See all" (β #17 with cursor) |
Notes:
- Order: people / shops the viewer knows, then friends watching, then suggestions. Never blocked people, the viewer's own live, a shop's live on its own owner's / staff's row, or a ticket live.
- Ask when the home feed opens and again after a
FEED_NEWwithwhat: "LIVE";LIVE_ENDEDonlive_list:allremoves a circle. Tap β open that live (#8, #10).
144. Turn "π All lives" on or off
Purpose: Get the phone notification for every live of a person or shop, even when they are a celebrity.
Endpoint: PUT {base_url}/live/alerts
Access Level: π Protected (a follower of that person / a subscriber of that shop)
Authentication: Bearer token
Request JSON Sample:
{ "accountId": "3213c20e-β¦", "on": true }
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
accountId |
uuid | One of | The person | |
shopId |
uuid | One of | The shop | |
on |
boolean | Yes | On or off |
Success Response JSON Sample:
{ "success": true, "httpStatus": "OK", "message": "All lives", "action_time": "2026-11-27T20:05:00",
"data": { "accountId": "3213c20e-β¦", "shopId": null, "on": true } }
Errors: 409 NOT_FOLLOWING (follow / subscribe first) Β· 409 ONE_TARGET (send exactly one of accountId, shopId).
Notes: Off by default. It only counts while the follow / subscription lasts. Show it as a bell on the profile / shop page next to Follow.
145. Read "π All lives"
Purpose: Is the bell on for this person / shop?
Endpoint: GET {base_url}/live/alerts?accountId=β¦ or ?shopId=β¦
Access Level: π Protected (any account)
Success Response JSON Sample:
{ "success": true, "httpStatus": "OK", "message": "All lives", "action_time": "2026-11-27T20:05:00",
"data": { "accountId": "3213c20e-β¦", "shopId": null, "on": false } }
146. How long a live preview in the clips feed was watched
Purpose: The clips feed learns how often to show lives to this person.
Endpoint: POST {base_url}/live/streams/{streamId}/clips-preview?seconds=4.5
Access Level: π Protected (any account)
Query Parameters:
| Parameter | Type | Required | Description | Validation | Default |
|---|---|---|---|---|---|
seconds |
number | Yes | How long the preview was on screen before the viewer swiped or tapped | β₯ 0 | β |
Success Response JSON Sample:
{ "success": true, "httpStatus": "OK", "message": "Noted", "action_time": "2026-11-27T20:05:00", "data": null }
Notes: Send once per live preview, when it leaves the screen. 3 s or more β lives come a bit more often (never more than one in 10 clips); under 2 s β less often; four quick skips in a row β no lives for 30 minutes. Since 2026-11-27 it also teaches the recommendation engine, like a clip's watch time: 3 s or more = a view of the host (or the shop, for a shop live) with the time watched, under 2 s = a skip. Nothing else to send.
The clips feed (GET /feed/reels?cursor&limit&lives=true, feed doc): each item now has kind (CLIP Β· LIVE). A
LIVE item has clip: null, source: "LIVE" and live (a Live now item: live card, reasonKind, reason,
sellingLive). Without lives=true the feed never has LIVE items.
147. Record a tap (where a sale came from)
Purpose: Tell the backend the viewer tapped an item somewhere, so a purchase in the next 24 h is credited there. One call for every place: a live, a meeting, a call, a post, a clip, a shared link, a chat card, an event page, and the in-app places (feed, search, shop page, category, wishlist, a notification).
Endpoint: POST {base_url}/sale-taps
Access Level: π Protected (any account)
Request JSON Sample:
{ "from": "LIVE", "sourceId": "7d1cβ¦", "item": "PRODUCT", "itemId": "prod-uuid" }
Request Body Parameters:
| Parameter | Type | Required | Description | Validation |
|---|---|---|---|---|
from |
string | Yes | Where | LIVE Β· MEETING Β· CALL Β· POST Β· CLIP Β· SHARE_LINK Β· CHAT Β· EVENT Β· FEED Β· SEARCH Β· SHOP_PAGE Β· CATEGORY Β· WISHLIST Β· NOTIFICATION |
sourceId |
uuid | For the first eight | Which one: the live Β· meeting Β· call Β· post Β· clip Β· the sharer's accountId (from the shared link) Β· the chat conversation Β· the event | left out for the in-app places |
item |
string | Yes | What was tapped | PRODUCT Β· EVENT Β· SHOP; in a meeting also TICKET Β· GROUP (the shelf's ids) |
itemId |
uuid | Yes | The product / event / shop |
Success Response JSON Sample:
{ "success": true, "httpStatus": "OK", "message": "Tap", "action_time": "2026-11-27T20:05:00", "data": { "recorded": true } }
Errors (409): SOURCE_REQUIRED Β· BAD_ITEM Β· BAD_FROM Β· NOT_ON_SHELF (live / meeting / call) Β· NOT_ON_POST Β·
NOT_ON_EVENT Β· NOT_IN_CHAT Β· NOT_FOUND.
Notes:
- The backend checks the item is really there and finds who brought the viewer itself (the live's host, the post's author, the sharer, the event's organiser); the app never says who.
recorded: false: nothing kept β the viewer's own content / shop (the shop's owner and its staff), or an in-app tap that would replace someone who brought them within 24 h (a person or content always wins over search, the feedβ¦).CHAT: a card tapped in a one-to-one chat with a person credits that person; in a group chat or a chat with a shop, nobody is credited (the tap still counts for the shop's numbers).- The shop's and organiser's sale-origin reports show the taps per place next to the orders (
byKind[].taps). - Call it when the viewer taps the item (opens the product / event page from there). Replaces #85 and the meeting / call
shelf tap calls (
/meetings/{id}/pins/{type}/{itemId}/tap,/calls/{id}/pins/{productId}/tap), which are removed. - Every paid checkout line now has a sale origin (
DIRECTwhen nothing was tapped); see the night changelog Β§6.
Part C β Shared shapes
C1. LiveCard β one card for every list
Used by posts, My lives, profiles, shops, See all, Later today, the clips feed and the end screen. Draw buttons[] exactly.
{
"streamId": "7d1cβ¦", "mode": "LIVE_VIDEO", "state": "SCHEDULED", "as": "SHOP",
"host": {"accountId": "β¦", "name": "Mama Yoyo", "userName": "mamayoyo", "userProfileMedia": {"thumbUrl": "β¦", "mediumUrl": "β¦"}},
"shop": {"shopId": "β¦", "name": "Duka la Mama", "logoMedia": {"thumbUrl": "β¦"}},
"title": "Kanga sale", "description": "β¦", "coverMedia": {"fileId": "β¦", "status": "READY", "mediumUrl": "β¦"},
"scheduledFor": "2026-11-28T20:00:00+03:00", "startingSoon": false, "privateBooking": false,
"startedAt": null, "endedAt": null, "watching": null, "watchingText": null, "waitingCount": 12,
"friendsWatching": null, "friendsWaiting": {"people": [{"accountId": "β¦", "name": "Asha"}], "others": 3, "text": "Asha and 3 others are waiting"},
"myReminder": [{"lead": "MINUTES_15", "at": "2026-11-28T19:45:00+03:00"}],
"buttons": ["REMINDED", "SHARE"], "onStage": [], "locked": false, "eventId": null, "staffHost": false
}
| Field | Description |
|---|---|
streamId, mode, state |
The live, LIVE_VIDEO / LIVE_AUDIO, the state (A3) |
as, host, shop |
ME or SHOP; the person; the shop (null for a personal live) |
title, description, coverMedia |
Text and banner (media object: build nothing, use the URLs) |
scheduledFor, startingSoon |
Booked time; true in the last 15 minutes |
privateBooking |
Only the host sees it (no post) |
startedAt, endedAt |
|
watching, watchingText |
Only while live ("214 watching") |
waitingCount |
People waiting; null for viewers when under 10 (small numbers look sad) |
friendsWatching, friendsWaiting |
{people (β€2), others, text}: "Asha and 3 others are watching" |
myReminder |
null or [{lead, at}]: when I will be reminded (the app writes the sentence) |
buttons[] |
START, OPEN, END, EDIT, CANCEL, POST_IT, SHARE, SEE_WAITING, CONTINUE, BOOK_AGAIN, REMIND_ME, REMINDED, WATCH, VIEW_HOST, BUY_TICKET |
onStage |
People on the screen now (LiveHost[]) |
locked, eventId |
An event's live and I have no online ticket: show BUY_TICKET for eventId |
staffHost |
A staff member is hosting this shop live |
Who sees a card: a private booking and a draft only the host (and the shop's owner); nobody with a block either way.
C2. StreamResponse β one live's state (GET /live/streams/{id}, end, continue, go-live)
| Field | Description |
|---|---|
id, mode, state |
|
host |
LiveHost |
watching, watchingText |
Only while live |
title, description, coverMedia, scheduledFor |
|
audioOnly |
An audio live |
hostAway |
The host's video dropped less than 2 minutes ago ("Host reconnectingβ¦") |
startedAt, endedAt, peakViewers |
|
endedReason |
HOST_ENDED, HOST_LOST, NEVER_STARTED, ADMIN_ENDED |
canContinueUntil |
Set for 10 minutes after the end: show the host "Continue" |
source, cameraConnected |
PHONE / CAMERA; the camera is sending (preview) |
C3. PlayResponse β what the player needs (play)
| Field | Description |
|---|---|
addresses[] |
{format: FLV|HLS, quality: Q720|Q480|Q240|AUDIO|AUDIO_32K|LISTEN_ONLY, url} |
preferredFormat |
Try first (FLV); fall back to HLS |
startQuality |
Start here |
player |
{targetDelayMs, catchUpRate, jumpWhenBehindMs}: keep about 2 s behind, play a little faster to catch up, jump to now when far behind |
startBefore |
Start within 5 minutes or ask again |
C4. People and media
LiveHost:{accountId, name, userName, userProfileMedia}. A person always comes with their picture.LiveShop:{shopId, name, logoMedia}.- Media objects (
userProfileMedia,coverMedia,logoMedia) are the platform media standard: ready URLs per size and astatus; never build a URL in the app.
C5. The room event
{"seq": 1843, "type": "COMMENT", "streamId": "7d1cβ¦", "at": 1795716004000, "data": { }}
| Field | Description |
|---|---|
seq |
Order within the live; apply in order; a gap means read GET β¦/room again |
type |
Part D |
at |
Epoch milliseconds |
data |
Depends on type |
Events on the personal and live_list:all channels have {type, at, data} (no seq).
Part D β Real-time events
Channel says where it arrives: room = live_room:<id> (everyone watching), hosts = live_hosts:<id> (team),
personal = personal:#<accountId> (one person), list = live_list:all. "Kept" events are in the GET β¦/room
snapshot; SPEAKING is not kept.
The live itself
| Type | Channel | data |
Show |
|---|---|---|---|
LIVE_STARTED |
room | {streamId} |
The room: the live is on |
FEED_NEW |
personal | {what: "LIVE" | "POST"} β no content |
Ask GET /feed/home/has-new (at once for LIVE). Only to connected followers of a non-celebrity; at most one LIVE nudge per person per 3 min, one POST per minute. Replaces the personal LIVE_STARTED card, NEW_POST and feed.new |
LIVE_ENDED |
room / list | {streamId} |
End screen (#131) |
HOST_RECONNECTING Β· HOST_BACK |
room | {streamId} |
"Host reconnectingβ¦" / back |
LIVE_PAUSED Β· LIVE_RESUMED |
room | {streamId} |
"This live is being reviewed" |
WATCHING |
room | {watching, watchingText} |
The counter |
HOST_CHANGED |
room | {streamId, host} |
Staff hand-over |
SOURCE_CHANGED |
room | {streamId, source} |
Phone β camera |
CAMERA_CONNECTED |
personal (host) | {streamId} |
"Camera connected Β· Go live" |
LIVE_COUNTS |
list | {streams: [{streamId, watching, watchingText}]} (every 30 s) |
Live now counters |
LOCKED |
β | reserved, not sent |
Comments
| Type | Channel | data |
|---|---|---|
COMMENT |
room | {accountId, name, userName, userProfileMedia, body, role, speaksAs, replyTo} |
COMMENT_REMOVED Β· COMMENT_UNPINNED |
room | {seq} |
COMMENT_PINNED |
room | the comment event |
COMMENT_REPLY |
personal | {seq, byAccountId, byName}: someone replied to you |
HELD_COMMENT Β· HELD_RESOLVED |
hosts | {heldId, comment, at} |
REMOVED_FROM_LIVE |
personal | {streamId}: close the player |
REPORTED |
hosts | {streamId} |
Taking part
| Type | Channel | data |
|---|---|---|
REACTIONS |
room | {mix: [{reaction, emoji, count}]} every 2 s |
JOINS |
room | {named: [{person, hostFollows, topFanRank}], joinedCount} every 2 s ("Asha joined") |
FRIEND_JOINED |
personal | {friend}: a friend of yours joined the live you watch |
POLL_STARTED |
room | poll view (#44 answer) |
POLL_RESULTS Β· POLL_ENDED |
room | {pollId, options: [{index, text, productId, votes, percent}], totalVotes, ended, winner} |
QUESTION_ASKED |
hosts | question view |
QUESTION_ON_SCREEN |
room | question view |
QUESTION_DONE |
room | {questionId} |
Stage
| Type | Channel | data |
|---|---|---|
STAGE_CHANGED |
room | {streamId, members: [{person, role, asShop, voiceOnly, newHere, joinedAt}], seatsNow, seatsTaken} |
STAGE_REQUEST |
hosts | {person, voiceOnly, askedAt} |
STAGE_REQUEST_GONE |
hosts | {accountId} |
STAGE_INVITE_STATE |
hosts / personal | the invite (#63 answer) |
STAGE_SEAT_FREE |
personal | {streamId, inviteId}: a seat freed for your open invite |
STAGE_REMOVED |
personal | {accountId} |
STAGE_MUTED |
room | {accountId} |
STAGE_HANDS |
room | {hands: [accountId]} |
SPEAKING |
room (not kept) | {speaking: [accountId]} |
LIVE_SEND_ON |
room | {toStreamId, title, mode, host} |
Selling
| Type | Channel | data |
|---|---|---|
PIN |
room | {attachmentId, type, targetId, card, donation} |
UNPIN |
room | {attachmentId, type, targetId, card: null, donation: null} |
SALES |
hosts | {streamId, orders, pieces} |
DROP_STARTED Β· DROP_LEFT Β· DROP_ENDED |
room | drop view Β· {dropId, left} Β· {dropId, grabbed} |
FLASH_STARTED Β· FLASH_LEFT Β· FLASH_ENDED |
room | flash view Β· {flashId, left} Β· {flashId, sold} |
FREE_DELIVERY_ON Β· FREE_DELIVERY_OFF |
room | {campaignId, streamId, half, cap, running} |
GOAL_STARTED Β· GOAL_PROGRESS Β· GOAL_REACHED Β· GOAL_TIME_UP Β· GOAL_ENDED |
room | goal view |
GROUP_PROGRESS |
room | group card |
TICKET_GROUP_PROGRESS |
room | ticket group card |
DONATION_PROGRESS |
room | {ticketId, donation: {target, raised, donations}} after each donation |
OFFER_MADE Β· OFFER_ANSWERED |
room | offer view (state: WAITING, ACCEPTED, COUNTERED, NOβ¦) |
AUCTION_STARTED Β· AUCTION_BID Β· AUCTION_ENDED |
room | auction view |
GIFT_MOMENT Β· GIFT_CARD |
room | {refId}: play the gift (gift API) |
Part E β Notifications (push and bell)
Every notification carries targetType + targetId for the deep link. STREAM opens the live, EVENT the event page.
| Type | Who | When | Text (in-app) |
|---|---|---|---|
LIVE_STREAM_STARTING |
Remind-me people, followers, friends (shop: shop followers), sent in batches. A celebrity (10,000+ followers, or a shop as big): only Remind-me people + followers with "π All lives" (#144) | The live goes on air | {host} is live now Β· {title} |
LIVE_REMINDER |
Remind-me people | Their chosen leads | {host} goes live soon Β· {title} Β· {time} |
LIVE_HOST_GET_READY |
Host | 15 min before a booking | Your live starts in 15 min Β· get ready |
LIVE_MOVED |
People waiting | A booking moved | {host} moved their live Β· now {time} |
LIVE_CANCELLED |
People waiting | A booking cancelled | {host} cancelled their live |
LIVE_BOOK_AGAIN |
Host | Right after ending (data.suggestedAt) |
Book again? Β· {title} Β· {time} |
LIVE_CONTINUE |
Host | The connection was lost | Your live stopped β¦ Continue it within {minutes} minutes |
LIVE_STAGE_INVITE |
The invited person | Stage invite | {inviter} invites you to their live |
LIVE_STAGE_GET_READY |
Invited people | 15 min before | β¦ get ready to join the stage |
LIVE_STAGE_LIVE_NOW |
Invited people | The live started | π΄ {host} is live Β· join the stage |
LIVE_CAMERA_CONNECTED |
Host | The external camera connected | π· Your camera is connected Β· tap to go live |
LIVE_SUMMARY_READY |
Host | 3 s after the end | Your live's numbers are ready |
LIVE_PAUSED_BY_NEXGATE |
Host | Paused after reports | Your live is being reviewed |
LIVE_ENDED_BY_NEXGATE |
Host | NexGate ended it | NexGate ended your live |
LIVE_BANNED |
The person | Banned from going live | You can't go live for now Β· until {date} |
SOC_SHOP_FEATURED Β· SOC_EVENT_FEATURED |
A shop's / event's owner | Someone pinned their shop / event in a live | |
EVENT_ONLINE_STARTED |
Online ticket holders | An event's live goes on air (instead of LIVE_STREAM_STARTING) |
{event} is on now Β· Tap to join |
Part F β Server to server and configuration
SRS hooks (not for the app)
POST /api/v1/live/hooks/{publish|unpublish|play|hls}?secret=<app.srs.hook-secret>. Body: SRS's hook JSON (app, stream,
param, ip, client_id). Answer {"code": 0} allow, {"code": 1} refuse.
| Hook | Rule |
|---|---|
| any | Wrong or missing secret β refuse (publish, play) or ignore (hls, unpublish) |
publish |
stream = the live id; param carries key=<ingestKey>; key valid, live not ended, right app (live, live_mid, live_low, radio); the camera's key only when the source is the camera |
play |
From 127.0.0.1 (SRS's own transcoder) allowed; otherwise param carries a valid play token for this live and the account's latest phone |
hls |
Always allowed; the first piece makes the live LIVE |
unpublish |
The host's video left: hostAway (2 min grace); before the first piece it ends the live |
Configuration (backend)
| Key | Meaning |
|---|---|
app.live.playback-base-url, app.live.flv-base-url |
Where viewers play (HLS, FLV edge) |
app.live.publisher-rtmp-url, app.live.publisher-whip-url |
Where hosts publish |
app.live.play-token-secret |
Signs play tokens (Vault in staging / prod) |
app.srs.hook-secret, app.srs.api-url |
SRS hooks; SRS API (drop a sender, read bitrate) |
app.live.stage.seats-now / seats-max / audio-seats-now / audio-seats-max |
2 / 5 / 4 / 7 |
app.realtime.* |
Centrifugo (ws-url, api-url, api-key, token-secret, token-ttl-seconds) |
app.live.guests-window-url |
The OBS guests page |
app.coupons.enabled |
Coupon drops show only when coupons are on |
Quick Reference Guide
Endpoint index
| # | Method | Path | Who |
|---|---|---|---|
| 1 | POST | /live/streams |
any account allowed to go live |
| 2 | PATCH | /live/streams/{streamId} |
the host |
| 3 | POST | /live/streams/{streamId}/cancel |
the host |
| 4 | PUT | /live/streams/{streamId}/reminders-open |
the host |
| 5 | GET | /live/streams/{streamId}/waiting |
the host or the shop owner |
| 6 | POST | /live/streams/{streamId}/book-again |
the host |
| 7 | PUT | /live/streams/{streamId}/reminder |
any viewer |
| 8 | GET | /live/streams/{streamId} |
anyone who can see it (private bookings: host only) |
| 9 | POST | /live/streams/{streamId}/ingest-key |
the host |
| 10 | POST | /live/streams/{streamId}/play |
any viewer (event live: ticket holders and the team) |
| 11 | POST | /live/streams/{streamId}/continue |
the host |
| 12 | POST | /live/streams/{streamId}/end |
the host (shop live: also the owner) |
| 13 | GET | /realtime/connection |
any account |
| 14 | POST | /live/streams/{streamId}/realtime |
any viewer (event live: ticket holders and the team) |
| 15 | GET | /live/streams/{streamId}/room |
any viewer (event live: ticket holders and the team) |
| 16 | GET | /live/streams/{streamId}/hosts-room |
the host's team |
| 17 | GET | /live/now |
any account |
| 18 | /live/swipe |
removed | |
| 19 | GET | /live/mine |
any account |
| 20 | GET | /live/people/{accountId} |
any account |
| 21 | GET | /live/shops/{shopId} |
any account |
| 22 | POST | /live/streams/{streamId}/watching |
any viewer |
| 23 | POST | /e-social/posts/draft/attach-live/{streamId} |
any account |
| 24 | POST | /live/streams/{streamId}/comments |
any viewer (event live: ticket holders and the team) |
| 25 | PUT | /live/streams/{streamId}/comments/mute/{accountId} |
the host's team (host, co-hosts, moderators) |
| 26 | PUT | /live/streams/{streamId}/comments/slow-mode |
the host's team (host, co-hosts, moderators) |
| 27 | DELETE | /live/streams/{streamId}/comments/{seq} |
the host's team (host, co-hosts, moderators) |
| 28 | PUT | /live/streams/{streamId}/comments/{seq}/pin |
the host's team (host, co-hosts, moderators) |
| 29 | DELETE | /live/streams/{streamId}/comments/pin |
the host's team (host, co-hosts, moderators) |
| 30 | GET | /live/streams/{streamId}/comments/held |
the host's team (host, co-hosts, moderators) |
| 31 | POST | /live/streams/{streamId}/comments/held/{heldId}/approve |
the host's team (host, co-hosts, moderators) |
| 32 | DELETE | /live/streams/{streamId}/comments/held/{heldId} |
the host's team (host, co-hosts, moderators) |
| 33 | POST | /live/streams/{streamId}/people/{accountId}/remove |
the host's team (host, co-hosts, moderators) |
| 34 | POST | /live/streams/{streamId}/report |
any viewer |
| 35 | GET | /live/moderators |
any account |
| 36 | PUT | /live/moderators/{accountId} |
any account |
| 37 | DELETE | /live/moderators/{accountId} |
any account |
| 38 | GET | /live/words |
any account |
| 39 | PUT | /live/words |
any account |
| 40 | POST | /live/streams/{streamId}/reactions |
any viewer |
| 41 | GET | /live/streams/{streamId}/reactions |
the host's team (host, co-hosts, moderators) |
| 42 | GET | /live/streams/{streamId}/viewers/top |
any viewer |
| 43 | GET | /live/streams/{streamId}/viewers |
the host's team (host, co-hosts, moderators) |
| 44 | POST | /live/streams/{streamId}/polls |
host or co-host |
| 45 | GET | /live/streams/{streamId}/polls/current |
any viewer |
| 46 | GET | /live/streams/{streamId}/polls |
the host's team (host, co-hosts, moderators) |
| 47 | POST | /live/streams/{streamId}/polls/{pollId}/votes |
any viewer |
| 48 | POST | /live/streams/{streamId}/polls/{pollId}/end |
host or co-host |
| 49 | POST | /live/streams/{streamId}/questions |
any viewer |
| 50 | GET | /live/streams/{streamId}/questions |
any viewer |
| 51 | POST | /live/streams/{streamId}/questions/{questionId}/me-too |
any viewer |
| 52 | POST | /live/streams/{streamId}/questions/{questionId}/answer |
host or co-host |
| 53 | POST | /live/streams/{streamId}/questions/{questionId}/done |
host or co-host |
| 54 | GET | /live/streams/{streamId}/stage |
any viewer |
| 55 | POST | /live/streams/{streamId}/stage/requests |
any viewer |
| 56 | DELETE | /live/streams/{streamId}/stage/requests/me |
the asker |
| 57 | GET | /live/streams/{streamId}/stage/requests |
the host's team (host, co-hosts, moderators) |
| 58 | POST | /live/streams/{streamId}/stage/requests/{accountId}/accept |
the host's team (host, co-hosts, moderators) |
| 59 | POST | /live/streams/{streamId}/stage/requests/{accountId}/ignore |
the host's team (host, co-hosts, moderators) |
| 60 | POST | /live/streams/{streamId}/stage/requests/{accountId}/block |
the host's team (host, co-hosts, moderators) |
| 61 | PUT | /live/streams/{streamId}/stage/requests-open |
host or co-host |
| 62 | PUT | /live/streams/{streamId}/stage/who-can-ask |
host or co-host |
| 63 | POST | /live/streams/{streamId}/stage/invites |
the host (co-hosts: people watching, as guests) |
| 64 | GET | /live/streams/{streamId}/stage/invites |
the host's team (host, co-hosts, moderators) |
| 65 | GET | /live/stage-invites |
any account |
| 66 | GET | /live/stage-invites/people |
any account |
| 67 | POST | /live/stage-invites/{inviteId}/respond |
the invited person |
| 68 | POST | /live/stage-invites/{inviteId}/join |
the invited person |
| 69 | POST | /live/stage-invites/{inviteId}/revoke |
the inviter |
| 70 | POST | /live/streams/{streamId}/stage/link |
the host |
| 71 | POST | /live/stage-links/{code} |
any account |
| 72 | POST | /live/streams/{streamId}/stage/token |
host and people on the stage |
| 73 | POST | /live/streams/{streamId}/stage/members/{accountId}/remove |
the host's team (host, co-hosts, moderators) |
| 74 | POST | /live/streams/{streamId}/stage/leave |
someone on the stage |
| 75 | POST | /live/streams/{streamId}/stage/members/{accountId}/mute |
the host's team (host, co-hosts, moderators) |
| 76 | PUT | /live/streams/{streamId}/stage/hand |
someone on the stage |
| 77 | POST | /live/streams/{streamId}/stage/speaking |
host or someone on the stage |
| 78 | POST | /live/streams/{streamId}/stage/send-on |
the host |
| 79 | GET | /live/streams/{streamId}/stage/window |
the host |
| 80 | POST | /live/streams/{streamId}/attachments |
the host |
| 81 | GET | /live/streams/{streamId}/attachments |
any viewer |
| 82 | PUT | /live/streams/{streamId}/attachments/{attachmentId}/pin |
the host |
| 83 | DELETE | /live/streams/{streamId}/attachments/pin |
the host |
| 84 | DELETE | /live/streams/{streamId}/attachments/{attachmentId} |
the host |
| 85 | /live/streams/{streamId}/attachments/{attachmentId}/tap |
removed β #147 | |
| 86 | GET | /live/streams/{streamId}/tools |
the host's team (host, co-hosts, moderators) |
| 87 | GET | /live/streams/{streamId}/products/{productId}/card |
any viewer |
| 88 | GET | /live/streams/{streamId}/sales |
the host's team (host, co-hosts, moderators) |
| 89 | POST | /live/streams/{streamId}/drops |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 90 | GET | /live/streams/{streamId}/drops |
any viewer |
| 91 | GET | /live/streams/{streamId}/drops/report |
the host's team (host, co-hosts, moderators) |
| 92 | PATCH | /live/streams/{streamId}/drops/{dropId} |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 93 | POST | /live/streams/{streamId}/drops/{dropId}/stop |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 94 | POST | /live/streams/{streamId}/drops/{dropId}/grab |
any viewer |
| 95 | POST | /live/streams/{streamId}/flash |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 96 | GET | /live/streams/{streamId}/flash |
any viewer |
| 97 | PATCH | /live/streams/{streamId}/flash/{flashId} |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 98 | POST | /live/streams/{streamId}/flash/{flashId}/stop |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 99 | POST | /live/streams/{streamId}/free-delivery |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 100 | POST | /live/streams/{streamId}/free-delivery/{campaignId}/stop |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 101 | POST | /live/streams/{streamId}/goals |
host or co-host (sales goals: the seller) |
| 102 | GET | /live/streams/{streamId}/goals |
any viewer |
| 103 | PATCH | /live/streams/{streamId}/goals/{goalId} |
host or co-host |
| 104 | POST | /live/streams/{streamId}/goals/{goalId}/cancel |
host or co-host |
| 105 | POST | /live/streams/{streamId}/goals/{goalId}/reward |
host or co-host |
| 106 | POST | /live/streams/{streamId}/group-buys |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 107 | POST | /live/streams/{streamId}/group-buys/{groupId}/price |
the shop owner |
| 108 | POST | /live/streams/{streamId}/group-buys/{groupId}/give-through |
the shop owner |
| 109 | POST | /live/streams/{streamId}/ticket-groups |
the event's organiser |
| 110 | POST | /live/streams/{streamId}/bargain |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 111 | DELETE | /live/streams/{streamId}/bargain/{productId} |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 112 | POST | /live/streams/{streamId}/bargain/{productId}/offers |
any viewer |
| 113 | GET | /live/streams/{streamId}/bargain/{productId}/offers |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 114 | POST | /live/streams/{streamId}/bargain/{productId}/offers/{buyerId}/accept |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 115 | POST | /live/streams/{streamId}/bargain/{productId}/offers/{buyerId}/counter |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 116 | POST | /live/streams/{streamId}/bargain/{productId}/offers/{buyerId}/no |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 117 | POST | /live/streams/{streamId}/bargain/{productId}/counter/accept |
the buyer |
| 118 | POST | /live/streams/{streamId}/auctions |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 119 | GET | /live/streams/{streamId}/auctions |
any viewer |
| 120 | POST | /live/streams/{streamId}/auctions/{auctionId}/bids |
any viewer |
| 121 | POST | /live/streams/{streamId}/auctions/{auctionId}/cancel |
the seller: the shop's owner on a shop live (staff with the right on the terminal) |
| 122 | GET | /live/streams/{streamId}/gifts |
any viewer |
| 123 | PUT | /live/streams/{streamId}/gifts |
the personal host / the shop's owner |
| 124 | GET | /live/stream-from |
any account |
| 125 | GET | /live/streams/{streamId}/camera |
the host |
| 126 | POST | /live/streams/{streamId}/camera/reset |
the host |
| 127 | PUT | /live/streams/{streamId}/source |
the host |
| 128 | POST | /live/streams/{streamId}/go-live |
the host |
| 129 | POST | /live/streams/{streamId}/hand-over |
the host or the shop owner |
| 130 | GET | /live/streams/{streamId}/summary |
the host's team (host, co-hosts, moderators) |
| 131 | GET | /live/streams/{streamId}/after |
any viewer |
| 132 | GET | /live/last-live |
any account |
| 133 | GET | /live/settings |
any account |
| 134 | PUT | /live/settings |
any account |
| 135 | GET | /e-events/{eventId}/online |
any account |
| 136 | GET | /admin/live/reports |
SUPER_ADMIN / STAFF_ADMIN |
| 137 | GET | /admin/live/reports/{reportId}/snapshot |
SUPER_ADMIN / STAFF_ADMIN |
| 138 | GET | /admin/live/reports/{reportId}/sound |
SUPER_ADMIN / STAFF_ADMIN |
| 139 | POST | /admin/live/streams/{streamId}/continue |
SUPER_ADMIN / STAFF_ADMIN |
| 140 | POST | /admin/live/streams/{streamId}/end |
SUPER_ADMIN / STAFF_ADMIN |
| 141 | POST | /admin/live/bans |
SUPER_ADMIN / STAFF_ADMIN |
| 142 | DELETE | /admin/live/bans/{accountId} |
SUPER_ADMIN / STAFF_ADMIN |
| 143 | GET | /live/row |
any account |
| 144 | PUT | /live/alerts |
a follower |
| 145 | GET | /live/alerts |
any account |
| 146 | POST | /live/streams/{streamId}/clips-preview |
any account |
| 147 | POST | /sale-taps |
any account |
HTTP Method Badge Code Templates
GET Badge:
<span style="background-color: #28a745; color: white; padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 12px; font-weight: bold;">GET</span>
POST Badge:
<span style="background-color: #007bff; color: white; padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 12px; font-weight: bold;">POST</span>
PUT Badge:
<span style="background-color: #ffc107; color: black; padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 12px; font-weight: bold;">PUT</span>
PATCH Badge:
<span style="background-color: #fd7e14; color: white; padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 12px; font-weight: bold;">PATCH</span>
DELETE Badge:
<span style="background-color: #dc3545; color: white; padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 12px; font-weight: bold;">DELETE</span>
Common HTTP Status Codes
200 OK: success400 Bad Request: malformed request401 Unauthorized: sign in again403 Forbidden: not allowed in this area404 Not Found: no such live (or a block)409 Conflict: a live rule said no; readdata.code422 Unprocessable Entity: field validation500 Internal Server Error: retry later
Data Format Standards
- Dates: ISO 8601 with offset; real-time
atin epoch ms - Money: TZS, plain numbers (no cents)
- IDs: UUID strings; people are
accountId - Pages:
page(from 0),size,hasNext/hasMore