Events

Live server-sent events for the caller's workspace.

Live event stream (SSE)#

text/event-stream of document progress and the caller's own notifications in the active workspace. Each data: line is one JSON event. Reconnect on close.

GET/api/v2/events

Any valid API key or signed-in session. No permission needed.

Responses

Server-sent events.

curl -X GET "https://docuflow.pendral.io/api/v2/events" \
-H "Authorization: Bearer $DOCUFLOW_API_KEY"
Responsetext/event-stream200
: connected
data: {"type":"document.created","organizationId":"clx9k2m4p0001qh8z3v7d5f2a","documentId":"clx9k2m4p0001qh8z3v7d5f2a","queueId":"clx9k2m4p0001qh8z3v7d5f2a","status":"received","stage":"stage","progress":100,"at":"2026-10-01T12:00:00.000Z"}
: ping