{
"opencollection": "1.0.0",
"info": {
"name": "Samsara Stream API",
"version": "2024-11-18"
},
"request": {
"auth": {
"type": "bearer",
"token": "{{bearerToken}}"
}
},
"items": [
{
"info": {
"name": "Stream",
"type": "folder"
},
"items": [
{
"info": {
"name": "List Asset Location and Speed Data in an Organization.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/assets/location-and-speed/stream",
"params": [
{
"name": "after",
"value": "",
"type": "query",
"description": " 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."
},
{
"name": "limit",
"value": "",
"type": "query",
"description": "The limit for how many objects will be in the response. Default and max for this value is 512 objects."
},
{
"name": "startTime",
"value": "",
"type": "query",
"description": " A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00)."
},
{
"name": "endTime",
"value": "",
"type": "query",
"description": " An end time in RFC 3339 format. Defaults to never if not provided; if not provided then pagination will not cease, and a valid pagination cursor will always be returned. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00)."
},
{
"name": "ids",
"value": "",
"type": "query",
"description": "Comma-separated list of asset IDs."
},
{
"name": "includeSpeed",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether or not to return the 'speed' object"
},
{
"name": "includeReverseGeo",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether or not to return the 'address' object"
},
{
"name": "includeGeofenceLookup",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether or not to return the 'geofence' object"
},
{
"name": "includeExternalIds",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return external IDs on supported entities"
}
]
},
"docs": "This endpoint will return asset locations and speed data that has been collected for your organization based on the time parameters passed in. Results are paginated. If you include an endTime, the endpoint will return data up until that point. If you dont include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. The endpoint will only return data up until the endTime that has been processed by the server at the time of the origina"
},
{
"info": {
"name": "Stream DVIR Defects.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/defects/stream",
"params": [
{
"name": "after",
"value": "",
"type": "query",
"description": " 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."
},
{
"name": "limit",
"value": "",
"type": "query",
"description": "The limit for how many objects will be in the response. Default and max for this value is 200 objects."
},
{
"name": "startTime",
"value": "",
"type": "query",
"description": "Required RFC 3339 timestamp to begin the feed or history by `updatedAtTime` at `startTime`."
},
{
"name": "endTime",
"value": "",
"type": "query",
"description": "Optional RFC 3339 timestamp. If not provided then the endpoint behaves as an unending feed of changes."
},
{
"name": "includeExternalIds",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return external IDs on supported entities"
},
{
"name": "isResolved",
"value": "",
"type": "query",
"description": "Boolean value for whether filter defects by resolved status."
}
]
},
"docs": "Stream DVIR defects.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Defects** under the Maintenance category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback i"
},
{
"info": {
"name": "Stream DVIRs",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/dvirs/stream",
"params": [
{
"name": "after",
"value": "",
"type": "query",
"description": " 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."
},
{
"name": "limit",
"value": "",
"type": "query",
"description": "The limit for how many objects will be in the response. Default and max for this value is 200 objects."
},
{
"name": "includeExternalIds",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return external IDs on supported entities"
},
{
"name": "startTime",
"value": "",
"type": "query",
"description": "Required RFC 3339 timestamp to begin the feed or history by `updatedAtTime` at `startTime`."
},
{
"name": "endTime",
"value": "",
"type": "query",
"description": "Optional RFC 3339 timestamp. If not provided then the endpoint behaves as an unending feed of changes."
},
{
"name": "safetyStatus",
"value": "",
"type": "query",
"description": "Optional list of safety statuses. Valid values: [safe, unsafe, resolved]"
}
]
},
"docs": "Returns a history/feed of changed DVIRs by updatedAtTime between startTime and endTime parameters. In case of missing `endTime` parameter it will return a never ending stream of data.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read DVIRs** under the Maintenance category when creating or editing an API token. Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Vehicle Immobilization** under the Vehicles category when creating or editing an API token. Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Trips** under the Trips category when creating or editing an API token.