v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

List Templates

Retrieve a paginated list of templates in a workspace. Returns template metadata including name, slug, status, enabled channels, and linked workflows.

get/v2/{workspace}/template/

Path parameters

workspacestring required

Workspace slug (e.g., staging, production).

Query parameters

mode'draft' | 'live'

Return draft or live version of templates.

limitinteger

Number of results per page.

offsetinteger

Offset for pagination.

qstring

Search by template name or slug.

Response

Successfully retrieved list of templates

Example response

{
  "meta": {
    "count": 22,
    "limit": 10
  },
  "results": [
    {
      "$schema": "https://schema.suprsend.com/template/v2/schema.json",
      "name": "Order Confirmation Email",
      "slug": "order-confirmation-email",
      "enabled_channels": [
        "email",
        "inbox"
      ],
      "status": "active"
    }
  ]
}