Retrieve the list of teams
GET {{baseUrl}}/{{version}}/teams
This endpoint returns a list of teams.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
team_name | string | nullable |
Enable you to search for team by name |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token | |
Organisation | string | ||
Role | string |
RESPONSES
status: OK
{"current_page":1,"data":[{"team_id":1,"team_name":"First Team Name","team_description":null,"team_avatar":null,"team_code":"lxJnnw","coach1":null,"coach2":null,"team_tags":null,"created_by":8,"created_at":"2023-09-20T13:39:16.000000Z","org_name":"Org FC","org_id":2,"created_first_name":"John","created_last_name":"Smith","player_count":0,"player_invite_count":0},{"team_id":2,"team_name":"Southwark Girls","team_description":"","team_avatar":null,"team_code":"DhVZGU","coach1":null,"coach2":null,"team_tags":null,"created_by":8,"created_at":"2023-07-28T13:03:11.000000Z","org_name":"Org FC","org_id":2,"created_first_name":"John","created_last_name":"Smith","player_count":0,"player_invite_count":0},{"team_id":22,"team_name":"Atlantians U18 Women","team_description":"","team_avatar":"https://files.teamsportz.app/teams/22_12345678.png","team_code":"Eyuo","coach1":null,"coach2":null,"team_tags":null,"created_by":8,"created_at":"2022-03-10T13:08:15.000000Z","org_name":"Org FC","org_id":2,"created_first_name":"John","created_last_name":"Smith","player_count":1,"player_invite_count":0},{"team_id":17,"team_name":"Atlanteans U16","team_description":"","team_avatar":"https://files.teamsportz.app/teams/17_12345678.png","team_code":"TtbBfX","coach1":8,"coach2":16,"team_tags":null,"created_by":838,"created_at":"2022-01-27T13:57:59.000000Z","org_name":"Org FC","org_id":2,"created_first_name":"John","created_last_name":"Smith","player_count":2,"player_invite_count":0},{"team_id":12,"team_name":"Atlantians U18 Mens","team_description":"","team_avatar":"https://files.teamsportz.app/teams/12_12345678.png","team_code":"soSDF","coach1":8,"coach2":14,"team_tags":null,"created_by":8,"created_at":"2021-10-04T19:43:55.000000Z","org_name":"Org FC","org_id":2,"created_first_name":"John","created_last_name":"Smith","player_count":6,"player_invite_count":0},{"team_id":7,"team_name":"Atlanteans U17","team_description":"Win Win at all costs","team_avatar":"https://files.teamsportz.app/teams/7_12345678.png","team_code":"CERGT","coach1":16,"coach2":8,"team_tags":"[\"Grit\",\"Endurance\",\"Adaptability\"]","created_by":8,"created_at":"2021-10-04T19:42:53.000000Z","org_name":"Org FC","org_id":2,"created_first_name":"John","created_last_name":"Smith","player_count":3,"player_invite_count":0}],"first_page_url":"http://localhost:8000/v1/teams?page=1","from":1,"last_page":1,"last_page_url":"http://localhost:8000/v1/teams?page=1","links":[{"url":null,"label":"pagination.previous","active":false},{"url":"http://localhost:8000/v1/teams?page=1","label":"1","active":true},{"url":null,"label":"pagination.next","active":false}],"next_page_url":null,"path":"http://localhost:8000/v1/teams","per_page":15,"prev_page_url":null,"to":6,"total":6}