unPLUGDevelopers

Webhook endpoints API

List events

GET/v1/events

Returns events from the last 30 days, newest first, whether or not any endpoint was subscribed to them.

Permissions: Secret key with webhooks:manage.

Query parameters#

  • typestring
    Only events of this type, for example order.credited.
    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
  • limitinteger
    1 to 100. Default 25.
    Min 1Max 100Default 25
  • cursorstring
    next_cursor from the previous page.

Response fields#

Returns 200 with list of Event

  • dataarray of Event
    Show attributesEvent
    • 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
  • has_moreboolean
    True when another page exists.
  • next_cursorstringNullable
    Pass as cursor to get the next page.

Error descriptions#

400Bad request
invalid_param

Unknown event type.

Any endpoint can also return the common errors.