POST
/
v2
/
drivers
curl --request POST \
  --url https://api.app.fleetit.com/v2/drivers/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "driver_id": "DUMMY12345",
  "first_name": "John",
  "last_name": "Doe",
  "address_line_1": "123 Main Street",
  "address_line_2": "Apt 4B",
  "city": "New York",
  "state": "NY",
  "zip": "10001",
  "contact_number": "1234567890",
  "email": "john.doe@example.com"
}'
{
  "id": 101,
  "driver_agreements": [],
  "driver_id": "DUMMY12345",
  "first_name": "John",
  "last_name": "Doe",
  "address_line_1": "123 Main Street",
  "address_line_2": "Apt 4B",
  "city": "New York",
  "state": "NY",
  "zip": "10001",
  "contact_number": "1234567890",
  "email": "john.doe@example.com"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
driver_id
string
required

Unique identifier for the driver

Example:

"DUMMY12345"

first_name
string
required
last_name
string
required
address_line_1
string
required
city
string
required
state
string
required
zip
string
required
contact_number
string
required
email
string
required
address_line_2
string

Response

200 - application/json
Successful response
id
integer
driver_agreements
object[]
driver_id
string
first_name
string
last_name
string
address_line_1
string
address_line_2
string
city
string
state
string
zip
string
contact_number
string
email
string

Was this page helpful?