Skip to content

Twilio: Trigger schemas

1 Twilio schema with complete fields and constraints.

โ† Trigger operations ยท All schemas

Create a new Usage Trigger โ€” response body

FieldTypePresenceDescription and constraints
$objectRoot
account_sidJSONOptional
account_sid (anyOf 1)stringAlternativeThe SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the trigger monitors.
Maximum length: 34
Minimum length: 34
Pattern: ^AC[0-9a-fA-F]{32}$
account_sid (anyOf 2)nullAlternative
api_versionJSONOptional
api_version (anyOf 1)stringAlternativeThe API version used to create the resource.
api_version (anyOf 2)nullAlternative
callback_methodJSONOptional
callback_method (anyOf 1)stringAlternativeThe HTTP method we use to call `callback_url`. Can be: `GET` or `POST`.
Known values: GET, POST
Format: http-method
callback_method (anyOf 2)nullAlternative
callback_urlJSONOptional
callback_url (anyOf 1)stringAlternativeThe URL we call using the `callback_method` when the trigger fires.
Format: uri
callback_url (anyOf 2)nullAlternative
current_valueJSONOptional
current_value (anyOf 1)stringAlternativeThe current value of the field the trigger is watching.
current_value (anyOf 2)nullAlternative
date_createdJSONOptional
date_created (anyOf 1)stringAlternativeThe date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
Format: date-time-rfc-2822
date_created (anyOf 2)nullAlternative
date_firedJSONOptional
date_fired (anyOf 1)stringAlternativeThe date and time in GMT that the trigger was last fired specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
Format: date-time-rfc-2822
date_fired (anyOf 2)nullAlternative
date_updatedJSONOptional
date_updated (anyOf 1)stringAlternativeThe date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
Format: date-time-rfc-2822
date_updated (anyOf 2)nullAlternative
friendly_nameJSONOptional
friendly_name (anyOf 1)stringAlternativeThe string that you assigned to describe the trigger.
friendly_name (anyOf 2)nullAlternative
recurringstringOptionalThe frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT.
Known values: daily, monthly, yearly, alltime
sidJSONOptional
sid (anyOf 1)stringAlternativeThe unique string that that we created to identify the UsageTrigger resource.
Maximum length: 34
Minimum length: 34
Pattern: ^UT[0-9a-fA-F]{32}$
sid (anyOf 2)nullAlternative
trigger_bystringOptionalThe field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that fires the trigger. Can be: `count`, `usage`, or `price`, as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
Known values: count, usage, price
trigger_valueJSONOptional
trigger_value (anyOf 1)stringAlternativeThe value at which the trigger will fire. Must be a positive, numeric value.
trigger_value (anyOf 2)nullAlternative
uriJSONOptional
uri (anyOf 1)stringAlternativeThe URI of the resource, relative to `https://api.twilio.com`.
uri (anyOf 2)nullAlternative
usage_categoryJSONOptional
usage_category (anyOf 1)stringAlternativeThe usage category the trigger watches. Must be one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
usage_category (anyOf 2)nullAlternative
usage_record_uriJSONOptional
usage_record_uri (anyOf 1)stringAlternativeThe URI of the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource this trigger watches, relative to `https://api.twilio.com`.
usage_record_uri (anyOf 2)nullAlternative

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.