Kalpana Docs
Resources

Duplicate a template

Copy a template inside its workspace, keeping it in the same collections.

POST /api/templates/{id}/duplicate

Requires templates:create.

FieldRequiredDescription
workspaceYesWorkspace slug or id.
nameNoName of the copy, 1 to 200 characters. Spaces at either end are trimmed. Defaults to the original name followed by copy.
curl --request POST "https://app.kalpana.one/api/templates/tpl_123/duplicate" \
  --header "x-api-key: $KALPANA_API_KEY" \
  --header "content-type: application/json" \
  --data '{"workspace":"acme","name":"Product card, sale"}'

Response

{
  "id": "tpl_456",
  "workspaceId": "ws_123",
  "name": "Product card, sale"
}

The copy has its own id and design, so editing it never changes the original. It joins every template collection the original belongs to.

Errors

StatusCause
403Your role or key lacks templates:create.
404The template is not in this workspace or has been deleted.
Was this page helpful?

Updated 4 Nov 2026

On this page