Skip to main content

Events API

POST /v1/projects/:id/events/:eid/replay​

Replay an existing event by re-queuing it for delivery to all linked destinations.

Authentication​

Requires JWT. The authenticated user must own the project.

Path Parameters​

ParameterTypeDescription
idUUIDProject ID
eidUUIDEvent ID

Response​

200 OK

{
"message": "event replayed",
"destinations": 3,
"skipped": {
"cli_no_session": 0,
"in_flight": 0,
"rule_skipped": 1
}
}

destinations counts the deliveries that were queued. When the delivery queue is busy and confirms only some destinations, the replay still succeeds and the response adds failed, the number of destinations it couldn't confirm. They may still receive the replay. Check the event's delivery timeline before replaying again: replaying at once would send the event a second time to the destinations that were queued. skipped breaks down destinations that were left alone — rule_skipped counts destinations whose routing rules skip this event; those are recorded on the event's delivery trace and are not billed.

Error Responses​

StatusDescription
400 Bad RequestInvalid project or event ID format
404 Not FoundProject or event not found
409 ConflictA single targeted destination was not eligible — for example, a routing rule skips this event for it. The response's error names the reason
500 Internal Server ErrorFailed to fetch destinations
503 Service UnavailableDelivery queue unavailable; none of the replay's deliveries could be confirmed as queued. Check the event's delivery timeline before retrying

Behavior​

  • Uses the current endpoint-destination configuration (templates, transforms, routing rules)
  • Destinations whose routing rules skip this event are suppressed up front: nothing is sent, the suppression is recorded on the delivery trace, and it doesn't count against your plan
  • Creates new delivery attempts — does not modify existing ones
  • The original event payload is used (transforms are re-applied at delivery time)

POST /v1/projects/:id/sources/:eid/test​

Send a synthetic test event through an endpoint.

Authentication​

Requires JWT. The authenticated user must own the project. The endpoint must belong to the project.

Path Parameters​

ParameterTypeDescription
idUUIDProject ID
eidUUIDEndpoint ID

Request Body (Optional)​

{
"payload": {
"action": "test",
"repository": {
"full_name": "owner/repo"
}
}
}

If no payload is provided, a default is used:

{
"test": true,
"message": "Hello from Dispatch!"
}

Response​

202 Accepted

{
"event_id": "550e8400-e29b-41d4-a716-446655440000",
"destinations": 2
}

Behavior​

  • Creates a real event with event_type = "test"
  • Event is stored and processed normally
  • Delivery is attempted to all active linked destinations
  • If the delivery queue is busy and confirms only some destinations, the request still succeeds: destinations counts the ones the test was confirmed for and failed counts the rest, which may still receive it. Sending the test again would repeat it at the destinations that got it.
  • Useful for testing templates, transforms, and destination connectivity