Register a New Service Hook

Go to Product

Register a new service hook on a project.

Events include:

  • event.alert: An alert is generated for an event (via rules).
  • event.created: A new event has been processed.

This endpoint requires the 'servicehooks' feature to be enabled for your project.

Options

Organization Slug
The slug of the organization the client keys belong to.
Project Slug
The slug of the project the client keys belong to.
Body

Request body which must comply to the following JSON Schema:

{
  "required" : [ "events", "url" ],
  "type" : "object",
  "properties" : {
    "url" : {
      "type" : "string",
      "description" : "The URL for the webhook."
    },
    "events" : {
      "type" : "array",
      "description" : "The events to subscribe to.",
      "items" : {
        "type" : "string"
      }
    }
  }
}
Result Format
Specify how the response should be mapped to the table output. The following formats are available:
  • Structured Table: Returns a parsed table with data split into rows and columns.
    • Date Created:
    • Events:
    • Id:
    • Secret:
    • Status:
    • Url:
  • Raw Response: Returns the raw response in a single row with the following columns:
    • body: Response body
    • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.