Where it is raised
POST /api/v1/incidents/inbound/{token}
What triggers it
The route reads ?source= (generic, alertmanager or grafana) or detects the shape from the body, then runs that adapter. The generic shape needs key and status, and an Alertmanager or Grafana body needs at least one alert. More than 50 events or alerts in one request is refused with At most 50 alerts per request. A token with a signing secret is checked first, so an unsigned body never reaches the adapter.
Example response
POST /api/v1/incidents/inbound/<token>?source=alertmanager
HTTP 400
Cache-Control: no-store
{
"error": "The body is not valid JSON.",
"code": "RU-5005"
}Common causes
- A custom webhook template that does not emit `key` and `status`.
- Sending form-encoded or plain-text bodies instead of JSON.
- A `?source=` query value naming an adapter the body does not match.
How to fix it
- Read the `error` field for the missing field.
- Compare the body against the generic shape in the API docs under Inbound incident webhook.
- For Alertmanager and Grafana, use their built-in webhook receiver unchanged; no template is needed.