API docs

Everything you can read, change and listen to in StreamNeeds, with examples you can copy.

Getting started

Authentication

Send your key in the Authorization header as a Bearer token. Each key only sees your own data, and only for the permissions you ticked when you made it.

Authorization: Bearer bh_sk_your_api_key_here

Each endpoint also follows the plan of the feature it touches. If your plan doesn't include that feature you get a 402 with code feature_locked.

Base URL

https://streamneeds.com

Pagination

List endpoints return newest first with a nextCursor. Pass it back as ?cursor= to get the next page; when it is null you have everything. Use ?since= to fetch only what changed after a time.

Rate limits

Requests are limited per key. A 429 carries Retry-After plus X-RateLimit headers; wait that long before trying again. Send an idempotency key with money and points writes so a retry is always safe.

For uptime checks call /api/v1/health: it needs no key and costs nothing. Never poll a data endpoint to see if we are up.

Viewer identifiers

Wherever an endpoint takes a viewer, you can pass a Discord ID, a Kick username (or kick-id:12345) or a StreamNeeds viewer ID. We work out which it is.

  • 123456789012345678 · Discord ID
  • kick-id:12345 · kickusername · Kick
  • a1b2c3d4-e5f6-7890-abcd-ef1234567890 · Viewer ID

Permissions

Each key only does what you ticked when you made it. Every endpoint below names the permission it needs; a key with none of them gets a 403.

General

  • readRead general data
  • writeWrite general data

Bonus hunts

  • hunts:readRead this account's bonus-hunt feed
  • hunts:writeCreate hunts, add slots and log results
  • guesses:readRead this account's Guess the Balance results (guesses, winners, points)
  • guesses:writeOpen, close and settle Guess the Balance

Slot requests

  • slot-requests:readRead this account's slot-request feed
  • slot-requests:writeAdd, update and remove slot requests

Points

  • points:readRead point balances
  • points:writeAward/remove points

Viewers & identity

  • users:readRead user profiles (incl. casinos)
  • identity:writeExternal identity link (auto-merge Discord + Kick pushed from your own site)

Store & payouts

  • store:readRead shop catalogue
  • store:purchaseRecord shop purchases
  • store:manageAdd, edit and remove store items
  • payouts:readRead payouts you owe and have paid
  • payouts:writeCreate unpaid store payouts

Raffles

  • raffles:readRead raffles + ticket totals
  • raffles:purchaseBuy raffle tickets
  • raffles:awardAward free raffle tickets
  • raffles:manageCreate, edit, remove and draw raffles

Giveaways

  • giveaways:readRead giveaways, entrants and winners
  • giveaways:writeStart, end and draw giveaways

Polls and wheels

  • polls:readRead polls and their results
  • polls:writeStart and end polls
  • wheels:readRead wheels and spin history
  • wheels:writeSpin wheels

Clips and campaigns

  • clips:readRead clips and marked moments
  • clips:writeMark clip moments
  • campaigns:readRead sponsor campaigns and deliverable progress

Stream & overlays

  • stream:readRead your live status, streams, stream events and tips
  • alerts:writeFire overlay alerts (Twitch / YouTube / white-label)
  • casino:writeCasino extension live feed (game/balance/chat → hunt)
  • overlays:writeSwitch overlay scenes
  • pad:writePress StreamPad buttons

Leaderboards

  • leaderboards:readRead wager leaderboard standings

Tournaments

  • tournaments:readRead tournaments, brackets and tournament stats (your own website)

Content planner

  • planner:readRead your content plan and idea verdicts
  • planner:writeAdd, schedule and edit ideas

Stream Bingo

  • bingo:readRead bingo cards and games
  • bingo:writeStart bingo games and mark squares

Challenge Board

  • challenges:readRead the challenge board
  • challenges:writeAdd, accept and settle challenges

LinkNeeds

Webhooks

  • webhooks:manageAdd, change and remove webhooks

Bonus hunts

Read and run your bonus hunts. Writes behave exactly like the dashboard: totals recompute from the entries, overlays and the live hunt page update instantly, Discord announcements and chat points fire as usual. Money amounts are plain numbers in the hunt's currency.

Guess the Balance

