<!-- dev-portal
method: GET
title: Get Driver Associations
path: /v2/driver-association
-->

<div style="background-color:#fff3cd; border-left:6px solid #ffeeba; padding:16px; margin-bottom:24px;">
<strong>Note:</strong> GET /v2/driver-association 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>

### GET /v2/driver-association

Retrieve driver associations

<div style="background-color:#fff3cd; border-left:6px solid #ffeeba; padding:16px; margin-bottom:24px;">
<strong>Note:</strong> This API 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>

#### Request Parameters

| Name          | Type          | Required | Description                                                                                                                         |
|---------------|---------------|----------|-------------------------------------------------------------------------------------------------------------------------------------|
| active        | boolean       | No       | If true will return only active driver associations.  If null, defaults false.                                                      |
| driver-filter | Array[UUID]   | No       | Drivers to retrieve associations for.  If null, will default to filter for driver making the request.                               |
| relations     | Array[string] | No       | Comma seperated list of relations to include in response.  ex: Driver, Vehicle.  If null, default behavior is to show no relations. |

#### Response

| Name       | Type      | Description                                                        |
|------------|-----------|--------------------------------------------------------------------|
| id         | UUID      | ID of association record.                                          |
| driver_id  | UUID      | Unique identifier of the driver.                                   |
| vin        | string    | Vehicle Identification Number.                                     |
| start_time | string    | Start time of the association.                                     |
| end_time   | string    | End time of the association.                                       |
| relations  | Relations | Relations object which holds Driver and Vehicle relations objects. |

##### Response Codes

| Name | Description                                                                                                               |
|------|---------------------------------------------------------------------------------------------------------------------------|
| 200  | Ok.                                                                                                                       |

#### Example

```bash
curl -X GET -H "Authorization: \"Bearer ${AUTH_TOKEN}\"" "https://${HOST}/vehicle-status-api/v2/driver-association?active=true&relations=Driver,Vehicle&driver-filter=3fa85f64-5717-4562-b3fc-2c963f66afa6"
[
    {
        "id": "65570DED-76CD-4DA5-B321-05078479BC0C",
        "driver_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "vin": "1FMTF1RM2NMA94068",
        "start_time": "2024-09-03T13:12:33.000Z",
        "end_time": "2024-09-03T14:12:33.000Z",
        "relations": {
          "driver": {
            "first_name": "Sally",
            "last_name": "Smith",
            "country_code": "US",
            "email": "sally.smith@email.com",
            "timezone": "UTC"
          },
          "vehicle": {
            "id": "106B2FB1-6E53-4C1A-E2EE-1CC17F26028B",
            "vin": "1FMTF1RM2NMA94068",
            "name": "MyCarName1234",
            "make": "Ford",
            "model": "F-150",
            "year": "2024"
          }
        }
    }
]
```
