unPLUGDevelopers

Webhook endpoints API

Send a test event

POST/v1/webhook_endpoints/{id}/test

Sends a webhook.test event to this endpoint only, signed like any other event. Works on disabled endpoints too, so you can check a fix before you turn the endpoint back on. The response is the event; follow its delivery with List deliveries.

Permissions: Secret key with webhooks:manage.

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

Path parameters#

  • idstring (uuid)Required

Response fields#

Returns 202 with Event

  • idstring (uuid)
    The event's id. Same value as the webhook-id header, on every attempt and redelivery.
  • typestring
    For example points.changed. The list may grow.
    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
  • created_atstring (date-time)
    When the change happened. Use it to order events.
  • api_versionstring
    v1.
  • livemodeboolean
    true in production, false in the sandbox.
  • brand_idstring (uuid)
    Your brand.
  • dataobject
    Show attributesHide attributes
    • objectobject
      Snapshot of the resource.
    • previous_attributesobject

Error descriptions#

404Not found
not_found

No endpoint with this id in this environment.

Any endpoint can also return the common errors.