capabilities.work

Pulse Create and Resume a Named Stream

A 3-step recipe with Prisma. We can help you get access.

Recipe · 3 steps

Pulse Create and Resume a Named Stream

with Prisma
Works with AI assistants

Create a named stream, read its cursor, and fetch the last persisted event by ULID.

  1. Create a resumable named event stream for the supplied model. Requires event persistence to be enabled on the environment.
  2. List the active streams and read the cursor position for the newly created stream, branching on whether a saved cursor event exists to resume from.
  3. Fetch the specific persisted change event identified by the stream cursor ULID to confirm the resume point.
What you'll need to have ready
  • apiKey: Pulse API key, sent as a Bearer token in the Authorization header.
  • streamName: Unique name for the resumable stream (e.g. all-user-events).
  • model: The Prisma model name to stream change events for (e.g. User).
For your developer

Arazzo workflow prisma:create-and-resume-named-stream, 3 operations: createStream → listStreams → getEvent. Specs on APIs.io.