Developer API
Changelog
The Developer API is versioned in its URL. Within /api/v1, changes are only ever additive: new endpoints, new event types and new fields. Nothing is renamed or removed, and no meaning changes. Your tool should ignore fields and event types it does not know.
The one exception so far is the entry on viewers on every platform: when viewers came to Gleem from Kick, the Twitch-only fields were replaced by ones that name the platform.
Developer widgets set overlay variables
variable.updatedhassourcepluginwhen a developer widget changed the value: one the creator picked for it in the widget's settings.
Chat commands for overlay variables
PATCH /variables/{name}takeschat_commandandchat_vips; variables carry both. Moderators (and VIPs where allowed) set a variable from chat with its command.variable.updatedhassourcechatfor those changes. A taken command answers409 command_taken.
Colour, image, video and on/off variables
- Variables can be of type
colour(#rrggbb),imageandvideo(a Media Library ulid, or"") andtoggle(true/false).valuein variables and invariable.updatedcan now be a boolean. - New built-in
stream.live(typetoggle).
Built-in overlay values
GET /variables?builtins=1addsbuiltins, the read-only live values Gleem fills itself (viewers, title, category, uptime, followers, members, the latest Gem message, the queue, the time). See Overlay variables.
Overlay variables
- New endpoints under
/variablesread, set, count, create, rename and delete a creator's overlay variables, the{name}placeholders in their Overlay Editor scenes. See Overlay variables. - New scopes
variables:readandvariables:write. - New event type
variable.updated: a variable got a new value, withvariable(name,type,value,previous_value,version) andsource(dashboardorapi). Webhooks of OAuth apps needvariables:readfor it.
New members in the Stream Manager, and refunds off the leaderboard
- New Stream Manager event type
activity.membership: someone joined one of the channel's membership tiers on Gleem, withuser,membership_id,tier,gems,sourceandtest. It comes withplatformgleem, likeactivity.gems. - A refunded queue entry now gives back the Gems it was bought with, even when the Treat's price changed since.
GET /leaderboardno longer counts Gems that came back with a refunded queue entry, sototal_gems_spentis what a viewer actually spent. The ranking is still all time.
A Treat's channel reward puts the Treat in the queue
- Redeeming a Treat's channel reward on Twitch or Kick now queues that Treat instead of giving a Trigger Ticket.
treat.redeemedandqueue.entry.updatedcarrypayment_typechannel_pointsfor it,memberas seen on that platform, andsourcetwitchorkickontreat.redeemed. - The redemption stays unfulfilled on the platform while the request waits: completing the entry fulfils it, and refunding it gives the points back. Fulfilling or refunding it on the platform, or through
PATCH /stream/{platform}/redemptions/{id}, completes or refunds the entry. POST /queue/entries/{id}/refundcan answer409 refund_failedwhen the platform will not give the points back.- The dedicated Trigger Ticket reward still gives tickets.
Channel rewards and KICKs on Kick
- Treats, the Trigger Ticket reward, the fishing game's reward and plugins' rewards can be on Kick too, each with its own cost there. Their redemptions arrive as
activity.redemptionwithplatformkick, in the same shape as Twitch's, andPATCH /stream/kick/redemptions/{id}accepts or rejects them.capabilities.redemptionsistrueon Kick once the creator reconnects Kick to allow rewards; until then the endpoint answers403 platform_reconnect_required. See Redemptions. - New Stream Manager event type
activity.kicks: KICKs sent on Kick, withuser,amount,giftandmessage. - Plugins hear Kick redemptions of their own rewards as
redemptionwithplatformkick, and KICKs ascheerwithcurrencykicks.PATCH /api/v1/plugin/redemptions/{id}resolves Kick redemptions too, and takesplatformfor one gleem.gg did not record. - Trigger Tickets bought with Kick channel points come as
tickets.grantedwithplatformkick.
Viewers on every platform
A viewer is now a Gleem member with an account on each platform Gleem knows them by: Twitch, Kick or both. These fields change, and the old ones are gone:
- Members:
data.memberin every event, andmemberin REST answers (/tips,/queue,/leaderboard,/tickets/grant), losetwitch_id. They gainplatform,platform_user_idandidentities.platform,platform_user_idandloginname the account the event came through, else the member's main one (Twitch, then Kick, then YouTube).identitieslists every account as{platform, user_id, login}. Events stored before this change keep their old shape in theGET /eventsbacklog. GET /me:creator.twitch_idis replaced bycreator.channels, the creator's channel on each platform as{platform, id, login}.POST /tickets/grant: takesplatform(twitchorkick) withuser_idorlogin, instead oftwitch_user_idortwitch_login. The errorunknown_twitch_useris nowunknown_user.- Stream Manager: the
activity.gemsuser losestwitch_id. - Kick: subs, renewals and gift subs on Kick earn Trigger Tickets, so
tickets.grantedcomes for Kick viewers too, withplatformkick.
Going live on Kick
stream.onlineandstream.offline(webhooks, the Creator Events socket, plugins) now come for a stream on any linked platform, Kick included, once per stream: going live on Twitch and Kick at once is one stream.streamgainsplatformandplatforms;stream.idis Twitch's stream id when Twitch went live first, else Gleem's id for the stream.stream.offlinenow carriesstreamtoo.- A creator who is only live on Kick shows as live (
is_liveinGET /meand elsewhere). - Stream Manager: new transient event
stream.updated(Kick) with the channel's newtitleandcategory. capabilitiesgainslive_status. On Kick it needschannel:read; connections without it list it inmissing_scopes.
Direct streaming to Kick, and to several platforms at once
GET /api/v1/stream/destinationslistskickdestinations. A stream to a channel goes to every platform of it that is switched on.- Destinations gain
enabled(the creator's switch for the platform) andlimits(max_bitrate_kbps,keyframe_interval_seconds,limited_by): what the encoder has to keep for a stream to the channel, the lowest of its platforms that are on.
Kick and YouTube in the Stream Manager
Creators can link Kick and YouTube in Settings → Connections, and the Stream Manager covers them in the same shapes as Twitch. See Stream Manager.
{platform}takeskickandyoutube, andGET /api/v1/streamlists both.reconnect_urlfor them opens the link flow in Settings → Connections.capabilitiesgainschat_reply. It isfalseon YouTube, as isfollows.redemptionsandchattersarefalseon both, and their endpoints answer422 platform_unsupported.- New errors:
409 stream_not_live(YouTube chat and bans need a live broadcast) and404 not_foundfor a YouTube unban Gleem cannot lift. What a platform cannot do, such as a Kick timeout over 7 days, a YouTube chat message over 200 characters or clearing a Kick or YouTube category, answers422 validation_failed. - The Stream Manager channel and the backlog carry
platformkickandyoutube. The new event typeactivity.super_chatis for YouTube Super Chats and Super Stickers.activity.subscriptionandactivity.giftgainlevel_name, which is YouTube's membership level andnullelsewhere. platformonGET /stream/chatand/stream/activityacceptskickandyoutube.
Direct streaming destinations
GET /api/v1/stream/destinations: where the creator can go live straight from the Gleem IRL app, their own channel's platforms and shared channels, with whether someone else is live there. See Direct streaming destinations.PATCH /api/v1/stream/destinations/{id}andGET /api/v1/stream/destinations/{id}/categories: the stream title and category on a destination's channel.GET /api/v1/irl/devices/{uuid}/playbackanswers409 playback_direct_streamingwhile the device streams straight to a platform.
Bluetooth access to IRL Sidekicks
POST /api/v1/irl/devices/{uuid}/local-grant: a seven-day grant that lets the Gleem IRL app set up and control a paired IRL Sidekick over Bluetooth LE, also without internet. See Bluetooth access to an IRL Sidekick.- New error code
local_access_unavailable(409), for an IRL Sidekick that has not registered its Bluetooth keys yet. POST /api/v1/irl/local-grant: the same grant by the id the IRL Sidekick shows over Bluetooth, which also finds a team's IRL Sidekick.
Stream Manager redemptions
PATCH /api/v1/stream/{platform}/redemptions/{id}withstatusfulfilledorcanceled: fulfil or refund a channel point redemption of a reward Gleem created. See Redemptions.activity.redemptiongainscan_manage, true when the reward was created by Gleem and so can be fulfilled or refunded. Cards from before this change do not have it.activity.redemption'sstatusnow follows the redemption: fulfilled or refunded by Gleem, by your tool or on Twitch.- New event
activity.redemption.updated(redemption_id,reward_id,status) on the Stream Manager channel. capabilities.redemptionsinGET /api/v1/stream.- New error codes
reward_not_manageable(403),redemption_not_found(404) andredemption_already_processed(409).
Stream Manager chatters
GET /api/v1/stream/{platform}/chatters: who is in chat right now, a page of up to 1,000 at a time withtotalandcursor. See Chatters.capabilities.chattersinGET /api/v1/stream. It needs the Twitch scopemoderator:read:chatters, which the Stream Manager reconnect now asks for; earlier connections list it inmissing_scopesuntil they reconnect.- New error code
platform_unsupported(422), for a platform that does not offer something the Stream Manager does elsewhere.
Browser-source audio on the IRL Sidekick
POST /api/v1/irl/devices/{uuid}/commandstakes theaudio.*andbluetooth.*commands with apayload: set, update and remove browser sources with their routes and gains, choose where their sound plays, and pair a Bluetooth speaker. See Browser-source audio and Bluetooth.- New command
audio.test: a short test chime on the IRL Sidekick's speaker and/or into its stream. - IRL devices gain
audio, the same object, inGET /api/v1/irl/devicesandGET /api/v1/irl/devices/{uuid};nullwhile the device is offline or reports none. - The
telemetryevents on an IRL Sidekick's telemetry channel gainaudio: its browser sources (without URLs), outputs and Bluetooth devices. Likeinterfacesandupdate, it is left out of an event that would otherwise be too large.
Network addresses behind irl:network
An IRL device's IP addresses locate the streamer's modems, and stream tools need bitrate and link health, not addresses. They now need their own scope. This is the one change in /api/v1 that takes something away: a security fix, not a precedent. See Network addresses.
- New scope:
irl:network, sensitive, on top ofirl:read. The consent screen and the token form flag it. - The IRL device telemetry channel
private-irl-device.<uuid>.telemetryno longer carries addresses:interfaces[].addressesis gone fromtelemetryevents, andremotefrom the links iningest.stats. Everything else stays. - New channel
private-irl-device.<uuid>.network(telemetry_socket.network_channel): the same events in full, for tokens withirl:readandirl:network. See the WebSocket docs. - IRL devices gain
interfaces(name,kind,state,addresses);addressesisnullwithoutirl:network. - Tokens Gleem hands to a rented OBS machine can now sign the telemetry channel, since it carries no addresses. They still cannot sign the network channel or see
addresses, whatever their scopes.
Stream Manager
The backend of the Gleem IRL app's Stream Manager, open to any tool with the new scopes on an account in the Gleem IRL beta (otherwise 403 feature_unavailable). gleem.gg calls Twitch with your own Twitch sign-in, so the tool never holds a Twitch token; the Stream Manager's Twitch permissions are granted once through reconnect_url, not at sign-in. See Stream Manager and the Stream Manager channel.
- New scopes:
stream:readandstream:write. GET /api/v1/stream: live, viewers, title and category on each platform, what the connection allows, and which Twitch scopes it still lacks.PATCH /api/v1/stream/{platform}andGET …/categories: change the title and category.POST /api/v1/stream/{platform}/chat/messages,DELETE …/chat/messages/{id},POST …/bansandDELETE …/bans/{user_id}: chat and moderate as the streamer.GET /api/v1/stream/chatandGET /api/v1/stream/activity: the last day's chat and activity.GETandPUT /api/v1/stream/quick-actions: the Gleem IRL app's Quick Actions layout, per account.POST /api/v1/socket/authsignsprivate-creator.{id}.streamfor tokens withstream:read: chat, moderation, follows, subs, gifts, raids, redemptions and Gems, in one platform-neutral shape.
More for the Gleem IRL app
GET /api/v1/irl/pair/{code}shows the IRL Sidekick waiting under a pairing code (its hardware, version and when the code expires) so the Gleem IRL app can show it before the creator approves. See Pairing an IRL Sidekick.- IRL devices gain
versionandbitrate(the window the device is set to stream with), andingest.current_bps: what ingest measured in its latest report, whereaverage_bpsis the mean over the whole session. - A command sent to a device that goes offline at that very moment answers
409device_offlineinstead of a bare503; a bitrate window is then saved for its next heartbeat.
The Gleem IRL app
Endpoints for the Gleem IRL app, open to any tool with the new scopes. See The Gleem IRL app and OBS rentals.
- New scopes:
irl:write,hosting:read, andhosting:write, which is reserved for starting and ending rentals. POST /api/v1/irl/devicesregisters a phone as an IRL device and returns itsgid_credential once.POST /api/v1/irl/pair/approveand/declineanswer an IRL Sidekick's pairing by the code it shows.POST /api/v1/irl/devices/{uuid}/commands,PUT …/bitrate,PATCHandDELETE /api/v1/irl/devices/{uuid}: remote control, the same as the dashboard.GET /api/v1/hosting/rentalsandGET /api/v1/hosting/rentals/{uuid}: the creator's OBS rentals, with their obs-websocket while they run.POST /api/v1/socket/authsigns an IRL device's telemetry channel for tokens withirl:read.- IRL devices gain
board,hardware,phoneandtelemetry_socket. - Public OAuth apps can register a private-use URI scheme such as
gg.gleem.irl:/oauth/callbackas a redirect URI (RFC 8252 § 7.1).
General availability
The Developer API is out of preview and open to every creator: the Developer page, personal access tokens, webhooks, OAuth app registration and the consent screen no longer need an invitation. Nothing in /api/v1 changed; tokens and integrations from the preview keep working.
OAuth apps
Third-party tools can now be registered as OAuth apps, so creators connect them with a click instead of pasting a token. See OAuth apps.
- The authorization code flow with PKCE, the device flow (
/activate) and client credentials, at/oauth/authorize,/oauth/token,/oauth/device_authorizationand/oauth/revoke, with discovery at/.well-known/oauth-authorization-server. - OAuth access tokens (
gleem_oat_…) work with every endpoint and the WebSocket, with the same scopes. GET /api/v1/megains anappobject when called with an OAuth token.- A
401for an expired or revoked OAuth token says so inWWW-Authenticate. - App webhooks:
GET,POSTandDELETE /api/v1/webhookswith the newwebhooks:writescope. - Personal access tokens are unchanged.
Preview
The first version of the Developer API, built together with the Streamer.bot integration.
- Personal access tokens with scopes, created on the dashboard's Developer page.
GET /api/v1/meandPOST /api/v1/socket/auth.- REST endpoints for the queue, Treats, Gem messages, the leaderboard, memberships and Trigger Tickets, described by an OpenAPI 3.1 spec.
- Real-time events over the WebSocket: Gem messages, Treat redemptions, queue changes, memberships, post unlocks, follows, Bits exchanges, Trigger Tickets and going live or offline.
- Signed webhooks with retries, a delivery log and redelivery.
login(the Twitch handle) on every viewer object, andtotal_slotsoptional when opening a queue.- A per-creator message filter for Gem messages and Treat inputs, marked with
message_filteredandinput_filtered. - Test events and a live event log on the Developer page.
GET /api/v1/irl/devicesandGET /api/v1/irl/devices/{uuid}with the newirl:readscope: Gleem IRL devices and their stream health, for tools such as the OBS IRL Control plugin.