---
agentTools:
  projectIndex: https://developer-docs.gomotive.com/llms.txt
---

# Fetch the available timelines for a vehicle

**Purpose**: Returns the available video timeline segments for a specific vehicle so you can verify video availability before creating a video recall request.

# Response Paramters

### vehicle

* **Type**: Object
* **Description**: Contains the details of the vehicle for which available video timelines are returned.

### vehicle.id

* **Type**: Integer
* **Description**: The unique identifier of the vehicle.

### vehicle.number

* **Type**: String
* **Description**: The vehicle number associated with the available timelines.

### primary\_entity

* **Type**: String
* **Description**: Indicates the primary entity associated with the response. For this endpoint, the value is `vehicle`.

### eld\_device

* **Type**: Object
* **Description**: Contains the details of the ELD device associated with the vehicle.

### eld\_device.id

* **Type**: Integer
* **Description**: The unique identifier of the ELD device.

### eld\_device.identifier

* **Type**: String
* **Description**: The identifier of the ELD device.

### available\_timelines

* **Type**: Array of Objects
* **Description**: Contains the list of time ranges for which video is available for the vehicle.

### available\_timelines\[].end\_time

* **Type**: String
* **Description**: The end time of an available video timeline, in ISO 8601 format.

### available\_timelines\[].start\_time

* **Type**: String
* **Description**: The start time of an available video timeline, in ISO 8601 format.

### quota\_info

* **Type**: Object
* **Description**: Contains the video recall quota details for the company.

### quota\_info.regular

* **Type**: Object
* **Description**: Contains the quota usage details for regular video recall requests.

### quota\_info.regular.used\_minutes

* **Type**: Integer
* **Description**: The number of regular video recall minutes used by the company in the current quota period.

### quota\_info.regular.remaining\_minutes

* **Type**: Integer
* **Description**: The number of regular video recall minutes remaining for the company in the current quota period.

### quota\_info.regular.total\_minutes

* **Type**: Integer
* **Description**: The total number of regular video recall minutes allocated to the company for the current quota period.

### quota\_info.timelapse

* **Type**: Object
* **Description**: Contains the quota usage details for timelapse video recall requests.

### quota\_info.timelapse.used\_minutes

* **Type**: Integer
* **Description**: The number of timelapse video recall minutes used by the company in the current quota period.

### quota\_info.timelapse.remaining\_minutes

* **Type**: Integer
* **Description**: The number of timelapse video recall minutes remaining for the company in the current quota period.

### quota\_info.timelapse.total\_minutes

* **Type**: Integer
* **Description**: The total number of timelapse video recall minutes allocated to the company for the current quota period.

***

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Motive",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.gomotive.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/video_recall_requests/vehicles/available_timelines": {
      "get": {
        "summary": "Fetch the available timelines for a vehicle",
        "description": "",
        "operationId": "fetch-the-available-timelines-for-a-vehicle",
        "parameters": [
          {
            "name": "vehicle_number",
            "in": "query",
            "description": "Specify the number of the vehicle for which you want to view the available timelines.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Fetch the available timelines for a vehicle": {
                    "value": "  {\n  \"vehicle\": {\n  \"id\": 1182,\n  \"number\": \"LBB_3.5Ca_01190110\"\n  },\n  \"primary_entity\": \"vehicle\",\n  \"eld_device\": {\n    \"id\": 5333,\n    \"identifier\": \"01190110\"\n  },\n  \"available_timelines\": [\n  {\n    \"end_time\": \"2020-04-13T19:38:18Z\",\n    \"start_time\": \"2020-04-13T19:37:40Z\"\n  },\n  {\n    \"end_time\": \"2020-04-14T15:50:59Z\",\n    \"start_time\": \"2020-04-14T14:53:59Z\"\n  }\n  ],\n  \"quota_info\": {\n    \"regular\": {\n    \"used_minutes\": 43,\n    \"remaining_minutes\": 207,\n    \"total_minutes\": 250\n  },\n  \"timelapse\": {\n    \"used_minutes\": 490,\n    \"remaining_minutes\": 510,\n    \"total_minutes\": 1000\n  }\n }\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "vehicle": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 1182,
                          "default": 0
                        },
                        "number": {
                          "type": "string",
                          "example": "LBB_3.5Ca_01190110"
                        }
                      }
                    },
                    "primary_entity": {
                      "type": "string",
                      "example": "vehicle"
                    },
                    "eld_device": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 5333,
                          "default": 0
                        },
                        "identifier": {
                          "type": "string",
                          "example": "01190110"
                        }
                      }
                    },
                    "available_timelines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "end_time": {
                            "type": "string",
                            "example": "2020-04-13T19:38:18Z"
                          },
                          "start_time": {
                            "type": "string",
                            "example": "2020-04-13T19:37:40Z"
                          }
                        }
                      }
                    },
                    "quota_info": {
                      "type": "object",
                      "properties": {
                        "regular": {
                          "type": "object",
                          "properties": {
                            "used_minutes": {
                              "type": "integer",
                              "example": 43,
                              "default": 0
                            },
                            "remaining_minutes": {
                              "type": "integer",
                              "example": 207,
                              "default": 0
                            },
                            "total_minutes": {
                              "type": "integer",
                              "example": 250,
                              "default": 0
                            }
                          }
                        },
                        "timelapse": {
                          "type": "object",
                          "properties": {
                            "used_minutes": {
                              "type": "integer",
                              "example": 490,
                              "default": 0
                            },
                            "remaining_minutes": {
                              "type": "integer",
                              "example": 510,
                              "default": 0
                            },
                            "total_minutes": {
                              "type": "integer",
                              "example": 1000,
                              "default": 0
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Forbidden request": {
                    "value": "{\n  \"error\": \"The resource owner or authorization server denied the request.\"\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "The resource owner or authorization server denied the request."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Vehicle not found": {
                    "value": "{\n  \"error\": \"Vehicle not found\"\n}\n"
                  },
                  "Empty vehicle number": {
                    "value": "{\n  \"error\": \"vehicle_number is empty\"\n}\n"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Vehicle not found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "string",
                          "example": "Vehicle not found"
                        }
                      }
                    },
                    {
                      "title": "Empty vehicle number",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "string",
                          "example": "vehicle_number is empty"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66acf64a829e88001980fbf2:6a31b742253319106fa0acf5"
}
```