{
"opencollection": "1.0.0",
"info": {
"name": "Samsara Beta A P Is API",
"version": "2024-11-18"
},
"request": {
"auth": {
"type": "bearer",
"token": "{{bearerToken}}"
}
},
"items": [
{
"info": {
"name": "Beta A P Is",
"type": "folder"
},
"items": [
{
"info": {
"name": "[beta] List All Assets.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/assets",
"params": [
{
"name": "type",
"value": "",
"type": "query",
"description": "The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized. Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`"
},
{
"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": "updatedAfterTime",
"value": "",
"type": "query",
"description": " A filter on data to have an updated at time after or equal to this specified time in RFC 3339 format. 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": "includeExternalIds",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return external IDs on supported entities"
},
{
"name": "includeTags",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return tags on supported entities"
},
{
"name": "tagIds",
"value": "",
"type": "query",
"description": " A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`"
},
{
"name": "parentTagIds",
"value": "",
"type": "query",
"description": " A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`"
},
{
"name": "ids",
"value": "",
"type": "query",
"description": "A filter on the data based on this comma-separated list of asset IDs and External IDs."
},
{
"name": "attributeValueIds",
"value": "",
"type": "query",
"description": "A filter on the data based on this comma-separated list of attribute value IDs. Only entities associated with ALL of the referenced values will be returned (i.e. the intersection of the sets of entities with each value). Example: `attributeValueIds=076efac2-83b5-47aa-ba36-18428436dcac,6707b3f0-23b9-4fe3-b7be-11be34aea544`"
}
]
},
"docs": "List all assets. Up to 300 assets will be returned per page.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requ"
},
{
"info": {
"name": "[beta] Create a New Asset.",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.samsara.com/assets",
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Create a new asset.\n\n Rate limit: 100 requests/min (learn more about rate limits here).\n\nTo use this endpoint, select **Write Assets** under the Assets 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 in ou"
},
{
"info": {
"name": "[beta] Update an Existing Asset.",
"type": "http"
},
"http": {
"method": "PATCH",
"url": "https://api.samsara.com/assets",
"params": [
{
"name": "id",
"value": "",
"type": "query",
"description": "A filter selecting a single asset by id."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Update an existing asset.\n\n Rate limit: 100 requests/min (learn more about rate limits here).\n\nTo use this endpoint, select **Write Assets** under the Assets 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"
},
{
"info": {
"name": "[beta] Delete an Existing Asset.",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api.samsara.com/assets",
"params": [
{
"name": "id",
"value": "",
"type": "query",
"description": "A filter selecting a single asset by id."
}
]
},
"docs": "Delete an existing asset.\n\n Rate limit: 100 requests/min (learn more about rate limits here).\n\nTo use this endpoint, select **Write Assets** under the Assets 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"
},
{
"info": {
"name": "[beta] List Asset Inputs Data in an Organization.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/assets/inputs/stream",
"params": [
{
"name": "ids",
"value": "",
"type": "query",
"description": "Comma-separated list of asset IDs. Limited to 100 ID's for each request."
},
{
"name": "type",
"value": "",
"type": "query",
"description": "Input stat type to query for. Valid values: `auxInput1`, `auxInput2`, `auxInput3`, `auxInput4`, `auxInput5`, `auxInput6`, `auxInput7`, `auxInput8`, `auxInput9`, `auxInput10`, `auxInput11`, `auxInput12`, `auxInput13`, `analogInput1Voltage`, `analogInput2Voltage`, `analogInput1Current`, `analogInput2Current`, `batteryVoltage`"
},
{
"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": "startTime",
"value": "",
"type": "query",
"description": "A start time in RFC 3339 format. 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": "includeExternalIds",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return external IDs on supported entities"
},
{
"name": "includeTags",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return tags on supported entities"
},
{
"name": "includeAttributes",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return attributes on supported entities"
}
]
},
"docs": "This endpoint will return data collected from the inputs of your organization's assets 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 original request. You w"
},
{
"info": {
"name": "[beta] Get a List of AEMP Equipment",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/beta/aemp/Fleet/:pageNumber",
"params": [
{
"name": "pageNumber",
"value": "",
"type": "path",
"description": "The number corresponding to a specific page of paginated results, defaulting to the first page if not provided. The default page size is 100 records."
}
]
},
"docs": "Get a list of equipment following the AEMP ISO 15143-3 standard.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read AEMP** under the Equipment category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature"
},
{
"info": {
"name": "[beta] Update an Equipment",
"type": "http"
},
"http": {
"method": "PATCH",
"url": "https://api.samsara.com/beta/fleet/equipment/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The unique Samsara ID of the Equipment. This is automatically generated when the Equipment object is created. It cannot be changed."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Update an equipment. **Note** this implementation of patch uses [the JSON merge patch](https://tools.ietf.org/html/rfc7396) proposed standard.\n This means that any fields included in the patch request will _overwrite_ fields which exist on the target resource.\n For arrays, this means any array included in the request will _replace_ the array that exists at the specified path, it will not _add_ to the existing array\n\n Rate limit: 100 requests/min (learn more about rate limits Rate limit: 25 requests/sec (learn more about rate limits Rate limit: 10 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Trailer Statistics** under the Trailers 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 in our API feedback form. If you encountered an issue or noti"
},
{
"info": {
"name": "[beta] Create a Job",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.samsara.com/beta/industrial/jobs",
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Creates a new job and returns it.\n\nTo use this endpoint, select **Write Jobs** under the Equipment 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 in our API feedback form. If you encountered an issue or noticed inaccuracies"
},
{
"info": {
"name": "[beta] Patches a Job",
"type": "http"
},
"http": {
"method": "PATCH",
"url": "https://api.samsara.com/beta/industrial/jobs",
"params": [
{
"name": "id",
"value": "",
"type": "query",
"description": "A jobId or uuid in STRING format. JobId must be prefixed with `jobId:`(Examples: `\"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596\"`, `\"jobId:98765\"`)."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Patches an existing job and returns it.\n\nTo use this endpoint, select **Write Jobs** under the Equipment 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 in our API feedback form. If you encountered an issue or noticed inaccu"
},
{
"info": {
"name": "[beta] Deletes an Existing Job",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api.samsara.com/beta/industrial/jobs",
"params": [
{
"name": "id",
"value": "",
"type": "query",
"description": "A jobId or uuid in STRING format. JobId must be prefixed with `jobId:`(Examples: `\"8d218e6c-7a16-4f9f-90f7-cc1d93b9e596\"`, `\"jobId:98765\"`)."
}
]
},
"docs": "Deletes an existing job.\n\nTo use this endpoint, select **Write Jobs** under the Equipment 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 in our API feedback form. If you encountered an issue or noticed inaccuracies in the A"
},
{
"info": {
"name": "[beta] Get Currently Active Driver-trailer Assignments for Driver.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/driver-trailer-assignments",
"params": [
{
"name": "driverIds",
"value": "",
"type": "query",
"description": " A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`"
},
{
"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": "includeExternalIds",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return external IDs on supported entities"
}
]
},
"docs": "Get currently active driver-trailer assignments for driver.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API fea"
},
{
"info": {
"name": "[beta] Create a New Driver-trailer Assignment",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.samsara.com/driver-trailer-assignments",
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Create a new driver-trailer assignment\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should"
},
{
"info": {
"name": "[beta] Update an Existing Driver-trailer Assignment.",
"type": "http"
},
"http": {
"method": "PATCH",
"url": "https://api.samsara.com/driver-trailer-assignments",
"params": [
{
"name": "id",
"value": "",
"type": "query",
"description": "Samsara ID for the assignment."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Update an existing driver-trailer assignment.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests"
},
{
"info": {
"name": "[beta] Get a Stream of Filtered Form Submissions.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/form-submissions/stream",
"params": [
{
"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 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": "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": "formTemplateIds",
"value": "",
"type": "query",
"description": "A comma-separated list containing up to 50 template IDs to filter data to."
},
{
"name": "userIds",
"value": "",
"type": "query",
"description": "A comma-separated list containing up to 50 user IDs to filter data to."
},
{
"name": "driverIds",
"value": "",
"type": "query",
"description": "A comma-separated list containing up to 50 user IDs to filter data to."
},
{
"name": "include",
"value": "",
"type": "query",
"description": "A comma-separated list of strings indicating whether to return additional information. Valid values: `externalIds`, `fieldLabels`"
}
]
},
"docs": "Returns all form submissions data that has been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). 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. \n\n**Beta:** This endpoint is in beta and is likely to change before being broadly av"
},
{
"info": {
"name": "[beta] Get a List of Specified Issues.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/issues",
"params": [
{
"name": "ids",
"value": "",
"type": "query",
"description": "A comma-separated list containing up to 100 issue IDs to filter on. Can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the issue."
},
{
"name": "include",
"value": "",
"type": "query",
"description": "A comma separated list of additional fields to include on requested objects. Valid values: `externalIds`"
}
]
},
"docs": "Returns all issues data for the specified IDs. \n\n**Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Forms APIs enabled for your organization.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Issues** under the Closed Beta category when creating or editing an API token. Rate limit: 100 requests/min (learn more about rate limits here).\n\nTo use this endpoint, select **Write Issues** under the Closed Beta 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 Speeding Intervals** under the Speeding Intervals category when creating or editing an API token"
},
{
"info": {
"name": "[beta] Get a Stream of Filtered Training Assignments.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/training-assignments/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": "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 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": "learnerIds",
"value": "",
"type": "query",
"description": "Optional string of comma separated learner IDs. If learner ID is present, training assignments for the specified learner(s) will be returned. Max value for this value is 100 objects. Example: `learnerIds=driver-281474,driver-46282156`"
},
{
"name": "courseIds",
"value": "",
"type": "query",
"description": "Optional string of comma separated course IDs. If course ID is present, training assignments for the specified course ID(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `courseIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`"
},
{
"name": "status",
"value": "",
"type": "query",
"description": "Optional string of comma separated values. If status is present, training assignments for the specified status(s) will be returned. Valid values: \"notStarted\", \"inProgress\", \"completed\". Defaults to returning all courses."
}
]
},
"docs": "Returns all training assignments data that has been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don't include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. \n\n**Beta:** This endpoint is in beta and is likely to change before being broad"
}
]
}
],
"bundled": true
}