curl "https://app.runtm.com/api/cloud/org-templates/repos" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/org-templates/repos",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
)
data = response.json()
for repo in data["repos"]:
print(f"{repo['full_name']} -> {repo['template_name']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/org-templates/repos",
{
headers: {
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
}
);
const data = await response.json();
data.repos.forEach((repo) =>
console.log(`${repo.full_name} -> ${repo.template_name}`)
);
{
"repos": [
{
"full_name": "acme/web-app",
"default_branch": "main",
"template_name": "web-app-template",
"template_id": "tmpl_abc123"
},
{
"full_name": "acme/api-service",
"default_branch": "main",
"template_name": "api-template",
"template_id": "tmpl_def456"
}
]
}
Templates
Template Repos
List repositories available for template creation
GET
/
api
/
org-templates
/
repos
curl "https://app.runtm.com/api/cloud/org-templates/repos" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/org-templates/repos",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
)
data = response.json()
for repo in data["repos"]:
print(f"{repo['full_name']} -> {repo['template_name']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/org-templates/repos",
{
headers: {
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
}
);
const data = await response.json();
data.repos.forEach((repo) =>
console.log(`${repo.full_name} -> ${repo.template_name}`)
);
{
"repos": [
{
"full_name": "acme/web-app",
"default_branch": "main",
"template_name": "web-app-template",
"template_id": "tmpl_abc123"
},
{
"full_name": "acme/api-service",
"default_branch": "main",
"template_name": "api-template",
"template_id": "tmpl_def456"
}
]
}
Returns a flat, deduplicated list of repositories referenced by the organization’s templates. Useful for discovering which repos already have template coverage.
Required scope:
templates:read
Headers
string
required
Bearer token. Example:
Bearer runtm_xxxstring
required
Organization ID.
Response
array
Array of repository info objects linked to templates.
string
Full repository name (e.g.
owner/repo).string
Default branch name.
string
Name of the template this repo belongs to.
string
ID of the template this repo belongs to.
curl "https://app.runtm.com/api/cloud/org-templates/repos" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/org-templates/repos",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
)
data = response.json()
for repo in data["repos"]:
print(f"{repo['full_name']} -> {repo['template_name']}")
const response = await fetch(
"https://app.runtm.com/api/cloud/org-templates/repos",
{
headers: {
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
},
}
);
const data = await response.json();
data.repos.forEach((repo) =>
console.log(`${repo.full_name} -> ${repo.template_name}`)
);
{
"repos": [
{
"full_name": "acme/web-app",
"default_branch": "main",
"template_name": "web-app-template",
"template_id": "tmpl_abc123"
},
{
"full_name": "acme/api-service",
"default_branch": "main",
"template_name": "api-template",
"template_id": "tmpl_def456"
}
]
}