List all webhooks

To retrieve a list of all your registered webhooks, you can make use of the following endpoint in your API. This endpoint will provide you with comprehensive information about your webhooks, including their unique identifiers.

Please note that this endpoint requires authenticated access, see here for more details.

https://payments.yoco.com/api/webhooks

Headers

ParameterTypeDescription
Authorization
string
The secret key for your account.

Sample request

curl --location --request GET 'https://payments.yoco.com/api/webhooks' \
--header 'Authorization: Bearer <secret key>'
important

Replace <secret-key> with your secret API integration key. For more information, see here.

Sample response

HTTPS: 200 OK
{
"subscriptions": [
{
"id": "sub_PgrMbbNpWGVc147s6AnHM6aE",
"name": "my-webhook",
"url": "https://my-application/my/webhook/url",
"mode": "live"
}
]
}