Webhooks

A webhook sends a web request to another tool when a viewer does something on your LIVE: sends a gift, follows, shares or types a chat command. Use it to let tools such as Streamer.bot, Zapier, a home-made bot or a smart light react to your stream.

Webhooks send only while you’re LIVE. Send a test works any time.

Open it

Click the round avatar at the top right and choose Webhooks, or click Webhooks under Stream extras on the Play page. Switch webhooks on with Turn on at the top of the page (or the switch under Stream extras).

Add a webhook

  1. Click Add webhook, or pick one of the ideas to get step-by-step help. Start from scratch gives you an empty webhook.
  2. Give it a Name.
  3. Under When this happens, pick the trigger:
    • A gift: one gift, or any gift. It sends once for every gift, so a combo of 10 sends 10 requests (unless Wait between sends holds some back).
    • A follow: once per new follower.
    • A share: each time a viewer shares your LIVE.
    • Chat command: when the whole chat message is the command, for example !lights. Capitals don’t matter.
  4. Under Send it to this address, paste the address your tool gave you. It starts with http:// or https://.
  5. Under How to send it, pick In the message (POST, most tools want this) or In the address (GET, for simple links).
  6. Optional, under Extras: Also play a sound (with Repeat on combo to play it for every gift in a combo), and Wait between sends.
  7. Click Send a test, then Create webhook.

What your tool gets

In the message (POST) sends a JSON body with Content-Type: application/json:

{
  "trigger": "gift",
  "sender": "pixelpanda",
  "giftId": "5655",
  "giftName": "Rose",
  "giftCount": 5,
  "timestamp": 1764400000000
}
Field Meaning
trigger What happened: gift, follower, share or chat_command
sender Who did it
giftId, giftName, giftCount The gift and the combo count so far. null for other triggers.
timestamp When it happened, in milliseconds

A test adds "test": true and is sent as Test User.

In the address (GET) sends no body. The same fields are added to the address as query parameters (fields that are null are left out).

The editor’s preview shows exactly what your tool gets (See exactly what your tool gets).

Fill-ins for your address

You can put the viewer’s name into the address itself:

Fill-in Becomes
{nickname} The viewer’s display name (spaces become %20)
{username} The viewer’s TikTok handle
{userPicture} A link to their profile picture

Example: http://127.0.0.1:8080/alert?name={nickname}

Delivery

  • Each request has an x-hypemystream-delivery-id header.
  • If your tool doesn’t answer, or answers with a server error (5xx), 408, 425 or 429, the app tries twice more. Repeats carry the same delivery id, so your tool can skip duplicates. Each try waits up to 10 seconds.
  • A test is sent once, with no retries and no delivery id.

Requests go straight from your computer to the address. A tool on the same PC can listen on 127.0.0.1.

Profiles

Group webhooks into profiles and switch the whole set in one click. Only one profile runs at a time; the others wait until you switch.

Keep addresses private

Many webhook addresses contain a secret. Turn on Hide addresses on LIVE so they don’t show on screen while you’re LIVE.

Test didn’t work?

The editor lists what to check:

  • Did you copy the whole address?
  • Is your tool open and listening at this address?
  • Does it expect In the message (POST) or In the address (GET)?

Discord can’t read these messages by itself. To post to Discord, send the webhook to Streamer.bot or a bot and let it post for you.