This guide shows how to call real phone numbers using a telephony carrier — Twilio, Tenyx, or another carrier. Complete Quickstart first — you need a workingDocumentation Index
Fetch the complete documentation index at: https://docs.oneinbox.ai/llms.txt
Use this file to discover all available pages before exploring further.
agent_id and api_key.
At the end: your agent can dial someone’s phone (outbound) and answer calls on a number you own (inbound).
Overview
In this guide you will:- Store a telephony integration in OneInbox
- Search and register a phone number (for inbound)
- Place an outbound call with
POST /v1/calls
Prerequisites
| Item | Where | Why |
|---|---|---|
api_key | Dashboard | Authenticates requests |
agent_id | Quickstart | Agent on the call |
| Telephony account | Your carrier (Twilio, Tenyx, etc.) | Phone network |
| Carrier credentials | Your carrier console | API key or auth token for POST /v1/credentials |
Outbound vs inbound
| Type | Who dials whom | Setup |
|---|---|---|
| Outbound | Agent calls the customer | Step 4 — POST /v1/calls |
| Inbound | Customer calls your number | Steps 2–3 — search + register |
1. Add a telephony integration
Goal
Store your carrier credentials in OneInbox.provider and api_key with your carrier’s values — e.g. twilio + Auth Token, or tenyx + Tenyx API key.2. Search for an available number
Goal
List numbers you can register. Skip if you only need outbound and already have afrom_number.Number search is available for carriers that support it (e.g. Twilio):| Query param | Meaning |
|---|---|
country | ISO code: US, GB, IN, etc. |
area_code | Optional filter |
contains | Optional digit pattern |
credential_id | Telephony integration ID from step 1 |
3. Register the number (inbound)
Goal
Route inbound calls on this number to your agent.Option A — integration ID (Twilio and similar):provider to your carrier’s value. See Register phone number.4. Make an outbound call
Goal
Your agent dials a phone number and starts a conversation.| Field | Required | Description |
|---|---|---|
to_number | Yes | E.164 format |
from_number | Yes | Registered carrier number |
variables | No | Per-call prompt context |
webhook_url | No | Override webhook for this call |
Verify a call
"status": "completed", then read transcript.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
401 | Wrong token | Use dashboard api_key |
| Invalid number | Format | E.164: +14155551234 |
| International fails | Carrier geo settings | Enable outbound in your carrier console |
| Inbound no agent | Registration | Redo step 3 with correct agent_id |
| Invalid carrier credentials | Wrong key or token | Re-create integration in step 1 |
Next steps
Integrations
Telephony and BYOK
Webhooks
Call lifecycle events
Agents
Tune voice and behavior
API reference
Full outbound options