Viewers guess a hunt's final balance in chat. Guessing is one switch on your account that applies to your live hunt. Twitch and YouTube viewers are never named in API responses or webhooks — they come back as a stable `anonId` instead.

Slot requests

The games your viewers call in chat. Statuses: `pending` (queued), `added` (on the hunt), `played`, `skipped`, `archived`.

Payouts

Everything on Store → Payouts: raffle winners (`source: raffle`), giveaway winners (`source: giveaway`) and manual payouts (`source: manual` — added by hand, through the API, or by a feature such as a wheel, a wager race or Clip Rewards; that feature is in `origin`). A payout is a record of what you owe — marking it paid never moves money or points.

Store

Your points shop: the catalogue, buying on a viewer's behalf, orders and refunds. Prices and balances are in points. Orders made in chat (!buy), on your store page, in Discord or through the API all fire `store.purchase`.

Raffles

Numbered-ticket raffles. Every ticket gets a sequential number; the draw picks one ticket at random across the whole pool. Raffles can be drawn before their draw date (plans with early draws).

Points

Viewer point balances and movements. A balance is the viewer's unified total (their linked Discord and Kick balances included). Award / remove / set accept an idempotency key — send one per logical operation and a retry replays the first result (header Idempotency-Replay: true) instead of applying twice. Keys last 7 days; the same key with a different body is a 422, and one still in flight is a 409.

Viewers

A viewer is one person across Discord, Kick, Twitch and YouTube. Look them up by any linked account, or link accounts from your own site.

Giveaways

Chat giveaways (viewers type a command on Kick, Twitch, YouTube or Hype to enter) and the giveaways your bot runs in Discord. Starting, drawing and rerolling behave exactly like the dashboard: the overlay plays the draw, chat gets the winner callout and points prizes are credited straight away.

X giveaways

Giveaways announced on X with an entry page. Every draw is provable: when entries close we publish a fingerprint of the entrant list and a commitment (drawCommit) to a secret draw key, and the verify page shows how each winner was picked. The key itself is never returned by the API. Nothing happens to a winner on its own — confirm, reroll, extend or forfeit is always your call.

Polls

Two kinds: chat polls (the Poll overlay widget — viewers vote by typing an option number) and community polls (players with numbers, a free first vote per viewer and paid extra votes in points). Your key always sees the real counts, even while results are hidden on stream.

Wheels

Prize wheels viewers pay to spin (gifts, tips, points) and join wheels where chat adds their name and you spin. The winning section is picked and paid on our side before the overlay animates; chat hears the result when the wheel stops.

Stream Bingo

Bingo cards (3×3, 4×4 or 5×5 grids of things that might happen on stream) and the games played from them. One game is live at a time. Squares are numbered from 0, row by row; the middle of an odd grid can be a free square. Marking a square does everything a dashboard tap does: lines are recomputed, viewers' play-along cards follow, the overlay and chat update, and a linked Points Prediction locks the moment its answer is certain. Ending a game settles that prediction and pays play-along prizes once.

Challenge Board

Viewers post challenges for the streamer and back them with points (`!challenge`); with paid challenges on, subs, Kicks, bits and Super Chats count towards a price in US cents. Pledged points are held until the challenge settles: done spends them, declined / failed / expired refunds every held pledge exactly once. Paid money is never refunded — backers of a paid challenge that doesn't happen get thank-you points instead (settings → consolationPerDollar).

Content planner

Your idea bank and stream schedule. An **idea** is something to try on stream; putting it on a date creates a **run** (one try). After the stream, each run is graded against your own normal and gets a **verdict**: `worked`, `flat`, `hurt` or `early` (not enough history yet). Dates are calendar days (YYYY-MM-DD) in your time zone, and a streaming day runs 04:00 to 04:00, so a stream that starts after midnight still counts for the evening before. Verdicts, lifts and frozen results are blanked (and `proven` reads as `tried`) unless your plan includes Content Planner verdicts. Webhooks: `planner.idea_scheduled` when an idea gets a date (from the API or the dashboard), `planner.idea_unscheduled` when it is taken off a date, and `planner.verdict` when a run is graded (the nightly grading after your stream, or Regrade in the dashboard).

Stream

