POST /api/v1/forward/templates
Creates a template that defines the default agent configuration and session defaults used when Forward starts a session for an identity.
Headers
Body parameters
Nested configuration objects
File resources
files is a map keyed by File ID. Do not include file_id, id, or resource_id inside each item. Forward injects mount_path when creating Sessions.
Tools array
Eachtools[] item is selected by type.
Built-in tool names are
Bash, Read, Write, Edit, Glob, Grep, WebFetch, WebSearch, and DeliverArtifacts.
Tool config
tools[].configs[] items use this shape.
Permission policy
MCP servers
Skills
Example request
Example response
HTTP 201 CreatedResponse fields
Errors
Notes
- The
idis generated by Forward. Do not send a Template ID in the create request. filesis a map keyed by file ID. Do not includefile_id,id, orresource_idinside each file item.- Forward injects file mount paths when creating sessions.