Twilio
Since Camel 2.20
Both producer and consumer are supported
The Twilio component provides access to Version 2010-04-01 of Twilio REST APIs accessible using Twilio Java SDK.
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-twilio</artifactId>
<version>${camel-version}</version>
</dependency> Configuring Options
Camel components are configured on two separate levels:
-
component level
-
endpoint level
Configuring Component Options
At the component level, you set general and shared configurations that are, then, inherited by the endpoints. It is the highest configuration level.
For example, a component may have security settings, credentials for authentication, urls for network connection and so forth.
Some components only have a few options, and others may have many. Because components typically have pre-configured defaults that are commonly used, then you may often only need to configure a few options on a component; or none at all.
You can configure components using:
-
the Component DSL.
-
in a configuration file (
application.properties,*.yamlfiles, etc). -
directly in the Java code.
Configuring Endpoint Options
You usually spend more time setting up endpoints because they have many options. These options help you customize what you want the endpoint to do. The options are also categorized into whether the endpoint is used as a consumer (from), as a producer (to), or both.
Configuring endpoints is most often done directly in the endpoint URI as path and query parameters. You can also use the Endpoint DSL and DataFormat DSL as a type safe way of configuring endpoints and data formats in Java.
A good practice when configuring options is to use Property Placeholders.
Property placeholders provide a few benefits:
-
They help prevent using hardcoded urls, port numbers, sensitive information, and other settings.
-
They allow externalizing the configuration from the code.
-
They help the code to become more flexible and reusable.
The following two sections list all the options, firstly for the component followed by the endpoint.
Component Options
The Twilio component supports the following options which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
The shared configuration of the endpoints. It holds only apiName and methodName, which each endpoint takes from its URI, so setting it has no effect. | TwilioConfiguration | ||
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | |
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean | |
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | boolean | |
Autowired The TwilioRestClient to use for all calls. When set, username, password and accountSid are not used. When not set, the component builds a client from them when it starts. | TwilioRestClient | ||
The SID of the account the requests act on, used when a method is called without pathAccountSid. Set it when username is an API key SID, or to act on a subaccount. When not set, username is used. | String | ||
The password of the HTTP basic authentication with Twilio: the Auth Token of the account, or the secret of the API key set in username. | String | ||
The user name of the HTTP basic authentication with Twilio: the Account SID, or the SID of an API key (SK…). Used with password to build the REST client when restClient is not set. | String |
Endpoint Options
The Twilio endpoint is configured using URI syntax:
twilio:apiName/methodName
With the following path and query parameters:
Path Parameters
| Name | Description | Default | Type |
|---|---|---|---|
Required The Twilio resource to use, such as message, call or incoming-phone-number. Each API is a resource class of the Twilio Java SDK under the com.twilio.rest.api.v2010 package, for example message is com.twilio.rest.api.v2010.account.Message. Enum values:
| TwilioApiName | ||
Required The operation on the resource: create, delete, fetch, read or update (the creator, deleter, fetcher, reader and updater methods of the SDK). Not every API has every operation. Enum values:
| String |
Query Parameters
| Name | Description | Default | Type |
|---|---|---|---|
Sets the name of a parameter to be passed in the exchange In Body. | String | ||
If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead. | false | boolean | |
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | |
To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. | ExceptionHandler | ||
Sets the exchange pattern when the consumer creates an exchange. Enum values:
| ExchangePattern | ||
A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel. | PollingConsumerPollStrategy | ||
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean | |
The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in. | int | ||
The number of subsequent idle polls that should happen before the backoffMultipler should kick-in. | int | ||
To let the scheduled polling consumer backoff if there has been a number of subsequent idles/errors in a row. The multiplier is then the number of polls that will be skipped before the next actual attempt is happening again. When this option is in use then backoffIdleThreshold and/or backoffErrorThreshold must also be configured. | int | ||
Milliseconds before the next poll. | 500 | long | |
If greedy is enabled, then the ScheduledPollConsumer will run immediately again, if the previous run polled 1 or more messages. | false | boolean | |
How long a poll may run before the health check of the consumer reports DOWN. The health check is otherwise based on the polls that are done, so it stays UP while a poll hangs, for example on a read without timeout from a connection that went silent. A poll includes routing the messages it polled, so set this above the longest poll you expect. The poll is not interrupted. The value is in millis (not affected by timeUnit). The default 0 turns this off. | 0 | long | |
Milliseconds before the first poll starts. | 1000 | long | |
Specifies a maximum limit of number of fires. So if you set it to 1, the scheduler will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever. | 0 | long | |
The consumer logs a start/complete log line when it polls. This option allows you to configure the logging level for that. Enum values:
| TRACE | LoggingLevel | |
Allows for configuring a custom/shared thread pool to use for the consumer. By default each consumer has its own single threaded thread pool. | ScheduledExecutorService | ||
To use a cron scheduler from either camel-spring or camel-quartz component. Use value spring or quartz for built in scheduler. | none | Object | |
To configure additional properties when using a custom scheduler or any of the Quartz, Spring based scheduler. This is a multi-value option with prefix: scheduler. | Map | ||
Whether the scheduler should be auto started. | true | boolean | |
Time unit for initialDelay and delay options. Enum values:
| MILLISECONDS | TimeUnit | |
Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details. | true | boolean |
API Parameters (54 APIs)
The Twilio endpoint is an API-based component and has additional parameters based on which API name and API method is used. The API name and API method is located in the endpoint URI as the apiName/methodName path parameters:
twilio:apiName/methodName
There are 54 API names as listed in the table below:
| API Name | Type | Description |
|---|---|---|
Both | Provides methods to create subaccounts and to fetch, read and update the account and its subaccounts | |
Both | Provides methods to create, delete, fetch, read and update the addresses of the account, which some phone numbers require | |
Both | Reads the phone numbers that depend on an address | |
Both | Provides methods to create, delete, fetch, read and update the TwiML applications of the account | |
Both | Provides methods to fetch and read the countries in which Twilio has phone numbers available to buy | |
Both | Searches the local phone numbers that are available to buy in a country | |
Both | Searches the mobile phone numbers that are available to buy in a country | |
Both | Searches the toll-free phone numbers that are available to buy in a country | |
Both | Provides methods to make calls (create) and to delete, fetch, read and update calls | |
Both | Provides methods to fetch and read the notifications (errors and warnings) of a call | |
Both | Provides methods to start recording a call (create) and to delete, fetch, read and update the recordings of a call | |
Both | Provides methods to fetch, read and update conferences | |
Both | Provides methods to add (create), remove (delete), fetch, read and update the participants of a conference | |
Both | Provides methods to delete, fetch, read and update the Twilio Connect apps of the account | |
Both | Provides methods to buy (create), release (delete), fetch, read and update the phone numbers of the account | |
Both | Provides methods to buy (create) and read the local phone numbers of the account | |
Both | Provides methods to buy (create) and read the mobile phone numbers of the account | |
Both | Provides methods to buy (create) and read the toll-free phone numbers of the account | |
Both | Provides methods to delete, fetch, read and update the API keys of the account | |
Both | Provides methods to send (create), delete, fetch, read and update SMS and MMS messages | |
Both | Reports the outcome of a message (create): confirmed or unconfirmed | |
Both | Provides methods to delete, fetch and read the media files of a message | |
Both | Creates an API key. The response holds the secret of the key, which Twilio returns only once | |
Both | Creates a signing key. The response holds the secret of the key, which Twilio returns only once | |
Both | Provides methods to fetch and read the notifications (errors and warnings) of the account | |
Both | Provides methods to delete, fetch, read and update the verified caller IDs of the account | |
Both | Provides methods to create, delete, fetch, read and update call queues | |
Both | Provides methods to fetch and read the calls waiting in a queue and to dequeue a call (update) | |
Both | Provides methods to delete, fetch and read the recordings of the account | |
Both | Provides methods to delete, fetch and read the results of the Add-ons that ran on a recording | |
Both | Provides methods to delete, fetch and read the payloads of an Add-on result of a recording | |
Both | Provides methods to delete, fetch and read the transcriptions of a recording | |
Both | Provides methods to fetch, read and update the short codes of the account | |
Both | Provides methods to delete, fetch, read and update the signing keys of the account | |
Both | Provides methods to create, delete, fetch, read and update SIP credential lists | |
Both | Provides methods to create, delete, fetch, read and update the credentials (username and password) of a SIP credential list | |
Both | Provides methods to create, delete, fetch, read and update SIP domains | |
Both | Provides methods to map (create), unmap (delete), fetch and read the credential lists of a SIP domain | |
Both | Provides methods to map (create), unmap (delete), fetch and read the IP access control lists of a SIP domain | |
Both | Provides methods to create, delete, fetch, read and update SIP IP access control lists | |
Both | Provides methods to create, delete, fetch, read and update the IP addresses of a SIP IP access control list | |
Both | Creates a token that holds the Twilio STUN and TURN servers and the credentials to use them | |
Both | Provides methods to delete, fetch and read the transcriptions of the account | |
Both | Reads the usage records of the account, optionally for a category and a date range | |
Both | Reads the usage records of the account over its whole lifetime | |
Both | Reads the usage records of the account per day | |
Both | Reads the usage records of the account for the previous month | |
Both | Reads the usage records of the account per month | |
Both | Reads the usage records of the account for the current month | |
Both | Reads the usage records of the account for today | |
Both | Reads the usage records of the account per year | |
Both | Reads the usage records of the account for yesterday | |
Both | Provides methods to create, delete, fetch, read and update usage triggers, which call a webhook when a usage reaches a value | |
Both | Starts the verification of a phone number as outgoing caller ID: Twilio calls the number and asks for the validation code returned in the response |
Each API is documented in the following sections to come.
API: account
Both producer and consumer are supported
The account API is defined in the syntax as follows:
twilio:account/methodName?[parameters] The 4 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a subaccount; its friendly name can be set as the header CamelTwilio.friendlyName | |
fetch | Fetches an account, by default the account of the Twilio client | |
read | Reads the account of the Twilio client and its subaccounts (all pages); filter with the headers CamelTwilio.friendlyName and CamelTwilio.status | |
update | Updates the friendly name or the status (active, suspended or closed) of an account, set as the headers CamelTwilio.friendlyName and CamelTwilio.status |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.AccountCreator creator();
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.AccountFetcher fetcher();
-
com.twilio.rest.api.v2010.AccountFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathSid | The SID of the account; defaults to the account SID of the Twilio client | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.AccountReader reader();
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method updater
Signatures:
-
com.twilio.rest.api.v2010.AccountUpdater updater();
-
com.twilio.rest.api.v2010.AccountUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathSid | The SID of the account; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: address
Both producer and consumer are supported
The address API is defined in the syntax as follows:
twilio:address/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates an address | |
delete | Deletes an address | |
fetch | Fetches an address | |
read | Reads the addresses of the account (all pages) | |
update | Updates an address |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.AddressCreator creator(String customerName, String street, String city, String region, String postalCode, String isoCountry);
-
com.twilio.rest.api.v2010.account.AddressCreator creator(String pathAccountSid, String customerName, String street, String city, String region, String postalCode, String isoCountry);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
city | The city of the address | String |
customerName | The name of the customer to associate with the address | String |
isoCountry | The ISO 3166-1 alpha-2 code of the country of the address, such as US | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
postalCode | The postal code of the address | String |
region | The state or region of the address | String |
street | The number and street of the address | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.AddressDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.AddressDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the address | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.AddressFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.AddressFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the address | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.AddressReader reader();
-
com.twilio.rest.api.v2010.account.AddressReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.AddressUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.AddressUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the address | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: address-dependent-phone-number
Both producer and consumer are supported
The address-dependent-phone-number API is defined in the syntax as follows:
twilio:address-dependent-phone-number/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the phone numbers that depend on an address (all pages) |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.address.DependentPhoneNumberReader reader(String pathAccountSid, String pathAddressSid);
-
com.twilio.rest.api.v2010.account.address.DependentPhoneNumberReader reader(String pathAddressSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathAddressSid | The SID of the address | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: application
Both producer and consumer are supported
The application API is defined in the syntax as follows:
twilio:application/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a TwiML application | |
delete | Deletes a TwiML application | |
fetch | Fetches a TwiML application | |
read | Reads the TwiML applications of the account (all pages) | |
update | Updates a TwiML application, with the fields to change set as headers such as CamelTwilio.voiceUrl and CamelTwilio.smsUrl |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.ApplicationCreator creator();
-
com.twilio.rest.api.v2010.account.ApplicationCreator creator(String pathAccountSid);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.ApplicationDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ApplicationDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the TwiML application | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.ApplicationFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ApplicationFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the TwiML application | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.ApplicationReader reader();
-
com.twilio.rest.api.v2010.account.ApplicationReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.ApplicationUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ApplicationUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the TwiML application | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: available-phone-number-country
Both producer and consumer are supported
The available-phone-number-country API is defined in the syntax as follows:
twilio:available-phone-number-country/methodName?[parameters] The 2 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
fetch | Fetches a country in which phone numbers are available to buy, with the URIs to search its numbers by type | |
read | Reads the countries in which phone numbers are available to buy (all pages) |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.AvailablePhoneNumberCountryFetcher fetcher(String pathAccountSid, String pathCountryCode);
-
com.twilio.rest.api.v2010.account.AvailablePhoneNumberCountryFetcher fetcher(String pathCountryCode);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCountryCode | The ISO 3166-1 alpha-2 code of the country, such as US | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.AvailablePhoneNumberCountryReader reader();
-
com.twilio.rest.api.v2010.account.AvailablePhoneNumberCountryReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: available-phone-number-country-local
Both producer and consumer are supported
The available-phone-number-country-local API is defined in the syntax as follows:
twilio:available-phone-number-country-local/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Searches the local phone numbers that are available to buy in a country; filter with headers such as CamelTwilio.areaCode and CamelTwilio.contains |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.availablephonenumbercountry.LocalReader reader(String pathAccountSid, String pathCountryCode);
-
com.twilio.rest.api.v2010.account.availablephonenumbercountry.LocalReader reader(String pathCountryCode);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCountryCode | The ISO 3166-1 alpha-2 code of the country, such as US | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: available-phone-number-country-mobile
Both producer and consumer are supported
The available-phone-number-country-mobile API is defined in the syntax as follows:
twilio:available-phone-number-country-mobile/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Searches the mobile phone numbers that are available to buy in a country; filter with headers such as CamelTwilio.areaCode and CamelTwilio.contains |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.availablephonenumbercountry.MobileReader reader(String pathAccountSid, String pathCountryCode);
-
com.twilio.rest.api.v2010.account.availablephonenumbercountry.MobileReader reader(String pathCountryCode);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCountryCode | The ISO 3166-1 alpha-2 code of the country, such as US | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: available-phone-number-country-toll-free
Both producer and consumer are supported
The available-phone-number-country-toll-free API is defined in the syntax as follows:
twilio:available-phone-number-country-toll-free/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Searches the toll-free phone numbers that are available to buy in a country; filter with headers such as CamelTwilio.areaCode and CamelTwilio.contains |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.availablephonenumbercountry.TollFreeReader reader(String pathAccountSid, String pathCountryCode);
-
com.twilio.rest.api.v2010.account.availablephonenumbercountry.TollFreeReader reader(String pathCountryCode);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCountryCode | The ISO 3166-1 alpha-2 code of the country, such as US | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: call
Both producer and consumer are supported
The call API is defined in the syntax as follows:
twilio:call/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Makes an outgoing call | |
delete | Deletes the record of a call from the account; a call in progress cannot be deleted | |
fetch | Fetches a call | |
read | Reads the calls of the account (all pages); filter with headers such as CamelTwilio.to, CamelTwilio.from and CamelTwilio.status | |
update | Redirects a call in progress to other TwiML (header CamelTwilio.url or CamelTwilio.twiml) or ends it (header CamelTwilio.status set to canceled or completed) |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.CallCreator creator(String pathAccountSid, com.twilio.type.Endpoint to, com.twilio.type.Endpoint from, String applicationSid);
-
com.twilio.rest.api.v2010.account.CallCreator creator(String pathAccountSid, com.twilio.type.Endpoint to, com.twilio.type.Endpoint from, com.twilio.type.Twiml twiml);
-
com.twilio.rest.api.v2010.account.CallCreator creator(String pathAccountSid, com.twilio.type.Endpoint to, com.twilio.type.Endpoint from, java.net.URI url);
-
com.twilio.rest.api.v2010.account.CallCreator creator(com.twilio.type.Endpoint to, com.twilio.type.Endpoint from, String applicationSid);
-
com.twilio.rest.api.v2010.account.CallCreator creator(com.twilio.type.Endpoint to, com.twilio.type.Endpoint from, com.twilio.type.Twiml twiml);
-
com.twilio.rest.api.v2010.account.CallCreator creator(com.twilio.type.Endpoint to, com.twilio.type.Endpoint from, java.net.URI url);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
applicationSid | The SID of the TwiML application that handles the call, instead of url or twiml | String |
from | The caller ID of the call: a phone number or client identifier; a phone number must be a Twilio number or a verified outgoing caller ID of the account | Endpoint |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
to | The phone number, SIP address or client identifier to call | Endpoint |
twiml | The TwiML instructions of the call, used instead of fetching them from a url | Twiml |
url | The absolute URL that returns the TwiML instructions of the call | URI |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.CallDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.CallDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the call | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.CallFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.CallFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the call | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.CallReader reader();
-
com.twilio.rest.api.v2010.account.CallReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.CallUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.CallUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the call | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: call-notification
Both producer and consumer are supported
The call-notification API is defined in the syntax as follows:
twilio:call-notification/methodName?[parameters] The 2 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
fetch | Fetches a notification (error or warning) of a call | |
read | Reads the notifications (errors and warnings) of a call (all pages) |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.call.NotificationFetcher fetcher(String pathAccountSid, String pathCallSid, String pathSid);
-
com.twilio.rest.api.v2010.account.call.NotificationFetcher fetcher(String pathCallSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The SID of the call | String |
pathSid | The SID of the notification | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.call.NotificationReader reader(String pathAccountSid, String pathCallSid);
-
com.twilio.rest.api.v2010.account.call.NotificationReader reader(String pathCallSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The SID of the call | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: call-recording
Both producer and consumer are supported
The call-recording API is defined in the syntax as follows:
twilio:call-recording/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Starts recording a call in progress | |
delete | Deletes a recording of a call | |
fetch | Fetches a recording of a call | |
read | Reads the recordings of a call (all pages) | |
update | Pauses, resumes or stops the recording of a call in progress |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.call.RecordingCreator creator(String pathAccountSid, String pathCallSid);
-
com.twilio.rest.api.v2010.account.call.RecordingCreator creator(String pathCallSid);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The SID of the call | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.call.RecordingDeleter deleter(String pathAccountSid, String pathCallSid, String pathSid);
-
com.twilio.rest.api.v2010.account.call.RecordingDeleter deleter(String pathCallSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The SID of the call | String |
pathSid | The SID of the recording | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.call.RecordingFetcher fetcher(String pathAccountSid, String pathCallSid, String pathSid);
-
com.twilio.rest.api.v2010.account.call.RecordingFetcher fetcher(String pathCallSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The SID of the call | String |
pathSid | The SID of the recording | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.call.RecordingReader reader(String pathAccountSid, String pathCallSid);
-
com.twilio.rest.api.v2010.account.call.RecordingReader reader(String pathCallSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The SID of the call | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.call.RecordingUpdater updater(String pathAccountSid, String pathCallSid, String pathSid, com.twilio.rest.api.v2010.account.call.Recording.Status status);
-
com.twilio.rest.api.v2010.account.call.RecordingUpdater updater(String pathCallSid, String pathSid, com.twilio.rest.api.v2010.account.call.Recording.Status status);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The SID of the call | String |
pathSid | The SID of the recording | String |
status | The new status of the recording: paused, in-progress (to resume) or stopped | Status |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: conference
Both producer and consumer are supported
The conference API is defined in the syntax as follows:
twilio:conference/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
fetch | Fetches a conference | |
read | Reads the conferences of the account (all pages); filter with headers such as CamelTwilio.friendlyName and CamelTwilio.status | |
update | Ends a conference in progress (header CamelTwilio.status set to completed) or plays an announcement into it (header CamelTwilio.announceUrl) |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.ConferenceFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ConferenceFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the conference | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.ConferenceReader reader();
-
com.twilio.rest.api.v2010.account.ConferenceReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.ConferenceUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ConferenceUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the conference | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: conference-participant
Both producer and consumer are supported
The conference-participant API is defined in the syntax as follows:
twilio:conference-participant/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Adds a participant to a conference by calling the to address | |
delete | Removes a participant from a conference | |
fetch | Fetches a participant of a conference | |
read | Reads the participants of a conference (all pages) | |
update | Updates a participant of a conference, such as to mute or hold it (headers CamelTwilio.muted and CamelTwilio.hold) |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.conference.ParticipantCreator creator(String pathAccountSid, String pathConferenceSid, com.twilio.type.Endpoint from, com.twilio.type.Endpoint to);
-
com.twilio.rest.api.v2010.account.conference.ParticipantCreator creator(String pathConferenceSid, com.twilio.type.Endpoint from, com.twilio.type.Endpoint to);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
from | The caller ID of the call to the participant: a phone number, client identifier or the username part of a SIP address | Endpoint |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathConferenceSid | The SID of the conference | String |
to | The phone number, SIP address or client identifier to call to add the participant | Endpoint |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.conference.ParticipantDeleter deleter(String pathAccountSid, String pathConferenceSid, String pathCallSid);
-
com.twilio.rest.api.v2010.account.conference.ParticipantDeleter deleter(String pathConferenceSid, String pathCallSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The Call SID or label of the participant | String |
pathConferenceSid | The SID of the conference | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.conference.ParticipantFetcher fetcher(String pathAccountSid, String pathConferenceSid, String pathCallSid);
-
com.twilio.rest.api.v2010.account.conference.ParticipantFetcher fetcher(String pathConferenceSid, String pathCallSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The Call SID or label of the participant | String |
pathConferenceSid | The SID of the conference | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.conference.ParticipantReader reader(String pathAccountSid, String pathConferenceSid);
-
com.twilio.rest.api.v2010.account.conference.ParticipantReader reader(String pathConferenceSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathConferenceSid | The SID of the conference | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.conference.ParticipantUpdater updater(String pathAccountSid, String pathConferenceSid, String pathCallSid);
-
com.twilio.rest.api.v2010.account.conference.ParticipantUpdater updater(String pathConferenceSid, String pathCallSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The Call SID or label of the participant | String |
pathConferenceSid | The SID of the conference | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: connect-app
Both producer and consumer are supported
The connect-app API is defined in the syntax as follows:
twilio:connect-app/methodName?[parameters] The 4 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes a Connect app | |
fetch | Fetches a Connect app | |
read | Reads the Connect apps of the account (all pages) | |
update | Updates a Connect app, with the fields to change set as headers such as CamelTwilio.friendlyName |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.ConnectAppDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ConnectAppDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the Connect app | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.ConnectAppFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ConnectAppFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the Connect app | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.ConnectAppReader reader();
-
com.twilio.rest.api.v2010.account.ConnectAppReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.ConnectAppUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ConnectAppUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the Connect app | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: incoming-phone-number
Both producer and consumer are supported
The incoming-phone-number API is defined in the syntax as follows:
twilio:incoming-phone-number/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Buys a phone number: the given phoneNumber, or any available number in areaCode | |
delete | Releases a phone number from the account | |
fetch | Fetches a phone number of the account | |
read | Reads the phone numbers of the account (all pages); filter with headers such as CamelTwilio.phoneNumber and CamelTwilio.friendlyName | |
update | Updates a phone number of the account, with the fields to change set as headers such as CamelTwilio.voiceUrl and CamelTwilio.smsUrl |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberCreator creator(String areaCode);
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberCreator creator(String pathAccountSid, String areaCode);
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber phoneNumber);
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberCreator creator(com.twilio.type.PhoneNumber phoneNumber);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
areaCode | The area code in which Twilio buys any available phone number, a three-digit US or Canada area code; used instead of phoneNumber | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
phoneNumber | The phone number to buy, in E.164 format | PhoneNumber |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the phone number (IncomingPhoneNumber) | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the phone number (IncomingPhoneNumber) | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberReader reader();
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.IncomingPhoneNumberUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the phone number (IncomingPhoneNumber) | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: incoming-phone-number-local
Both producer and consumer are supported
The incoming-phone-number-local API is defined in the syntax as follows:
twilio:incoming-phone-number-local/methodName?[parameters] The 2 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Buys a local phone number | |
read | Reads the local phone numbers of the account (all pages) |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.incomingphonenumber.LocalCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber phoneNumber);
-
com.twilio.rest.api.v2010.account.incomingphonenumber.LocalCreator creator(com.twilio.type.PhoneNumber phoneNumber);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
phoneNumber | The phone number to buy, in E.164 format | PhoneNumber |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.incomingphonenumber.LocalReader reader();
-
com.twilio.rest.api.v2010.account.incomingphonenumber.LocalReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: incoming-phone-number-mobile
Both producer and consumer are supported
The incoming-phone-number-mobile API is defined in the syntax as follows:
twilio:incoming-phone-number-mobile/methodName?[parameters] The 2 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Buys a mobile phone number | |
read | Reads the mobile phone numbers of the account (all pages) |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.incomingphonenumber.MobileCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber phoneNumber);
-
com.twilio.rest.api.v2010.account.incomingphonenumber.MobileCreator creator(com.twilio.type.PhoneNumber phoneNumber);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
phoneNumber | The phone number to buy, in E.164 format | PhoneNumber |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.incomingphonenumber.MobileReader reader();
-
com.twilio.rest.api.v2010.account.incomingphonenumber.MobileReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: incoming-phone-number-toll-free
Both producer and consumer are supported
The incoming-phone-number-toll-free API is defined in the syntax as follows:
twilio:incoming-phone-number-toll-free/methodName?[parameters] The 2 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Buys a toll-free phone number | |
read | Reads the toll-free phone numbers of the account (all pages) |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.incomingphonenumber.TollFreeCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber phoneNumber);
-
com.twilio.rest.api.v2010.account.incomingphonenumber.TollFreeCreator creator(com.twilio.type.PhoneNumber phoneNumber);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
phoneNumber | The phone number to buy, in E.164 format | PhoneNumber |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.incomingphonenumber.TollFreeReader reader();
-
com.twilio.rest.api.v2010.account.incomingphonenumber.TollFreeReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: key
Both producer and consumer are supported
The key API is defined in the syntax as follows:
twilio:key/methodName?[parameters] The 4 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes an API key | |
fetch | Fetches an API key, without its secret | |
read | Reads the API keys of the account (all pages) | |
update | Updates the friendly name of an API key, set as the header CamelTwilio.friendlyName |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.KeyDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.KeyDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the API key | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.KeyFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.KeyFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the API key | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.KeyReader reader();
-
com.twilio.rest.api.v2010.account.KeyReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.KeyUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.KeyUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the API key | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: message
Both producer and consumer are supported
The message API is defined in the syntax as follows:
twilio:message/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Sends a message, such as an SMS or MMS | |
delete | Deletes a message, with its media and feedback | |
fetch | Fetches a message | |
read | Reads the messages of the account (all pages); filter with the headers CamelTwilio.to, CamelTwilio.from and CamelTwilio.dateSent (or dateSentBefore and dateSentAfter) | |
update | Redacts the body of a message (header CamelTwilio.body set to an empty string) or cancels a scheduled message (header CamelTwilio.status set to canceled) |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.MessageCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber to, String messagingServiceSid, String body);
-
com.twilio.rest.api.v2010.account.MessageCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber to, String messagingServiceSid, java.util.List<java.net.URI> mediaUrl);
-
com.twilio.rest.api.v2010.account.MessageCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber to, com.twilio.type.PhoneNumber from, String body);
-
com.twilio.rest.api.v2010.account.MessageCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber to, com.twilio.type.PhoneNumber from, java.util.List<java.net.URI> mediaUrl);
-
com.twilio.rest.api.v2010.account.MessageCreator creator(com.twilio.type.PhoneNumber to, String messagingServiceSid, String body);
-
com.twilio.rest.api.v2010.account.MessageCreator creator(com.twilio.type.PhoneNumber to, String messagingServiceSid, java.util.List<java.net.URI> mediaUrl);
-
com.twilio.rest.api.v2010.account.MessageCreator creator(com.twilio.type.PhoneNumber to, com.twilio.type.PhoneNumber from, String body);
-
com.twilio.rest.api.v2010.account.MessageCreator creator(com.twilio.type.PhoneNumber to, com.twilio.type.PhoneNumber from, java.util.List<java.net.URI> mediaUrl);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
body | The text of the message, up to 1600 characters | String |
from | The sender: a Twilio phone number in E.164 format, an alphanumeric sender ID, a short code or a channel address; use messagingServiceSid instead to let a Messaging Service pick the sender | PhoneNumber |
mediaUrl | The URLs of the media files to send with the message (MMS) | List |
messagingServiceSid | The SID of the Messaging Service that sends the message; Twilio picks the sender from the sender pool of the service | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
to | The recipient: a phone number in E.164 format or a channel address, such as whatsapp:+15552229999 | PhoneNumber |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.MessageDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.MessageDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the message | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.MessageFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.MessageFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the message | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.MessageReader reader();
-
com.twilio.rest.api.v2010.account.MessageReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.MessageUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.MessageUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the message | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: message-feedback
Both producer and consumer are supported
The message-feedback API is defined in the syntax as follows:
twilio:message-feedback/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Reports the outcome of a message, set as the header CamelTwilio.outcome: confirmed or unconfirmed |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.message.FeedbackCreator creator(String pathAccountSid, String pathMessageSid);
-
com.twilio.rest.api.v2010.account.message.FeedbackCreator creator(String pathMessageSid);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathMessageSid | The SID of the message | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: message-media
Both producer and consumer are supported
The message-media API is defined in the syntax as follows:
twilio:message-media/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes a media file of a message | |
fetch | Fetches the metadata of a media file of a message | |
read | Reads the media files of a message (all pages) |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.message.MediaDeleter deleter(String pathAccountSid, String pathMessageSid, String pathSid);
-
com.twilio.rest.api.v2010.account.message.MediaDeleter deleter(String pathMessageSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathMessageSid | The SID of the message | String |
pathSid | The SID of the media file | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.message.MediaFetcher fetcher(String pathAccountSid, String pathMessageSid, String pathSid);
-
com.twilio.rest.api.v2010.account.message.MediaFetcher fetcher(String pathMessageSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathMessageSid | The SID of the message | String |
pathSid | The SID of the media file | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.message.MediaReader reader(String pathAccountSid, String pathMessageSid);
-
com.twilio.rest.api.v2010.account.message.MediaReader reader(String pathMessageSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathMessageSid | The SID of the message | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: new-key
Both producer and consumer are supported
The new-key API is defined in the syntax as follows:
twilio:new-key/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates an API key; the response holds the secret of the key, which Twilio returns only once |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.NewKeyCreator creator();
-
com.twilio.rest.api.v2010.account.NewKeyCreator creator(String pathAccountSid);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: new-signing-key
Both producer and consumer are supported
The new-signing-key API is defined in the syntax as follows:
twilio:new-signing-key/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a signing key; the response holds the secret of the key, which Twilio returns only once |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.NewSigningKeyCreator creator();
-
com.twilio.rest.api.v2010.account.NewSigningKeyCreator creator(String pathAccountSid);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: notification
Both producer and consumer are supported
The notification API is defined in the syntax as follows:
twilio:notification/methodName?[parameters] The 2 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
fetch | Fetches a notification (error or warning) of the account | |
read | Reads the notifications (errors and warnings) of the account (all pages) |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.NotificationFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.NotificationFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the notification | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.NotificationReader reader();
-
com.twilio.rest.api.v2010.account.NotificationReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: outgoing-caller-id
Both producer and consumer are supported
The outgoing-caller-id API is defined in the syntax as follows:
twilio:outgoing-caller-id/methodName?[parameters] The 4 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes a verified caller ID of the account | |
fetch | Fetches a verified caller ID of the account | |
read | Reads the verified caller IDs of the account (all pages) | |
update | Updates the friendly name of a verified caller ID, set as the header CamelTwilio.friendlyName |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.OutgoingCallerIdDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.OutgoingCallerIdDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the outgoing caller ID | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.OutgoingCallerIdFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.OutgoingCallerIdFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the outgoing caller ID | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.OutgoingCallerIdReader reader();
-
com.twilio.rest.api.v2010.account.OutgoingCallerIdReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.OutgoingCallerIdUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.OutgoingCallerIdUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the outgoing caller ID | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: queue
Both producer and consumer are supported
The queue API is defined in the syntax as follows:
twilio:queue/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a call queue; its maximum size (default 1000, at most 5000) can be set as the header CamelTwilio.maxSize | |
delete | Deletes a call queue | |
fetch | Fetches a call queue | |
read | Reads the call queues of the account (all pages) | |
update | Updates the friendly name or the maximum size of a call queue, set as the headers CamelTwilio.friendlyName and CamelTwilio.maxSize |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.QueueCreator creator(String friendlyName);
-
com.twilio.rest.api.v2010.account.QueueCreator creator(String pathAccountSid, String friendlyName);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
friendlyName | The name of the queue, up to 64 characters | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.QueueDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.QueueDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the queue | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.QueueFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.QueueFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the queue | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.QueueReader reader();
-
com.twilio.rest.api.v2010.account.QueueReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.QueueUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.QueueUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the queue | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: queue-member
Both producer and consumer are supported
The queue-member API is defined in the syntax as follows:
twilio:queue-member/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
fetch | Fetches a call waiting in a queue | |
read | Reads the calls waiting in a queue (all pages) | |
update | Dequeues a call, which then executes the TwiML document at url |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.queue.MemberFetcher fetcher(String pathAccountSid, String pathQueueSid, String pathCallSid);
-
com.twilio.rest.api.v2010.account.queue.MemberFetcher fetcher(String pathQueueSid, String pathCallSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The Call SID of the member, or Front for the member at the front of the queue | String |
pathQueueSid | The SID of the queue | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.queue.MemberReader reader(String pathAccountSid, String pathQueueSid);
-
com.twilio.rest.api.v2010.account.queue.MemberReader reader(String pathQueueSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathQueueSid | The SID of the queue | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.queue.MemberUpdater updater(String pathAccountSid, String pathQueueSid, String pathCallSid, java.net.URI url);
-
com.twilio.rest.api.v2010.account.queue.MemberUpdater updater(String pathQueueSid, String pathCallSid, java.net.URI url);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCallSid | The Call SID of the member, or Front for the member at the front of the queue | String |
pathQueueSid | The SID of the queue | String |
url | The absolute URL of the TwiML document that the dequeued call executes | URI |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: recording
Both producer and consumer are supported
The recording API is defined in the syntax as follows:
twilio:recording/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes a recording | |
fetch | Fetches the metadata of a recording | |
read | Reads the recordings of the account (all pages); filter with headers such as CamelTwilio.callSid and CamelTwilio.dateCreated |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.RecordingDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.RecordingDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the recording | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.RecordingFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.RecordingFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the recording | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.RecordingReader reader();
-
com.twilio.rest.api.v2010.account.RecordingReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: recording-add-on-result
Both producer and consumer are supported
The recording-add-on-result API is defined in the syntax as follows:
twilio:recording-add-on-result/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes an Add-on result of a recording | |
fetch | Fetches an Add-on result of a recording | |
read | Reads the Add-on results of a recording (all pages) |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.recording.AddOnResultDeleter deleter(String pathAccountSid, String pathReferenceSid, String pathSid);
-
com.twilio.rest.api.v2010.account.recording.AddOnResultDeleter deleter(String pathReferenceSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathReferenceSid | The SID of the recording | String |
pathSid | The SID of the Add-on result | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.recording.AddOnResultFetcher fetcher(String pathAccountSid, String pathReferenceSid, String pathSid);
-
com.twilio.rest.api.v2010.account.recording.AddOnResultFetcher fetcher(String pathReferenceSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathReferenceSid | The SID of the recording | String |
pathSid | The SID of the Add-on result | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.recording.AddOnResultReader reader(String pathAccountSid, String pathReferenceSid);
-
com.twilio.rest.api.v2010.account.recording.AddOnResultReader reader(String pathReferenceSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathReferenceSid | The SID of the recording | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: recording-add-on-result-payload
Both producer and consumer are supported
The recording-add-on-result-payload API is defined in the syntax as follows:
twilio:recording-add-on-result-payload/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes a payload of an Add-on result of a recording | |
fetch | Fetches a payload of an Add-on result of a recording | |
read | Reads the payloads of an Add-on result of a recording (all pages) |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.recording.addonresult.PayloadDeleter deleter(String pathAccountSid, String pathReferenceSid, String pathAddOnResultSid, String pathSid);
-
com.twilio.rest.api.v2010.account.recording.addonresult.PayloadDeleter deleter(String pathReferenceSid, String pathAddOnResultSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathAddOnResultSid | The SID of the Add-on result | String |
pathReferenceSid | The SID of the recording | String |
pathSid | The SID of the payload | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.recording.addonresult.PayloadFetcher fetcher(String pathAccountSid, String pathReferenceSid, String pathAddOnResultSid, String pathSid);
-
com.twilio.rest.api.v2010.account.recording.addonresult.PayloadFetcher fetcher(String pathReferenceSid, String pathAddOnResultSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathAddOnResultSid | The SID of the Add-on result | String |
pathReferenceSid | The SID of the recording | String |
pathSid | The SID of the payload | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.recording.addonresult.PayloadReader reader(String pathAccountSid, String pathReferenceSid, String pathAddOnResultSid);
-
com.twilio.rest.api.v2010.account.recording.addonresult.PayloadReader reader(String pathReferenceSid, String pathAddOnResultSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathAddOnResultSid | The SID of the Add-on result | String |
pathReferenceSid | The SID of the recording | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: recording-transcription
Both producer and consumer are supported
The recording-transcription API is defined in the syntax as follows:
twilio:recording-transcription/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes a transcription of a recording | |
fetch | Fetches a transcription of a recording | |
read | Reads the transcriptions of a recording (all pages) |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.recording.TranscriptionDeleter deleter(String pathAccountSid, String pathRecordingSid, String pathSid);
-
com.twilio.rest.api.v2010.account.recording.TranscriptionDeleter deleter(String pathRecordingSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathRecordingSid | The SID of the recording | String |
pathSid | The SID of the transcription | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.recording.TranscriptionFetcher fetcher(String pathAccountSid, String pathRecordingSid, String pathSid);
-
com.twilio.rest.api.v2010.account.recording.TranscriptionFetcher fetcher(String pathRecordingSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathRecordingSid | The SID of the recording | String |
pathSid | The SID of the transcription | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.recording.TranscriptionReader reader(String pathAccountSid, String pathRecordingSid);
-
com.twilio.rest.api.v2010.account.recording.TranscriptionReader reader(String pathRecordingSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathRecordingSid | The SID of the recording | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: short-code
Both producer and consumer are supported
The short-code API is defined in the syntax as follows:
twilio:short-code/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
fetch | Fetches a short code of the account | |
read | Reads the short codes of the account (all pages) | |
update | Updates a short code, with the fields to change set as headers such as CamelTwilio.friendlyName and CamelTwilio.smsUrl |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.ShortCodeFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ShortCodeFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the short code | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.ShortCodeReader reader();
-
com.twilio.rest.api.v2010.account.ShortCodeReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.ShortCodeUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.ShortCodeUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the short code | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: signing-key
Both producer and consumer are supported
The signing-key API is defined in the syntax as follows:
twilio:signing-key/methodName?[parameters] The 4 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes a signing key | |
fetch | Fetches a signing key, without its secret | |
read | Reads the signing keys of the account (all pages) | |
update | Updates the friendly name of a signing key, set as the header CamelTwilio.friendlyName |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.SigningKeyDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.SigningKeyDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the signing key | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.SigningKeyFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.SigningKeyFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the signing key | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.SigningKeyReader reader();
-
com.twilio.rest.api.v2010.account.SigningKeyReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.SigningKeyUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.SigningKeyUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the signing key | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: sip-credential-list
Both producer and consumer are supported
The sip-credential-list API is defined in the syntax as follows:
twilio:sip-credential-list/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a SIP credential list | |
delete | Deletes a SIP credential list | |
fetch | Fetches a SIP credential list | |
read | Reads the SIP credential lists of the account (all pages) | |
update | Updates the friendly name of a SIP credential list |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.sip.CredentialListCreator creator(String friendlyName);
-
com.twilio.rest.api.v2010.account.sip.CredentialListCreator creator(String pathAccountSid, String friendlyName);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
friendlyName | The friendly name of the credential list, up to 64 characters | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.sip.CredentialListDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.CredentialListDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the credential list | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.sip.CredentialListFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.CredentialListFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the credential list | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.sip.CredentialListReader reader();
-
com.twilio.rest.api.v2010.account.sip.CredentialListReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.sip.CredentialListUpdater updater(String pathAccountSid, String pathSid, String friendlyName);
-
com.twilio.rest.api.v2010.account.sip.CredentialListUpdater updater(String pathSid, String friendlyName);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
friendlyName | The friendly name of the credential list, up to 64 characters | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the credential list | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: sip-credential-list-credential
Both producer and consumer are supported
The sip-credential-list-credential API is defined in the syntax as follows:
twilio:sip-credential-list-credential/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Adds a credential (username and password) to a SIP credential list | |
delete | Deletes a credential of a SIP credential list | |
fetch | Fetches a credential of a SIP credential list | |
read | Reads the credentials of a SIP credential list (all pages) | |
update | Changes the password of a credential of a SIP credential list |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialCreator creator(String pathAccountSid, String pathCredentialListSid, String username, String password);
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialCreator creator(String pathCredentialListSid, String username, String password);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
password | The password for SIP authentication: at least 12 characters, with at least one digit and mixed case | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCredentialListSid | The SID of the credential list | String |
username | The username for SIP authentication, up to 32 characters | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialDeleter deleter(String pathAccountSid, String pathCredentialListSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialDeleter deleter(String pathCredentialListSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCredentialListSid | The SID of the credential list | String |
pathSid | The SID of the credential | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialFetcher fetcher(String pathAccountSid, String pathCredentialListSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialFetcher fetcher(String pathCredentialListSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCredentialListSid | The SID of the credential list | String |
pathSid | The SID of the credential | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialReader reader(String pathAccountSid, String pathCredentialListSid);
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialReader reader(String pathCredentialListSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCredentialListSid | The SID of the credential list | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialUpdater updater(String pathAccountSid, String pathCredentialListSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialUpdater updater(String pathCredentialListSid, String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathCredentialListSid | The SID of the credential list | String |
pathSid | The SID of the credential | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: sip-domain
Both producer and consumer are supported
The sip-domain API is defined in the syntax as follows:
twilio:sip-domain/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a SIP domain | |
delete | Deletes a SIP domain | |
fetch | Fetches a SIP domain | |
read | Reads the SIP domains of the account (all pages) | |
update | Updates a SIP domain, with the fields to change set as headers such as CamelTwilio.voiceUrl |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.sip.DomainCreator creator(String domainName);
-
com.twilio.rest.api.v2010.account.sip.DomainCreator creator(String pathAccountSid, String domainName);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
domainName | The unique address of the domain to which SIP traffic is routed; letters, digits and - only, ending with sip.twilio.com | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.sip.DomainDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.DomainDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the SIP domain | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.sip.DomainFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.DomainFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the SIP domain | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.sip.DomainReader reader();
-
com.twilio.rest.api.v2010.account.sip.DomainReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.sip.DomainUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.DomainUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the SIP domain | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: sip-domain-credential-list-mapping
Both producer and consumer are supported
The sip-domain-credential-list-mapping API is defined in the syntax as follows:
twilio:sip-domain-credential-list-mapping/methodName?[parameters] The 4 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Maps a credential list to a SIP domain | |
delete | Removes the mapping of a credential list from a SIP domain | |
fetch | Fetches a credential list mapping of a SIP domain | |
read | Reads the credential list mappings of a SIP domain (all pages) |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.sip.domain.CredentialListMappingCreator creator(String pathAccountSid, String pathDomainSid, String credentialListSid);
-
com.twilio.rest.api.v2010.account.sip.domain.CredentialListMappingCreator creator(String pathDomainSid, String credentialListSid);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
credentialListSid | The SID of the credential list to map to the domain | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathDomainSid | The SID of the SIP domain | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.sip.domain.CredentialListMappingDeleter deleter(String pathAccountSid, String pathDomainSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.domain.CredentialListMappingDeleter deleter(String pathDomainSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathDomainSid | The SID of the SIP domain | String |
pathSid | The SID of the credential list mapping | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.sip.domain.CredentialListMappingFetcher fetcher(String pathAccountSid, String pathDomainSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.domain.CredentialListMappingFetcher fetcher(String pathDomainSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathDomainSid | The SID of the SIP domain | String |
pathSid | The SID of the credential list mapping | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.sip.domain.CredentialListMappingReader reader(String pathAccountSid, String pathDomainSid);
-
com.twilio.rest.api.v2010.account.sip.domain.CredentialListMappingReader reader(String pathDomainSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathDomainSid | The SID of the SIP domain | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: sip-domain-ip-access-control-list-mapping
Both producer and consumer are supported
The sip-domain-ip-access-control-list-mapping API is defined in the syntax as follows:
twilio:sip-domain-ip-access-control-list-mapping/methodName?[parameters] The 4 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Maps an IP access control list to a SIP domain | |
delete | Removes the mapping of an IP access control list from a SIP domain | |
fetch | Fetches an IP access control list mapping of a SIP domain | |
read | Reads the IP access control list mappings of a SIP domain (all pages) |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.sip.domain.IpAccessControlListMappingCreator creator(String pathAccountSid, String pathDomainSid, String ipAccessControlListSid);
-
com.twilio.rest.api.v2010.account.sip.domain.IpAccessControlListMappingCreator creator(String pathDomainSid, String ipAccessControlListSid);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ipAccessControlListSid | The SID of the IP access control list to map to the domain | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathDomainSid | The SID of the SIP domain | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.sip.domain.IpAccessControlListMappingDeleter deleter(String pathAccountSid, String pathDomainSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.domain.IpAccessControlListMappingDeleter deleter(String pathDomainSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathDomainSid | The SID of the SIP domain | String |
pathSid | The SID of the IP access control list mapping | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.sip.domain.IpAccessControlListMappingFetcher fetcher(String pathAccountSid, String pathDomainSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.domain.IpAccessControlListMappingFetcher fetcher(String pathDomainSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathDomainSid | The SID of the SIP domain | String |
pathSid | The SID of the IP access control list mapping | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.sip.domain.IpAccessControlListMappingReader reader(String pathAccountSid, String pathDomainSid);
-
com.twilio.rest.api.v2010.account.sip.domain.IpAccessControlListMappingReader reader(String pathDomainSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathDomainSid | The SID of the SIP domain | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: sip-ip-access-control-list
Both producer and consumer are supported
The sip-ip-access-control-list API is defined in the syntax as follows:
twilio:sip-ip-access-control-list/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a SIP IP access control list | |
delete | Deletes a SIP IP access control list | |
fetch | Fetches a SIP IP access control list | |
read | Reads the SIP IP access control lists of the account (all pages) | |
update | Updates the friendly name of a SIP IP access control list |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListCreator creator(String friendlyName);
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListCreator creator(String pathAccountSid, String friendlyName);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
friendlyName | The friendly name of the IP access control list, up to 255 characters | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the IP access control list | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the IP access control list | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListReader reader();
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListUpdater updater(String pathAccountSid, String pathSid, String friendlyName);
-
com.twilio.rest.api.v2010.account.sip.IpAccessControlListUpdater updater(String pathSid, String friendlyName);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
friendlyName | The friendly name of the IP access control list, up to 255 characters | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the IP access control list | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: sip-ip-access-control-list-ip-address
Both producer and consumer are supported
The sip-ip-access-control-list-ip-address API is defined in the syntax as follows:
twilio:sip-ip-access-control-list-ip-address/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Adds an IP address to a SIP IP access control list | |
delete | Removes an IP address from a SIP IP access control list | |
fetch | Fetches an IP address of a SIP IP access control list | |
read | Reads the IP addresses of a SIP IP access control list (all pages) | |
update | Updates an IP address of a SIP IP access control list |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressCreator creator(String pathAccountSid, String pathIpAccessControlListSid, String friendlyName, String ipAddress);
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressCreator creator(String pathIpAccessControlListSid, String friendlyName, String ipAddress);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
friendlyName | The friendly name of the IP address, up to 255 characters | String |
ipAddress | The IPv4 address, in dotted decimal notation, from which Twilio accepts SIP requests | String |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathIpAccessControlListSid | The SID of the IP access control list | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressDeleter deleter(String pathAccountSid, String pathIpAccessControlListSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressDeleter deleter(String pathIpAccessControlListSid, String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathIpAccessControlListSid | The SID of the IP access control list | String |
pathSid | The SID of the IP address resource | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressFetcher fetcher(String pathAccountSid, String pathIpAccessControlListSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressFetcher fetcher(String pathIpAccessControlListSid, String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathIpAccessControlListSid | The SID of the IP access control list | String |
pathSid | The SID of the IP address resource | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressReader reader(String pathAccountSid, String pathIpAccessControlListSid);
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressReader reader(String pathIpAccessControlListSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathIpAccessControlListSid | The SID of the IP access control list | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressUpdater updater(String pathAccountSid, String pathIpAccessControlListSid, String pathSid);
-
com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddressUpdater updater(String pathIpAccessControlListSid, String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathIpAccessControlListSid | The SID of the IP access control list | String |
pathSid | The SID of the IP address resource | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: token
Both producer and consumer are supported
The token API is defined in the syntax as follows:
twilio:token/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a token that holds the Twilio STUN and TURN servers and the credentials to use them |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.TokenCreator creator();
-
com.twilio.rest.api.v2010.account.TokenCreator creator(String pathAccountSid);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: transcription
Both producer and consumer are supported
The transcription API is defined in the syntax as follows:
twilio:transcription/methodName?[parameters] The 3 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
delete | Deletes a transcription | |
fetch | Fetches a transcription | |
read | Reads the transcriptions of the account (all pages) |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.TranscriptionDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.TranscriptionDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the transcription | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.TranscriptionFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.TranscriptionFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the transcription | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.TranscriptionReader reader();
-
com.twilio.rest.api.v2010.account.TranscriptionReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record
Both producer and consumer are supported
The usage-record API is defined in the syntax as follows:
twilio:usage-record/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account (all pages); filter with the headers CamelTwilio.category, CamelTwilio.startDate and CamelTwilio.endDate |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.RecordReader reader();
-
com.twilio.rest.api.v2010.account.usage.RecordReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record-all-time
Both producer and consumer are supported
The usage-record-all-time API is defined in the syntax as follows:
twilio:usage-record-all-time/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account, one per usage category over the whole date range (all pages); filter with the headers CamelTwilio.category, CamelTwilio.startDate and CamelTwilio.endDate |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.record.AllTimeReader reader();
-
com.twilio.rest.api.v2010.account.usage.record.AllTimeReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record-daily
Both producer and consumer are supported
The usage-record-daily API is defined in the syntax as follows:
twilio:usage-record-daily/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account, one per day and usage category (all pages) |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.record.DailyReader reader();
-
com.twilio.rest.api.v2010.account.usage.record.DailyReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record-last-month
Both producer and consumer are supported
The usage-record-last-month API is defined in the syntax as follows:
twilio:usage-record-last-month/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account for the previous month (all pages) |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.record.LastMonthReader reader();
-
com.twilio.rest.api.v2010.account.usage.record.LastMonthReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record-monthly
Both producer and consumer are supported
The usage-record-monthly API is defined in the syntax as follows:
twilio:usage-record-monthly/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account, one per month and usage category (all pages) |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.record.MonthlyReader reader();
-
com.twilio.rest.api.v2010.account.usage.record.MonthlyReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record-this-month
Both producer and consumer are supported
The usage-record-this-month API is defined in the syntax as follows:
twilio:usage-record-this-month/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account for the current month (all pages) |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.record.ThisMonthReader reader();
-
com.twilio.rest.api.v2010.account.usage.record.ThisMonthReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record-today
Both producer and consumer are supported
The usage-record-today API is defined in the syntax as follows:
twilio:usage-record-today/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account for today (all pages) |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.record.TodayReader reader();
-
com.twilio.rest.api.v2010.account.usage.record.TodayReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record-yearly
Both producer and consumer are supported
The usage-record-yearly API is defined in the syntax as follows:
twilio:usage-record-yearly/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account, one per year and usage category (all pages) |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.record.YearlyReader reader();
-
com.twilio.rest.api.v2010.account.usage.record.YearlyReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-record-yesterday
Both producer and consumer are supported
The usage-record-yesterday API is defined in the syntax as follows:
twilio:usage-record-yesterday/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
read | Reads the usage records of the account for yesterday (all pages) |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.record.YesterdayReader reader();
-
com.twilio.rest.api.v2010.account.usage.record.YesterdayReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: usage-trigger
Both producer and consumer are supported
The usage-trigger API is defined in the syntax as follows:
twilio:usage-trigger/methodName?[parameters] The 5 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Creates a usage trigger, which calls callbackUrl when the usage of a category reaches a value | |
delete | Deletes a usage trigger | |
fetch | Fetches a usage trigger | |
read | Reads the usage triggers of the account (all pages) | |
update | Updates the callback URL, callback method or friendly name of a usage trigger (headers CamelTwilio.callbackUrl, CamelTwilio.callbackMethod and CamelTwilio.friendlyName); its category and value cannot be changed |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.usage.TriggerCreator creator(String pathAccountSid, java.net.URI callbackUrl, String triggerValue, String usageCategory);
-
com.twilio.rest.api.v2010.account.usage.TriggerCreator creator(java.net.URI callbackUrl, String triggerValue, String usageCategory);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
callbackUrl | The URL that Twilio calls when the trigger fires | URI |
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
triggerValue | The usage value at which the trigger fires; an offset such as +30 means 30 units more than the current usage (in an endpoint URI write it as RAW(+30), as + means a space) | String |
usageCategory | The usage category that the trigger watches, such as sms or calls | String |
Method deleter
Signatures:
-
com.twilio.rest.api.v2010.account.usage.TriggerDeleter deleter(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.usage.TriggerDeleter deleter(String pathSid);
The twilio/deleter API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the usage trigger | String |
Method fetcher
Signatures:
-
com.twilio.rest.api.v2010.account.usage.TriggerFetcher fetcher(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.usage.TriggerFetcher fetcher(String pathSid);
The twilio/fetcher API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the usage trigger | String |
Method reader
Signatures:
-
com.twilio.rest.api.v2010.account.usage.TriggerReader reader();
-
com.twilio.rest.api.v2010.account.usage.TriggerReader reader(String pathAccountSid);
The twilio/reader API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
Method updater
Signatures:
-
com.twilio.rest.api.v2010.account.usage.TriggerUpdater updater(String pathAccountSid, String pathSid);
-
com.twilio.rest.api.v2010.account.usage.TriggerUpdater updater(String pathSid);
The twilio/updater API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
pathSid | The SID of the usage trigger | String |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
API: validation-request
Both producer and consumer are supported
The validation-request API is defined in the syntax as follows:
twilio:validation-request/methodName?[parameters] The 1 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
create | Starts the verification of a phone number as an outgoing caller ID: Twilio calls the number and asks for the validation code that is returned in the response |
Method creator
Signatures:
-
com.twilio.rest.api.v2010.account.ValidationRequestCreator creator(String pathAccountSid, com.twilio.type.PhoneNumber phoneNumber);
-
com.twilio.rest.api.v2010.account.ValidationRequestCreator creator(com.twilio.type.PhoneNumber phoneNumber);
The twilio/creator API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pathAccountSid | The SID of the account that owns the resource; defaults to the account SID of the Twilio client | String |
phoneNumber | The phone number to verify, in E.164 format | PhoneNumber |
In addition to the parameters above, the twilio API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelTwilio.myParameterNameHere header.
Message Headers
The Twilio component supports the following message header(s), which is/are listed below:
| Name | Description | Default | Type |
|---|---|---|---|
| Constant: | The prefix of the headers that carry the parameters of the API method: the header CamelTwilio.pathAccountSid holds the pathAccountSid parameter. The name without the dot, such as CamelTwilioPathAccountSid, works too. | Object |
Message Body
The message body at each side of the Twilio component: Consumer is the body of the messages the consumer creates, Consumer reply the bodies a consumer that answers its caller can reply with, Producer input the bodies the producer can send or write, and Producer output the body after the producer.
| Side | Body | Description |
|---|---|---|
Consumer |
| One message per poll with the resource of the method, such as the Message of message/fetch. read is split into one message per resource, and all its pages are read. |
Producer input |
| The body is used only when inBody names a parameter of the method, and must then be of the type of that parameter: text for body of message/create or for a sid such as pathSid, a com.twilio.type.PhoneNumber for to and from. Without inBody the arguments come from the options and the CamelTwilio. headers. Not known when |
Producer output |
| The resource of the method, such as the Message of message/create and message/fetch or the Call of call/create. read gives a ResourceSet, which reads the next pages from Twilio while it is iterated, and delete a Boolean. |
The bodies are the ones with the default options. A side that is not listed is not known, and tooling does not guess it. The carriers, the sides and the tools that use them are described in Message Body Types.
| This is an API-based component, so per-call parameters can be supplied through |
Usage
Producer Endpoints:
Producer endpoints can use endpoint prefixes followed by endpoint names and associated options described next. A shorthand alias can be used for all the endpoints. The endpoint URI MUST contain a prefix.
Any of the endpoint options can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelTwilio.<option>. Note that the inBody option overrides message header, i.e., the endpoint option inBody=option would override a CamelTwilio.option header.
Endpoint can be one of:
| Endpoint | Shorthand Alias | Description |
|---|---|---|
creator | create | Make the request to the Twilio API to perform the |
deleter | delete | Make the request to the Twilio API to perform the |
fetcher | fetch | Make the request to the Twilio API to perform the |
reader | read | Make the request to the Twilio API to perform the |
updater | update | Make the request to the Twilio API to perform the |
Available endpoints differ depending on the endpoint prefixes.
For more information on the endpoints and options, see Twilio API documentation.
Example
The account and its auth token are component options, for example in application.properties:
camel.component.twilio.username = {{env:TWILIO_ACCOUNT_SID}}
camel.component.twilio.password = {{env:TWILIO_AUTH_TOKEN}}
camel.component.twilio.account-sid = {{env:TWILIO_ACCOUNT_SID}} The following route makes a phone call that plays the TwiML document at url. A phone number starts with +, so it is written as RAW(…) in the endpoint options. The body of the reply is the Call resource of the Twilio API:
- route:
from:
uri: direct:call
steps:
- to:
uri: twilio:call/create
parameters:
from: "RAW(+15005550006)"
to: "RAW(+14108675310)"
url: http://demo.twilio.com/docs/voice.xml
- log:
message: "Call ${body.sid} is ${body.status}"