---
title: "Create least cost routing routes and carrier set entries"
method: POST
path: "/Lcrs/{LcrSid}/Routes"
tags: ["Call Routing"]
---

# Create least cost routing routes and carrier set entries

`POST /Lcrs/{LcrSid}/Routes`

## Request

- Base URL: `https://api.jambonz.cloud/v1`
- URL: `https://api.jambonz.cloud/v1/Lcrs/{LcrSid}/Routes`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/jambonz/apis/jambonz-api/docs/Lcrs/:LcrSid/Routes/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- LcrRouteAndCarrierEntries[]
  - `lcr_sid` string, required
  - `regex` string, required: out going call Phone number regex
  - `priority` integer, required
  - `description` string
  - `lcr_carrier_set_entries` LcrCarrierSetEntry[]
    - `workload` integer: traffic distribution value
    - `lcr_route_sid` string, required
    - `voip_carrier_sid` string, required
    - `priority` integer, required

## Response `204`

least cost routing routes and carrier set entries created

## Other responses

- `400`: bad request
- `404`: least cost routing not found
- `500`: system error

## Changes

- **2025-03-06** `d813879165bf`: 3 breaking
  - the `items/allOf[#/components/schemas/LcrRoute]/priority` request property type changed from `number` to `integer`
  - the `items/allOf[subschema #2]/lcr_carrier_set_entries/items/priority` request property type changed from `number` to `integer`
  - the `items/allOf[subschema #2]/lcr_carrier_set_entries/items/workload` request property type changed from `number` to `integer`

[Operation history](https://skmtc.dev/jambonz/apis/jambonz-api/changes/Lcrs/:LcrSid/Routes/post.md)

---

[API](https://skmtc.dev/jambonz/apis/jambonz-api.md) - [All operations](https://skmtc.dev/jambonz/apis/jambonz-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jambonz/apis/jambonz-api/revisions/4eaeaaf99e88?raw)
