> This page is for version Dev.
> For other versions, use one of these documentation indexes:
> - Prod (default): https://docs.chrt.com/prod/llms.txt
> - Staging: https://docs.chrt.com/staging/llms.txt
> - Dev: https://docs.chrt.com/dev/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.chrt.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.chrt.com/_mcp/server.

# Data points

GET https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1

Returns raw Tive data points for a shipment within the given time range. Scoped to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (TiveTimeseriesRes)

Reference: https://docs.chrt.com/api-reference/api-reference/tracking-integrations/tive/timeseries/data-points-v-1

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.dev.chrt.com` (Development, default)
- `https://localhost:8000` (Local)
- `https://api.staging.chrt.com` (Staging)
- `https://api.chrt.com` (Production)

## Request

### Query parameters

- `tive_shipment_id` (string, required)
- `start_timestamp` (string, required)
- `end_timestamp` (string, required)

## Response

### 200

Successful Response

- `data_points` (list of TiveDataPoint1, required)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### TiveDataPoint1

- `_id` (string, required)
- `location` (LocationFeature, required) — GeoJSON Feature with typed properties for locations The geometry field is strongly typed as Geometry (union of all geometry types) but remains optional to match the base Feature class specification. To ensure geometry is always present, validate it at runtime or make it required.
- `metadata` (TiveDataPointMetadata1, required)
- `schema_version` (integer, required)
- `timestamp` (string, required)
- `acceleration_g` (double, optional, nullable)
- `acceleration_x` (double, optional, nullable)
- `acceleration_y` (double, optional, nullable)
- `acceleration_z` (double, optional, nullable)
- `battery` (integer, optional, nullable)
- `humidity` (double, optional, nullable)
- `light` (double, optional, nullable)
- `location_method` (string, optional, nullable)
- `motion` (integer, optional, nullable)
- `process_time` (string, optional, nullable)
- `temperature_f` (double, optional, nullable)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### LocationFeature

GeoJSON Feature with typed properties for locations The geometry field is strongly typed as Geometry (union of all geometry types) but remains optional to match the base Feature class specification. To ensure geometry is always present, validate it at runtime or make it required.

- `geometry` (LocationFeatureGeometry, required)
- `type` ("Feature", required)
- `bbox` (LocationFeatureBbox, optional, nullable)
- `id` (LocationFeatureId, optional, nullable)
- `properties` (LocationProperties, optional, nullable) — Properties for GeoJSON Feature objects

### TiveDataPointMetadata1

- `tive_device_id` (string, required)
- `tive_shipment_id` (string, required)
- `pytest` (boolean, optional, nullable)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

### LocationFeatureGeometry

- `type`: `GeometryCollection` (GeometryCollection)
  - `geometries` (list of LocationFeatureGeometryDiscriminatorMappingGeometryCollectionGeometriesItems, required)
  - `bbox` (LocationFeatureGeometryDiscriminatorMappingGeometryCollectionBbox, optional, nullable)
- `type`: `LineString` (LineString)
  - `coordinates` (list of LocationFeatureGeometryDiscriminatorMappingLineStringCoordinatesItems, required)
  - `bbox` (LocationFeatureGeometryDiscriminatorMappingLineStringBbox, optional, nullable)
- `type`: `MultiLineString` (MultiLineString)
  - `coordinates` (list of list of MultiLineStringCoordinatesItemsItems, required)
  - `bbox` (MultiLineStringBbox, optional, nullable)
- `type`: `MultiPoint` (MultiPoint)
  - `coordinates` (list of MultiPointCoordinatesItems, required)
  - `bbox` (MultiPointBbox, optional, nullable)
- `type`: `MultiPolygon` (MultiPolygon)
  - `coordinates` (list of list of list of MultiPolygonCoordinatesItemsItemsItems, required)
  - `bbox` (MultiPolygonBbox, optional, nullable)
- `type`: `Point` (Point)
  - `coordinates` (PointCoordinates, required)
  - `bbox` (PointBbox, optional, nullable)
- `type`: `Polygon` (Polygon)
  - `coordinates` (list of list of PolygonCoordinatesItemsItems, required)
  - `bbox` (PolygonBbox, optional, nullable)

### LocationFeatureBbox

- list of string
- list of string

### LocationFeatureId

- integer
- string

### LocationProperties

Properties for GeoJSON Feature objects

- `address` (string, optional, nullable)
- `country_code` (string, optional, nullable)
- `name` (string, optional, nullable)
- `postal_code` (string, optional, nullable)

### LocationFeatureGeometryDiscriminatorMappingGeometryCollectionGeometriesItems

