<aside> 📞

Click-to-Call Integration

</aside>

Click-to-Call lets your application place a call for a user: it rings the user's phone first, and when they answer, connects them to the number you asked for. There are two ways to integrate, and both are supported:


Simple API (recommended)

One request places the call. No session cookies or redirects to manage.

curl -X POST '<https://call.vaspian.com/v1/call>' \
  -H 'content-type: application/json' \
  -d '{"did":"2125551000","ext":"100","pin":"****","to":"(212) 555-1212"}'

Response:

{"ok":true,"status":"submitted","ext":"100","to":"+12125551212","message":"Ringing ext 100; answer to connect to +12125551212"}

Request fields

Send a JSON body (content-type: application/json) to POST <https://call.vaspian.com/v1/call>.

<aside> 📱

Call Flow: The extension's default click-to-call phone (set in the Vaspian portal under My Phones) rings first. When it's answered, the call connects to the to number.

</aside>