---
title: "List all tags"
method: GET
path: "/tags"
tags: ["Tags"]
---

# List all tags

`GET /tags`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/tags`
- Auth: HTTP bearer

Return all of the tags for an organization. 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

To use this endpoint, select **Read Tags** under the Setup & Administration category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

## Query parameters

- `limit` integer
- `after` string

## Response `200`

List of tags.

- ListTagsResponse: A list of tags.
  - `data` Tag[]
    - `id` string: Unique Samsara ID of this tag.
    - `name` string: Name of this tag.
    - `parentTagId` string: If this tag is part a hierarchical tag tree, this is the ID of the parent tag, otherwise this will be omitted.
    - `addresses` TaggedObject[]: The addresses that belong to this tag.
      - `id` string, required: The object ID.
      - `name` string: The object name.
    - `assets` TaggedObject[]: The trailers, unpowered, and powered assets that belong to this tag.
      - `id` string, required: The object ID.
      - `name` string: The object name.
    - `drivers` TaggedObject[]: The drivers that belong to this tag.
      - `id` string, required: The object ID.
      - `name` string: The object name.
    - `externalIds` object: The [external IDs](https://developers.samsara.com/docs/external-ids) for the given object.
    - `machines` TaggedObject[]: The machines that belong to thistag.
      - `id` string, required: The object ID.
      - `name` string: The object name.
    - `parentTag` ParentTag: If this tag is part a hierarchical tag tree, this is the parent tag, otherwise this will be omitted.
      - `id` string, required: The object ID.
      - `name` string: The tag name.
    - `sensors` TaggedObject[]: The sensors that belong to this tag.
      - `id` string, required: The object ID.
      - `name` string: The object name.
    - `vehicles` TaggedObject[]: The vehicles that belong to this tag.
      - `id` string, required: The object ID.
      - `name` string: The object name.
  - `pagination` PaginationResponse: Pagination parameters.
    - `endCursor` string, string, required: Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.
    - `hasNextPage` boolean, required: True if there are more pages of results immediately available after this endCursor.

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/samsara/apis/samsara-api.md) - [All operations](https://skmtc.dev/samsara/apis/samsara-api/llms.txt) - [OpenAPI document](https://skmtc.dev/samsara/apis/samsara-api/revisions/a9e35d4999be?raw)
