cURL
curl --request GET \ --url https://api.pathstack.io/milestone/{milestone_id} \ --header 'Authorization: Bearer <token>'
{ "data": { "device_id": "<string>", "start_point": { "latitude": 0, "longitude": 0 }, "end_point": { "latitude": 0, "longitude": 0 }, "start_time": "<string>", "end_time": "<string>", "id": "<string>", "tenant_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "status": "trip_not_started", "webhook_url": "<string>", "webhook_error_count": 0, "last_webhook_error": "<string>", "last_webhook_error_at": "<string>", "webhook_enabled": true } }
Returns a milestone
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the Milestone to be returned
Successful Response
Successful response payload
Show child attributes
-90 <= x <= 90
-180 <= x <= 180
trip_not_started
trip_in_progress
trip_ended
1 - 2083