List all the available templates for a given Account

GET /v2/Templates

TODO: Resource-level docs

List all the available templates for a given Account.

Query parameters

  • String filter used to query templates with a given friendly name

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • meta object
      Hide meta attributes Show meta attributes object
    • templates array[object]
      Hide templates attributes Show templates attributes array[object]
      • account_sid string | null

        Account Sid

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • friendly_name string | null

        A string to describe the verification template

      • sid string | null

        A string that uniquely identifies this Template

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HJ[0-9a-fA-F]{32}$.

      • Object with the template translations.

GET /v2/Templates
curl \
 -X GET https://verify.twilio.com/v2/Templates \
 --user "username:password"
Response examples (200)
{
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  },
  "templates": [
    {
      "account_sid": "string",
      "friendly_name": "string",
      "sid": "string"
    }
  ]
}
Response examples (200)
{
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  },
  "templates": [
    {
      "account_sid": "string",
      "friendly_name": "string",
      "sid": "string"
    }
  ]
}