Hosted Voice API

Features

Web callback and DID assignment

POST/hostedvoice/activity/place_call

Web callback (click-to-call)

Web callback (click-to-call)

Parameters

extensionstringrequired

Extension number

destinationstringrequired

Number to call

authstringrequired

Base64 encoded: extension@domain:password

Request

curl \
  -X POST \
  "https://n8n2.atomcomm.com/webhook/hostedvoice/hostedvoice/activity/place_call" \
  -H "Authorization: {{access_token}}" \
  -H "Domain-Name: {{domain_name}}" \
  -H "service_id: {{service_id}}" \
  -H "Content-Type: application/json" \
  -d '{
  "extension": "100",
  "destination": "61299999999",
  "auth": "MTAwQGRvbWFpbi5jb206cGFzc3dvcmQ="
}'
Response200 Success
{
  "status": "success"
}
POST/hostedvoice/did/assign

Assign a DID to a user

Assign a DID to a user

Parameters

commandstringrequired

Command type

addassign
did_idintegerrequired

DID ID

user_idintegerrequired

User ID

outbound_clibooleanrequired

Set as outbound caller ID

Request

curl \
  -X POST \
  "https://n8n2.atomcomm.com/webhook/hostedvoice/hostedvoice/did/assign" \
  -H "Authorization: {{access_token}}" \
  -H "Domain-Name: {{domain_name}}" \
  -H "service_id: {{service_id}}" \
  -H "Content-Type: application/json" \
  -d '{
  "command": "assign",
  "did_id": 1,
  "user_id": 5,
  "outbound_cli": true
}'
Response200 Success
{
  "status": "success"
}
Back to API Documentation