- `type`: `GeometryCollection` (GeometryCollection)
  - `geometries` (list of LocationFeatureGeometryDiscriminatorMappingGeometryCollectionGeometriesItems, required)
  - `bbox` (LocationFeatureGeometryDiscriminatorMappingGeometryCollectionBbox, optional, nullable)
- `type`: `LineString` (LineString)
  - `coordinates` (list of LocationFeatureGeometryDiscriminatorMappingLineStringCoordinatesItems, required)
  - `bbox` (LocationFeatureGeometryDiscriminatorMappingLineStringBbox, optional, nullable)
- `type`: `MultiLineString` (MultiLineString)
  - `coordinates` (list of list of MultiLineStringCoordinatesItemsItems, required)
  - `bbox` (MultiLineStringBbox, optional, nullable)
- `type`: `MultiPoint` (MultiPoint)
  - `coordinates` (list of MultiPointCoordinatesItems, required)
  - `bbox` (MultiPointBbox, optional, nullable)
- `type`: `MultiPolygon` (MultiPolygon)
  - `coordinates` (list of list of list of MultiPolygonCoordinatesItemsItemsItems, required)
  - `bbox` (MultiPolygonBbox, optional, nullable)
- `type`: `Point` (Point)
  - `coordinates` (PointCoordinates, required)
  - `bbox` (PointBbox, optional, nullable)
- `type`: `Polygon` (Polygon)
  - `coordinates` (list of list of PolygonCoordinatesItemsItems, required)
  - `bbox` (PolygonBbox, optional, nullable)

### LocationFeatureGeometryDiscriminatorMappingGeometryCollectionBbox

- list of string
- list of string

### LocationFeatureGeometryDiscriminatorMappingLineStringCoordinatesItems

- Position2D: list of string
- Position3D: list of string

### LocationFeatureGeometryDiscriminatorMappingLineStringBbox

- list of string
- list of string

### MultiLineStringCoordinatesItemsItems

- Position2D: list of string
- Position3D: list of string

### MultiLineStringBbox

- list of string
- list of string

### MultiPointCoordinatesItems

- Position2D: list of string
- Position3D: list of string

### MultiPointBbox

- list of string
- list of string

### MultiPolygonCoordinatesItemsItemsItems

- Position2D: list of string
- Position3D: list of string

### MultiPolygonBbox

- list of string
- list of string

### PointCoordinates

- Position2D: list of string
- Position3D: list of string

### PointBbox

- list of string
- list of string

### PolygonCoordinatesItemsItems

- Position2D: list of string
- Position3D: list of string

### PolygonBbox

- list of string
- list of string

## Examples

**Response**

```json
{
  "data_points": [
    {
      "_id": "string",
      "location": {
        "geometry": {
          "bbox": [
            "string"
          ],
          "coordinates": [
            "string"
          ],
          "type": "string"
        },
        "type": "string",
        "bbox": [
          "string"
        ],
        "id": 1,
        "properties": {
          "address": "string",
          "country_code": "string",
          "name": "string",
          "postal_code": "string"
        }
      },
      "metadata": {
        "tive_device_id": "string",
        "tive_shipment_id": "string",
        "pytest": true
      },
      "schema_version": 1,
      "timestamp": "2024-01-15T09:30:00Z",
      "acceleration_g": 1.1,
      "acceleration_x": 1.1,
      "acceleration_y": 1.1,
      "acceleration_z": 1.1,
      "battery": 1,
      "humidity": 1.1,
      "light": 1.1,
      "location_method": "string",
      "motion": 1,
      "process_time": "2024-01-15T09:30:00Z",
      "temperature_f": 1.1
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1"

querystring = {"end_timestamp":"end_timestamp","start_timestamp":"start_timestamp","tive_shipment_id":"tive_shipment_id"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1?end_timestamp=end_timestamp&start_timestamp=start_timestamp&tive_shipment_id=tive_shipment_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1?end_timestamp=end_timestamp&start_timestamp=start_timestamp&tive_shipment_id=tive_shipment_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1?end_timestamp=end_timestamp&start_timestamp=start_timestamp&tive_shipment_id=tive_shipment_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1?end_timestamp=end_timestamp&start_timestamp=start_timestamp&tive_shipment_id=tive_shipment_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1?end_timestamp=end_timestamp&start_timestamp=start_timestamp&tive_shipment_id=tive_shipment_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1?end_timestamp=end_timestamp&start_timestamp=start_timestamp&tive_shipment_id=tive_shipment_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.dev.chrt.com/tracking_integrations/tive/timeseries/data_points/v1?end_timestamp=end_timestamp&start_timestamp=start_timestamp&tive_shipment_id=tive_shipment_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```