GET
/
v1
/
campaign
/
{id}
/
webhooks
curl --request GET \
  --url https://api.sendo.dev/v1/campaign/{id}/webhooks \
  --header 'Authorization: Bearer <token>'
{
  "webhooks": [
    {
      "id": "d3392dbf-ae4b-43b9-9b50-dcafa5c7h4mn",
      "createdAt": "2023-12-31T03:07:35.826Z",
      "name": "Event Service",
      "url": "https://website.com/webhook",
      "campaignId": "g1tkV7Eq",
      "signature": "aVWS7HTLR9xxMkdE",
      "eventTypes": [
        "message.incoming",
        "message.status"
      ],
      "numbers": [
        "+14159436397"
      ]
    },
    {
      "id": "c29b55aa-a622-4f99-91ba-1dc5834734eb",
      "createdAt": "2023-12-15T03:07:35.826Z",
      "name": "Revocation Service",
      "url": "https://website.com/revocations",
      "campaignId": "g1tkV7Eq",
      "signature": "7ujOMdfiow43feAS",
      "eventTypes": [
        "recipient.optout"
      ],
      "numbers": [
        "+14159436397"
      ]
    }
  ]
}

Parameters

id
string
required

The ID of the campaign to list webhooks for.

Response

webhooks
object[]

List of webhooks for the campaign.

{
  "webhooks": [
    {
      "id": "d3392dbf-ae4b-43b9-9b50-dcafa5c7h4mn",
      "createdAt": "2023-12-31T03:07:35.826Z",
      "name": "Event Service",
      "url": "https://website.com/webhook",
      "campaignId": "g1tkV7Eq",
      "signature": "aVWS7HTLR9xxMkdE",
      "eventTypes": [
        "message.incoming",
        "message.status"
      ],
      "numbers": [
        "+14159436397"
      ]
    },
    {
      "id": "c29b55aa-a622-4f99-91ba-1dc5834734eb",
      "createdAt": "2023-12-15T03:07:35.826Z",
      "name": "Revocation Service",
      "url": "https://website.com/revocations",
      "campaignId": "g1tkV7Eq",
      "signature": "7ujOMdfiow43feAS",
      "eventTypes": [
        "recipient.optout"
      ],
      "numbers": [
        "+14159436397"
      ]
    }
  ]
}