Camel Components

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, *.yaml files, 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

configuration (common)

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

bridgeErrorHandler (consumer)

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

lazyStartProducer (producer)

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

autowiredEnabled (advanced)

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

restClient (advanced)

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

accountSid (security)

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

password (security)

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

username (security)

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

apiName (common)

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:

  • ACCOUNT

  • ADDRESS

  • APPLICATION

  • AVAILABLE_PHONE_NUMBER_COUNTRY

  • CALL

  • CONFERENCE

  • CONNECT_APP

  • INCOMING_PHONE_NUMBER

  • KEY

  • MESSAGE

  • NEW_KEY

  • NEW_SIGNING_KEY

  • NOTIFICATION

  • OUTGOING_CALLER_ID

  • QUEUE

  • RECORDING

  • SHORT_CODE

  • SIGNING_KEY

  • TOKEN

  • TRANSCRIPTION

  • VALIDATION_REQUEST

  • ADDRESS_DEPENDENT_PHONE_NUMBER

  • AVAILABLE_PHONE_NUMBER_COUNTRY_LOCAL

  • AVAILABLE_PHONE_NUMBER_COUNTRY_MOBILE

  • AVAILABLE_PHONE_NUMBER_COUNTRY_TOLL_FREE

  • CALL_NOTIFICATION

  • CALL_RECORDING

  • CONFERENCE_PARTICIPANT

  • INCOMING_PHONE_NUMBER_LOCAL

  • INCOMING_PHONE_NUMBER_MOBILE

  • INCOMING_PHONE_NUMBER_TOLL_FREE

  • MESSAGE_FEEDBACK

  • MESSAGE_MEDIA

  • QUEUE_MEMBER

  • RECORDING_ADD_ON_RESULT

  • RECORDING_TRANSCRIPTION

  • RECORDING_ADD_ON_RESULT_PAYLOAD

  • SIP_CREDENTIAL_LIST

  • SIP_DOMAIN

  • SIP_IP_ACCESS_CONTROL_LIST

  • SIP_CREDENTIAL_LIST_CREDENTIAL

  • SIP_DOMAIN_CREDENTIAL_LIST_MAPPING

  • SIP_DOMAIN_IP_ACCESS_CONTROL_LIST_MAPPING

  • SIP_IP_ACCESS_CONTROL_LIST_IP_ADDRESS

  • USAGE_RECORD

  • USAGE_TRIGGER

  • USAGE_RECORD_ALL_TIME

  • USAGE_RECORD_DAILY

  • USAGE_RECORD_LAST_MONTH

  • USAGE_RECORD_MONTHLY

  • USAGE_RECORD_THIS_MONTH

  • USAGE_RECORD_TODAY

  • USAGE_RECORD_YEARLY

  • USAGE_RECORD_YESTERDAY

TwilioApiName

methodName (common)

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:

  • create

  • delete

  • fetch

  • read

  • update

String

Query Parameters

Name Description Default Type

inBody (common)

Sets the name of a parameter to be passed in the exchange In Body.

String

sendEmptyMessageWhenIdle (consumer)

If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead.

false

boolean

bridgeErrorHandler (consumer (advanced))

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

exceptionHandler (consumer (advanced))

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

exchangePattern (consumer (advanced))

Sets the exchange pattern when the consumer creates an exchange.

Enum values:

  • InOnly

  • InOut

ExchangePattern

pollStrategy (consumer (advanced))

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

lazyStartProducer (producer (advanced))

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

backoffErrorThreshold (scheduler)

The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in.

int

backoffIdleThreshold (scheduler)

The number of subsequent idle polls that should happen before the backoffMultipler should kick-in.

int

backoffMultiplier (scheduler)

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

delay (scheduler)

Milliseconds before the next poll.

500

long

greedy (scheduler)

If greedy is enabled, then the ScheduledPollConsumer will run immediately again, if the previous run polled 1 or more messages.

false

boolean

healthCheckMaxPollDuration (scheduler)

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

initialDelay (scheduler)

Milliseconds before the first poll starts.

1000

long

repeatCount (scheduler)

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

runLoggingLevel (scheduler)

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

  • DEBUG

  • INFO

  • WARN

  • ERROR

  • OFF

TRACE

LoggingLevel

