Skip to main content
POST
/
location-history
/
generate-token
Generate location history token
curl --request POST \
  --url https://apiweb.mile.app/api/v3/location-history/generate-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "example@mile.app",
  "date": "2024-02-20"
}
'
{
  "status": true,
  "message": "Success.",
  "token": "eyJkYXRhIjoiZXlKcGRpSTZJa1JQYkhKTVFraGtNMFpKV21SRmQxZHFkSEZWTkVFOVBTSXNJblpoYkhWbElqb2lheXRMVVc5aFEzRTJNR28zWjJ0UE1rbFdRa1pUYVU0eU9VbElTa2huVFZOT05WUTVMMko0UkZSVVVWQXlSbXRUVGxOcWJWWmpVVTA1SzBSS1FqTm5SRkppYWl0MWMzSXlWMEZSYVZCbFMydHdlbE15TlhwUVkyeExSa053ZUhoUk5FNTFlWFZIYzNwWVJtWjFNVWRKWm1WSmRWUmliRWs0Tm1KSGFWSXpRVTFpUkZwMWNqRlpNVWNyYVZkNmNXUkhkMU5GTVRaRVIzTlJlakZPTkd0amNFOTRhbEZxTVVKallXWTBQU0lzSW0xaFl5STZJamczTXpBeE9UVTFNalUzTkRGbFlUbGlOMkZsT0dOaU1EWXhZVEkzTWpVek9EQXdObVU0WW1FMU5HTXhOelJrWkdFMk1tSXlZV1JqT1RZeFptUXpPR0lpTENKMFlXY2lPaUlpZlE9PSIsImV4cGlyYXRpb24iOiIyMDI0LTAyLTI3VDA5OjU5OjMzLjA1OTA0OVoifQ=="
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
email
string
required

Required, User's email assigned to the monitored task. Example: example@mile.app

date
string

The date indicating the time of user tracking and using the format Y-m-d. The default date if not filled in is today's date. Example: 2025-02-20

Response

Success

status
boolean

Indicates whether the request was successful.

message
string

A message providing additional information about the response.

token
string

Tracking token data that has been successfully generated.