Skip to main content
POST
/
v1
/
calls
Create outbound call
curl --request POST \
  --url https://api.oneinbox.ai/v1/calls \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "<string>",
  "to_number": "+14155559876",
  "from_number": "<string>",
  "variables": {},
  "webhook_url": "<string>"
}
'
{
  "id": "<string>",
  "status": "<string>",
  "to_number": "<string>",
  "from_number": "<string>",
  "duration_seconds": 123,
  "transcript": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "created_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.oneinbox.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key from the OneInbox dashboard (API Keys → Create)

Body

application/json
agent_id
string
required
to_number
string
required

E.164 format

Example:

"+14155559876"

from_number
string
required

Registered OneInbox number

variables
object
webhook_url
string

Response

201 - application/json

Created

id
string
status
string
to_number
string
from_number
string
duration_seconds
integer
transcript
object[]
created_at
string<date-time>