> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/api/get-data/get-list-of-tags.md).

# Get list of tags

You can retrieve a list of tags.

## Personal Tags - cURL

Use the following cURL command to get personal tags. You can copy and paste the following template.

```javascript
curl --location --request POST 'https://datasaur.ai/graphql' \
--header 'Authorization: Bearer access_token' \
--header 'Content-Type: application/json' \
--data-raw '{
  "query": "query { getPersonalTags { id name } }"
}'
```

* **query:** Use the value in the sample above.

## Response

Here is the response you can expect after issuing the cURL command.

```javascript
{
  "data": {
    "getPersonalTags": [
      {
        "id": "1",
        "name": "Example"
      }
    ]
  },
  "extensions": {}
}
```

## Team tags - cURL

Use the following cURL command to get team tags. You can copy and paste the following template and replace the **teamId**.

```javascript
curl --location --request POST 'https://datasaur.ai/graphql' \
--header 'Authorization: Bearer access_token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "query": "query GetTagsQuery($input: GetTagsInput!) { getTags(input: $input) { id name } }",
    "variables": {
        "input": {
            "teamId": "1"
        }
    }
}'
```

* **query:** Use the value in the sample above.
* **variables**
  * **input**
    * **teamId** (required)**:** The team ID that you want to retrieve the list of tags from.

## Response

The following is an example of the response returned after running the cURL command.

```javascript
{
    "data": {
        "getTags": [
          {
            "id": "2",
            "name": "Example"
          },
        ],
    },
    "extensions": {}
}
```
