Open dashboard.nixflex.com and sign in. An API key is created for your account automatically.
2
Reveal your key
Go to API Keys, click Reveal, and copy the full credential. It looks like:
nxf_a1b2c3...:nxfs_x1y2z3...
3
Use it in requests
Authenticate every API call with:
Authorization: Bearer nxf_xxx:nxfs_xxx
Treat your full credential like a password. Never commit it to source control or expose it in client-side code. If it leaks, rotate immediately from the dashboard.
An agent is the AI personality that answers calls. Each agent has a prompt, voice, language, and behaviour settings.
curl -X POST https://api.nixflex.com/v1/agents \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Test Receptionist", "system_prompt": "You are a friendly receptionist for Acme Dental. Greet callers, answer questions about opening hours (Mon-Fri 9am-5pm), and book appointments by collecting name and preferred date.", "welcome_message": "Hello, Acme Dental, how can I help?" }'
Save the agent_id - you’ll attach a phone number to it next.
The default voice is Ashley and the default language is multi (auto-detects 15+ languages including Arabic, French, Spanish, German). Change them later via the dashboard or the Create agent reference.