cURL
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_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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Unique identifier for the driver
"DUMMY12345"
Successful response
Was this page helpful?