Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
messages
/
stream
Stream an agent reply via SSE (A2A)
curl --request POST \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/messages/stream \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": {
    "message_id": "<string>",
    "role": "user",
    "contextId": "<string>",
    "taskId": "<string>",
    "parts": [
      {}
    ]
  }
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Headers

x-draft-mode
boolean

When true, the stream exercises the agent's live (draft) config instead of published_config. Owners/writers only.

Path Parameters

agentId
string
required
Maximum string length: 64

Body

application/json
message
object
required

A2A v0.3 flat message envelope.

Response

Server-Sent Events stream of A2A task lifecycle events. Terminates after a task.completed, task.failed, or task.canceled event.

Stream of data: <json> lines, each carrying an A2A task lifecycle event. See description for event types.