Connectors / Supply chain · HTTP Connector
Samsara integration and API
Update a vehicle, create a driver and create an address in Samsara, and start a workflow when Samsara sends “Alert incident”.
What can you do with Samsara on Tray.ai?
Samsara is a connected operations platform that uses vehicle gateways, sensors and software to track fleets, drivers, equipment, safety and compliance. Tray.ai connects to Samsara through the HTTP Connector, so your workflows can call the Samsara API alongside the rest of your stack.
- When Samsara sends “DVIR submitted”, open a repair work order in your maintenance system for any defects.
- When Samsara sends “Route stop arrival”, text the customer that their driver has arrived.
- When Samsara sends “Severe speeding started”, alert the fleet safety manager in your team chat.
- Create a driver in Samsara when a new driver is hired in your HR system.
- Connects through
- HTTP Connector
- Authentication
- A bearer token or OAuth 2.0
- Base URL
- https://api.samsara.com
Set it up
Connect Samsara to Tray.ai
Each step uses Samsara's own API details, from its documentation.
Save Samsara's API token
Save the token Samsara issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.samsara.com as the base URL. Or paste a cURL example from Samsara's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List all vehicles”
It's one of 21 documented actions, under Vehicles. The response comes back as data the next step can map into your other apps.
Start workflows from Samsara events
Give Samsara the URL of a Tray.ai webhook trigger. “Alert incident” can then start a workflow, and so can 8 other events.
Workflows to build with Samsara
Connect Samsara with Jira, Slack and Snowflake
Each one uses actions and events from Samsara's own API documentation.
Open a Jira issue when a Samsara DVIR is submitted
When
DVIR submitted
Then
- Retrieve a vehicle for the report
- Create a maintenance issue in Jira
With Jira
Alert the safety team in Slack about severe speeding
When
Severe speeding started
Then
- Retrieve a driver
- Post the driver, vehicle and location to the safety channel in Slack
With Slack
Load Samsara HOS violations into Snowflake
When
On a schedule
Then
- Get HOS violations for the previous day
- Load the violations into a compliance table in Snowflake
With Snowflake
Apps you can build on Samsara data
Internal tools your team can build with an AI assistant, each one using Samsara calls from its API documentation.
Driver hours compliance board
Shows each driver's hours of service clocks and violations so a fleet manager can act before a breach.
Vehicle assignment planner
Lists vehicles and drivers and lets dispatch create or update driver-vehicle assignments.
Safety incident queue
Collects alerts, severe speeding events and inspection reports so a safety manager can review each one.
Samsara MCP server for AI agents
Build an MCP server on Samsara in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List all vehicles
- List all drivers
- List all addresses
- Get driver-vehicle assignments
- Get HOS clocks
- List webhooks
- Retrieve a vehicle
- Update a vehicle
What the Samsara API covers
6 resources and 21 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.
Vehicles
- List all vehicles
- Retrieve a vehicle
- Update a vehicle
Drivers
- List all drivers
- Retrieve a driver
- Create a driver
- Update a driver
Addresses
- List all addresses
- Create an address
- Update an address
- Delete an address
Driver-vehicle assignments
- Get driver-vehicle assignments
- Create a driver-vehicle assignment
- Update a driver-vehicle assignment
Hours of service
- Get HOS clocks
- Get HOS logs
- Get HOS violations
Webhooks
- List webhooks
- Create a webhook
- Update a webhook
- Delete a webhook
Events Samsara can send to a Tray.ai webhook trigger
- Alert incident
- DVIR submitted
- Severe speeding started
- Geofence entry
- Geofence exit
- Route stop arrival
- Driver created
- Vehicle created
- Form submitted
Checked against Samsara's own documentation on 2026-10-22
How Tray.ai makes this work
Samsara plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Samsara, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Samsara actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Samsara data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore supply chain apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every supply chain connector →
Frequently asked questions
What can a Tray.ai workflow do in Samsara?
The Samsara API documents 21 actions across 6 resources (Vehicles, Drivers, Addresses, Driver-vehicle assignments, Hours of service, Webhooks). For example: List all vehicles; List all drivers; List all addresses. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Samsara?
The Samsara API uses a bearer token and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Samsara events can start a Tray.ai workflow?
Samsara sends 9 events to a webhook URL, for example: Alert incident; DVIR submitted; Severe speeding started; Geofence entry; Geofence exit; Route stop arrival; Driver created; Vehicle created. A Tray.ai webhook trigger receives them and starts a workflow.
See Samsara working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.