Skip to main content
The SDK API sends notifications to your game server when events occur.

Event Types

Webhook Format

Headers
Payload

Signature Verification

Verify that webhook requests actually come from PlayCamp.
The SDK provides a verifyWebhook() utility that handles signature verification, timestamp validation, and payload parsing:

Reception Example (Express)

Use express.raw({ type: 'application/json' }) instead of express.json() to enable signature verification with the raw body.

callbackId Tracking

When you pass a callbackId with an API request, webhook events triggered by that request will include the same callbackId. This lets you match requests to their webhook events.

Event Payloads

payment.refunded

Fired both when POST /sponsors targets a different creator and when the boost is changed via PUT /sponsors/user/:userId.
The webhook payload uses oldCreatorKey/newCreatorKey. These field names differ from previousCreatorKey/creatorKey in the Boost History API.

payment.bulk_created

A summary event triggered once per bulk payment request.

Testing Webhooks

Generate test signatures for local development:

Webhook Management