<!-- dev-portal
method: POST
title: Create Driver
path: /v1/driver
-->

<div style="background-color:#fff3cd; border-left:6px solid #ffeeba; padding:16px; margin-bottom:24px;">
<strong>Note:</strong> Some APIs listed on this page will be deprecated soon and will no longer receive updates or support. Please refer to the <a href="../../../NEW Ford Telematics REST API V2/V2 Migration Guide"><u>Migration Guide</u></a> to learn about the new endpoints and how to transition your integration.
</div>

### POST /v1/driver

Create new driver

#### Request Body

| Name                       | Type                                             | Required | Description                                                                                                                      |
|----------------------------|--------------------------------------------------|----------|----------------------------------------------------------------------------------------------------------------------------------|
| first_name                 | String                                           | Yes      | First name of the driver.                                                                                                        |
| last_name                  | String                                           | Yes      | Last name of the driver.                                                                                                         |
| email                      | String                                           | Yes      | Email of the driver.  Must be unique from other drivers.                                                                         |
| language                   | [DriverLanguage](../../Schemas#driverlanguage)      | No       | Language for the driver.  Defaults to en-US.                                                                                     |
| primary_phone_country_code | String                                           | No       | Country code for the phone number.  Defaults to country prefix used in phone number.                                             |
| primary_phone              | String                                           | No       | Phone number for the driver.                                                                                                     |
| employee_id                | String                                           | No       | Employee id given to the driver by the customer.  Must be unique per customer.                                                   |
| segments                   | Array[[DriverSegment](../../Schemas#driversegment)] | No       | Set with the segments UUID. You can get available segments from <a href="../Company Details"><u>Company Details endpoint</u></a>. The API user needs <a href="../../Getting Started"><u>access</u></a> to the segments you are associating the driver to. |
| send_invite                | Boolean                                          | No       | Flag indicating if you want to invite user to use drive app (Requires drive app to be enabled in the marketplace).               |


#### Response

| Name                       | Type                                             | Required | Description                                                                          |
|----------------------------|--------------------------------------------------|----------|--------------------------------------------------------------------------------------|
| first_name                 | String                                           | Yes      | First name of the driver.                                                            |
| last_name                  | String                                           | Yes      | Last name of the driver.                                                             |
| email                      | String                                           | Yes      | Email of the driver.  Must be unique from other drivers.                             |
| language                   | [DriverLanguage](../../Schemas#driverlanguage)      | No       | Language for the driver.  Defaults to en-US.                                         |
| primary_phone_country_code | String                                           | No       | Country code for the phone number.  Defaults to country prefix used in phone number. |
| primary_phone              | String                                           | No       | Phone number for the driver.                                                         |
| employee_id                | String                                           | No       | Employee id given to the driver by the customer.  Must be unique per customer.       |
| segments                   | Array[[DriverSegment](../../Schemas#driversegment)] | No       | Set with the segments UUID.                                                          |
| send_invite                | Boolean                                          | No       | Flag indicating if an invite was sent to the user                                    |

##### Response Codes

| Name | Description                                                                                                                            |
|------|----------------------------------------------------------------------------------------------------------------------------------------|
| 201  | Created.                                                                                                                               |

#### Example

```bash
curl -X POST -H "Authorization: \"Bearer ${AUTH_TOKEN}\"" "https://${HOST}/vehicle-status-api/v1/driver"  --data '{
    "first_name": "FPITestDriver001",
    "last_name": "TestDriver001",
    "language": {
        "code": "en-US"
    },
    "employee_id": "fpi-test-driver001",
    "primary_phone_country_code": "USA",
    "primary_phone": "+18888889897",
    "email": "fpitestdriver001@gmail.com",
  	"segments": [
      {
        "id": "5a414d5f-0a2e-4413-b72b-20c016cf8f60"
      }
    ],
    "sendInvite": false
}'

{
  "id": "f2e147e2-2a96-43a5-9389-cddda480aa07",
  "employee_id": "fpi-test-driver001",
  "first_name": "FPITestDriver001",
  "last_name": "TestDriver001",
  "email": "fpitestdriver001@gmail.com",
  "language": {
    "code": "en-US"
  },
  "primary_phone": "+18888889897",
  "primary_phone_country_code": "USA",
  "segments": [
      {
        "id": "5a414d5f-0a2e-4413-b72b-20c016cf8f60"
      }
  ],
  "send_invite": false
}
```
