List team members

This call returns a list of all team members within a specified team. Each member's ID and role in the team will be returned.

Request

https://api.sbgenomics.com/v2/teams/{team_id}/members
https://eu-api.sbgenomics.com/v2/teams/{team_id}/members

Example request

GET /v2/teams/044825c1-ff50-4766-b081-283880be146f/members HTTP/1.1
Host: api.sbgenomics.com
Content-Type: application/json
X-SBG-Auth-Token: 8a6b42ec064246c9b52ddd68e907197a
curl -X GET \
  https://api.sbgenomics.com/v2/teams/044825c1-ff50-4766-b081-283880be146f/members \
  -H 'content-type: application/json' \
  -H 'x-sbg-advance-access: advance' \
  -H 'x-sbg-auth-token: 8a6b42ec064246c9b52ddd68e907197a'
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74')

team = api.teams.get(id='8ea54acb-6844-44b2-9f2e-2123f6d75c8f')

# send GET request to SB API
team_members = team.get_members()

for team_member in team_members:
    print(team_member.id)

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

Path parameters

Name

Type

Description

team_id
required

string

The ID of the team you are querying.

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.

Example response body

{
  "href": "https://api.sbgenomics.com/v2/teams/044825c1-ff50-4766-b081-283880be146f/members?offset=0&limit=2",
  "items": [
    {
      "href": "https://api.sbgenomics.com/v2/teams/044825c1-ff50-4766-b081-283880be146f/members/my-division/john_smith",
      "username": "john_smith"
    },
    {
      "href": "https://api.sbgenomics.com/v2/teams/044825c1-ff50-4766-b081-283880be146f/members/my-division/jane_smith",
      "username": "jane_smith"
    }
  ],
  "links": []
}