Skip to main content
GET /api/v1/forward/templates/{template_id} Returns the complete template object, including agent configuration and session defaults.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT>

Path parameters

ParameterTypeRequiredDescription
template_idstringYesForward Template ID.

Example request

curl -s -X GET 'https://api.qoder.com/api/v1/forward/templates/tmpl_support' \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK
{
  "type": "template",
  "id": "tmpl_support",
  "name": "Support assistant",
  "description": "Handles pre-sales and after-sales support",
  "status": "active",
  "model": "ultimate",
  "system": "You are a helpful support assistant.",
  "tools": [],
  "mcp_servers": [],
  "skills": [],
  "multiagent": null,
  "environment_id": "env_support",
  "vault_ids": ["vault_crm"],
  "files": {},
  "environment_variables": {
    "BASE_MODE": "support"
  },
  "metadata": {},
  "created_at": "2026-06-18T10:00:00Z",
  "updated_at": "2026-06-18T10:00:00Z"
}

Response fields

FieldTypeDescription
typestringAlways template.
idstringTemplate ID.
namestringTemplate name.
statusstringactive or archived.
modelstringModel identifier.
systemstringSystem prompt.
environment_idstringDefault Environment ID.
metadataobjectCustom metadata.

Errors

HTTPTypeTrigger
401authentication_errorPAT invalid or expired.
403permission_errorNot authorized for this resource.
404not_found_errorTemplate does not exist or is not visible to the caller.

Notes

  • Archived templates can still be retrieved by ID.
  • Runtime-only Qoder Cloud Agents fields are not added to this response.

Update a template

Archive a template