List product templates

Your saved product templates.

GET https://cotlet.dev/api/v1/printful/product-templates

read

Returns the templates from Product templates with ID and name. Use template_id with generate_mockups.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/printful/product-templates \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("printful", "list_product_templates")
Node.js
const result = await cotlet.call('printful', 'list_product_templates');
CLI
cotlet call printful list_product_templates

Example response

JSON

{
  "templates": [
    {
      "template_id": 7723,
      "name": "Autumn tote"
    },
    {
      "template_id": 7701,
      "name": "Pine mug"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.