Skip to main content
POST
Invoke (Sync)
Use this endpoint when you want the agent’s complete reply in a single JSON response rather than a streaming NDJSON body. Useful for server-to-server integrations where streaming is inconvenient. You must initialise a session before calling this endpoint.

Endpoint

Request body

Same as Invoke (Stream) β€” businessId, clientKey, sessionId, optional agentId, and inputEvents with the same supported event types.

Response

string
The session ID for this conversation.
array
All agent response events returned in a single array. Each element contains exactly one event key:

Example