# Retrieve a tag

`GET https://api.cademi.com.br/api/v3/tags/{tag_id}`

Operation ID: `tags.get` · API v3

Retrieves a tag by its public ID, including the number of users it is assigned to.

The response includes an `ETag` representing the current revision. Send this value in the `If-Match` header when updating the tag to avoid overwriting a newer version.

Required permissions: `tags.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `tag_id` | path | string | yes |  |

## Responses

### 200

Returns the requested tag.

Body: `data`: Tag.

Fields of Tag:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `id` | string | yes |  |
| `name` | string | yes |  |
| `object` | string, one of `tag` | yes |  |
| `revision` | string | yes |  |
| `updated_at` | string (date-time) | yes |  |
| `users_count` | integer | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The tag was not found or is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
