Skip to main content
POST
/
api
/
public
/
calls
Place an outbound call
curl --request POST \
  --url https://astrasend-mocha.vercel.app/api/public/calls \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "+15551234567",
  "voice_agent_id": "ag_1",
  "from": "1a2b",
  "variables": {
    "first_name": "Jo"
  }
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Your API key (as_live_…), created under Settings → API keys.

Body

application/json
to
string
required
Example:

"+15551234567"

voice_agent_id
string
required
from
string
required

Caller-ID: a number id or E.164.

variables
object

Dynamic variables for the agent prompt.

Response

Success

ok
boolean
Example:

true