Chat with an agent (headless)
Chat
Chat with an agent (headless)
Runs one generative turn and spends one message credit atomically (D-16). JSON by default; send Accept: text/event-stream for SSE. Continue a conversation with conversationId. Idempotency-Key (JSON mode) makes a retry replay the first answer without spending a second credit.
POST
Chat with an agent (headless)
Authorizations
A workspace API key: wdy_live_… / wdy_test_…. Created at POST /workspaces/{tenantId}/keys and shown exactly once.
Path Parameters
Body
application/json
The visitor question the agent answers.
Required string length:
1 - 1000Available options:
es, en Continue a conversation: pass the conversationId a previous turn returned. Omit to start a new one; the server owns the transcript.