Menu

Expand
Rate this page:

Built-in Field Types

The Built-in Field Types allow you to create fields of a common data type such as Date, Time, Number rather than defining them yourself as a custom Field Type. You should use built-in fields when possible given that they are optimized to understand this type of data.

Built-in Field Example input Example output
Twilio.YES_NO yeah Yes
Twilio.NUMBER 34 please 34
Twilio.PHONE_NUMBER The best number is (415) 390-2337 4153902337
Twilio.DATE for December 14th please 2018-12-14
Twilio.TIME at 7 pm please 19:00
Twilio.FIRST_NAME my name is sam Sam
Twilio.LAST_NAME my last name is jackson Jackson
Twilio.EMAIL my email is sam.jackson@example.com sam.jackson@example.com
Twilio.MONTH May is the best month of the year May
Twilio.DAY_OF_WEEK today is tuesday Tuesday
Twilio.US_STATE Last state I visited was Alaska Alaska
Twilio.COUNTRY I live in France France
Twilio.CITY I live in Tokyo Tokyo
Twilio.CURRENCY bucks USD
Twilio.COUNTRY_ISO_ALPHA2 I'm going to Spain for Christmas ES
Twilio.COUNTRY_ISO_ALPHA3 I'm going to Spain for Christmas ESP
Twilio.LANGUAGE I speak spanish Spanish
Twilio.NUMBER_SEQUENCE My US Zipcode is nine o two one o 90210
Twilio.ALPHANUMERIC Triple A four five AAA45
A as in apple double one two beta A112B

Don't see the field you are looking for? Let us know what you would like to see.

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.

        
        
        

        Thank you for your feedback!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        Step 1

        Get link

        Get a free personal referral link here

        Step 2

        Give $10

        Your user signs up and upgrade using link

        Step 3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more