# dev.knotless.listTags

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

A repository's tags.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listTags)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listTags/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listTags/examples)

## Definitions

### `dev.knotless.listTags`

**Type**: `query`

A repository's tags that name a commit, the newest commit first and the tags of one commit by name, a page at a time: follow `cursor` until it is absent. No authentication needed; asked as an account, with a service token or the pages' session cookie, a private repository it is a member of is read too, and the answer is that account's alone.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `commits` | `boolean` | No | Each tag's commit and its checks too, as a page of tags shows them, rather than its name alone. |
| `cursor` | `string` | No | How many tags the pages before held. |
| `limit` | `integer` | No |  |
| `repo` | `string` (at-uri) | Yes | The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Absent on the last page. |
| `tags` | `array` | Yes |  |

#### Errors

- **NotFound**: No such repository, revision, path or record.

### `dev.knotless.listTags#tagView`

**Type**: `object`

One tag.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `checks` | `array` | No | The newest run of each workflow at its commit, by the runners the repository names, when `commits` was asked. |
| `commit` | `ref` → `dev.knotless.defs#commitView` | No | The commit it names, an annotated tag peeled, when `commits` was asked. |
| `name` | `string` | Yes | Its short name, without `refs/tags/`. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A repository's tags that name a commit, the newest commit first and the tags of one commit by name, a page at a time: follow `cursor` until it is absent. No authentication needed; asked as an account, with a service token or the pages' session cookie, a private repository it is a member of is read too, and the answer is that account's alone.",
      "errors": [
        {
          "description": "No such repository, revision, path or record.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Absent on the last page.",
              "type": "string"
            },
            "tags": {
              "items": {
                "ref": "#tagView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "tags"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "commits": {
            "default": false,
            "description": "Each tag's commit and its checks too, as a page of tags shows them, rather than its name alone.",
            "type": "boolean"
          },
          "cursor": {
            "description": "How many tags the pages before held.",
            "maxLength": 32,
            "type": "string"
          },
          "limit": {
            "default": 100,
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "repo": {
            "description": "The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "repo"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "tagView": {
      "description": "One tag.",
      "properties": {
        "checks": {
          "description": "The newest run of each workflow at its commit, by the runners the repository names, when `commits` was asked.",
          "items": {
            "ref": "dev.knotless.defs#checkView",
            "type": "ref"
          },
          "type": "array"
        },
        "commit": {
          "description": "The commit it names, an annotated tag peeled, when `commits` was asked.",
          "ref": "dev.knotless.defs#commitView",
          "type": "ref"
        },
        "name": {
          "description": "Its short name, without `refs/tags/`.",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    }
  },
  "description": "A repository's tags.",
  "id": "dev.knotless.listTags",
  "lexicon": 1
}
```
