unPLUGDevelopers

Webhook endpoints API

Get an event

GET/v1/events/{id}

Returns one event. Use it to check a webhook you received against what unPLUG sent.

Permissions: Secret key with webhooks:manage.

Path parameters#

  • idstring (uuid)Required

Response fields#

Returns 200 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 such event, or it's older than 30 days.

Any endpoint can also return the common errors.