Stream Events
Stream the same Events as they are committed, with the same filters. Resume after an Event ID with Last-Event-ID or after: the stream is in commit order, so a resumed stream has no gaps.
Authentication
AuthorizationBearer
Use Bearer <api-key>.
Headers
BCTRL-Version
Dated API version. Defaults to the release pinned when the API key was created.
Allowed values:
BCTRL-Space
Select one authorized Space by its opaque ID or unique name. Omission uses the operation default.
BCTRL-Subaccount-Id
Optional effective subaccount context for organization API keys. Subaccount API keys are already scoped and cannot use this header to act as another subaccount.
Last-Event-ID
Optional last delivered event identifier used to resume an SSE stream.
Query parameters
browser
Events of this browser, across its Runs.
sandbox
Events of this sandbox.
run
Events of this Run.
task
Events of this Task.
conversation
A Conversation history: its Events.
agent
Events of Tasks run by this agent.
category
type
actor
Actor ID.
actorType
Allowed values:
channel
outcome
from
RFC 3339 timestamp with a UTC offset.
to
RFC 3339 timestamp with a UTC offset.
after
Resume after this Event ID (as Last-Event-ID does).
Response headers
BCTRL-Request-Id
Current request identifier, also echoed in errors.
BCTRL-Version
Negotiated dated API version.
RateLimit-Limit
Evaluated policy limit; zero when no finite policy was evaluated.
RateLimit-Remaining
Remaining policy budget; zero when no finite policy was evaluated.
RateLimit-Reset
Seconds until reset; zero when no finite policy was evaluated.
Response
Server-Sent Events with Event IDs and complete Event objects, in commit order; heartbeats are comments.
actor
category
channel
conversationId
createdAt
RFC 3339 timestamp with a UTC offset.
data
id
Unique runEvent identifier generated by BCTRL.
object
outcome
Allowed values:
pageId
runId
runtimeId
sandboxId
seq
source
spaceId
spanId
target
taskId
time
RFC 3339 timestamp with a UTC offset.
timestamp
RFC 3339 timestamp with a UTC offset.
traceId
W3C trace ID: GET /traces/{traceId} returns the span tree.
type
updatedAt
RFC 3339 timestamp with a UTC offset.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error

