Fetch Webhook
GET {{endpoint}}/webhooks/:webhookId
Returns a webhook
Returns
-
200
if webhook was fetched successfully -
401
if authentication fails -
403
if user doesn't have any roles -
404
if webhook doesn't exist
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-api-key | string |
RESPONSES
status: OK
{"id":"06af9398-428d-424f-80dd-4ec8b0428ce4","accountId":null,"projectId":"e3be2c12-a842-4cfd-a4d1-2b1846edd875","createdBy":"57626077-d74d-4449-ae3e-4a31c05a62fe","createdByType":"ACCESS_KEY","customHeaders":{"from":"theauthapi docs"},"httpMethod":"POST","name":"All fields webhook","topics":["project.updated","api-key.created","api-key.deleted","api-key.updated","api-key.firstUsed","access-key.created","access-key.updated","access-key.deleted"],"url":"https://webhook.site/3d224d6e-b525-45dd-9a60-5581df9264b9","status":"live","isActive":true,"secret":"whsec_0NTKuUQ331uNvLEaf8tvPxTIRVJ9J7aw96M61","createdAt":"2022-08-23T22:17:49.436Z"}