Webhooks
Create A Webhook Endpoint
Register a webhook endpoint in your API key’s scope and receive its one-time signing secret.
POST
Permission Required
This endpoint requires thewebhooks.manage permission (the { kind: "webhook" } scope) on your API key, plus the webhooks feature. Webhooks are gated to api_pro or higher plans: a key on a free plan receives 403 error_api_feature_required.
Access / Membership Rules
Webhooks are owner-scoped. The new endpoint is created in your key’s own derived scope: a personal key creates it in youruser scope, a game-developer key in its bound game, and a league-operator key in its bound league. The scope is never a request field. The url must be an HTTPS endpoint - private, loopback, and cloud-metadata hosts are rejected.
What’s Returned
Returns201 with { id, signingSecret, secretPrefix }. id is the new endpoint id, secretPrefix is the first 8 chars of the signing secret (display only), and signingSecret is the full plaintext secret.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | HTTPS delivery URL. Private, loopback, and metadata hosts are rejected. |
events | string[] | Yes | At least one event token: exact catalog names (e.g. match.completed) or family wildcards (e.g. match.*). |
label | string | No | Optional human-readable label for the endpoint. |
Use the signing secret to verify the Standard Webhooks
webhook-id / webhook-timestamp /
webhook-signature headers (the X-TeamBattles-Event header carries the event name). For the
full signature scheme and event catalog, see the Webhooks guide.Authorizations
Send your API key as: Authorization: Bearer tb_
Body
application/json
Create a webhook endpoint in the caller's scope.
HTTPS endpoint URL. Private/loopback/metadata hosts are rejected.
Subscribed event tokens: exact catalog names (e.g. match.completed) or family wildcards (e.g. match.*). At least one required.
Minimum array length:
1Optional human label for the endpoint.
Response
The created endpoint's id and one-time signing secret.