At the moment of writing this chapter, the Mapbox Directions API is available only when using a paid Mapbox plan.
You will need to perform the following steps:
Construct a GET request by specifying the profile and locations.
Paste the request in the browser or in a REST client.
You will get back a JSON file with coordinates matching your query.
A complete request should look similar to the following one: