Skip to main content

Drivers - Retrieve All Drivers

Overview

This endpoint allows you to retrieve all drivers for a given account.


Request

GET /v1/accounts/{account_uuid}/drivers

Query Parameters

ParameterTypeDescription
invited_driversBooleanOptional. If set to true, the response will include drivers who have been invited but not yet signed up.

Example Request

GET /v1/accounts/3584a197b5a9/drivers?invited_drivers=true

Response

Response Values

KeyTypeValue
account_uuidStringDriver's Unique Account Identifier
uuidStringA unique ID for the given driver.
partners_external_identifierStringExternal id from partner system to identify the driver
first_nameStringThe driver's first name
last_nameStringThe driver's last name
emailStringThe driver's email address
phone_numberStringThe driver's phone number
on_dutyBooleanWhether or not the driver is currently clocked in.
activeBooleanWhether or not the driver is still an active member of your fleet
profile_picture_urlStringA link to a photo of the driver
invitation_phone_numberStringThe phone number used to invite the driver
invitation_emailStringThe email address used to invite the driver
signup_completedBooleanIndicates if the driver completed the signup process. Only present if invited_drivers=true is set.

Example Response

Note: The following example shows the response when the invited_drivers=true query parameter is used.

[
{
"account_uuid": "100000ben1es",
"uuid": "54f5b7b86e9f",
"partners_external_identifier": "POS2-4564",
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@captain.ai",
"phone_number": "+447455644555",
"on_duty": false,
"active": true,
"profile_picture_url": "http://res.cloudinary.com/captain-ai/image/upload/v1591321862/profile_pictures/gfriipbhndq4g6bbrewd.jpg",
"invitation_phone_number": "+447455644555",
"invitation_email": "john.smith@captain.ai",
"signup_completed": true
},
{
"account_uuid": "100000ben1es",
"uuid": "62d4c15f21a",
"partners_external_identifier": "POS2-4564",
"first_name": "Jake",
"last_name": "Smith",
"email": "jake.smith@captain.ai",
"phone_number": "+447455644550",
"on_duty": true,
"active": true,
"profile_picture_url": "http://res.cloudinary.com/captain-ai/image/upload/v1591321862/profile_pictures/gfriipbhndq4g6bbrewe.jpg",
"invitation_phone_number": "+447455644550",
"invitation_email": "jake.smith@captain.ai",
"signup_completed": true
}
]