Skip to main content
node
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/integrations/webhooks/v1/test';

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"data":{"name":"my_webhook","pagerDuty":{"serviceKey":"pager_duty_service_key"},"type":"UNKNOWN","url":"slack.webhook.com"}}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "failure": {
    "displayMessage": "example_display_message",
    "errorMessage": "example_error_message",
    "statusCode": 400
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
data
object
required
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data

Response

  • Test outgoing webhook response
  • Test outgoing webhook response
failure
object