Getting an API key to make use of Lorry Route in your application is easy. Simply use your driver login and make the following API request to generate your own key.
Host : be.lorryroute.com
Schemes : HTTPS
• application/json
• application/json
POST /api/auth/login-driver
{
"password" : "abcd1234",
"username" : "abcd1234"
}
{
"token" : "Quibusdam voluptates dolorem quia ut."
}
POST /api/auth/login
Sign a user in with username and password which will be queried in the users table and return user information.
{
"organisation_id" : 5905433815128902000,
"password" : "abcd1234",
"username" : "jamesbond@gmail.com"
}
{
"role" : "Ut explicabo quibusdam quaerat laboriosam aut et.",
"token" : "Reiciendis et debitis et nam aut.",
"user_info" : {
"address_1" : "Atque debitis.",
"address_2" : "Magnam ratione voluptatum.",
"city" : "Assumenda aliquid aut ea.",
"company_name" : "Aspernatur ipsam.",
"contact_name" : "Illum illo facilis saepe aut ut.",
"country" : "Est pariatur optio porro.",
"email" : "Corrupti molestiae non voluptates quis.",
"fleet_size" : "Et sint quaerat fuga aut minima eum.",
"org_id" : 3655636715619876400,
"phone" : "Id placeat aut molestiae in quod officiis.",
"postcode" : "Laboriosam hic qui enim aut temporibus aut.",
"username" : "Sed architecto."
} }
POST /api/api_keys/generate
Generate an api key that helps access 'generateRoutes'.
{
"email" : "jamesbond@gmail.com",
"name" : "exampleName",
"phone" : "3z4snsxkbc"
}
{
"token" : "Quibusdam voluptates dolorem quia ut."
}
GET /api/api_keys/{token}
Get detail of an API key and its user.
{
"email" : "Nisi et.",
"generate_routes_number" : 4599346269881404400,
"name" : "Qui et voluptas sequi et.",
"phone" : "Quo qui dolor eum qui dolorem alias."
}
POST /api/push_token
Assign a device token.
Required security scopes: * api:access
{
"tokens" : [ "device_token1" ]
}
{
"user_id" : 116,
"driver_id" : 160,
"tokens" : [ "device_token1" ]
}