Web services
You can create your credentials on the developer website (api.trackmania.com).
Documentation
The available routes are described here.
Authentication
After retrieving your client ID you need to get an access token. All the methods to get one are described in auth.