scheduledExecutorService (scheduler)

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

scheduler (scheduler)

To use a cron scheduler from either camel-spring or camel-quartz component. Use value spring or quartz for built in scheduler.

none

Object

schedulerProperties (scheduler)

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

startScheduler (scheduler)

Whether the scheduler should be auto started.

true

boolean

timeUnit (scheduler)

Time unit for initialDelay and delay options.

Enum values:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

MILLISECONDS

TimeUnit

useFixedDelay (scheduler)

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

account

Both

Provides methods to create subaccounts and to fetch, read and update the account and its subaccounts

address

Both

Provides methods to create, delete, fetch, read and update the addresses of the account, which some phone numbers require

address-dependent-phone-number

Both

Reads the phone numbers that depend on an address

application

Both

Provides methods to create, delete, fetch, read and update the TwiML applications of the account

available-phone-number-country

Both

Provides methods to fetch and read the countries in which Twilio has phone numbers available to buy

available-phone-number-country-local

Both

Searches the local phone numbers that are available to buy in a country

available-phone-number-country-mobile

Both

Searches the mobile phone numbers that are available to buy in a country

available-phone-number-country-toll-free

Both

Searches the toll-free phone numbers that are available to buy in a country

call

Both

Provides methods to make calls (create) and to delete, fetch, read and update calls

call-notification

Both

Provides methods to fetch and read the notifications (errors and warnings) of a call

call-recording

Both

Provides methods to start recording a call (create) and to delete, fetch, read and update the recordings of a call

conference

Both

Provides methods to fetch, read and update conferences

conference-participant

Both

Provides methods to add (create), remove (delete), fetch, read and update the participants of a conference

connect-app

Both

Provides methods to delete, fetch, read and update the Twilio Connect apps of the account

incoming-phone-number

Both

Provides methods to buy (create), release (delete), fetch, read and update the phone numbers of the account

incoming-phone-number-local

Both

Provides methods to buy (create) and read the local phone numbers of the account

incoming-phone-number-mobile

Both

Provides methods to buy (create) and read the mobile phone numbers of the account

incoming-phone-number-toll-free

Both

Provides methods to buy (create) and read the toll-free phone numbers of the account

key

Both

Provides methods to delete, fetch, read and update the API keys of the account

message

Both

Provides methods to send (create), delete, fetch, read and update SMS and MMS messages

message-feedback

Both

Reports the outcome of a message (create): confirmed or unconfirmed

message-media

Both

Provides methods to delete, fetch and read the media files of a message

new-key

Both

Creates an API key. The response holds the secret of the key, which Twilio returns only once

new-signing-key

Both

Creates a signing key. The response holds the secret of the key, which Twilio returns only once

notification

Both

Provides methods to fetch and read the notifications (errors and warnings) of the account

outgoing-caller-id

Both

Provides methods to delete, fetch, read and update the verified caller IDs of the account

queue

Both

Provides methods to create, delete, fetch, read and update call queues

queue-member

Both

Provides methods to fetch and read the calls waiting in a queue and to dequeue a call (update)

recording

Both

Provides methods to delete, fetch and read the recordings of the account

recording-add-on-result

Both

Provides methods to delete, fetch and read the results of the Add-ons that ran on a recording

recording-add-on-result-payload

Both

Provides methods to delete, fetch and read the payloads of an Add-on result of a recording

recording-transcription

Both

Provides methods to delete, fetch and read the transcriptions of a recording

short-code

Both

Provides methods to fetch, read and update the short codes of the account

signing-key

Both

Provides methods to delete, fetch, read and update the signing keys of the account

sip-credential-list

Both

Provides methods to create, delete, fetch, read and update SIP credential lists

sip-credential-list-credential

Both

Provides methods to create, delete, fetch, read and update the credentials (username and password) of a SIP credential list

sip-domain

Both

Provides methods to create, delete, fetch, read and update SIP domains

sip-domain-credential-list-mapping

Both

Provides methods to map (create), unmap (delete), fetch and read the credential lists of a SIP domain

sip-domain-ip-access-control-list-mapping

Both

Provides methods to map (create), unmap (delete), fetch and read the IP access control lists of a SIP domain

sip-ip-access-control-list

Both

Provides methods to create, delete, fetch, read and update SIP IP access control lists

