Отримання вебхуків через API: get_webhooks


Метод get_webhooks може бути виконаний з використанням ключа адміністративного API

https://youraccount.com/api/admin/v2/?action=get_webhooks&hash=HASH
або ж з використанням OAuth 2.0 токену з scope = administrative:

curl -X GET -H "Authorization: Bearer <token_value>"
https://youraccount.com/api/oauth2?action=get_webhooks
Приклад відповіді:

{
    "status": "ok",
    "data": [
        {
            "id": "14",
            "url": "https://eoaerzysr8s23hq.m.pipedream.net",
            "events": "post_task,delete_task,reopen_task",
            "status": "active",
            "projects": "333"
        },
        {
            "id": "16",
            "url": "https://eolb4pffb2s43u.m.pipedream.net",
            "events": "post_task,post_comment,post_project",
            "status": "paused"
        }
    ]
}