
### Overview
This migration seeks to improve data privacy while bringing these APIs in line with the Ford API Style Guide. 
#### Key Changes:
* Removed PII (VINs, customer IDs, etc.) from all request parameters and path variables, replacing them with non-sensitive identifiers. 
* Endpoints that previously used VIN as a path parameter now use vehicle ID instead. 
* Field parameters are now camelCase instead of snake_case i.e. 'firstName' instead of 'first_name'.
* Pagination is now consistent across endpoints.
  * Paginated requests will have a `size` and either a 1-indexed `page` number or a `page` cursor.
  * Paginated responses will contain an array of results, `content`, and `page`. The shape of `page` depends on whether the implementation is cursor-based, or index-based. Please see the specific endpoint implementation for full details. 

```json
{
  "content": [],
  "page": {}
}
```

#### Forward Compatibility

To support continuous improvement, we may introduce new fields, properties, or optional parameters to existing endpoints. These changes are considered non-breaking.
To ensure your integration remains stable:
Response Handling: Your client applications must be designed to ignore unrecognized properties in API responses (forward compatibility).
Versioning Policy: We do not increment the API version for the addition of new elements. New versions will only be released in the event of a breaking change (e.g., removing a field or changing a data type).
Request Parameters: New optional parameters may be added to existing endpoints without prior notice.


### Getting a Vehicle ID
Several endpoints now use `vehicleId` instead of `vin`. A `vehicleId` is assigned to a vehicle upon enrollment in any Ford Telematics product, and can be found in the vehicle's metadata.
Use `/v3/vehicles` to retrieve the metadata for fleet vehicles. Please see <u>[Vehicle Metadata](./API%20Endpoints/Vehicle%20Metadata)</u> for more endpoint usage details.

### Endpoint Changes

| Old endpoint                    | New endpoint                           | Major Changes                                                                                                                                                                                                                     | Link                                                                     |
|---------------------------------|----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
| GET /v1/vehicle/:vin/status     | GET /v2/vehicles/:vehicleId/status     | <ul><li>Uses vehicleId instead of vin</li><li>Updated Status Signal types</li></ul>                                                                                                                                               | <u>[Status](./API%20Endpoints/Status)</u>                                |
| GET /v2/driver-association      | POST /v3/driver-associations/search    | <ul><li>POST instead of GET</li><li>Most request params moved into POST body</li><li>Uses new standard paginated response</li><li>Pagination is now 1-indexed</li></ul>                                                           | <u>[Driver Association](./API%20Endpoints/Driver%20Association/Search%20Driver%20Associations)</u>      |
| GET /v1/drivers                 | POST /v3/users/search                  | <ul><li>POST instead of GET</li><li>Most request params moved into POST body</li><li>Uses new standard paginated response</li><li>Pagination is now 1-indexed</li><li>More generic, allowing lookup of other user roles</li></ul> | <u>[Users](./API%20Endpoints/Users)</u>                                  |
| DELETE /v1/driver/:id           | DELETE /v2/drivers                     | <ul><li>Id of driver to be deleted now sent in a header</li></ul>                                                                                                                                                                 | <u>[Drivers](./API%20Endpoints/Drivers/Delete%20Driver)</u>                              |
| GET /v1/vehicle/:vin/health     | GET /v2/vehicles/:vehicleId/health     | <ul><li>Uses vehicleId instead of vin</li></ul>                                                                                                                                                                                   | <u>[Health](./API%20Endpoints/Health)</u>                                |
| GET /v1/vehicle/:vin/historical | GET /v2/vehicles/:vehicleId/historical | <ul><li>Uses vehicleId instead of vin</li><li>Uses new standard paginated response</li></ul>                                                                                                                                      | <u>[Historical](./API%20Endpoints/History)</u>                           |
| GET /v1/vehicle/:vin/trip       | GET /v3/vehicles/:vehicleId/trips      | <ul><li>Uses vehicleId instead of vin</li><li>Uses new standard paginated response</li></ul>                                                                                                                                      | <u>[Trips](./API%20Endpoints/Trips)</u>                                  |
| GET /v1/vehicle/:vin/efficiency | GET /v2/vehicles/:vehicleId/efficiency | <ul><li>Uses vehicleId instead of vin</li></ul>                                                                                                                                                                                   | <u>[Efficiency](./API%20Endpoints/Vehicle%20Fuel%20Efficiency)</u>       |
| GET /v1/vehicles                | GET /v3/vehicles                       | <ul><li>Uses new standard paginated response</li><li>Pagination now uses a 1-indexed page number, instead of being cursor-based</li></ul>                                                                                         | <u>[Vehicle Metadata](./API%20Endpoints/Vehicle%20Metadata)</u>          |
| GET /v2/vehicles                | GET /v3/vehicles                       | <ul><li>Uses new standard paginated response</li><li>Pagination now uses a 1-indexed page number, instead of being cursor-based</li></ul>                                                                                         | <u>[Vehicle Metadata](./API%20Endpoints/Vehicle%20Metadata)</u>          |

### Unchanged Endpoints

The following endpoints remain unchanged and continue to work as previously documented:

| Endpoint                        | Description                             | Link                                                                     |
|---------------------------------|-----------------------------------------|--------------------------------------------------------------------------|
| POST /token                     | Retrieve temporary bearer token         | <u>[Token](./API%20Endpoints/Token)</u>                                  |
| GET /v1/company/details         | Retrieve company information details    | <u>[Company Details](./API%20Endpoints/Company%20Details)</u>            |
| POST /v1/driver-association     | Create new driver association record    | <u>[Driver Association](./API%20Endpoints/Driver%20Association/Create%20Driver%20Association)</u>      |
| PUT /v1/driver-association      | End driver association                  | <u>[Driver Association](./API%20Endpoints/Driver%20Association/End%20Driver%20Association)</u>      |
| POST /v1/driver                 | Create new driver                       | <u>[Drivers](./API%20Endpoints/Drivers/Create%20Driver)</u>                              |
| PATCH /v1/driver                | Update driver details                   | <u>[Drivers](./API%20Endpoints/Drivers/Update%20Driver)</u>                              |
| GET /v3/vehicles                | Retrieve vehicle metadata               | <u>[Vehicle Metadata](./API%20Endpoints/Vehicle%20Metadata)</u>          |
