Retrieve a Forward Template by ID.
GET /api/v1/forward/templates/{template_id}
Returns the full Template object, including Agent configuration and Session default settings.
Request headers
Header | Required | Description |
Authorization | Yes |
|
Path parameters
Parameter | Type | Required | Description |
| string | Yes | Forward Template ID. |
Sample request
curl -s -X GET 'https://api.qoder.com/api/v1/forward/templates/tmpl_support' \
-H "Authorization: Bearer $QODER_PAT"
Sample response
HTTP 200 OK
{
"type": "template",
"id": "tmpl_support",
"name": "Support assistant",
"description": "Handles customer support requests",
"status": "active",
"model": "ultimate",
"system": "You are a helpful support assistant.",
"tools": [],
"mcp_servers": [],
"skills": [],
"environment_id": "env_support",
"vaults": {
"vault_019f18f2761b": {
"enabled": true
}
},
"files": {},
"environment_variables": {
"BASE_MODE": "support"
},
"metadata": {},
"created_at": "2026-06-18T10:00:00Z",
"updated_at": "2026-06-18T10:00:00Z"
}
Response fields
Field | Type | Description |
| string | Always |
| string | Template ID. |
| string | Template name. |
| string | Template status. |
| string | object | Model identifier. Can be a model ID string, or an Agent model object containing |
| object | Default Vault configuration, keyed by Vault ID. |
| object | Custom metadata. |
Errors
HTTP | Type | Code | Trigger condition |
404 |
| - | Template does not exist or is not visible to the current caller. |
401 |
|
| PAT is invalid or expired. |
403 |
| - | Current caller does not have access to this resource. |
Notes
Archived Templates can still be queried via this endpoint.
The response does not expose private runtime fields.