Skip to main content

Get webhook subscriptions

Retrieve a list of all subscribed webhooks for the authenticated account. Each webhook consists of a target_url and event

To manage your existing subscriptions or subscribe to new events, please refer to this guide.

Request

Endpoint

GET https://api.woodpecker.co/rest/v2/webhooks

Headers

x-api-key: {YOUR_API_KEY}

For details on how to authenticate your requests, please see the authentication guide.

Request sample

Retrieve a list of webhook subscriptions

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/webhooks" \
--header "x-api-key: {YOUR_API_KEY}"

Response

Response examples

Returns a list of webhooks associated with the account, if any are subscribed. The results include all webhooks under the account, regardless of which user created the subscription.

{
"webhooks": [
{
"target_url": "https://myurl.com/woodpeckerwebhooks",
"event": "PROSPECT_INTERESTED"
},
{
"target_url": "https://hooks.zapier.com/hooks/catch/123456/",
"event": "PROSPECT_REPLIED"
},
{
"target_url": "https://hook.eu1.make.com/abcd123",
"event": "PROSPECT_REPLIED"
}
]
}

Body schema

FieldTypeDescription
webhooks[]arrayA list of webhook objects, each containing the target URL and the event type
└─target_urlstringThe URL to which the webhook is sent
└─eventstringThe type of event in Woodpecker that will trigger the webhook. Available webhooks