v1

latestOpenAPI 3.1.02026-07-2687120159.0 KB
Debug Chat

Create a new debug chat session

post/v1/agents/{agentId}/debug-chat

Request body

clientEnvstring required

Client environment (sandbox, pre-release, live)

asrLangCodestring

ASR language code (e.g. en-US). Defaults to server config.

ttsLangCodestring

TTS language code (e.g. en-US). Defaults to server config.

conversationIdstring

Custom conversation ID. Auto-generated if omitted.

variantIdstring

Variant ID to use

channelstring

Channel type (e.g. chat.polyai)

integrationAttributesobject

Custom attributes accessible via conv.integration_attributes in project functions

Response

Successful response

conversationIdstring required
userInputstring required
responsestring required
conversationEndedboolean required
delayedResponseboolean required