Sign in
POST /v1/auth
Create a new token and return basic user infos.
X-STL-Secret-Key is a unique key authenticating your app. You have to ask it from SportsTrackLive.
Request
bash
curl -X POST -H "Content-Type: application/json" -H "X-STL-Secret-Key: {{secret_key}}" -d '{
"email": {{email}},
"password": {{password}},
"origin": "external"
}' "https://api.sportstracklive.com/v1/auth"http
POST /v1/auth HTTP/1.1
Host: api.sportstracklive.com
Content-Type: application/json
X-STL-Secret-Key: {{secret_key}}
{
"email": {{email}},
"password": {{password}},
"origin": "external"
}Response
200 OK — application/json; charset=utf-8
json
{
"user": {
"user_name": "john.doe",
"language": "fr",
"email": "john.doe@gmail.com",
"measure_unit": "measure_metric",
"time_zone": "UTC",
"large_profile_picture_url": "https://api.sportstracklive.com/[...].png"
},
"token": "0358e965bc3bccfe0eea1b6f77dda6def670195d6fb4c7f4ac8da73abe22935b"
}The returned token is used as the X-STL-Token header on the authenticated endpoints that follow.
