List of players

GET {{baseUrl}}/users?name=Tendai&team_id={{team_id}}

This API endpoint provides users with the capability to retrieve a comprehensive list of all the players affiliated with a particular team. In order to do this activity, it is necessary to obtain authorization.

Request Params

KeyDatatypeRequiredDescription
emailstringnullable
namestringnullable
limitnumbernullable
sortingstringnullable
remove_teamnumbernullable
team_idstring

HEADERS

KeyDatatypeRequiredDescription
AuthorizationstringA valid JWT token

RESPONSES

status: OK

{"current_page":1,"data":[{"user_id":2,"email":"player@email.com","pass_reset_token":null,"reset_token_updated":null,"created_at":"2023-02-07T22:37:22.000000Z","updated_at":"2023-03-14T10:35:14.000000Z","deleted_at":null,"first_login_at":"2023-02-07 22:52:31","provider_user_id":null,"provider":null,"onboarding":1,"debugging":0,"org_id":null,"admin_first_login":null,"admin_last_login":null,"login_counter":2,"admin_login_counter":0,"last_login_at":"2023-02-08 12:26:22","email_confirmation":1,"direct_registration_flag":1,"confirm_email_token":"","push_notifications":1,"push_personal":1,"push_team":1,"push_newsletter":1,"email_notifications":1,"email_personal":1,"email_team":1,"email_newsletter":1,"time_zone":null,"strava_integration":0,"user_pending_coach_approval":0,"onboarding_coach":0,"onboarding_payment":0,"show_skeleton_flag":1,"favourite_exercises_list":null,"profile_id":2,"profile_first_name":"Tendai","profile_last_name":"Bethel","profile_avatar":"https://files.teamsportz.app/myavatars/261482_1675810391.jpeg","profile_position":"SG","profile_number":66,"profile_reg_number":"LP0005278","profile_telephone1":null,"profile_telephone2":null,"profile_reg_file":null,"profile_guardian_relation_01":null,"profile_guardian_name_01":null,"profile_guardian_email_01":null,"profile_guardian_mobile_01":null,"profile_guardian_address_01":null,"profile_guardian_address_city_01":null,"profile_guardian_address_postcode_01":null,"profile_guardian_relation_02":null,"profile_guardian_name_02":null,"profile_guardian_email_02":null,"profile_guardian_mobile_02":null,"profile_guardian_address_02":null,"profile_guardian_address_city_02":null,"profile_guardian_address_postcode_02":null,"profile_guardian_relation_03":null,"profile_guardian_name_03":null,"profile_guardian_email_03":null,"profile_guardian_mobile_03":null,"profile_guardian_address_03":null,"profile_guardian_address_city_03":null,"profile_guardian_address_postcode_03":null,"profile_sent_consent_notice":0,"profile_consent_forms_data":0,"profile_consent_data_info_photo_videos":0,"profile_consent_sharing_info":0,"profile_consent_data_handling":0,"profile_consent_terms_conditions":0,"profile_consent_club_code_conduct":0,"profile_consent_coach_code_conduct":0,"profile_consent_player_code_conduct":0,"profile_consent_parent_code_conduct":0,"profile_consent_emergency_treatment":0,"profile_consent_social_media":0,"profile_inform_health_condition":0,"profile_inform_mentail_health_condition":0,"profile_inform_dietary_requirements":0,"profile_role":"Player","team_id":1,"team_name":"Atlantians U18 Mens","avg_rating":"0"}],"first_page_url":"https://api.teamsportz.pro/users?page=1","from":1,"last_page":1,"last_page_url":"https://api.teamsportz.pro/users?page=1","links":[{"url":null,"label":"pagination.previous","active":false},{"url":"https://api.teamsportz.pro/users?page=1","label":"1","active":true},{"url":null,"label":"pagination.next","active":false}],"next_page_url":null,"path":"https://api.teamsportz.pro/users","per_page":15,"prev_page_url":null,"to":1,"total":1}