Integrating with Webhooks

Use spike's webhook and create an incident from your code.

Create an incident using our webhooks integration

Each webhook is unique to the service and escalation policy. Make sure you create a webhook integration and copy the webhook url. Know how.

From your code, you can create an incident simply by making a POST request.

post
Create an incident

https://hooks.spike.sh/:token/push-events
This endpoint allows you to get free cakes.
Request
Response
Request
Path Parameters
token
required
string
Unique token for your webhook integration
Form Data Parameters
body
optional
string
As of now, you can add any message about the incident you would like here. Accepts objects too.
title
optional
string
This will be the title of your incident. Failing to add this will create an empty incident title with all other parameters
Response
200: OK
Cake successfully retrieved.
{ Ok: true }
500: Internal Server Error
Could not process your request.
{}