Skip to content

Inbound Events API

The Events API lets external systems send events to YipYap. Use it to integrate with monitoring tools that YipYap does not natively support, or to trigger alerts from custom scripts.

POST https://console.yipyap.run/api/v1/events

The Events API uses a routing key (also called an integration key) instead of API key authentication. Each monitor has a unique integration key that you include in the request body. Create a monitor and copy its integration key from the monitor settings.

{
"routing_key": "your-monitor-integration-key",
"event_action": "trigger",
"dedup_key": "my-unique-alert-key",
"payload": {
"summary": "High error rate detected",
"severity": "critical",
"source": "prometheus",
"component": "api-gateway",
"custom_details": {
"error_rate": "5.2%",
"threshold": "5%"
}
}
}
FieldRequiredDescription
routing_keyYesThe monitor’s integration key.
event_actionYestrigger, acknowledge, or resolve.
dedup_keyNoDeduplication key to group related events.
payloadYesEvent details (for trigger events).
FieldRequiredDescription
summaryYesShort description of the event.
severityNocritical, warning, or info.
sourceNoIdentifier for the system that sent the event.
componentNoComponent or service affected.
custom_detailsNoArbitrary JSON with additional diagnostic data.
  • trigger: Opens a new alert (or updates an existing one with the same dedup_key).
  • acknowledge: Marks the alert as acknowledged.
  • resolve: Resolves the alert.

Trigger an alert from a deployment script if a smoke test fails:

Terminal window
curl -X POST https://console.yipyap.run/api/v1/events \
-H "Content-Type: application/json" \
-d '{
"routing_key": "your-integration-key",
"event_action": "trigger",
"dedup_key": "deploy-smoke-test",
"payload": {
"summary": "Post-deploy smoke test failed",
"severity": "critical",
"source": "deploy-script"
}
}'

Resolve it when the issue is fixed:

Terminal window
curl -X POST https://console.yipyap.run/api/v1/events \
-H "Content-Type: application/json" \
-d '{
"routing_key": "your-integration-key",
"event_action": "resolve",
"dedup_key": "deploy-smoke-test"
}'