Create a webhook

POST https://{{base_url}}/v3/webhooks

The Create a webhook request allows you to create a new webhook in a specific stack.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Create a webhook API Reference document

Request Body

{"webhook"=>{"name"=>"Basic Test", "destinations"=>[{"target_url"=>"http://example.com", "http_basic_auth"=>"username", "http_basic_password"=>"password", "authentication_type"=>"Basic", "custom_header"=>[{"header_name"=>"", "value"=>""}]}], "notifiers"=>"john.doe@gmail.com", "channels"=>["assets.create"], "branches"=>["main"], "retry_policy"=>"automatic", "disabled"=>false, "concise_payload"=>true}}

HEADERS

KeyDatatypeRequiredDescription
api_keystringEnter the API key of your stack.
authtokenstringEnter your authtoken.
authorizationstringFor this call we recommend you to use management token.
Content-TypestringEnter "application/json" to pass a request body.