Every API method requires authentication token to identify the client application doing the request. If this token is not provided, is invalid, or has not been used for more than 20 minutes, all API methods will return the code 401 - Unauthorized.
The token is passed to all methods by sending the query parameter api_key in the URL as in this example (GET vehicles):
https://v2api.frotcom.com/v2/vehicles?api_key=8ea73fb4-60e8-44cb-949a-1592507d47f2
A valid token is obtained by calling the authentication method POST authorize as in the example below:
https://v2api.frotcom.com/v2/authorize">https://v2api.frotcom.com/v2/authorize
Body:
{
"provider": "thirdparty",
"username": "<usernsame>",
"password": "<password>"
}
It is also necessary to set the content type with this header:
Content-Type: application/json