Skip to main content
POST
/
agents
/
{agent_id}
/
test-call
Create Test Call
curl --request POST \
  --url https://api.truedy.ai/api/public/v1/agents/{agent_id}/test-call \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "name": "Customer Support Agent",
  "description": "AI-powered customer support agent for handling inquiries",
  "voice_id": "voice_c7d82fec-c",
  "model": "gpt-4",
  "instructions": "You are a helpful customer support agent. Be friendly and professional.",
  "greeting": "Hello! How can I help you today?",
  "inactivity_message": "I'm still here if you need anything."
}
EOF
{
  "data": {
    "id": "agt_f9447372-5",
    "name": "Customer Support Agent",
    "description": "AI-powered customer support agent",
    "status": "active",
    "voice_id": "voice_c7d82fec-c",
    "model": "gpt-4",
    "instructions": "You are a helpful customer support agent.",
    "created_at": "2026-03-03T20:30:21.310278Z",
    "updated_at": "2026-03-03T20:30:21.310278Z"
  },
  "meta": {
    "request_id": "req_32e7531c-8",
    "timestamp": "2026-03-03T20:30:21.310278Z"
  }
}

Authorizations

Authorization
string
header
required

Your API key. Get it from the Truedy Dashboard. Send as: Authorization: Bearer <your_key>

Path Parameters

agent_id
string
required

Body

application/json

The body is of type AgentTestCallRequest · object.

Response

Resource created successfully

Response body