# WORKSPACE_TEMPLATES

workspace-templates endpoints.

**Base URL:** `https://api.trustpager.com/functions/v1/api/v1`

## Endpoints

### POST /workspace-templates/:template_company_id/add

Add a template to this workspace, next to what it already has. Nothing existing is changed or deleted: same-name boards, forms and documents get the template's name added, clashing web addresses get new ones, same-name task categories, form folders and custom fields are reused. Every copied automation arrives switched off; setup_still_needed lists what each needs before it can be switched on. Run preview_workspace_template first.

**Scopes:** `workspace-templates:write` — [full detail](./workspace-templates/post-workspace-templates-template-company-id-add.md)

### GET /workspace-templates/business-categories

The business types a workspace can be (slug, name, industry). Templates are offered at signup for these.

**Scopes:** `workspace-templates:read` — [full detail](./workspace-templates/get-workspace-templates-business-categories.md)

### GET /workspace-templates

The ready-made setups this workspace can add (boards, forms, documents, booking pages, automations, custom fields), best first: your agency's own, then the platform's, the ones suggested for this business type first. Preview one with preview_workspace_template before adding it.

**Scopes:** `workspace-templates:read` — [full detail](./workspace-templates/get-workspace-templates.md)

### POST /workspace-templates/:template_company_id/preview

Show what adding a template would do, changing nothing: how many of each thing it adds, what clashes with what the workspace already has (reused, renamed or given a new web address), features it uses that are switched off here, and the setup each copied automation still needs before it can be switched on.

**Scopes:** `workspace-templates:read` — [full detail](./workspace-templates/post-workspace-templates-template-company-id-preview.md)
