Description: Get a Webhook subscription with a given key.
Security: Requires a valid admin user.
Usage: GET /event/api/v1/subscriptions/{key}
Produces: application/json
Sample Output:
{
"key": "Audits",
"description": "Triggers Security and QA audits when a new artifact is created",
"enabled": true,
"event_filter": {
"domain": "artifact",
"event_types": [
"deployed",
"moved",
"copied"
],
"criteria": {
"anyLocal": true,
"anyRemote": false,
"includePatterns": [],
"excludePatterns": [],
"repoKeys": []
}
},
"handlers": [
{
"handler_type": "webhook",
"url": "https://webhook.my-company.test/",
"secret": "tell no one",
"proxy": "mainProxy",
"custom_http_headers": [
{
"name": "X-MyCompany-Header",
"value": "whatever"
}
]
}
]
}Response Codes:
200 Subscription description successfully provided
404 Subscription does not exist