curl "https://app.runtm.com/api/cloud/groups/team_9x8y/usage" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api groups usage team_9x8y
# Assign ownership
runtm-api template update tmpl_abc123 --owner-team team_9x8y
runtm-api skills update dir_9f3c1a --owner-team team_9x8y
# Back to org-wide
runtm-api template update tmpl_abc123 --owner-team ""
{
"team_id": "team_9x8y",
"template_count": 2,
"skill_count": 5,
"in_use": true,
"template_names": ["GTM Machine", "Support Bot"],
"skill_names": ["outbound-writing", "lead-dedupe", "crm-sync", "call-notes", "list-review"]
}
Groups
Group Usage
What an owning group owns
GET
/
api
/
groups
/
{team_id}
/
usage
curl "https://app.runtm.com/api/cloud/groups/team_9x8y/usage" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api groups usage team_9x8y
# Assign ownership
runtm-api template update tmpl_abc123 --owner-team team_9x8y
runtm-api skills update dir_9f3c1a --owner-team team_9x8y
# Back to org-wide
runtm-api template update tmpl_abc123 --owner-team ""
{
"team_id": "team_9x8y",
"template_count": 2,
"skill_count": 5,
"in_use": true,
"template_names": ["GTM Machine", "Support Bot"],
"skill_names": ["outbound-writing", "lead-dedupe", "crm-sync", "call-notes", "list-review"]
}
Groups (Better Auth teams) own templates and skills through
owner_team_id: a group-owned resource is visible only to that group’s members and org admins. This returns what a group owns, which matters before renaming or deleting it: group deletion is blocked while the group still owns resources.
Set ownership through Update Template Config or Patch Directive with owner_team_id (a team ID sets the owner, explicit null makes the resource org-wide). Changing a template’s owning group is restricted to org admins and the template’s creator.
Required scope: templates:read
Path Parameters
string
required
The Better Auth team ID.
Headers
string
required
Organization ID. Missing header returns
400.Response
string
The group.
integer
Templates owned by the group.
integer
Skills (directives) owned by the group.
boolean
Whether the group owns anything.
string[]
Up to five owned template names.
string[]
Up to five owned skill names.
curl "https://app.runtm.com/api/cloud/groups/team_9x8y/usage" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
runtm-api groups usage team_9x8y
# Assign ownership
runtm-api template update tmpl_abc123 --owner-team team_9x8y
runtm-api skills update dir_9f3c1a --owner-team team_9x8y
# Back to org-wide
runtm-api template update tmpl_abc123 --owner-team ""
{
"team_id": "team_9x8y",
"template_count": 2,
"skill_count": 5,
"in_use": true,
"template_names": ["GTM Machine", "Support Bot"],
"skill_names": ["outbound-writing", "lead-dedupe", "crm-sync", "call-notes", "list-review"]
}