Skip to main content
POST
/
live-shares
Create Live Sharing Link
curl --request POST \
  --url https://api.samsara.com/live-shares \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Example Live Sharing Link name",
  "type": "assetsLocation",
  "assetsLocationLinkConfig": {
    "assetId": "1234",
    "tagIds": [
      "48923049",
      "198349"
    ]
  },
  "description": "Sample description",
  "expiresAtTime": "2020-01-27T07:06:25Z"
}
'
{
  "data": {
    "id": "leesdwqjx42dkvp86so",
    "liveSharingUrl": "https://cloud.samsara.com/o/123456/fleet/viewer/address/7hf4lnu455wep22rtun",
    "name": "Example Live Sharing Link name",
    "type": "assetsLocation",
    "assetsLocationLinkConfig": {
      "assetId": "1234",
      "location": {
        "formattedAddress": "1990 Alameda Street, San Francisco, CA 94103",
        "latitude": 37.456345,
        "longitude": 34.5633749,
        "name": "Suburbs"
      },
      "tags": [
        {
          "id": "3914",
          "name": "East Coast",
          "parentTagId": "4815"
        }
      ]
    },
    "assetsNearLocationLinkConfig": {
      "addressId": "1234"
    },
    "assetsOnRouteLinkConfig": {
      "recurringRouteId": "1234"
    },
    "description": "Sample description",
    "expiresAtTime": "2020-01-27T07:06:25Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name of the Live Sharing Link.

Maximum string length: 255
Example:

"Example Live Sharing Link name"

type
enum<string>
required

Type of the Live Sharing Link. This field specifies which one of 'LinkConfig' objects will be used to configure the sharing link. Valid values: assetsLocation, assetsNearLocation, assetsOnRoute

Available options:
assetsLocation,
assetsNearLocation,
assetsOnRoute
Example:

"assetsLocation"

Configuration details specific to the 'By Asset' Live Sharing Link.

Configuration details specific to the 'By Location' Live Sharing Link.

Configuration details specific to the 'By Recurring Route' Live Sharing Link.

description
string

Description for the Live Sharing Link (not applicable for 'assetsOnRoute' type).

Maximum string length: 255
Example:

"Sample description"

expiresAtTime
string

Date that this link expires in RFC 3339 format. Can't be set in the past. If not provided then link will never expire.

Example:

"2020-01-27T07:06:25Z"

Response

OK response.

data
object
required

Live Sharing Link object