Samsara integration
Samsara is a connected-operations platform for vehicle fleets and equipment. Read vehicles, trailers, equipment and their live and historical locations and stats (GPS, fuel, engine), trips, speeding and idling, safety events and scores, camera media, hours-of-service logs, clocks and violations, IFTA and fuel reports, alert incidents, readings, industrial data points and users. Manage drivers, contacts, addresses, tags, attributes, assets, trailers and vehicles, driver assignments, DVIRs and defects, work orders, dispatch routes, form submissions, issues, documents, training assignments, fuel purchases and live sharing links (shareable URLs that show live asset location). Drivers, users, contacts, HOS logs, safety events, trips and vehicle locations are personal data about real people. Left out: beta, preview and legacy v1 routes, hours-of-service log edits, user management, webhooks (their objects carry a secret key), driver auth tokens and QR codes, gateway activation, organization settings and alert configuration writes, hubs and plans, maintenance parts, sites and warranties, and the EU-only tachograph routes; driver ID card codes are removed from driver outputs and from the latest vehicle stats. Calls go to Samsara's US cloud (api.samsara.com, also Mexico and older Canadian organizations); organizations on the EU or Canada cloud cannot use this connection. Authentication is a Samsara API token (Settings > API Tokens, with the read and write scopes the tools need) sent as a Bearer token.
Say what should happen.
The workflow builds itself.
What you can do with Samsara
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Stream, 10 operations
stream_alert_incidentsStream alert incidentsGETGet Alert Incidents for specific Alert Configurations over a specified period of time.stream_asset_locations_and_speedStream asset locations and speedGETReturns asset locations (latitude, longitude, heading, address, geofence) and GPS and ECU speed over a time range; without endTime, page with the cursor for new points. Locations of driven vehicles are personal data.stream_defectsStream defectsGETReturns the DVIR defects created or updated in a time range, with their type, vehicle or trailer, comment and resolution.stream_dvirsStream dvirsGETReturns 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.stream_form_submissionsStream form submissionsGETReturns 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.stream_issuesStream issuesGETReturns all issues 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.stream_route_eventsStream route eventsGETSubscribes to a feed of immutable, append-only updates for routes. The initial request to this feed endpoint returns a cursor, which can be used in subsequent requests to fetch events on all routes that occurred after the last retrieved event.stream_safety_eventsStream safety eventsGETReturns the organization's safety events from startTime: driver, asset, location, behavior labels, review state and camera footage URLs (driver-facing included). Without endTime, page with the cursor for new events. Personal data about drivers.stream_speeding_intervalsStream speeding intervalsGETReturns the speeding intervals of completed trips of the given assets from startTime: start and end time, location, maximum and posted speed, severity and, on request, the driver id. Personal data about drivers.stream_training_assignmentsStream training assignmentsGETReturns 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.
History, 7 operations
list_data_points_historyList data points historyGETReturns all known data points during the given time range for all data inputs. This can be filtered by optional tags, specific data input IDs or asset IDs.list_equipment_location_historyList equipment location historyGETReturns historical equipment locations during the given time range. This can be optionally filtered by tags or specific equipment IDs.list_equipment_stats_historyList equipment stats historyGETReturns historical equipment status during the given time range. This can be optionally filtered by tags or specific equipment IDs.list_reading_historyList reading historyGETGet the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime.list_trailer_stats_historyList trailer stats historyGETReturns trailer stats during the given time range for all trailers. This can be optionally filtered by tags or specific trailer IDs.list_vehicle_location_historyList vehicle location historyGETReturns every known vehicle location in a time range (an older API: list_vehicle_stats_history with the gps type combines GPS with diagnostics). Locations are personal data about drivers.list_vehicle_stats_historyList vehicle stats historyGETReturns vehicle stats (up to 3 types such as gps, engineStates or fuelPercents) over a time range for all vehicles or chosen tags or vehicle ids. GPS locations are personal data about drivers.
Tag, 5 operations
create_tagCreate tagPOSTCreate a new tag for the organization. This may include up to 20,000 tagged entities.delete_tagDelete tagDELETEPermanently deletes a tag.get_tagGet tagGETReturns one tag with its parent tag and the addresses, assets, drivers, machines, sensors and vehicles it groups.list_tagsList tagsGETReturn all of the tags for an organization.list_tag_safety_scoresList tag safety scoresGETGet safety scores and overall risk factors for tags.
Address, 4 operations
create_addressCreate addressPOSTCreates a new address in the organization.delete_addressDelete addressDELETEDelete a specific address.get_addressGet addressGETReturns a specific address.list_addressesList addressesGETReturns a list of all addresses in an organization.
Asset, 4 operations
create_assetCreate assetPOSTCreates an asset (vehicle, trailer, equipment, unpowered or uncategorized) with its name, VIN, license plate, make, model, attributes, tags and external ids.delete_assetDelete assetDELETEDelete an existing asset.list_assetsList assetsGETList all assets. Up to 300 assets will be returned per page.list_industrial_assetsList industrial assetsGETList all assets in the organization.
Attribute, 4 operations
create_attributeCreate attributePOSTCreates a new attribute in the organization.delete_attributeDelete attributeDELETEDelete an attribute by id, including all of its applications.get_attributeGet attributeGETFetch an attribute by id, including all of its applications.list_attributesList attributesGETFetch all attributes in an organization associated with drivers, assets, or work orders.
Contact, 4 operations
create_contactCreate contactPOSTAdd a contact to the organization.delete_contactDelete contactDELETEDelete the given contact.get_contactGet contactGETReturns one contact with first and last name, email and phone. Personal data.list_contactsList contactsGETReturns the organization's contacts with first and last name, email and phone. Personal data.
Document, 4 operations
create_documentCreate documentPOSTCreates a single document.delete_documentDelete documentDELETEDeletes a single document.get_documentGet documentGETReturns a single document.list_documentsList documentsGETGet all documents for the given time range.
Driver, 4 operations
create_driverCreate driverPOSTAdds a driver to the organization with the name, username and password used to sign in to the Samsara Driver App, plus optional license, HOS and ELD settings.get_driverGet driverGETReturns one driver (personal data: name, phone, license, username) with ELD settings, tags, assigned vehicle and external ids.list_driversList driversGETLists the organization's drivers (personal data: names, phones, licenses), active or deactivated, filterable by tags and update time.list_driver_safety_scoresList driver safety scoresGETReturns drivers' safety scores (0 to 100) for a time range, with drive time and distance and the behaviors and speeding that lowered each score. Personal data about drivers.
Route, 4 operations
create_routeCreate routePOSTCreates a dispatch route with its stops (each an address id or a single-use location, the first with a scheduled time) and an optional driver or vehicle.delete_routeDelete routeDELETEDelete a dispatch route and its associated stops.get_routeGet routeGETReturns one dispatch route with its stops (state, scheduled and actual times, ETA), driver, vehicle, settings and live sharing links.list_routesList routesGETLists dispatch routes in a time range with their stops (state, scheduled and actual times, ETA), driver, vehicle and live sharing links.
Trailer, 4 operations
create_trailerCreate trailerPOSTCreates a new trailer asset.delete_trailerDelete trailerDELETEDelete a trailer with the given ID.get_trailerGet trailerGETRetrieve a trailer with given ID.list_trailersList trailersGETLists the organization's trailers with their name, license plate, tags, installed gateway and external ids.
Vehicle, 4 operations
get_ifta_vehicle_reportGet ifta vehicle reportGETGet all vehicle IFTA reports for the requested time duration. Data is returned in your organization's defined timezone.get_vehicleGet vehicleGETGet information about a specific vehicle.list_vehiclesList vehiclesGETReturns a list of all vehicles.list_vehicle_safety_scoresList vehicle safety scoresGETGet safety scores and overall risk factors for vehicles.
Driver vehicle assignment, 3 operations
create_driver_vehicle_assignmentCreate driver vehicle assignmentPOSTAssign vehicle drive-time to a driver via API.delete_driver_vehicle_assignmentDelete driver vehicle assignmentDELETEDeletes driver-vehicle assignments made with create_driver_vehicle_assignment for a vehicle within a time range.list_driver_vehicle_assignmentsList driver vehicle assignmentsGETReturns which driver was assigned to which vehicle, when and how (assignment type), for the given drivers or vehicles in a time range; set assignmentType for assignments outside trips. Personal data about drivers.
Live share, 3 operations
create_live_shareCreate live sharePOSTCreates a Live Sharing Link, a shareable URL showing the live location of one asset, of assets near an address, or of a recurring route. Without expiresAtTime the link never expires. Exposes vehicle and driver location.delete_live_shareDelete live shareDELETEDeletes the Live Sharing Link with the given id, as returned by list_live_shares or create_live_share.list_live_sharesList live sharesGETReturns the organization's unexpired Live Sharing Links: each shareable URL (liveSharingUrl) showing assets' live location, with its type, configuration and expiry time.
Stat, 3 operations
get_equipment_statsGet equipment statsGETReturns the last known stats for all equipment. This can be optionally filtered by tags or specific equipment IDs.get_trailer_statsGet trailer statsGETReturns the last known stats of all trailers at the given `time`. If no `time` is specified, the current time is used.get_vehicle_statsGet vehicle statsGETReturns the last known stats of every vehicle (up to 3 types such as gps, engineStates or fuelPercents) at the given time, default now. GPS locations are personal data about drivers.
Work order, 3 operations
create_work_orderCreate work orderPOSTCreates a maintenance work order for an asset, with its items, service tasks, assigned user, priority, due date and attributes.delete_work_orderDelete work orderDELETEDeletes a maintenance work order by id.list_work_ordersList work ordersGETLists maintenance work orders (all, or up to 100 by id) with their status, asset, items, assignees, priority and due date.
Driver trailer assignment, 2 operations
create_driver_trailer_assignmentCreate driver trailer assignmentPOSTCreate a new driver-trailer assignment.list_driver_trailer_assignmentsList driver trailer assignmentsGETGet currently active driver-trailer assignments for driver.
Dvir, 2 operations
create_dvirCreate dvirPOSTCreates a new mechanic DVIR in the organization.get_dvirGet dvirGETReturns one DVIR (driver vehicle inspection report) by id, with its vehicle or trailer, defects, signatures and safety status.
Equipment, 2 operations
get_equipmentGet equipmentGETRetrieves the unit of equipment with the given Samsara ID.list_equipmentList equipmentGETReturns a list of all equipment in an organization.
Form submission, 2 operations
create_form_submissionCreate form submissionPOSTCreates a form submission and assigns it to an individual worker. This endpoint can be used to create an empty or partially complete form submission and assign it to a worker.list_form_submissionsList form submissionsGETReturns all form submissions data for the specified list of IDs.
Fuel energy, 2 operations
list_driver_fuel_energyList driver fuel energyGETGet fuel and energy efficiency driver reports for the requested time range.list_vehicle_fuel_energyList vehicle fuel energyGETGet fuel and energy efficiency vehicle reports for the requested time range.
Issue, 2 operations
create_issueCreate issuePOSTCreates a new issue associated with an asset, with optional media attachments uploaded inline as base64.list_issuesList issuesGETReturns all issues data for the specified IDs.
Location, 2 operations
list_equipment_locationsList equipment locationsGETReturns last known locations for all equipment. This can be optionally filtered by tags or specific equipment IDs.list_vehicle_locationsList vehicle locationsGETReturns the last known location of every vehicle at a given time (an older API: get_vehicle_stats with the gps type combines GPS with diagnostics). Locations are personal data about drivers.
Pdf, 2 operations
generate_document_pdfGenerate document pdfPOSTRequest creation of a document PDF.get_document_pdfGet document pdfGETReturns generation job status and download URL for a PDF.
Pdf export, 2 operations
create_form_submission_pdfCreate form submission pdfPOSTCreates a PDF export for an existing form submission.get_form_submission_pdfGet form submission pdfGETReturns a PDF export that has already been generated for a form submission.
Retrieval, 2 operations
create_media_retrievalCreate media retrievalPOSTThis endpoint creates an asynchronous request to upload certain media from a device. The closest available media to the requested timestamp is returned.get_media_retrievalGet media retrievalGETReturns the media of a retrieval request made with create_media_retrieval: each item's status, type, camera input, times and URL info (URLs valid 8 hours).
User, 2 operations
get_userGet userGETReturns one dashboard user with name, email, sign-in type and roles; a user whose access expired is not returned. Personal data.list_usersList usersGETReturns the organization's dashboard users with name, email, sign-in type and roles; users whose access expired are left out. Personal data.
Clock, 1 operation
list_hos_clocksList hos clocksGETReturns each driver's current hours-of-service duty status, remaining break, drive, shift and cycle time, current vehicle and violation durations, inactive drivers included. Personal data about drivers.
Configuration, 1 operation
list_alert_configurationsList alert configurationsGETGet specified Alert Configurations.
Daily log, 1 operation
list_hos_daily_logsList hos daily logsGETReturns per-driver daily hours-of-service charts for a date range: time in each duty status, distance driven, certification, exemptions claimed, carrier, vehicles, trailers and shipping documents. Personal data about drivers.
Data input, 1 operation
list_data_inputsList data inputsGETReturns all data inputs, optionally filtered by tags or asset ids.
Data point, 1 operation
list_data_pointsList data pointsGETReturns last known data points for all data inputs. This can be filtered by optional tags, specific data input IDs or asset IDs.
Defect, 1 operation
get_defectGet defectGETGet a single DVIR defect by ID.
Defect type, 1 operation
list_defect_typesList defect typesGETLists the organization's DVIR defect types with their label, section and severity.
Definition, 1 operation
list_reading_definitionsList reading definitionsGETLists the readings Samsara can report (name, description, data type, unit and other metadata), to use with list_reading_history and list_latest_readings.
Document type, 1 operation
list_document_typesList document typesGETReturns a list of the organization document types.
Event, 1 operation
list_idling_eventsList idling eventsGETReturns idling events in a time range: asset, operator (driver), start time, duration, location, fuel used and cost, PTO state and air temperature. Personal data about drivers.
Feed, 1 operation
get_route_updates_feedGet route updates feedGETSubscribes to a feed of immutable, append-only updates for routes. The initial request to this feed endpoint returns a cursor, which can be used on the next request to fetch updated routes that have had state changes since that request.
Form template, 1 operation
list_form_templatesList form templatesGETReturns a list of the organization's form templates for the specified list of IDs. If no IDs are provided, all form templates for the organization will be returned.
Fuel purchase, 1 operation
create_fuel_purchaseCreate fuel purchasePOSTCreate a fuel purchase transaction.
Gateway, 1 operation
list_gatewaysList gatewaysGETLists the organization's Samsara gateways with their serial, model, connection status, asset and accessory devices.
Jurisdiction, 1 operation
get_ifta_jurisdiction_reportGet ifta jurisdiction reportGETGet all jurisdiction IFTA reports for the requested time duration. Data is returned in your organization's defined timezone.
Latest, 1 operation
list_latest_readingsList latest readingsGETReturns the last value of one or more readings for a set of entities at a given time.
Log, 1 operation
list_hos_logsList hos logsGETReturns drivers' hours-of-service log entries between startTime and endTime: duty status, start and end time, recorded location, vehicle, codrivers and remark. Filter by tags or driver ids. Personal data about drivers.
Me, 1 operation
get_organizationGet organizationGETReturns the organization behind the API token: id, name and carrier settings.
Media, 1 operation
list_uploaded_mediaList uploaded mediaGETThis endpoint returns a list of all uploaded media (video and still images) matching query parameters, with a maximum query range of one day.
Remote sign out, 1 operation
sign_out_driverSign out driverPOSTSigns a driver out of the Samsara Driver App. Needs the Samsara Platform Premier license.
Safety event, 1 operation
list_safety_eventsList safety eventsGETReturns the safety events with the given ids: driver, asset, time, location, behavior labels, review or coaching state and download URLs for camera footage, driver-facing included. Personal data about drivers.
Schedule, 1 operation
list_preventive_schedulesList preventive schedulesGETReturns a paginated list of preventive maintenance schedules for the organization.
Service task, 1 operation
list_service_tasksList service tasksGETLists the organization's maintenance service tasks (optionally by id) with category, estimated labor time and estimated parts cost.
Training assignment, 1 operation
create_training_assignmentCreate training assignmentPOSTCreate training assignments. Existing assignments will remain unchanged. Non-driver user learners are available only for organizations with non-driver training enabled. Contact your Samsara representative to request access.
Training course, 1 operation
list_training_coursesList training coursesGETReturns all training courses data. Results are paginated. Courses in the ‘draft’ status are excluded from the data returned by this endpoint.
Upcoming, 1 operation
list_upcoming_maintenanceList upcoming maintenanceGETReturns a paginated list of upcoming preventive maintenance schedules for the organization's assets, enriched with live telemetry (current odometer, engine hours) and due-date projections.
User role, 1 operation
list_user_rolesList user rolesGETReturns a list of all user roles in an organization.
Violation, 1 operation
list_hos_violationsList hos violationsGETReturns active hours-of-service violations (type, description, start time, duration and day) for the specified drivers in a time range. Personal data about drivers.
Showing the first 120 of 139 endpoints. The rest are in the product, searchable from the workflow builder and from chat.
Use Samsara from Claude Code, Cursor or Codex
Connect Samsara in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Samsara operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Samsara
- Create your workspace
Sign up free. Nothing to install.
- Connect Samsara once
Add your Samsara connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Samsara integration FAQ
What can you do with the Samsara integration?
LiveContext exposes 139 operations on Samsara, covering stream, history, tag and address.
