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",
      "enabled": true,
      "name": "<string>",
      "country_code": "AU",
      "phone_type": "local",
      "phone_number": "<string>",
      "voicemail_greeting": "<string>",
      "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": "5d43d75e-8317-4d4d-aefd-3d89dbd24e0c",
    "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-08-19T10:23:31.070-07:00",
      "updated_at": "2025-08-19T10:23:31.106-07:00",
      "alert_urgency_id": "ba8f3071-bfa1-407b-8075-3cbc5089a730",
      "escalation_policy_trigger": {
        "id": "0b96b287-d80f-4b7b-8a8f-789eb4a4a117",
        "type": "service"
      },
      "calling_tree_prompt": "Press 1 for service, Press 2 for escalation policy",
      "paging_targets": [
        {
          "id": "0b96b287-d80f-4b7b-8a8f-789eb4a4a117",
          "type": "service",
          "alert_urgency_id": "a382cf50-c1e4-4ce3-80cb-c684e5e5b211"
        },
        {
          "id": "c227ef89-4d7c-4f8f-89ed-8266fc38069d",
          "type": "escalation_policy",
          "alert_urgency_id": "447161fc-000d-4c51-9ae1-b87a1c5a14d2"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/vnd.api+json

Response

201
application/vnd.api+json

live_call_router created with multiple notification targets

The response is of type object.