List Vehicles
Retrieve all vehicle records from Samsara with automatic pagination handling.
Operation
Section titled “Operation”listVehicles
Resource
Section titled “Resource”vehicle
Parameters
Section titled “Parameters”This operation has no required parameters.
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
| Tag IDs | string | - | Comma-separated list of tag IDs to filter vehicles by |
| Include Debug Info | boolean | false | Whether to include metadata about the API request |
Response
Section titled “Response”Success
Section titled “Success”Returns an array of vehicle records:
{ "id": "281474976710655", "name": "Truck 001", "vin": "1HGBH41JXMN109186", "licensePlate": "ABC-1234", "make": "Ford", "model": "F-150", "year": "2022"}With debug info enabled:
{ "id": "281474976710655", "name": "Truck 001", "_metadata": { "totalVehicles": 50 }}{ "success": false, "error": "API rate limit exceeded"}Error Handling
Section titled “Error Handling”- Missing API Token: Samsara credential is missing apiToken
- Rate Limiting: API rate limit exceeded
- Permission Denied: API token lacks permission for this operation