webhooks
Create a new webhook
Create a new webhook subscribing to the provided list of notifications.
Required API key permissions: Admin (select when creating API key in Account Settings)
post/webhooks
Request
- Base URLhttps://cyber-risk.upguard.com/api/public
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
namestring required
The name given to the webhook
hook_urlstring required
The URL used for sending notifications
notification_type_idsstring[] required
The list of notifications to subscribe to. For a list of supported notification types and their IDs use the /api/public/webhooks/notification_types endpoint.
webhook_type'webhook' | 'workflow_webhook'
The type of webhook to create
Response
Information about the created webhook
Example response
{
"id": "ABCD1234",
"signing_secret": "a1b2c3d4e5f67890123456789012345678901234567890123456789012345678"
}Changes
No recorded changes to this operation across all 1 revision of this API.