# Samsara

> Read fleet drivers, vehicles, routes, addresses, tags and webhooks; manage drivers, addresses and tags.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/samsara

## Actions

### Create address

Create address.

**Inputs**

- Name (`name`, text, required): Name.
- Formatted address (`formatted_address`, text, required): Formatted address.
- Latitude (`latitude`, number): Leave empty to find the center from Formatted address. Set both Latitude and Longitude to override it. From -90 to 90.
- Longitude (`longitude`, number): Leave empty to find the center from Formatted address. Set both Latitude and Longitude to override it. From -180 to 180.
- Radius meters (`radius_meters`, number, required): Circle radius in meters, from 1 to 10,000. From 1 to 10000.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "formattedAddress": "example",
      "geofence": {},
      "id": "example",
      "latitude": 0,
      "longitude": 0,
      "name": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Create driver

Create driver.

**Inputs**

- Name (`name`, text, required): Name.
- Username (`username`, text, required): Username.
- Password (`password`, text, required): Password.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "driverActivationStatus": "example",
      "email": "example",
      "id": "example",
      "name": "example",
      "phone": "example",
      "username": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Create tag

Create tag.

**Inputs**

- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "name": "example",
      "parentTagId": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Delete address

Delete address.

**Inputs**

- Address (`address_id`, text, required): Choose the address or use an ID from a previous step.

**Outputs**

- `data` (null): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": null,
  "has_more": false,
  "next_cursor": null
}
```

### Delete tag

Delete tag.

**Inputs**

- Tag (`tag_id`, text, required): Choose the tag or use an ID from a previous step.

**Outputs**

- `data` (null): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": null,
  "has_more": false,
  "next_cursor": null
}
```

### Get address

Get address.

**Inputs**

- Address (`address_id`, text, required): Choose the address or use an ID from a previous step.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "formattedAddress": "example",
      "geofence": {},
      "id": "example",
      "latitude": 0,
      "longitude": 0,
      "name": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get driver

Get driver.

**Inputs**

- Driver (`driver_id`, text, required): Choose the driver or use an ID from a previous step.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "driverActivationStatus": "example",
      "email": "example",
      "id": "example",
      "name": "example",
      "phone": "example",
      "username": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get route

Get route.

**Inputs**

- Route (`route_id`, text, required): Choose the route or use an ID from a previous step.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "name": "example",
      "scheduledEndTime": "example",
      "scheduledStartTime": "example",
      "stops": []
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get tag

Get tag.

**Inputs**

- Tag (`tag_id`, text, required): Choose the tag or use an ID from a previous step.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "name": "example",
      "parentTagId": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get vehicle

Get vehicle.

**Inputs**

- Vehicle (`vehicle_id`, text, required): Choose the vehicle or use an ID from a previous step.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "licensePlate": "example",
      "name": "example",
      "notes": "example",
      "vin": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get webhook

Get webhook.

**Inputs**

- Webhook (`webhook_id`, text, required): Choose the webhook or use an ID from a previous step.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "name": "example",
      "url": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List addresses

List addresses. Returns one page; use next_cursor to continue.

**Inputs**

- Next page cursor (`after`, text): Leave empty for the first page; use next_cursor from the previous result to continue.
- Results per page (`limit`, number): Maximum records in this page. Leave empty for the service default. From 1 to 512.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "endCursor": "example",
      "hasNextPage": false
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List drivers

List drivers. Returns one page; use next_cursor to continue.

**Inputs**

- Next page cursor (`after`, text): Leave empty for the first page; use next_cursor from the previous result to continue.
- Results per page (`limit`, number): Maximum records in this page. Leave empty for the service default. From 1 to 512.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "endCursor": "example",
      "hasNextPage": false
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List routes

List routes. Returns one page; use next_cursor to continue.

**Inputs**

- Next page cursor (`after`, text): Leave empty for the first page; use next_cursor from the previous result to continue.
- Results per page (`limit`, number): Maximum records in this page. Leave empty for the service default. From 1 to 512.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "endCursor": "example",
      "hasNextPage": false
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List tags

List tags. Returns one page; use next_cursor to continue.

**Inputs**

- Next page cursor (`after`, text): Leave empty for the first page; use next_cursor from the previous result to continue.
- Results per page (`limit`, number): Maximum records in this page. Leave empty for the service default. From 1 to 512.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "endCursor": "example",
      "hasNextPage": false
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List vehicles

List vehicles. Returns one page; use next_cursor to continue.

**Inputs**

- Next page cursor (`after`, text): Leave empty for the first page; use next_cursor from the previous result to continue.
- Results per page (`limit`, number): Maximum records in this page. Leave empty for the service default. From 1 to 512.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "endCursor": "example",
      "hasNextPage": false
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List webhooks

List webhooks. Returns one page; use next_cursor to continue.

**Inputs**

- Next page cursor (`after`, text): Leave empty for the first page; use next_cursor from the previous result to continue.
- Results per page (`limit`, number): Maximum records in this page. Leave empty for the service default. From 1 to 512.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "endCursor": "example",
      "hasNextPage": false
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Update address

Update address.

**Inputs**

- Address (`address_id`, text, required): Choose the address or use an ID from a previous step.
- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "formattedAddress": "example",
      "geofence": {},
      "id": "example",
      "latitude": 0,
      "longitude": 0,
      "name": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Update driver

Update driver.

**Inputs**

- Driver (`driver_id`, text, required): Choose the driver or use an ID from a previous step.
- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "driverActivationStatus": "example",
      "email": "example",
      "id": "example",
      "name": "example",
      "phone": "example",
      "username": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Update tag

Update tag.

**Inputs**

- Tag (`tag_id`, text, required): Choose the tag or use an ID from a previous step.
- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): Service response or returned records.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page; empty when finished.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "name": "example",
      "parentTagId": "example"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```
