Skip to main content
GET
/
teams
/
{team_id}
/
my-role
Get the caller's effective role on this team
curl --request GET \
  --url https://api.mnemom.ai/v1/teams/{team_id}/my-role \
  --header 'Authorization: Bearer <token>'
{
  "team_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mnemom.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

team_id
string
required

Team identifier (UUID)

Response

Caller's effective role on the team.

Response body of GET /v1/teams/{team_id}/my-role. Used by surfaces that don't load a template sources envelope (team roster tab, identity card tab, admins tab) to gate edit affordances from the same single source of truth as the editors.

team_id
string
required
my_role
enum<string> | null
required

The caller's effective role on the resource. Computed server-side per ADR-053; frontends derive canEdit exclusively from this field. team_admin only appears on team-scope responses. null means the caller has no role on this resource (the request still authenticated, but no role applies — e.g. an org-scope response read by an unrelated user).

Available options:
super_admin,
org_owner,
org_admin,
team_admin,
org_member,
org_viewer,
org_auditor,
null