Kalpana Docs
Resources

Get a template's collections

List the ids of every collection a template belongs to.

GET /api/templates/{templateId}/template-collections

Requires templates:read.

Query parameters

NameTypeRequiredDescription
workspacestringYesWorkspace slug or id.
curl "https://app.kalpana.one/api/templates/tpl_123/template-collections?workspace=acme" \
  --header "x-api-key: $KALPANA_API_KEY"

Response

{ "collectionIds": ["0192f8a4-6c1e-7c3a-9b0e-4d2f1a7e5c11"] }

An empty array means the template is in no collection. The template is not looked up, so an unknown id also returns an empty array. To change the list, send it back with Set a template's collections.

Errors

StatusCause
403Your role or key lacks templates:read.
Was this page helpful?

Updated 4 Nov 2026

On this page