Skip to main content
Version: v0.2b

Driver Schema

Model

Driver

Ƭ Driver: Object

The driver data. All drivers in the API will have this format.

Example

{
"id": "drivers/w8ZaNn3e5ZA8EQSABtca",
"name": "John Doe",
"email": "john.doe@getcircuit.com",
"phone": "+15555555555",
"displayName": "John D.",
"active": true
}

Type declaration

NameTypeDescription
idDriverId-
namestring | nullFull user name Default ts null
emailstring | nullUser email Default ts null
phonestring | nullPhone number in E.164 format Default ts null
displayNamestring | nullUser name for display purposes
activebooleanIf true, the driver membership is active and the driver can be assigned to plans/routes.
If false, the driver membership is paused and the driver will not be assignable to any plans/routes.

Identifier

DriverId

Ƭ DriverId: `drivers/${string}`

A driver id is a string that is unique for a driver. It is used to identify the driver in the API.

Example

"drivers/0xBYy4MYt4piMCSQEsts"