curl "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/context" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api template context get tmpl_abc123
{
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"content": "Always run the test suite before opening a PR.",
"updated_at": "2026-07-20T12:00:00Z"
}
Context
Get Template Context
Read the template’s instruction block
GET
/
api
/
org-templates
/
{template_id}
/
context
curl "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/context" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api template context get tmpl_abc123
{
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"content": "Always run the test suite before opening a PR.",
"updated_at": "2026-07-20T12:00:00Z"
}
Template context is the instruction block injected into every session launched from the template, layered after the org-wide instructions. This returns the template’s own block; use Resolve Template Context to see the full stack a session receives.
Required scope:
context:read
Path Parameters
string
required
The template ID.
Headers
string
required
Organization ID.
Response
string
The template.
string
The owning organization.
string | null
The instruction block (max 20000 characters), or null when unset.
string | null
Last modification time.
curl "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/context" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api template context get tmpl_abc123
{
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"content": "Always run the test suite before opening a PR.",
"updated_at": "2026-07-20T12:00:00Z"
}