The GET Driver by ID API endpoint allows you to retrieve detailed information about a specific driver using their unique ID. This endpoint provides comprehensive data about the driver, facilitating effective driver management and tracking within the Alvys system.

The endpoint for retrieving a driver by ID requires specifying the driver's unique ID and the API version in the URL path. This ensures that your application interacts with the correct driver's data and the appropriate version of the API, providing stability and compatibility as the API evolves. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.

Request Parameters

The following parameters are required in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe API version to use.
idStringYesThe unique Alvys identifier of the driver.

Example CURL request

curl --location 'https://integrations.alvys.com/api/p/v{version}/drivers/{id}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Replace {version} with the API version number, {id} with the actual driver ID, and YOUR_ACCESS_TOKEN with your actual Bearer token:

curl --location 'https://integrations.alvys.com/api/p/v1/drivers/DR123456789' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaWQiOiJBTDM2MyIsInZlc...'

Response Parameters

The following table lists the parameters included in the response for driver-related requests.

ParameterTypeRequiredDescription
idStringYesThe unique identifier of the driver.
employeeIdStringNoThe employee ID of the driver.
phoneNumberStringNoThe phone number of the driver.
userIdStringNoThe user ID associated with the driver.
emailStringNoThe email address of the driver.
nameStringNoThe name of the driver.
typeStringNoThe type of driver (e.g., Full-time, Part-time).
subsidiaryIdStringNoThe subsidiary ID to which the driver belongs.
addressObjectNoThe address details of the driver.
address.streetStringNoThe street address of the driver.
address.cityStringNoThe city of the driver's address.
address.stateStringNoThe state of the driver's address.
address.zipCodeStringNoThe zip code of the driver's address.
statusStringNoThe current status of the driver (e.g., Active, Inactive).
licenseNumStringNoThe driver's license number.
licenseStateStringNoThe state that issued the driver's license.
licenseExpiresAtString (Date-Time)NoThe expiration date of the driver's license.
medicalExpiresAtString (Date-Time)NoThe expiration date of the driver's medical certificate.
hiredAtString (Date-Time)NoThe date when the driver was hired.
terminatedAtString (Date-Time)NoThe date when the driver was terminated, if applicable.
notesArrayNoAn optional list of notes related to the driver.
notes.idStringNoThe unique identifier of the note.
notes.descriptionStringNoThe description of the note.
notes.noteTypeStringNoThe type of the note.
notes.timeString (Date-Time)NoThe time the note was created.
notes.userStringNoThe user who created the note.
fleetObjectNoThe fleet information associated with the driver.
fleet.idStringNoThe unique identifier of the fleet.
fleet.nameStringNoThe name of the fleet.
createdAtString (Date-Time)YesThe date and time when the driver was created in Alvys.

Example Response

On the right side, you can see examples of different error codes by clicking "Example" and selecting the response code.

Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section.

This page is interactive, allowing you to try a request by providing the driver ID in the URL path. As you fill out the parameters, the Curl command on the right side of the page will be automatically updated. Alternatively, you can directly edit the Curl command. Make sure to authorize yourself before trying a request.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!