List the teams the caller belongs to, each annotated with their role
GET
Personal access token scope: teams:read.
bearerheader
AuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
Success
curl -X GET 'http://localhost:7091/api/teams'Example Response200
Empty
Team detail with members and the caller's role GET
Requires membership. [Personal access token](/API/personal-access-tokens) scope: `teams:read`.
Share a resource with this team, or change an existing grant's level POST
Needs `share` on the resource (the owner, or an editor when the owner turned on `editors_can_share`) and membership of the team. The grant records the real owner as `owner_id` and the caller as `granted_by`. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.