POST
/
v1
/
live_call_routers
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": "US",
      "phone_type": "local",
      "phone_number": "<string>",
      "voicemail_greeting": "<string>",
      "caller_greeting": "<string>",
      "waiting_music_url": "<string>",
      "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>",
      "escalation_policy_trigger_params": {
        "id": "<string>",
        "type": "service"
      }
    }
  }
}'
{
  "data": {
    "id": "3aa8dfff-af49-4e73-8219-16df70dc4e9f",
    "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-03-20T17:52:37.219-07:00",
      "updated_at": "2025-03-20T17:52:37.219-07:00",
      "alert_urgency_id": "e42ebceb-2e1e-48dd-9b52-deeb90079a34",
      "escalation_policy_trigger": {
        "id": "e6d610a3-c614-42c6-b245-2515d7c0d902",
        "type": "service"
      }
    }
  }
}

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

201
application/vnd.api+json
live_call_router created
data
object
required

Was this page helpful?