Webhook history

Use this method to get a history of webhooks that have been sent to you.

GET https://a.loopmessage.com/api/v1/webhooks/history/?page=1&per_page=20&sort_by=desc

You can use a contact ID or a phone number/email address (depending on what the user provided you with when subscribing).

Headers

Name
Type
Description

Authorization*

String

API Key. Required*.

Content-Type*

String

application/json

Query Parameters

Name
Type
Description

sort_by

String

Optional. Sorting order for results. Possible values: asc (ascending) or desc (default).

page

Integer

Optional. The page number to retrieve. Default is 1.

per_page

Integer

Optional. Number of webhook records per page. Default is 20.

Response

{
  "page": 1,
  "num_pages": 1,
  "per_page": 20,
  "count": 1,
  "items": [
    {
      "attempt": 1,
      "create_date": "2025-01-27T22:23:51Z",
      "event_type": "message_inbound",
      "json": {
        "contact": "+155566678958",
        "event": "message_inbound",
        "language": {
          "code": "de",
          "name": "German"
        },
        "message_id": "2a12f7ed-da37-49fd-bbf9-e2965adfb01d",
        "organization_id": "e2229e7b-29df-486d-924e-7dae925b0796",
        "parameters": {
          "param1": "abcd1234",
          "param2": "google",
          "param3": "mysite.com"
        },
        "text": "Hello world",
        "type": "opt_in",
        "webhook_id": "d37985d1-d648-4d42-ac69-ae72e08da86e"
      }
    }
  ]
}

\

Last updated