Twilio/trunking
@keeb/twilio/trunkingv2026.08.25.2
01README
Twilio trunking API models
02Release Notes
- Updated: credential_list, ip_access_control_list, origination_url, phone_number, trunk
03Models
@keeb/twilio/trunking/credential-listv2026.08.25.2credential_list.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| trunk_sid | string | Path scope for the credential list: trunk_sid |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| credential_list_sid | string | The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a credential list
fn get(id: string)
Get a credential list
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the credential list |
fn lookup(max_items?: number)
List credential lists and record each as a data artifact (capped at 200 by default; writes a credential_list_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the credential_list_lookup record reports truncated: true. |
fn delete(id: string)
Delete the credential list
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the credential list |
fn sync()
Sync credential list state from Twilio
Resources
state(infinite)— Credential list resource state
credential_list_lookup(infinite)— Credential list lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/trunking/ip-access-control-listv2026.08.25.2ip_access_control_list.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| trunk_sid | string | Path scope for the ip access control list: trunk_sid |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| ip_access_control_list_sid | string | The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a ip access control list
fn get(id: string)
Get a ip access control list
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the ip access control list |
fn lookup(max_items?: number)
List ip access control lists and record each as a data artifact (capped at 200 by default; writes a ip_access_control_list_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the ip_access_control_list_lookup record reports truncated: true. |
fn delete(id: string)
Delete the ip access control list
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the ip access control list |
fn sync()
Sync ip access control list state from Twilio
Resources
state(infinite)— Ip access control list resource state
ip_access_control_list_lookup(infinite)— Ip access control list lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/trunking/origination-urlv2026.08.25.2origination_url.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| trunk_sid | string | Path scope for the origination url: trunk_sid |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| weight | number | 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 | number | 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`. |
| friendly_name | string | A descriptive string that you create to describe the resource. It can be up to 64 characters long. |
| sip_url | string | The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a origination url
fn get(id: string)
Get a origination url
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the origination url |
fn lookup(max_items?: number)
List origination urls and record each as a data artifact (capped at 200 by default; writes a origination_url_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the origination_url_lookup record reports truncated: true. |
fn update()
Update origination url attributes
fn delete(id: string)
Delete the origination url
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the origination url |
fn sync()
Sync origination url state from Twilio
Resources
state(infinite)— Origination url resource state
origination_url_lookup(infinite)— Origination url lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/trunking/phone-numberv2026.08.25.2phone_number.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| trunk_sid | string | Path scope for the phone number: trunk_sid |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| phone_number_sid | string | The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a phone number
fn get(id: string)
Get a phone number
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the phone number |
fn lookup(max_items?: number)
List phone numbers and record each as a data artifact (capped at 200 by default; writes a phone_number_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the phone_number_lookup record reports truncated: true. |
fn delete(id: string)
Delete the phone number
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the phone number |
fn sync()
Sync phone number state from Twilio
Resources
state(infinite)— Phone number resource state
phone_number_lookup(infinite)— Phone number lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/trunking/recordingv2026.08.25.1recording.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| trunk_sid | string | Path scope for the recording: trunk_sid |
| name? | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| mode? | enum | The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. |
| trim? | enum | The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn get()
Get a recording
fn update()
Update recording attributes
fn sync()
Sync recording state from Twilio
Resources
state(infinite)— Recording resource state
@keeb/twilio/trunking/trunkv2026.08.25.2trunk.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| friendly_name? | string | A descriptive string that you create to describe the resource. It can be up to 64 characters long. |
| domain_name? | string | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and `-` and must end with `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. |
| disaster_recovery_url | string | |
| disaster_recovery_method? | enum | The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. |
| transfer_mode? | enum | The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. |
| secure? | boolean | Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information |
| cnam_lookup_enabled? | boolean | Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for m |
| transfer_caller_id? | enum | Caller Id for transfer target. Can be: `from-transferee` (default) or `from-transferor`. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a trunk
fn get(id: string)
Get a trunk
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the trunk |
fn lookup(max_items?: number)
List trunks and record each as a data artifact (capped at 200 by default; writes a trunk_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the trunk_lookup record reports truncated: true. |
fn update()
Update trunk attributes
fn delete(id: string)
Delete the trunk
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the trunk |
fn sync()
Sync trunk state from Twilio
Resources
state(infinite)— Trunk resource state
trunk_lookup(infinite)— Trunk lookup coverage — whether the page walk exhausted the collection
04Stats
B
85 / 100
Downloads
0
Archive size
36.7 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository0/2missing
05Platforms
06Labels