Backend API
cURL
curl --request POST \ --url https://api.wacht.dev/ai/execution-contexts/{context_id}/execute \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "type": "new_message", "agent_name": "customer-support-agent", "message": "I need help with my account", "files": [ {} ] } '
{ "status": "queued" }
Run an AI agent within a specific execution context
API key authentication (format: Bearer {api_key})
Execution Context ID
new_message
Name of the agent to execute
"customer-support-agent"
User message to send
"I need help with my account"
Optional file attachments
Agent execution queued
Execution status
"queued"
Was this page helpful?