REST API
A handful of plain HTTP endpoints complement GraphQL where caching, streaming or file uploads make REST the better fit. Base URL: https://api.jiltv.app. Public GET endpoints can be tried right here.
Chat integrations
/v1/channels/{platform}/{channelId}/bootstrapThe active emote set of a channel in a compact format. Load it once when joining a chat.
Auth: None, cached: Edge cache with ETag; answers 304 when unchanged
Parameters
platform pathtwitch, kick or youtube
channelId pathThe channel ID on the platform, e.g. the numeric Twitch user ID.
GET https://api.jiltv.app/v1/channels/twitch/1094903746/bootstrap/v1/sets/globalGlobal emote sets, available in every channel.
Auth: None, cached: Edge cache with ETag
GET https://api.jiltv.app/v1/sets/global/v1/resolve/twitch/{login}Turns a Twitch login into the channel ID, if the channel uses JilTV. 404 otherwise.
Auth: None, cached: 5 minutes, 1 hour at the edge
Parameters
login pathTwitch login name, lowercase.
GET https://api.jiltv.app/v1/resolve/twitch/sctoti/v1/personal-emotes/twitchPersonal emotes of chatters, by Twitch login, as used in one channel: Supporters can give channels their own selection. Batch the visible chatters; channel emotes take precedence over personal ones, personal over global. Logins without any are left out.
Auth: None, cached: 1 minute
Parameters
logins queryComma-separated Twitch logins, at most 100.
channel queryTwitch login of the channel you show. Looks can differ per channel; leave it out only outside a channel.
GET https://api.jiltv.app/v1/personal-emotes/twitch?logins=sctoti&channel=sctoti/v1/personal-emotes/youtubeThe same for YouTube chat: chatters by YouTube channel ID (UC...), for JilTV accounts that connected their channel.
Auth: None, cached: 1 minute
Parameters
ids queryComma-separated YouTube channel IDs, at most 100.
channel queryChannel ID of the YouTube channel you show.
GET https://api.jiltv.app/v1/personal-emotes/youtube?ids=UCxxxxxxxxxxxxxxxxxxxxxx&channel=UCxxxxxxxxxxxxxxxxxxxxxx/v1/events/channels/{platform}/{channelId}Server-Sent Events with live changes to the channel’s emote set. Browsers reconnect on their own. Details in Chat clients & realtime.
Auth: None
const events = new EventSource('https://api.jiltv.app/v1/events/channels/twitch/1094903746');
events.addEventListener('set.batch', (e) => {
const { set_id, added, removed, renamed } = JSON.parse(e.data);
});
events.addEventListener('channel.set_switched', () => reloadBootstrap());Cosmetics
/v1/cosmetics/catalogEvery published paint, badge and avatar decoration with its design. Paints carry their baked texture, and phaseTextures for looks by time of day. Cache it; users only reference cosmetics by ID.
Auth: None, cached: Edge cache with ETag
GET https://api.jiltv.app/v1/cosmetics/catalog/v1/cosmetics/twitchWhat chatters wear in one channel, by Twitch login: paint (p), badge (b), avatar decoration (d) and profile banner (bn) as IDs. Supporters can wear a different outfit per channel. Batch the visible chatters; logins wearing nothing are left out.
Auth: None, cached: 1 minute
Parameters
logins queryComma-separated Twitch logins, at most 100.
channel queryTwitch login of the channel you show. Looks can differ per channel; leave it out only outside a channel.
GET https://api.jiltv.app/v1/cosmetics/twitch?logins=sctoti&channel=sctoti/v1/cosmetics/youtubeThe same for YouTube chat: what chatters wear, by YouTube channel ID (UC...), for JilTV accounts that connected their channel. Same answer, keyed by channel ID.
Auth: None, cached: 1 minute
Parameters
ids queryComma-separated YouTube channel IDs, at most 100.
channel queryChannel ID of the YouTube channel you show.
GET https://api.jiltv.app/v1/cosmetics/youtube?ids=UCxxxxxxxxxxxxxxxxxxxxxx&channel=UCxxxxxxxxxxxxxxxxxxxxxxDevice Flow
/v1/oauth/device/codeStarts a sign-in: returns the device code to poll with and the user code to show. Form-encoded body. See the Device Flow guide.
Auth: None (client_id)
curl https://api.jiltv.app/v1/oauth/device/code \
-d client_id=$JILTV_CLIENT_ID \
-d scope=COSMETICS_WRITE/v1/oauth/tokenPolls a device code (grant_type urn:ietf:params:oauth:grant-type:device_code) or exchanges a refresh token (grant_type refresh_token) for a new access and refresh token.
Auth: None (client_id)
curl https://api.jiltv.app/v1/oauth/token \
-d grant_type=refresh_token \
-d client_id=$JILTV_CLIENT_ID \
-d refresh_token=$REFRESH_TOKEN/v1/oauth/revokeSigns the user out of your app: revokes the sign-in behind an access or refresh token. Always 200.
Auth: None (client_id)
curl https://api.jiltv.app/v1/oauth/revoke \
-d client_id=$JILTV_CLIENT_ID \
-d token=$REFRESH_TOKENAccount
/v1/me/exportEverything JilTV stores about you, as one JSON file. Only works while signed in on the website.
Auth: Website session
GET https://api.jiltv.app/v1/me/exportGraphQL
/v1/graphqlQueries and mutations. See the API reference for every operation.
Auth: Optional
curl https://api.jiltv.app/v1/graphql \
-H 'Content-Type: application/json' \
-d '{"query":"{ platformStats { emotes } }"}'/v1/graphql/schema.graphqlThe schema in SDL, for code generators.
Auth: None, cached: 5 minutes
GET https://api.jiltv.app/v1/graphql/schema.graphqlStatus
/health/liveThe process is up.
Auth: None
GET https://api.jiltv.app/health/live/health/readyDatabase, cache and queue are reachable.
Auth: None
GET https://api.jiltv.app/health/readyUpload emotes
/v1/emotes Auth: EMOTES_WRITESend multipart/form-data with name (1–100 characters, no spaces), optional comma-separated tags,
an optional edit JSON and the file (PNG, GIF, WebP or JPEG, detected from the file content; up to 8 MB and 500
frames). Editors holding the UPLOAD permission can pass owner_id to upload in the name of the channel owner.
The API answers 202 with the emote in status PROCESSING. Poll emote(id:); it becomes ACTIVE within seconds with all sizes and formats generated.
curl https://api.jiltv.app/v1/emotes \
-H "Authorization: Bearer $JILTV_API_KEY" \
-F name=catDance \
-F tags=cat,dance \
-F 'edit={"crop":{"x":0,"y":0,"w":112,"h":112},"trim":true}' \
-F file=@cat.gifThe optional edit is applied server-side to every frame, in this order:
{
"frames": { "start": 0, "end": 20 }, // animations: keep these frames
"rotate": 90, // 0, 90, 180 or 270
"flip_h": true, "flip_v": false,
"crop": { "x": 0, "y": 0, "w": 112, "h": 112 }, // in source pixels
"key": { "color": "#00ff00", "tolerance": 30 }, // make a color transparent
"trim": true, // cut transparent borders (all frames)
"hue": 90, "grayscale": false, "invert": false, // like CSS hue-rotate/grayscale/invert
"shape": "circle", // or "rounded"
"reverse": false, "boomerang": true, // animations: play backwards / forth and back
"speed": 1.5 // animations: 0.25 to 4
}Uploads are limited to 20 per hour per account. Images larger than 4096 px (static) or 1024 px (animated) end in status FAILED, so scale them down before uploading.