unPLUGDevelopers

Test helpers API

Send a test webhook

POST/v1/test/webhooks

Sends one event of any type, with sample data, to every enabled endpoint subscribed to that type. Use it to build and test your handler for events that are hard to cause, such as tier.changed or member.deleted. Deliveries are signed like real ones.

Permissions: Sandbox secret key.

Guide

Sandbox

Request headers#

  • Idempotency-Keystring
    Any string up to 255 characters; use a UUID v4. Kept 24 hours per key (or member) and endpoint. Same key and body replays the first response with Idempotent-Replayed: true.
    Max Length 255

Request body#

  • typestringRequired
    Any event type from Webhook event types.
    Show valuesHide values
    • member.created
    • member.updated
    • member.deleted
    • points.changed
    • tier.changed
    • reward.issued
    • reward.redeemed
    • reward.expiring
    • order.credited
    • order.refunded
    • communication_preferences.updated
    • webhook.test
    • points.expiring
    • challenge.joined
    • challenge.progressed
    • challenge.completed
    • referral.completed

id is the event id. It arrives at your endpoints as webhook-id, and you can look up its deliveries in the event log. The sample data is not a real member, so don't let your handler write it to production tables.

Response fields#

Returns 202 with object

  • idstring (uuid)
  • typestring

Error descriptions#

400Bad request
invalid_param

type isn't a known event type.

404Not found
not_found

Called on production.

Any endpoint can also return the common errors.