Skip to main content
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

Each tools[] 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 Created

Response fields

Errors

Notes

  • The id is generated by Forward. Do not send a Template ID in the create request.
  • files is a map keyed by file ID. Do not include file_id, id, or resource_id inside each file item.
  • Forward injects file mount paths when creating sessions.

List templates

Create a session