SnozeDevelopers
API referenceTemplates

List the templates owned by a workspace

Returns the workspace's own templates newest first, including their metadata, declared inputs, review status, and publication state. Requires `resources:read` in the workspace.

GET
/v1/workspaces/{workspaceId}/templates
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/templates"
{  "data": [    {      "id": "string",      "workspaceId": "string",      "name": "string",      "description": "string",      "cover": "string",      "icon": "string",      "kind": "folder",      "sourceItemId": "string",      "scope": "builtin",      "visibility": "private",      "reviewStatus": "draft",      "installCount": 0,      "author": {        "workspaceId": "string",        "name": "string",        "icon": "string"      },      "category": "string",      "tags": [        "string"      ],      "inputs": [        {          "id": "string",          "kind": "database",          "label": "string",          "description": "string",          "placeholder": "string",          "required": true,          "dependsOn": "string",          "choices": [            {              "value": "string",              "label": "string"            }          ],          "default": "string"        }      ],      "version": 0,      "manifest": {        "version": 2,        "inputs": [          {            "id": "string",            "kind": "database",            "label": "string",            "description": "string",            "placeholder": "string",            "required": true,            "dependsOn": "string",            "choices": [              {                "value": "string",                "label": "string"              }            ],            "default": "string"          }        ],        "rootSourceItemId": "string",        "rootKind": "folder",        "operations": [          {            "type": "item.create",            "sourceItemId": "string",            "parentSourceItemId": "string",            "title": "string",            "icon": "string",            "color": "string",            "order": 0,            "accessMode": "open",            "locked": true,            "archived": true,            "metadata": {},            "kind": "folder",            "sourceTargetId": "string"          }        ]      },      "publishedAt": "string",      "curatedAt": "string",      "submittedAt": "string",      "reviewNote": "string",      "createdBy": "string",      "createdAt": "string",      "updatedAt": "string"    }  ]}