Hướng dẫn AgentFlow

stream_events

GET/events/stream

The same events, in the same envelope, as webhooks and GET /events, limited to what the caller may see when each is sent. Resume with Last-Event-ID or after within the resume window; otherwise the stream sends refetch and continues from now. Delivery is at least once from a position: de-duplicate by position.

AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Query Parameters

after?integer

Resume after this position; the Last-Event-Id header does the same, and when both are sent the later position wins.

Formatint64
types?array<string>

Only these event types; repeat the parameter for several.

include_child_runs?boolean

Include a child run's instance.* events.

presence?boolean

Also send presence frames: who has a record open, for records the caller can read.

Header Parameters

Last-Event-Id?|

The position to resume after; HTTP header names are case-insensitive, so Last-Event-ID is the same header. When both this and after are sent, the later position wins.

Response Body

text/event-stream

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/events/stream"
"string"