# 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** uses 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. team's id that you want to retrieve the list of tags from.

## Response

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

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