List all the available templates for a given Account.
List all the available templates for a given Account.
Query parameters
-
String filter used to query templates with a given friendly name.
-
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
GET
/v2/Templates
curl \
--request GET 'https://verify.twilio.com/v2/Templates' \
--user "username:password"
Response examples (200)
{
"meta": {
"key": "templates",
"url": "https://verify.twilio.com/v2/Templates?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://verify.twilio.com/v2/Templates?PageSize=50&Page=0",
"previous_page_url": null
},
"templates": [
{
"sid": "HJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"channels": [
"sms"
],
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"translations": {
"en": {
"text": "Your {{friendly_name}} verification code is: {{code}}. Do not share this code with anyone.",
"locale": "en",
"status": "approved",
"date_created": "2021-07-29T20:38:28.165602325Z",
"date_updated": "2021-07-29T20:38:28.759979905Z",
"is_default_translation": true
}
},
"friendly_name": "Base Verification Template 2 with do not share"
},
{
"sid": "HJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
"channels": [
"sms",
"voice"
],
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"translations": {
"en": {
"text": "Your verification code is: {{code}}. Do not share it.",
"locale": "en",
"status": "approved",
"date_created": "2021-07-29T20:38:28.165602325Z",
"date_updated": "2021-07-29T20:38:28.759979905Z",
"is_default_translation": true
}
},
"friendly_name": "Base Verification Template 3"
}
]
}