> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Samsara

> How to set up the Samsara connector, plus the actions that are available.

![Samsara](https://stackone-logos.com/api/samsara/filled/svg)

Betav0.1.0[See changelog](https://docs.stackone.com/connectors/samsara/changelog.md)

[51 actions](#actions) · 2 auth methods

Logistics

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and set up a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [Connector Profile · API Key](https://docs.stackone.com/connectors/samsara/guides/connector-profile/api-key.md)
>
> No app registration required. Uses a Samsara API token whose Read/Write permissions are chosen per category when the tok...

> [card] [Connector Profile · OAuth 2.0](https://docs.stackone.com/connectors/samsara/guides/connector-profile/oauth-2-0.md)
>
> Requires creating an OAuth 2.0 app in the Samsara dashboard. Permissions are chosen on the app rather than requested at...

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [Link Account · API Key](https://docs.stackone.com/connectors/samsara/guides/link-account/api-key.md)

> [card] [Link Account · OAuth 2.0](https://docs.stackone.com/connectors/samsara/guides/link-account/oauth-2-0.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/connect/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

Authentication type

Select all
|
Clear

API Key

OAuth 2.0

No auth methods found

51 actions

ActionDescription

List All Addresses`samsara_list_addresses`

Returns a list of all addresses in an organization.

Create An Address`samsara_create_address`

Creates a new address in the organization.

Delete An Address`samsara_delete_address`

Delete a specific address.

Retrieve An Address`samsara_get_address`

Retrieve an address in the connected Samsara organization (GET /addresses/\{id})

Update An Address`samsara_update_address`

Update a specific address.

List All Drivers`samsara_list_drivers`

Get all drivers in organization.

Create A Driver`samsara_create_driver`

Add a driver to the organization.

Sign Out A Driver`samsara_post_driver_remote_signout`

Sign out a driver from the Samsara Driver App. Requires the Samsara Platform Premier license

Retrieve A Driver`samsara_get_driver`

Get information about a driver.

Update A Driver`samsara_update_driver`

Update a specific driver's information.

Delete API Generated Driver-vehicle Assignments`samsara_delete_driver_vehicle_assignments`

Delete driver assignments that were created using the `POST fleet/driver-vehicle-assignments` endpoint for the requested...

Get All Driver-vehicle Assignments`samsara_get_driver_vehicle_assignments`

Get all driver-vehicle assignments for the requested drivers or vehicles in the requested time range.

Update API Generated Driver-vehicle Assignments`samsara_update_driver_vehicle_assignment`

Update driver assignments that were created using the `POST fleet/driver-vehicle-assignments`.

Create A New Driver-vehicle Assignment`samsara_create_driver_vehicle_assignment`

Create a new driver-vehicle assignment in the connected Samsara organization (POST /fleet/driver-vehicle-assignments)

Get HOS Clocks`samsara_get_hos_clocks`

Get the current HOS status for all drivers.

Get All Driver HOS Daily Logs`samsara_get_hos_daily_logs`

Get summarized daily Hours of Service charts for the specified drivers.

Get HOS Logs`samsara_get_hos_logs`

Returns HOS logs between a given `startTime` and `endTime`.

Get All Driver HOS Violations`samsara_get_hos_violations`

Get active Hours of Service violations for the specified drivers.

Update The ShippingDocs Field Of An Existing Assignment`samsara_update_shipping_docs`

Update the shippingDocs field of an existing assignment in the connected Samsara organization (PATCH /hos/daily-logs/log...

Fetch All Routes`samsara_fetch_routes`

Fetch all routes in the connected Samsara organization (GET /fleet/routes)

Create A Route`samsara_create_route`

Create a route in the connected Samsara organization (POST /fleet/routes)

Get Route Updates`samsara_get_routes_feed`

Subscribes to a feed of immutable, append-only updates for routes.

Delete A Route`samsara_delete_route`

Delete a dispatch route and its associated stops.

Fetch A Route`samsara_fetch_route`

Retrieve a single dispatch route, including its stops and settings, by Samsara ID or external ID

Update A Route`samsara_patch_route`

Update a route in the connected Samsara organization (PATCH /fleet/routes/\{id})

List Routes For A Specific Plan`samsara_list_hub_plan_routes`

List routes for a specific plan in the connected Samsara organization (GET /hub/plan/routes)

List Hubs`samsara_list_hubs`

List all hubs (planners) in the connected Samsara organization (GET /hubs)

List Plans For A Specific Hub`samsara_list_hub_plans`

List all plans for a specific hub in the connected Samsara organization (GET /hub/plans)

Create A Hub Plan`samsara_create_hub_plan`

Create a new plan for a hub in the connected Samsara organization (POST /hub/plan)

List All Tags`samsara_list_tags`

Return all of the tags for an organization.

Create A Tag`samsara_create_tag`

Create a new tag for the organization.

Delete A Tag`samsara_delete_tag`

Permanently deletes a tag.

Retrieve A Tag`samsara_get_tag`

Retrieve a tag in the connected Samsara organization (GET /tags/\{id})

Update A Tag`samsara_patch_tag`

Partially update a tag, changing only the name, parent or member lists that are supplied

Replace A Tag`samsara_replace_tag`

Update a tag with a new name and new members.

Get Trips Stream`samsara_get_trips`

This endpoint will return trips that have been collected for your organization based on the time parameters passed in.

List All User Roles`samsara_list_user_roles`

Returns a list of all user roles in an organization.

List All Users`samsara_list_users`

Returns a list of all users in an organization.

Create A User`samsara_create_user`

Add a user to the organization.

Delete A User`samsara_delete_user`

Permanently remove a dashboard user from the Samsara organization by user ID

Retrieve A User`samsara_get_user`

Get a specific user's information.

Update A User`samsara_update_user`

Update a specific user's information.

Locations Snapshot`samsara_get_vehicle_locations`

Locations snapshot in the connected Samsara organization (GET /fleet/vehicles/locations)

Locations Feed`samsara_get_vehicle_locations_feed`

Locations feed in the connected Samsara organization (GET /fleet/vehicles/locations/feed)

Historical Locations`samsara_get_vehicle_locations_history`

Historical locations in the connected Samsara organization (GET /fleet/vehicles/locations/history)

List All Vehicles`samsara_list_vehicles`

Returns a list of all vehicles.

Retrieve A Vehicle`samsara_get_vehicle`

Get information about a specific vehicle.

Update A Vehicle`samsara_update_vehicle`

Updates the given Vehicle object.

Stats Snapshot`samsara_get_vehicle_stats`

Returns the last known stats of all vehicles at the given `time`.

Stats Feed`samsara_get_vehicle_stats_feed`

Follow a feed of vehicle stats.

Historical Stats`samsara_get_vehicle_stats_history`

Returns vehicle stats during the given time range for all vehicles.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.