Skip to main content

Make a call

curl -X POST https://developer.mycpaas.io/api/laml/2010-04-01/Accounts/YOUR_ACCOUNT_SID/Calls.json \
  -u YOUR_ACCOUNT_SID:YOUR_AUTH_TOKEN \
  -d "To=+491234567890" \
  -d "From=+491098765432" \
  -d "Url=https://yourserver.com/voice.xml"

Parameters

ParameterRequiredDescription
ToNumber to call (E.164 format)
FromYour mycpaas caller number
UrlURL that returns TwiML to control the call
StatusCallbackWebhook URL for call status updates
StatusCallbackEventEvents to trigger callback (e.g. initiated ringing answered completed)

Response

{
  "sid": "CA_YOUR_CALL_SID",
  "to": "+491234567890",
  "from": "+491098765432",
  "status": "queued",
  "direction": "outbound-api",
  "date_created": "2026-04-19T10:00:00Z"
}

List calls

cURL
curl https://developer.mycpaas.io/api/laml/2010-04-01/Accounts/YOUR_ACCOUNT_SID/Calls.json \
  -u YOUR_ACCOUNT_SID:YOUR_AUTH_TOKEN

Call status values

StatusMeaning
queuedCall accepted, waiting to start
ringingCall is ringing
in-progressCall is active
completedCall ended normally
busyLine was busy
no-answerNot answered
failedTechnical error

Example TwiML response

Your Url endpoint must return valid TwiML:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Say>Hello, this is mycpaas. Thank you for your call.</Say>
  <Pause length="1"/>
  <Say>Goodbye.</Say>
</Response>
Your TwiML server must be publicly reachable. For local testing we recommend ngrok.