API docs
Search docs
Guides, operations and types

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

GET /v1/channels/{platform}/{channelId}/bootstrap

The 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 path

twitch, kick or youtube

channelId path

The channel ID on the platform, e.g. the numeric Twitch user ID.

Request
GET https://api.jiltv.app/v1/channels/twitch/1094903746/bootstrap
GET /v1/sets/global

Global emote sets, available in every channel.

Auth: None, cached: Edge cache with ETag

Request
GET https://api.jiltv.app/v1/sets/global
GET /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 path

Twitch login name, lowercase.

Request
GET https://api.jiltv.app/v1/resolve/twitch/sctoti
GET /v1/personal-emotes/twitch

Personal 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 query

Comma-separated Twitch logins, at most 100.

channel query

Twitch login of the channel you show. Looks can differ per channel; leave it out only outside a channel.

Request
GET https://api.jiltv.app/v1/personal-emotes/twitch?logins=sctoti&channel=sctoti
GET /v1/personal-emotes/youtube

The same for YouTube chat: chatters by YouTube channel ID (UC...), for JilTV accounts that connected their channel.

Auth: None, cached: 1 minute

Parameters

ids query

Comma-separated YouTube channel IDs, at most 100.

channel query

Channel ID of the YouTube channel you show.

Request
GET https://api.jiltv.app/v1/personal-emotes/youtube?ids=UCxxxxxxxxxxxxxxxxxxxxxx&channel=UCxxxxxxxxxxxxxxxxxxxxxx
GET /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

Example
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

GET /v1/cosmetics/catalog

Every 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

Request
GET https://api.jiltv.app/v1/cosmetics/catalog
GET /v1/cosmetics/twitch

What 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 query

Comma-separated Twitch logins, at most 100.

channel query

Twitch login of the channel you show. Looks can differ per channel; leave it out only outside a channel.

Request
GET https://api.jiltv.app/v1/cosmetics/twitch?logins=sctoti&channel=sctoti
GET /v1/cosmetics/youtube

The 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 query

Comma-separated YouTube channel IDs, at most 100.

channel query

Channel ID of the YouTube channel you show.

Request
GET https://api.jiltv.app/v1/cosmetics/youtube?ids=UCxxxxxxxxxxxxxxxxxxxxxx&channel=UCxxxxxxxxxxxxxxxxxxxxxx

Device Flow

POST /v1/oauth/device/code

Starts 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)

Example
curl https://api.jiltv.app/v1/oauth/device/code \
  -d client_id=$JILTV_CLIENT_ID \
  -d scope=COSMETICS_WRITE
POST /v1/oauth/token

Polls 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)

Example
curl https://api.jiltv.app/v1/oauth/token \
  -d grant_type=refresh_token \
  -d client_id=$JILTV_CLIENT_ID \
  -d refresh_token=$REFRESH_TOKEN
POST /v1/oauth/revoke

Signs the user out of your app: revokes the sign-in behind an access or refresh token. Always 200.

Auth: None (client_id)

Example
curl https://api.jiltv.app/v1/oauth/revoke \
  -d client_id=$JILTV_CLIENT_ID \
  -d token=$REFRESH_TOKEN

Account

GET /v1/me/export

Everything JilTV stores about you, as one JSON file. Only works while signed in on the website.

Auth: Website session

Request
GET https://api.jiltv.app/v1/me/export

GraphQL

POST /v1/graphql

Queries and mutations. See the API reference for every operation.

Auth: Optional

Example
curl https://api.jiltv.app/v1/graphql \
  -H 'Content-Type: application/json' \
  -d '{"query":"{ platformStats { emotes } }"}'
GET /v1/graphql/schema.graphql

The schema in SDL, for code generators.

Auth: None, cached: 5 minutes

Request
GET https://api.jiltv.app/v1/graphql/schema.graphql

Status

GET /health/live

The process is up.

Auth: None

Request
GET https://api.jiltv.app/health/live
GET /health/ready

Database, cache and queue are reachable.

Auth: None

Request
GET https://api.jiltv.app/health/ready

Upload emotes

POST/v1/emotes Auth: EMOTES_WRITE

Send 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.gif

The optional edit is applied server-side to every frame, in this order:

edit
{
  "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.

Search
Find emotes or users, or jump to a page