Skip to content

feat: accept Drops reward claim webhooks (1.1.0) - #5

Merged
berkay-digital merged 1 commit into
mainfrom
dev/drops-webhooks
Nov 25, 2026
Merged

berkay-digital merged 1 commit into
mainfrom
dev/drops-webhooks

Conversation

@berkay-digital

Copy link
Copy Markdown
Owner

Per https://docs.kick.com/drops/drops-guide, Kick sends Drops reward claims to an organization's webhook URL. These requests differ from event webhooks:

  • they have no Kick-Event-Type, -Version or -Subscription-Id header;
  • the timestamp header is Kick-Event-Timestamp, not Kick-Event-Message-Timestamp;
  • the response is synchronous: return 200 only once the reward is fulfilled, and stay idempotent on claim_id.

Until now WebhookHandler rejected these requests as missing headers.

Changes

  • DropsRewardClaimed payload model and a DROPS_REWARD_CLAIMED label. Kick sends no type header, so kickpython recognizes the claim by its body fields.
  • The handler accepts either timestamp header.
  • broadcaster_user_ids doesn't apply to claims, because they belong to the organization, not a channel.
  • The aiohttp route runs Drops handlers before it answers:
    • 200 when they succeed;
    • 500 when a handler raises, so Kick retries;
    • 503 when a second copy arrives while the first is still in flight.
  • Docs and the changelog are updated, and the version goes to 1.1.0.

Testing

  • 3 new offline tests: parsing and dispatch, rejecting an untyped body that isn't a claim, and the synchronous 500, retry, idempotent-200 sequence. The suite is 90 tests and passes.
  • Not tested live. Real Drops deliveries need an approved organization. For a non-org app, Kick answers GET /public/v1/drops/claims with a 500, and the docs now say so.
  • Kick's Drops guide doesn't state the signed string separately, so this assumes the same id.timestamp.body scheme as other webhooks.

@berkay-digital
berkay-digital merged commit a8f7c90 into main Nov 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant