Skip to main content
GET
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.