---
type: api
title: Get a tag
description: Returns a tag by ID.
url: https://www.elastic.co/docs/api/doc/kibana-serverless/operation/operation-get-tags-id
resource: https://www.elastic.co/docs/api/doc/kibana-serverless/operation/operation-get-tags-id
products:
  - Kibana
---

# Get a tag

Authentication: required

Availability: Experimental

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/tags/{id}`
- `GET` `/s/{space_id}/api/tags/{id}`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
- `id` (string · min length: 1 · max length: 256) — required
  The tag ID, as returned by the create or search endpoints.

## Description

Returns a tag by ID.

## Responses

#### `200`

success

`application/json`

- `data` (object)
  - `color` (string · min length: 1 · max length: 256)
    The tag color as a hex value (e.g. `#772299`). If omitted, a random color is generated.
  - `description` (string · max length: 2048)
    Optional description of the tag.
  - `name` (string · min length: 1 · max length: 256)
    The display name of the tag.
- `id` (string)
  The tag ID.
- `meta` (object)
  - `created_at` (string)
    Timestamp when the object was created (ISO 8601).
  - `created_by` (string)
    User profile ID of the user who created the object.
  - `managed` (boolean)
    When `true`, the object is managed by Kibana and cannot be edited by users.
  - `owner` (string)
    Identifier of the plugin or team that owns this object.
  - `updated_at` (string)
    Timestamp when the object was last updated (ISO 8601).
  - `updated_by` (string)
    User profile ID of the user who last updated the object.
  - `version` (string)
    Internal version identifier for optimistic concurrency control.
#### `403`

forbidden

#### `404`

not found

## Code examples

#### Console

```console
GET kbn:/api/tags/ID
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/tags/${ID}" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### The requested tag

`application/json`

```json
{
  "data": {
    "color": "#1BA9F5",
    "description": "Dashboards owned by engineering teams.",
    "name": "Engineering"
  },
  "id": "tag-engineering",
  "meta": {
    "created_at": "2026-06-01T12:00:00.000Z",
    "managed": false,
    "updated_at": "2026-06-01T12:00:00.000Z",
    "version": "WzEsMV0="
  }
}
```

