v1

latestOpenAPI 3.1.12026-07-17111158225.7 KB
templates

List templates

Lists the templates in the account.

get/{account}/templates

Path parameters

accountinteger required

The account id

Query parameters

sort'id:asc' | 'id:desc' | 'name:asc' | 'name:desc' | 'sid:asc' | 'sid:desc'

Sort results. Default sorting is by id ascending.

Response

Successfully retrieved account template list.

Example response

{
  "data": [
    {
      "id": 1,
      "account_id": 1010,
      "name": "Alpha",
      "sid": "alpha",
      "description": "An alpha template.",
      "created_at": "2016-03-22T11:08:58Z",
      "updated_at": "2016-03-22T11:08:58Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 30,
    "total_entries": 2,
    "total_pages": 1
  }
}