[API] Get Drivers Information
Retrieves the essential data about an individual driver or all drivers associated with Fleet Owners. This API is crucial for accessing fundamental details and driver-related information efficiently within the system, including real-time reflection of the removal or addition of drivers to the fleet.
¶ Use case
Fleet suppliers can use the “Get Driver’s information” API to access driver details, including profiles, contact information, encrypted UUID, and raw UUIDs. Additionally, the availability of encrypted and raw UUIDs facilitates the use of APIs that accept these formats for driver identification and management. The data refresh rate for this API is near real-time, with an expected delay of 2–3 minutes, ensuring that the information is updated with only a slight delay.
¶ Using Dependent API
To gather details about drivers, such as their driver UUID and name, fleet owners should follow two steps. Firstly, they must utilize the Get Organizations API, entering the Fleet Supplier’s unique ID. This action fetches all the connected encrypted organizations. Secondly, using the encrypted Organization UUID as input, they can access the Get Driver’s Information API to obtain specific driver details.
¶ Supported supplier types
Fleets
¶ Scopes
One of - solutions.suppliers.drivers.status.read
, solutions.suppliers.metrics.read
¶ Resource
/v1/vehicle-suppliers/drivers
¶ HTTP Method
GET
¶ Access Method
¶ Example Request
curl -i -X GET "https://api.uber.com/v1/vehicle-suppliers/drivers?org_id=<org_id>&page_token=<page_token>&page_size=<page_size>" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
Example Request with driver filter
curl -i -X GET "https://api.uber.com/v1/vehicle-suppliers/drivers?org_id=<org_id>&page_token=<page_token>&page_size=<page_size>&driver_id=<driver_uuid>" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
Example Request for fetching assignedVehicle information
curl -i -X GET "https://api.uber.com/v1/vehicle-suppliers/drivers?org_id=<org_id>&page_token=<page_token>&page_size=<page_size>&include_assigned_vehicles=true" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
¶ Example Response
{
"driverInformation": [
{
"driverId": "910a15d2-a5b4-402b-8888-83ed261e6f99",
"driverIdEncrypted": "y9M1JoXUkOKQlE6OF4F0v34Aw3bHpF3a1x7F1FhMz6Lc6oKQgPEP2GM0eGcx2B2rtyVud50m0E8rGgJ3FXm97DGASbQT43tss5Cy0sUKt1vY8qjsu4tS3oj0snc2ZuYZs79DxW",
"firstName": "FirstName",
"lastName": "LastName",
"phoneNumber": {
"countryCode": "+1",
"number": "1234567890"
},
"email": "abc@gmail.com",
"assignedVehicles": [{
"vehicleId": "4jMffsUkOKQlE6OF4F0v34Aw3bHpF3a1x7F1FhMz6Lc6oKQgPEP2GM0eGcx2B2rtyVud50m0E8rGgJ3FXm97DGASbQT43tss5Cy0sUKt1vY8qjsu4tS3oj0snc2ZuYZs79DxW",
"assignedAt": "2023-03-30T00:10:55.926Z"
}]
}
],
"paginationResult": {
"nextPageToken": ""
}
}
¶ Request Query Parameters
Name | Type | Required | Description |
---|---|---|---|
org_id |
string | Y | Encrypted organization UUID. |
page_token |
string | N | Options for Pagination - page cursor for the page. |
page_size |
int32 | N | Options for Pagination - maximum number of records to be fetched in each request 0<x<=100. |
driver_id |
string | N | Raw driver uuid to get the results for requested driver_uuid. |
include_assigned_vehicles |
boolean | N | This Boolean parameter is used to retrieve the information about the vehicles assigned to each driver. |
¶ Response Body Fields
Name | Type | Nullable | Description |
---|---|---|---|
driverInformation |
object array | Y | Array of DriverInformation contains list of driver’s with their information. |
paginationResult |
object | N | object of type PaginationResult. |
Name | Type | Description |
---|---|---|
driverId |
string | Driver’s id in uuid format. |
driverIdEncrypted |
string | Driver’s id in encrypted format. |
firstName |
string | First Name. |
lastName |
string | Last Name. |
phoneNumber |
object | Driver’s registered PhoneNumber. |
email |
string | Driver’s email Id |
assignedVehicles |
object | Vehicles assigned to the driver at current moment AssignedVehicle |
Name | Type | Description |
---|---|---|
countryCode |
string | country code for the phone number. |
number |
string | phone number. |
Name | Type | Description |
---|---|---|
vehicleId |
string | Encrypted uuid of vehicle. |
assignedAt |
string | Time in UTC timezone when the vehicle was assigned to the driver. |
Name | Type | Description |
---|---|---|
nextPageToken |
string | Can be empty, if there are no more records |
¶ Rate Limit
Rate limit for accessing this endpoint is set at 100000 requests per hour per Developer Application.
¶ Endpoint-specific Errors
Http Status Code | Code | Message |
---|---|---|
400 | bad_request | The request parameters are invalid. |
500 | internal_server_error | Internal server error. |
403 | unauthenticated | User does not have permission. |
429 | rate_limited | Number of requests exceeds the allowed limit. |
503 | service_unavailable | Service unavailable. |
401 | unauthorized | Invalid OAuth 2.0 credentials. |
¶ Notes
- If
page_token
parameter is not specified, its default value will be an empty string. - If the returned
paginationResult
object is not empty, it indicates that further entities can be retrieved by calling the endpoint again with the providednextPageToken
and a validpageSize
(between 1 and 100). - Updates made to driver profiles will be reflected in real-time in this endpoint.