Login
POST {{baseUrl}}/v1/auth/login
This endpoint gives you access to player or coaches accounts.
Request Body
[{"name"=>"email", "value"=>"ouakhila+HeadCoach11@teamsportz.pro", "datatype"=>"string"}, {"name"=>"email", "value"=>"francisco+atlanteans@teamsportz.pro", "datatype"=>"string"}, {"name"=>"password", "value"=>"TestTest12345", "datatype"=>"string"}, {"name"=>"password", "value"=>"T3stT3st", "datatype"=>"string"}, {"name"=>"email", "value"=>"francisco+atlanteans@teamsportz.pro", "datatype"=>"string"}, {"name"=>"email", "value"=>"ouakhila+player1@teamsportz.pro", "datatype"=>"string"}]
RESPONSES
status: OK
"{\n \"error\": false,\n \"code\": 200,\n \"message\": \"Your login was successful.\",\n \"token\": \"myToken\", // Valid JWT Token that will expire in minutes. View /v1/auth/refresh\n \"user_id\": 1,\n \"profile\": [\n {\n \"user_id\": 1,\n \"email\": \"myemail@email.com\",\n \"pass_reset_token\": \"\",\n \"reset_token_updated\": \"2021-11-01 09:19:51\",\n \"created_at\": \"2021-04-20T09:10:45.000000Z\",\n \"updated_at\": \"2022-01-28T01:24:01.000000Z\",\n \"deleted_at\": null,\n \"first_login_at\": \"2020-08-05 14:46:05\",\n \"provider_user_id\": null,\n \"provider\": null,\n \"onboarding\": 1,\n \"debugging\": 1,\n \"org_id\": 00,\n \"admin_first_login\": null,\n \"admin_last_login\": \"2022-02-05 18:29:26\",\n \"login_counter\": 1,\n \"admin_login_counter\": 1,\n \"last_login_at\": \"2022-02-06 19:18:17\",\n \"email_confirmation\": 1,\n \"direct_registration_flag\": 0,\n \"confirm_email_token\": null,\n \"push_notifications\": 1,\n \"push_personal\": 0,\n \"push_team\": 1,\n \"push_newsletter\": 0,\n \"email_notifications\": 1,\n \"email_personal\": 1,\n \"email_team\": 1,\n \"email_newsletter\": 1,\n \"time_zone\": null,\n \"strava_integration\": 1,\n \"user_pending_coach_approval\": 0,\n \"onboarding_coach\": 1,\n \"profile_id\": 2,\n \"profile_first_name\": \"MyFirstName\",\n \"profile_last_name\": \"MyLastName\",\n \"profile_address\": null,\n \"profile_city\": null,\n \"profile_postcode\": null,\n \"profile_gender\": \"Male\",\n \"profile_social1\": null,\n \"profile_social2\": null,\n \"profile_social3\": null,\n \"profile_dob\": \"1978-12-08\",\n \"profile_avatar\": \"https://my_avatar_image.jpeg\",\n \"profile_sport\": \"Basketball\",\n \"profile_skill\": \"Intermediate\",\n \"profile_fitness\": \"Beginner\",\n \"profile_age_group\": \"Masters\",\n \"profile_metric_distance\": null,\n \"profile_metric_weight\": null,\n \"profile_height\": null,\n \"profile_weight\": null,\n \"team_id\": 3,\n \"profile_role\": \"Head Coach\",\n \"created_by\": null,\n \"profile_telephone1\": null,\n \"profile_telephone2\": null,\n \"profile_number\": 24, // Jersey Number\n \"profile_position\": null,\n \"profile_nationality\": null,\n \"profile_rate_handling\": null,\n \"profile_rate_passing\": null,\n \"profile_rate_quickness\": null,\n \"profile_rate_communication\": null,\n \"profile_rate_composure\": null,\n \"profile_rate_unselfishness\": null,\n \"address_id\": null,\n \"profile_bio\": \"Leave everything on the court. Baller for life\",\n \"profile_standby\": null,\n \"profile_telephone_code\": null,\n \"profile_how_did_you_hear\": \"Staff member\",\n \"profile_profession\": \"Head Coach \u0026 General Manager\",\n \"org_type\": null,\n \"org_name\": \"Renegades FC\",\n \"org_description\": null,\n \"org_avatar\": null,\n \"payment_id\": null,\n \"third_party_enabled\": 0,\n \"third_party_api_key\": null,\n \"team_name\": \"Renegades U18\"\n }\n ]\n}"