---
title: "POST /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}"
method: POST
path: "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}"
tags: ["TrunkingV1OriginationUrl"]
---

# POST /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}

`POST /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}`

## Request

- Base URL: `https://trunking.twilio.com`
- URL: `https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}`
- Auth: HTTP basic

## Path parameters

- `TrunkSid` string, required
- `Sid` string, required

## Request body `application/x-www-form-urlencoded`

- object
  - `Weight` integer: The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority.
  - `Priority` integer: The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI.
  - `Enabled` boolean: Whether the URL is enabled. The default is `true`.
  - `FriendlyName` string: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
  - `SipUrl` string, uri: The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported.

## Response `200`

OK

- TrunkingV1TrunkOriginationUrl
  - `account_sid` string, nullable: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OriginationUrl resource.
  - `sid` string, nullable: The unique string that we created to identify the OriginationUrl resource.
  - `trunk_sid` string, nullable: The SID of the Trunk that owns the Origination URL.
  - `weight` integer: The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority.
  - `enabled` boolean, nullable: Whether the URL is enabled. The default is `true`.
  - `sip_url` string, uri, nullable: The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema.
  - `friendly_name` string, nullable: The string that you assigned to describe the resource.
  - `priority` integer: The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI.
  - `date_created` string, date-time, nullable: The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
  - `date_updated` string, date-time, nullable: The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
  - `url` string, uri, nullable: The absolute URL of the resource.

## Changes

- **2024-08-26** (v1) `2dbaa06d2f0f`: 2 info
  - the `priority` response's property default value `0` was added for the status `200`
  - the `weight` response's property default value `0` was added for the status `200`
- **2023-08-10** (v1) `b6539555f79c`: 1 info
  - api tag `TrunkingV1OriginationUrl` added

[Operation history](https://skmtc.dev/twilio/apis/trunking-v1/changes/v1/Trunks/:TrunkSid/OriginationUrls/:Sid/post.md)

---

[API](https://skmtc.dev/twilio/apis/trunking-v1.md) - [All operations](https://skmtc.dev/twilio/apis/trunking-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/twilio/apis/trunking-v1/revisions/d34f2c6352fa?raw)
