---
title: "Create bootstrap template"
method: POST
path: "/v1/platform/apps/{appId}/templates"
tags: ["Platform"]
---

# Create bootstrap template

`POST /v1/platform/apps/{appId}/templates`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/platform/apps/{appId}/templates`
- Auth: HTTP bearer

Create a template that defines what vault, agents, and policies to bootstrap for each connected user.

## Path parameters

- `appId` string, uuid, required

## Request body

- CreateTemplateRequest
  - `name` string, required
  - `description` string
  - `spec` object, required: Template specification defining vault, agents, policies, and signing keys to bootstrap. Top-level fields: `vault` (object with name, description), `agents` (array of agent specs), `policies` (array with vault_ref, principal_ref, paths, permissions, conditions), and `signing_keys` (array of `{ chain }` objects — supported chains: ethereum, bitcoin, solana, xrp, cardano, tron). When `signing_keys` is present, HSM-backed signing keys are auto-provisioned for the bootstrapped agent. Each agent entry accepts Intents API and Execution Intents flags under any of these aliases (direct API field name, boolean shorthand, or `{ enabled: true }` object): - Intents API → `intents_api_enabled`, `intents: true`, or `intents: { enabled: true }` (maps to `agents.intents_api_enabled`) - Execution Intents → `execution_intents_enabled`, `execution: true`, or `execution: { enabled: true }` (maps to `agents.execution_intents_enabled`) Other agent fields: `name`, `description`, `shroud_enabled`, `shroud_config`, `system_prompt`, `environment`, `signing_keys`, `provision_eoa`, `memory`, `runtime`, `default_llm_provider`.

## Response `201`

Template created

- PlatformTemplateResponse
  - `id` string, uuid
  - `platform_app_id` string, uuid
  - `name` string
  - `description` string
  - `version` integer
  - `spec` object
  - `is_active` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/ae109b496830?raw)
