Webhook

Loops can deliver real-time data packages of events from activities in your organization, to enable custom integrations with other systems.

As an example, Loops can inform your implementation whenever a loop is started in your organization. To implement a listener to Loops webhooks isn’t that complex, but do require some programming.

The delivery is made as a POST-request with a JSON-object as body. As multiple events can be delivered at the same time the object is defined as a list of events to accommodate this.

Events

The event object consists of an object with two keys, ”type” and ”data”.

The following types of events are handled by Loops:

* Whenever a loop is started

* Whenever a loop is terminated

* Whenever a loop is revived

* When participants are added to a loop

* When participants are leaving a loop

Example

This is an example of a loop that just got started. The loop has two participants.

[
  {
    "type": "SESSION_STARTED",
    "data": {
      "uuid": "7fa00242-52c6-486f-a041-874513dbc0e6",
      "name": "Digital Tools - Fall 2021",
      "loopName": "Digital Tools",
      "participants": [
        {
          "userId": 1,
          "role": "owner",
          "state": "invited",
          "email": "teacher@example.com"
        },
        {
          "userId": 2,
          "role": "pupil",
          "state": "invited",
          "email": "pupil@example.com"
        },
      ]
    }
  }
]

Read more about webhooks