Get All Webhooks

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Get all existing webhooks.

Security: Requires an admin user

Usage: GET /xray/api/v1/webhooks

Consumes: application/json

Produces: application/json

Response codes:

Status code

Description

200

success

401

Insufficient privileges; you need a user with mange policies or admin privileges to list webhooks.

500

Failed to get the webhooks

Response:

[
   {
   "name": "Webhook Name 1",  
   "url": "http://somehost",
   "description": "" ,  //optional
   "use_proxy": false, 
   "auth": { //Optional
       "user_name": "",
       "password": ""
   },
   "headers": { // Optional, underlying type is a map, so you can have as many as you want.
       "name": "value"
   }


   },
   {
       "name": "Webhook Name 2",  
       "url": "http://someotherhost",
       "description": "" ,  //optional
       "use_proxy": false, 
       "auth": { //Optional
           "user_name": "",
           "password": ""
       },
       "headers": { // Optional, underlying type is a map, so you can have as many as you want.
           "name": "value"
       }
  
       }
]