GET
/
content
/
api
/
v2
/
templates
List Templates
curl --request GET \
  --url https://api.hubapi.com/content/api/v2/templates
{
  "total_count": 1,
  "objects": [
    {
      "category_id": 1,
      "cdn_minified_url": "",
      "cdn_url": "http://cdn2.hubspot.net/hub/62515/hub_generated/template_resource/1382477851647/custom/page/examples/simple-template.html",
      "deleted_at": 0,
      "folder": "examples",
      "generated_from_layout_id": null,
      "id": 359393980,
      "is_available_for_new_content": true,
      "is_from_layout": false,
      "is_read_only": false,
      "label": "Simple-template",
      "linked_style_id": "",
      "path": "custom/page/examples/simple-template.html",
      "portal_id": 62515,
      "source": "The template source goes here",
      "template_type": "4",
      "thumbnail_width": 154,
      "type": "",
      "updated": 1382477851000,
      "updated_by": ""
    }
  ],
  "limit": 20,
  "offset": 0
}

Required Scopes

This API requires one of the following scopes:
  • content

Query Parameters

limit
integer
default:20

The number of items to return. Defaults to 20.

offset
integer
default:0

The offset set to start returning rows from. Defaults to 0.

deleted_at
string

Filter by deleted_at timestamp (exact, gt, lt)

id
string

Filter by template ID (exact)

is_available_for_new_content
boolean

Filter by availability for new content (exact)

label
string

Filter by template label (exact)

path
string

Filter by template path (exact)

Response

200 - application/json

successful operation

The response is of type object.