sip-ip-access-control-list-ip-address

Both

Provides methods to create, delete, fetch, read and update the IP addresses of a SIP IP access control list

token

Both

Creates a token that holds the Twilio STUN and TURN servers and the credentials to use them

transcription

Both

Provides methods to delete, fetch and read the transcriptions of the account

usage-record

Both

Reads the usage records of the account, optionally for a category and a date range

usage-record-all-time

Both

Reads the usage records of the account over its whole lifetime

usage-record-daily

Both

Reads the usage records of the account per day

usage-record-last-month

Both

Reads the usage records of the account for the previous month

usage-record-monthly

Both

Reads the usage records of the account per month

usage-record-this-month

Both

Reads the usage records of the account for the current month

usage-record-today

Both

Reads the usage records of the account for today

usage-record-yearly

Both

Reads the usage records of the account per year

usage-record-yesterday

Both

Reads the usage records of the account for yesterday

usage-trigger

Both

Provides methods to create, delete, fetch, read and update usage triggers, which call a webhook when a usage reaches a value

validation-request

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

creator

create

Creates a subaccount; its friendly name can be set as the header CamelTwilio.friendlyName

fetcher

fetch

Fetches an account, by default the account of the Twilio client

reader

read

Reads the account of the Twilio client and its subaccounts (all pages); filter with the headers CamelTwilio.friendlyName and CamelTwilio.status

updater

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

creator

create

Creates an address

deleter

delete

Deletes an address

fetcher

fetch

Fetches an address

reader

read

Reads the addresses of the account (all pages)

updater

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

reader

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

creator

create

Creates a TwiML application

deleter

delete

Deletes a TwiML application

fetcher

fetch

Fetches a TwiML application

reader

read

Reads the TwiML applications of the account (all pages)

updater

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

fetcher

fetch

Fetches a country in which phone numbers are available to buy, with the URIs to search its numbers by type

reader

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

reader

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

reader

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

reader

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

creator

create

Makes an outgoing call

deleter

delete

Deletes the record of a call from the account; a call in progress cannot be deleted

fetcher

fetch

Fetches a call

reader

read

Reads the calls of the account (all pages); filter with headers such as CamelTwilio.to, CamelTwilio.from and CamelTwilio.status

updater

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

fetcher

fetch

Fetches a notification (error or warning) of a call

reader

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

creator

create

Starts recording a call in progress

deleter

delete

Deletes a recording of a call

fetcher

fetch

Fetches a recording of a call

reader

read

Reads the recordings of a call (all pages)

updater

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

fetcher

fetch

Fetches a conference

reader

read

Reads the conferences of the account (all pages); filter with headers such as CamelTwilio.friendlyName and CamelTwilio.status

updater

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

creator

create

Adds a participant to a conference by calling the to address

deleter

delete

Removes a participant from a conference

fetcher

fetch

Fetches a participant of a conference

reader

read

Reads the participants of a conference (all pages)

updater

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

deleter

delete

Deletes a Connect app

fetcher

fetch

Fetches a Connect app

reader

read

Reads the Connect apps of the account (all pages)

updater

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

creator

create

Buys a phone number: the given phoneNumber, or any available number in areaCode

deleter

delete

Releases a phone number from the account

fetcher

fetch

Fetches a phone number of the account

reader

read

Reads the phone numbers of the account (all pages); filter with headers such as CamelTwilio.phoneNumber and CamelTwilio.friendlyName

updater

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

creator

create

Buys a local phone number

reader

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

creator

create

Buys a mobile phone number

reader

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

creator

create

Buys a toll-free phone number

reader

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

deleter

delete

Deletes an API key

fetcher

fetch

Fetches an API key, without its secret

reader

read

Reads the API keys of the account (all pages)

updater

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

creator

create

Sends a message, such as an SMS or MMS

deleter

delete

Deletes a message, with its media and feedback

fetcher

fetch

Fetches a message

reader

read

Reads the messages of the account (all pages); filter with the headers CamelTwilio.to, CamelTwilio.from and CamelTwilio.dateSent (or dateSentBefore and dateSentAfter)

updater

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

creator

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

deleter

delete

Deletes a media file of a message

fetcher

fetch

Fetches the metadata of a media file of a message

reader

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

creator

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

creator

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