Your streams and what happened on them. A stream is one sitting: if you simulcast to Kick and Twitch, it is one stream with one leg per platform — the same numbers as your stream history on the dashboard. Webhooks: stream.online when you go live, stream.offline when a stream ends.

Tips and gifts

Money your viewers sent, across Kick, Twitch and YouTube. Amounts are in each platform's own unit: KICKS on Kick, BITS on Twitch and the viewer's currency for Super Chats. Anonymous supporters keep their amount but never their name. Webhooks: support.tip and support.gifted_subs as they arrive.

Clips

Your clip library and win moments. A moment is a mark on the stream ("that was a moment") — a big win, a tagged press, a sponsor deliverable. A clip is the video saved for a moment (including extra cuts like vertical versions, thumbnails, and library folders). Webhook: clip.created when a clip is saved.

Campaigns

Your sponsor campaigns and how far along each deliverable is. done is a live count — presses for count and mention deliverables, bonuses opened on the partner's games for auto_games — the same number your StreamPad tiles and sponsor reports show.

Overlays and StreamPad

Switch overlay scenes and press StreamPad buttons from your own tools — the same thing a Stream Deck button does.

Wager leaderboards

Your wager races. Standings come from the casino on each board's refresh schedule; hidden players are always removed. Webhook: wager_leaderboard.updated after each refresh, with the top 10.

Tournaments

Your public and unlisted tournaments, brackets, results and stats. Private tournaments are never returned.

Casino extension

What the StreamNeeds casino extension sends while you play. Pairing the extension creates its own key with the casino:write permission, so you only need these to build your own reader. Every call works on your current live hunt.

Managing webhooks

Register, change and remove webhook endpoints from code. Same rules as the Webhooks tab on the API & Webhooks page: https URLs on the public internet only, up to 10 endpoints by default.

Health

Webhooks

Webhooks push events to your server as they happen, so you don't have to keep asking. Add them on the API & Webhooks page or with the /api/v1/webhooks endpoints.

What we send

POST https://your-site.example/webhook
Content-Type: application/json
X-StreamNeeds-Event: hunt.completed
X-StreamNeeds-Delivery: 5c1e…
X-StreamNeeds-Signature: t=1760209200,v1=9a4f…

{
  "id": "evt_3b0f9c1d2e…",
  "event": "hunt.completed",
  "createdAt": "2026-10-11T19:00:00.000Z",
  "data": {
    "hunt": {
      "id": "hunt-id",
      "title": "Sunday hunt",
      "status": "completed",
      "totalCost": 2000,
      "totalWon": 3150
    }
  }
}

If your URL doesn't answer with a 2xx within 8 seconds we retry after 1, 5, 30, 120, 360 and 720 minutes.

Verify the signature

Every request carries an X-StreamNeeds-Signature header: t is the send time and v1 is an HMAC-SHA256 of "t.body" made with your secret. Compare it with your own and reject requests older than five minutes.

// Node.js — check X-StreamNeeds-Signature before trusting a webhook
import crypto from "crypto";

function isFromStreamNeeds(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const expected = crypto.createHmac("sha256", secret)
    .update(`${parts.t}.${rawBody}`).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Events

Bonus hunts

Slot requests

Guess the Balance

Payouts

Store

Raffles

Giveaways

Polls

Wheels

Clips

Stream

Tips and gifts

Leaderboards

Content planner

Stream Bingo

Predictions

Challenge Board

LinkNeeds

System

Errors

400
{
  "error": "amount: Expected number, received string",
  "code": "invalid_body"
}
401
{
  "error": "Invalid or missing API key"
}
402
{
  "error": "Feature not available on the resource owner's plan",
  "code": "feature_locked",
  "feature": "raffles_payouts"
}
403
{
  "error": "API key needs one of these scopes: payouts:read"
}
404
{
  "error": "Payout not found",
  "code": "not_found"
}
409
{
  "ok": false,
  "error": "no_open_hunt",
  "message": "No live hunt — start one first."
}
429
{
  "error": "Rate limit exceeded",
  "retryAfter": 2
}
503
{
  "error": "Service temporarily overloaded, retry shortly",
  "retryAfter": 2
}

Coming soon

These features are being built now and get their API when they launch:

  • Quests and the viewer portal
  • Game trackers and game nights
  • Lobby codes