Skip to content

Event Store

Stream operations and event management

Stream operations and event management

POST /api/event-stores/{eventStoreName}/streams/{streamId}/events

Section titled “POST /api/event-stores/{eventStoreName}/streams/{streamId}/events”

Append events to stream

Appends one or more events to a specific stream

POST /api/event-stores/\{eventStoreName\}/streams/\{streamId\}/events
Authorization: Bearer YOUR_JWT_TOKEN
Content-Type: application/json
  • eventStoreName (path) - Name of the event store
  • streamId (path) - ID of the stream
{
"example": "request body structure here"
}
  • 201 - Events appended successfully
  • 400 - Bad request - Invalid events
  • 409 - Conflict - Stream version mismatch

GET /api/event-stores/{eventStoreName}/streams/{streamId}/events

Section titled “GET /api/event-stores/{eventStoreName}/streams/{streamId}/events”

Read events from stream

Retrieves events from a specific stream

GET /api/event-stores/\{eventStoreName\}/streams/\{streamId\}/events
Authorization: Bearer YOUR_JWT_TOKEN
Content-Type: application/json
  • eventStoreName (path) - No description
  • streamId (path) - No description
  • from (query) - Start position (inclusive)
  • to (query) - End position (exclusive)
  • maxCount (query) - Maximum number of events to return
  • 200 - Events retrieved successfully
  • 404 - Stream not found