---
# System prepended metadata

title: PlanetScale OAuth & APIs for Indent

---

# PlanetScale OAuth & APIs for Indent

## API methods
### Members
Endpoints for listing members - necessary because Indent will need `user_id` to add/remove team members
- [ ] **List members**
    - `/organizations/:name/members`
### Teams
Endpoints for managing teams
- [ ] **List teams**
    - GET `/organizations/:organization_name/teams`
- [ ] **Show team**
    - GET `/organizations/:organization_name/teams/:team_slug`
- [ ] **Create team**
    - POST `/organizations/:organization_name/teams` 
- [ ] **Update team**
    - PATCH `/organizations/:organization_name/teams/:team_slug`
- [ ] **Delete team**
    - `/organizations/:organization_name/teams/:team_slug`
### Team members
Endpoints for managing members within a team
- [ ] **List team members**
    - GET `/organizations/:organization_name/teams/:team_slug/members`
- [ ] **Show team member**
    - GET `/organizations/:organization_name/teams/:team_slug/members/:member_id`
- [ ] **Create team member**
    - POST `/organizations/:organization_name/teams/:team_slug/members` 
- [ ] **Delete team member**  
    - DELETE `/organizations/:organization_name/teams/:team_slug/members/:member_id` 
## OAuth scopes
Scopes needed to access the above API methods on behalf of a user:
`write_team_members`, `delete_team_members`, `read_team_members`, `write_teams`, `delete_teams`, `read_teams`