curl "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/context:resolve" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api template context resolve tmpl_abc123
{
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"blocks": [
{"source": "org", "content": "Prefer PRs over direct pushes.", "updated_at": "2026-06-01T09:00:00Z"},
{"source": "template", "content": "Always run the test suite before opening a PR.", "updated_at": "2026-07-28T19:00:00Z"}
],
"effective_context": "Prefer PRs over direct pushes.\n\nAlways run the test suite before opening a PR."
}
Context
Resolve Template Context
The effective instruction stack a session receives
GET
/
api
/
org-templates
/
{template_id}
/
context:resolve
curl "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/context:resolve" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api template context resolve tmpl_abc123
{
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"blocks": [
{"source": "org", "content": "Prefer PRs over direct pushes.", "updated_at": "2026-06-01T09:00:00Z"},
{"source": "template", "content": "Always run the test suite before opening a PR.", "updated_at": "2026-07-28T19:00:00Z"}
],
"effective_context": "Prefer PRs over direct pushes.\n\nAlways run the test suite before opening a PR."
}
Answers the debugging question: what instructions does a session launched from this template actually get? Returns the org block and the template block in application order, plus the combined
effective_context string.
Required scope: context:read
Path Parameters
string
required
The template ID.
Response
string
The template.
string
The owning organization.
array
Ordered blocks, each
{source: "org" | "template", content, updated_at}.string | null
The blocks joined in application order; what the session receives.
curl "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/context:resolve" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api template context resolve tmpl_abc123
{
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"blocks": [
{"source": "org", "content": "Prefer PRs over direct pushes.", "updated_at": "2026-06-01T09:00:00Z"},
{"source": "template", "content": "Always run the test suite before opening a PR.", "updated_at": "2026-07-28T19:00:00Z"}
],
"effective_context": "Prefer PRs over direct pushes.\n\nAlways run the test suite before opening a PR."
}