CorfedoCorfedoDocs
ReferenceAPI referenceAI

Stream AI Run Events

GET /api/v1/ai/runs/{runId}/events. Request parameters and response schemas.

GET
/api/v1/ai/runs/{runId}/events

Authorization

corfedoOAuth corfedo:ai:invoke
headerAuthorizationBearer <token>

Corfedo-issued bearer credential for the workspace's API resource, such as https://workspace.corfedo.example/api; the workspace host is the issuer. Public clients identify themselves with a Client ID Metadata Document URL and use PKCE S256; service clients use private_key_jwt. Browser cookies and MCP-resource credentials are not accepted.

Scope: corfedo:ai:invoke

Path Parameters

runId*string
Formatuuid

Query Parameters

after?string

The last sequence the caller holds; without it the stream starts with run.snapshot.

Match^(0|[1-9][0-9]*)$

Header Parameters

Last-Event-ID?string

The cursor when after is absent.

Match^(0|[1-9][0-9]*)$

Response Body

OK

response?stringtext/event-stream
Example Request
curl -X GET 'https://example.com/api/v1/ai/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/events'
Example Response
"string"