Stream Events
Changed onRequest
- Base URLhttps://api.anthropic.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
When set, this connection also receives streaming deltas (event_start, event_delta) while an event is being produced, before the event itself arrives. Deltas are best-effort; when the final event is produced it carries the complete content. A model request that ends early (an error or interrupt) produces no final event — its terminal span.model_request_end closes the preview. Accepts one or more event types to preview and may be repeated: agent.message streams content_delta fragments; agent.thinking is start-only — a signal that the agent has begun extended thinking, concluded by the agent.thinking event itself. Only previews of the requested event types are sent.
Headers
The version of the Claude API you want to use.
Read more about versioning and our version history here.
Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
Response
Successful response (OK)
Example response
{
"type": "user.message",
"id": "sevt_011CZkZGPp1iBcp4kaQSihUm",
"content": [
{
"type": "text",
"text": "Where is my order #1234?"
}
],
"processed_at": "2026-03-15T10:00:00Z"
}Changes
- info
added
subschema #1to the//////////response propertyanyOflist for the response status - info
added
subschema #1to the//////////////////////////////response propertyanyOflist for the response status - info
added
subschema #1to the//////////////////////////////response propertyanyOflist for the response status - info
added
subschema #1to the/////////////////////////response propertyanyOflist for the response status
- info
- info
added the enum value
admin-user-sign-out-2026-10-08to the propertyitems/anyOf[subschema #2]/of theheaderrequest parameteranthropic-beta
- info