Test Agent

Test an agent’s responses without sending real messages. Useful for validating prompt configuration and tool behavior before deployment. Use the same session_id across requests to maintain conversation context.

Authentication

X-API-Keystring
Your API key from [Dashboard → Settings → API Keys](https://dashboard.bookedin.ai/settings)

Path parameters

agent_idstringRequired
Agent ID to test

Request

This endpoint expects an object.
messagestringRequired
The test message to send to the agent
channelenumOptionalDefaults to sms
Channel to simulate. Determines which channel profile's configuration and tools are used.
session_idstringOptionalformat: "uuid"
Session ID for conversation continuity. Omit to start a new conversation, provide to continue an existing one.

Response

Agent response
responsestring
The agent's generated response
session_idstring
Session ID for this conversation. Use in subsequent requests to maintain context.
conversation_historylist of objects
Full conversation history for this session
tool_callslist of objects
Tools called by the agent during response generation
usageobject
Token usage statistics

Errors

404
Not Found Error