Skip to main content
POST
/
v1
/
live_call_routers
Creates a Live Call Router
curl --request POST \
  --url https://api.rootly.com/v1/live_call_routers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "type": "live_call_routers",
    "attributes": {
      "kind": "voicemail",
      "name": "<string>",
      "country_code": "AU",
      "phone_type": "local",
      "phone_number": "<string>",
      "voicemail_greeting": "<string>",
      "enabled": true,
      "caller_greeting": "<string>",
      "waiting_music_url": "https://storage.rootly.com/twilio/voicemail/ClockworkWaltz.mp3",
      "sent_to_voicemail_delay": 123,
      "should_redirect_to_voicemail_on_no_answer": true,
      "escalation_level_delay_in_seconds": 123,
      "should_auto_resolve_alert_on_call_end": true,
      "alert_urgency_id": "<string>",
      "calling_tree_prompt": "<string>",
      "paging_targets": [
        {
          "id": "<string>",
          "type": "service",
          "alert_urgency_id": "<string>"
        }
      ],
      "escalation_policy_trigger_params": {
        "id": "<string>",
        "type": "service"
      }
    }
  }
}
'
{
  "data": {
    "id": "e4ddb303-73a0-483b-bde4-e9dfd5c2adcf",
    "type": "live_call_routers",
    "attributes": {
      "kind": "voicemail",
      "name": "live_call_router-prod",
      "country_code": "US",
      "phone_type": "toll_free",
      "phone_number": "+14155552344",
      "voicemail_greeting": "hello",
      "slug": "live_call_router-prod",
      "enabled": true,
      "created_at": "2025-12-21T12:09:55.458-08:00",
      "updated_at": "2025-12-21T12:09:55.475-08:00",
      "calling_tree_prompt": "Press 1 for service, Press 2 for escalation policy",
      "paging_targets": [
        {
          "id": "4ccfc9e2-3b68-445f-ab0c-ac1b23dc430c",
          "type": "service",
          "alert_urgency_id": "0d3c29d6-26cd-4394-a00d-c6ce492e95f2"
        },
        {
          "id": "ee973293-dc45-4678-94f2-9ed9e36aa32d",
          "type": "escalation_policy",
          "alert_urgency_id": "b8726fbc-fac1-4653-9c6c-ad4bb65af3c1"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object
required

Response

live_call_router created with multiple notification targets

data
object
required