staqlydocs
REST APIAPI referenceChannels

An event from a Whop channel's webhook

An event from a Whop channel's webhook (someone joined the business, a membership started)

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

POST
/v1/whop/webhook/{channel}

Each connected Whop channel gets its own webhook on Whop, made by staqly (the channel's API key needs developer:manage_webhook and webhook_receive:memberships), at <api>/v1/whop/webhook/<channel id>. Signed with that webhook's secret (Standard Webhooks: webhook-id, webhook-timestamp, webhook-signature); a call more than 5 minutes off is refused and each webhook-id is handled once. member.created and membership.activated count in the analytics' audience. A channel the server doesn't have answers 410.

Path Parameters

channel*string

Header Parameters

webhook-id*string
webhook-timestamp*string
webhook-signature*string

Request Body

application/json
  1. body
[key: string]?any

Response Body

OK

application/json
  1. response
handled*integer

Channels the event counted on

Example Request
curl -X POST 'https://staqly.example.com/v1/whop/webhook/string' \  -H 'webhook-id: string' \  -H 'webhook-timestamp: string' \  -H 'webhook-signature: string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "handled": 0}