Get All Webhooks
GET {{baseUrl}}/extensions/event-webhooks
Returns all the webhooks of the organization.
Requires access_token
as a Bearer {{token}}
in the Authorization
header with read
scope.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | null |
RESPONSES
status: OK
{"data":[{"id":"619e1efb54b7ae3d429de9ef","created_at":"2021-11-24T11:16:11.81Z","updated_at":"2021-11-24T14:23:14.287Z","organization_id":"60cb200bc9de4a0008d2fc41","author_id":"60cb1f03ceb9ac000726a1ba","name":"test","slug":"test","description":"","triggers":[{"event_class":"incident","event_type":"triggered"}],"urls":[{"url":"https://webhook.site/b6d8329b-776e-4119-87d6-9a286e180384","method":"post"}],"header":{},"filters":{"op":"and","conditions":[{"op":"eq","lhs":"service_id","rhs":"612ce2a67115ff9a44a1052d"}]},"max_retry":3,"mail_ids":null,"send_custom_payload":false,"custom_payload":""},{"id":"620b321c4ec9cda09057f617","created_at":"2022-02-15T04:54:52.691Z","updated_at":"2022-02-15T04:54:52.691Z","organization_id":"60cb200bc9de4a0008d2fc41","author_id":"60f12dd3814bef0008c4036e","name":"test1","slug":"test1","description":"","triggers":null,"urls":null,"header":null,"filters":null,"max_retry":3,"mail_ids":null,"send_custom_payload":false,"custom_payload":""},{"id":"620b3292f163b1e165f19f18","created_at":"2022-02-15T04:56:50.327Z","updated_at":"2022-02-15T05:00:32.12Z","organization_id":"60cb200bc9de4a0008d2fc41","author_id":"60cb1f03ceb9ac000726a1ba","name":"test2","slug":"test2","description":"","triggers":[{"event_class":"incident","event_type":"triggered"},{"event_class":"incident","event_type":"acknowledged"},{"event_class":"incident","event_type":"resolved"},{"event_class":"incident","event_type":"reassigned"}],"urls":[{"url":"https://webhook.site/e5df433b-9297-4d60-99e1-2b48b6f5c7c4","method":"post"}],"header":{"abc":"xyz"},"filters":{"op":"or","conditions":[{"op":"eq","lhs":"service_id","rhs":"60cb2d38ec1645d56399562e"},{"op":"and","conditions":[{"op":"eq","lhs":"alert_source_id","rhs":"5d6509f5d062840e307cc431"}]}]},"max_retry":3,"mail_ids":null,"send_custom_payload":false,"custom_payload":""}]}