Bug: GET /events with destination_id returns 500
Summary
When calling GET /events with the optional query parameter destination_id, the API returns 500 Internal Server Error instead of a successful response or a documented error (e.g. 401, 422).
OpenAPI spec
- Path:
GET /events (admin list events)
- Query param:
destination_id (optional) – "Filter events by destination ID."
- Documented responses:
200, 401, 422 only. 500 is not documented.
So this is an API bug: the spec declares destination_id as a valid parameter and does not document a 500 response.
Steps to reproduce
- Create a tenant and a webhook destination.
- Publish an event that is routed to that destination.
- Call
GET /events?tenant_id=<tenant_id>&destination_id=<destination_id> (with Admin API Key).
- Observe 500 instead of 200 with a paginated list of events.
Expected behavior
- 200 with
EventPaginatedResult (models + pagination) when the request is valid and the tenant/destination exist.
- Or a documented error (e.g. 401 Unauthorized, 422 Validation error) if the request is invalid.
Environment
- Reproduced via spec-sdk-tests (TypeScript SDK) and curl against a running Outpost API.
Possible follow-ups
- Fix the backend so filtering by
destination_id returns 200 when applicable.
- If 500 can occur in some cases by design, document it in the OpenAPI spec (e.g. add a
500 response description).
Bug: GET /events with
destination_idreturns 500Summary
When calling GET /events with the optional query parameter
destination_id, the API returns 500 Internal Server Error instead of a successful response or a documented error (e.g. 401, 422).OpenAPI spec
GET /events(admin list events)destination_id(optional) – "Filter events by destination ID."200,401,422only. 500 is not documented.So this is an API bug: the spec declares
destination_idas a valid parameter and does not document a 500 response.Steps to reproduce
GET /events?tenant_id=<tenant_id>&destination_id=<destination_id>(with Admin API Key).Expected behavior
EventPaginatedResult(models + pagination) when the request is valid and the tenant/destination exist.Environment
Possible follow-ups
destination_idreturns 200 when applicable.500response description).