- A Nixflex account
- A Twilio or Telnyx account with at least one phone number
- A way to make a test call (any mobile phone)
Nixflex is bring your own carrier. Your numbers stay in your own Twilio or Telnyx account, you pay the carrier directly, and Nixflex never marks up or resells them. Everything below works the same on either carrier.
Step 1 - Get your API key
1
Sign in to the dashboard
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:
3
Use it in requests
Authenticate every API call with:
Step 2 - Create an agent
An agent is the AI personality that answers calls. Each agent has a prompt, voice, language, and behaviour settings.agent_id:
agent_id - you’ll attach a phone number to it next.
Step 3 - Connect a phone number
You import a number you already own. Nixflex works out which carrier it is from the credentials you send - there is no provider field to set.Twilio
Buy a voice-enabled number in your Twilio console, then import it with your Account SID and Auth Token:Full guide: Twilio.
Telnyx
Telnyx needs three things set up in your portal first, because its webhook lives on an application rather than on the number:- Buy or port a voice-enabled number.
- Create a TeXML Application - set its voice webhook to
https://api.nixflex.com/telnyx-voice, method POST, webhook API version 2. Copy the application ID. - Assign your number to that application, and enable the G711U codec on it (disable HD Voice / G722).
- Create an API key with access to the number.
Full guide, with the reasoning behind each step: Telnyx.
Step 4 - Test inbound
Call your number from any phone. The agent will:- Pick up
- Say your welcome message
- Listen, respond, handle interruptions naturally
- Hang up when the conversation ends or when the caller stops talking
Step 5 - Test outbound
Have the agent call you. Replace theto_number with your mobile.
You don’t pass a
from_number. The engine uses the number you assigned to the agent in Step 3. Outbound works on both carriers.Step 6 - Read the call back
After the call ends, pull the details:What’s next
Telephony setup
Full carrier guides for Twilio and Telnyx, including what each one supports.
Agent actions
Let your agent transfer calls, send SMS, and end calls using prompt tags.
Webhooks
Receive post-call data in your own systems automatically.
Custom functions
Let the agent call your APIs mid-call (lookup, booking, payments).