Template folders

Rendering

Template folders

Organize saved designs into folders.

bash
POST   /v3/template-folders   { "name": "Campaigns" }  → 201 { id }
GET    /v3/template-folders   → { folders: [ … ] }
DELETE /v3/template-folders/:id

Authentication and scope

All three calls need a secret server key, as Authorization: Bearer sk_live_… or ?token=sk_live_…. A publishable pk_live_ token, an inactive key or no key gets 401 with { "error": "invalid_token" }. See authentication.

Folders belong to the key's organization. The list shows only that organization's folders, and deleting a folder id from another organization returns 404 not_found, the same as an unknown id.

Request and response

  • name is required, 1 to 200 characters after trimming. A missing or blank name returns 400 invalid_input.
  • Create returns { id, name, created_at }. Folder ids start with fld_.
  • Each listed folder has id, organization_id, name and created_at.
  • A successful delete returns { "removed": true }.

Limits today

Folders are saved with your workspace, but the /v3/templates endpoints do not take a folder id yet. Deleting a folder never touches your templates.