# Create an AI agent
curl -X POST https://api.nixflex.com/v1/agents
-H "Authorization: Bearer YOUR_KEY"
-d '{
"name": "Reception",
"system_prompt": "You are a friendly...",
"voice_id": "Ashley",
"language": "multi"
}'
# Returns agent_id - save it.
# Connect your own Twilio number
curl -X POST https://api.nixflex.com/v1/phone-numbers
-H "Authorization: Bearer YOUR_KEY"
-d '{
"phone_number": "+447446466847",
"twilio_sid": "ACxxxx",
"twilio_token": "xxxx",
"agent_id": "agent_125207e..."
}'
# Your number now answers with AI.