Speeding Intervals

Get Speeding Intervals

This endpoint will return all speeding intervals associated with all trips that have been collected for your organization based on the time parameters passed in. Only completed trips are included. Trips with no speeding intervals detected will be returned with an empty list of intervals. Results are paginated.

<b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select Read Speeding Intervals under the Speeding Intervals category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

get/speeding-intervals/stream

Request

  • Base URL
    https://api.samsara.com
  • Auth
    HTTP bearer

Query parameters

assetIdsstring[] required

Comma-separated list of asset IDs. Include up to 50 asset IDs.

startTimestring required

RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against updatedAtTime or tripStartTime depending on the queryBy parameter.

endTimestring

RFC 3339 timestamp which is compared against updatedAtTime or tripStartTime depending on the queryBy parameter. If not provided then the endpoint behaves as an unending feed of changes.

queryBy'updatedAtTime' | 'tripStartTime'

Decide which timestamp the startTime and endTime are compared to. Valid values: updatedAtTime, tripStartTime

includeAssetboolean

Indicates whether or not to return expanded “asset” data

includeDriverIdboolean

Indicates whether or not to return trip's driver id

afterstring

If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.

severityLevelsstring[]

Optional string of comma-separated severity levels to filter speeding intervals by. Valid values: “light”, ”moderate”, ”heavy”, “severe”. This filter does not exclude trips that have no speeding intervals.

Response

OK response.

Example response

{
  "data": [
    {
      "asset": {
        "id": "12345",
        "name": "MyAsset-1234",
        "type": "trailer",
        "vin": "1GBJ6P1B2HV112765"
      },
      "createdAtTime": "2023-01-27T07:06:25Z",
      "driverId": "12345",
      "intervals": [
        {
          "endTime": "2023-01-27T07:06:25Z",
          "isDismissed": true,
          "location": {
            "accuracyMeters": 5.801,
            "address": {
              "city": "New York",
              "country": "USA",
              "neighborhood": "Mission District",
              "pointOfInterest": "The Eiffel Tower",
              "postalCode": "10010",
              "state": "New York",
              "street": "Main Street",
              "streetNumber": "16"
            },
            "headingDegrees": 120,
            "latitude": 37.7749,
            "longitude": 137.2719
          },
          "maxSpeedKilometersPerHour": 65,
          "postedSpeedLimitKilometersPerHour": 75,
          "severityLevel": "severe",
          "startTime": "2023-01-27T07:06:25Z"
        }
      ],
      "tripStartTime": "2023-01-27T07:06:25Z",
      "updatedAtTime": "2023-01-27T10:04:20Z"
    }
  ],
  "pagination": {
    "endCursor": "MjkY",
    "hasNextPage": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.