fetcher

fetch

Fetches a notification (error or warning) of the account

reader

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

deleter

delete

Deletes a verified caller ID of the account

fetcher

fetch

Fetches a verified caller ID of the account

reader

read

Reads the verified caller IDs of the account (all pages)

updater

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

creator

create

Creates a call queue; its maximum size (default 1000, at most 5000) can be set as the header CamelTwilio.maxSize

deleter

delete

Deletes a call queue

fetcher

fetch

Fetches a call queue

reader

read

Reads the call queues of the account (all pages)

updater

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

fetcher

fetch

Fetches a call waiting in a queue

reader

read

Reads the calls waiting in a queue (all pages)

updater

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

deleter

delete

Deletes a recording

fetcher

fetch

Fetches the metadata of a recording

reader

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

deleter

delete

Deletes an Add-on result of a recording

fetcher

fetch

Fetches an Add-on result of a recording

reader

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

deleter

delete

Deletes a payload of an Add-on result of a recording

fetcher

fetch

Fetches a payload of an Add-on result of a recording

reader

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

deleter

delete

Deletes a transcription of a recording

fetcher

fetch

Fetches a transcription of a recording

reader

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

fetcher

fetch

Fetches a short code of the account

reader

read

Reads the short codes of the account (all pages)

updater

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

deleter

delete

Deletes a signing key

fetcher

fetch

Fetches a signing key, without its secret

reader

read

Reads the signing keys of the account (all pages)

updater

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

creator

create

Creates a SIP credential list

deleter

delete

Deletes a SIP credential list

fetcher

fetch

Fetches a SIP credential list

reader

read

Reads the SIP credential lists of the account (all pages)

updater

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

creator

create

Adds a credential (username and password) to a SIP credential list

deleter

delete

Deletes a credential of a SIP credential list

fetcher

fetch

Fetches a credential of a SIP credential list

reader

read

Reads the credentials of a SIP credential list (all pages)

updater

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

creator

create

Creates a SIP domain

deleter

delete

Deletes a SIP domain

fetcher

fetch

Fetches a SIP domain

reader

read

Reads the SIP domains of the account (all pages)

updater

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

creator

create

Maps a credential list to a SIP domain

deleter

delete

Removes the mapping of a credential list from a SIP domain

fetcher

fetch

Fetches a credential list mapping of a SIP domain

reader

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

creator

create

Maps an IP access control list to a SIP domain

deleter

delete

Removes the mapping of an IP access control list from a SIP domain

fetcher

fetch

Fetches an IP access control list mapping of a SIP domain

reader

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

creator

create

Creates a SIP IP access control list

deleter

delete

Deletes a SIP IP access control list

fetcher

fetch

Fetches a SIP IP access control list

reader

read

Reads the SIP IP access control lists of the account (all pages)

updater

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

creator

create

Adds an IP address to a SIP IP access control list

deleter

delete

Removes an IP address from a SIP IP access control list

fetcher

fetch

Fetches an IP address of a SIP IP access control list

reader

read

Reads the IP addresses of a SIP IP access control list (all pages)

updater

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

creator

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

deleter

delete

Deletes a transcription

fetcher

fetch

Fetches a transcription

reader

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

reader

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

reader

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

reader

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

reader

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

reader

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

reader

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

reader

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

reader

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

reader

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

creator

create

Creates a usage trigger, which calls callbackUrl when the usage of a category reaches a value

deleter

delete

Deletes a usage trigger

fetcher

fetch

Fetches a usage trigger

reader

read

Reads the usage triggers of the account (all pages)

updater

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

creator

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

CamelTwilio. (producer)

Constant: PROPERTY_PREFIX

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

pojo

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

any

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 inBody is set.

Producer output

pojo, iterator or value

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 Camel-prefixed exchange headers in addition to the endpoint options. If the route consumes messages from untrusted producers, strip these internal headers at the trust boundary — for example with removeHeaders("Camel*") — before the message reaches this component, so that a sender cannot override the API call. See the Camel security model for details.

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 create

deleter

delete

Make the request to the Twilio API to perform the delete

fetcher

fetch

Make the request to the Twilio API to perform the fetch

reader

read

Make the request to the Twilio API to perform the read

updater

update

Make the request to the Twilio API to perform the update

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}"