> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kosli.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List repo tag choices

> List the distinct tag key/value pairs across the organization's repos.

Used to populate the repos tag filter. Declared before the "/{org}/{repo_name}"
route so the literal "tags" segment is not captured as a repo name.



## OpenAPI

````yaml https://app.kosli.com/api/v2/openapi.json get /repos/{org}/tags
openapi: 3.1.0
info:
  title: Kosli API
  summary: The API for communicating with Kosli
  description: >

    # Authentication 


    When making requests against Kosli API, you can authenticate your requests
    using a bearer token. 

    Set the bearer token in the request Authorization header to a valid API
    key. 

    API Keys can be personal or for service accounts. Check the [service
    accounts
    documentation](https://docs.kosli.com/getting_started/service-accounts/) for
    details. 


    ## Curl example


    ```shell

    curl -H "Authorization: Bearer <<your-api-key>>"
    https://app.kosli.com/api/v2/environments/<<your-org-name>>

    ```
  version: '2.0'
servers:
  - url: https://app.kosli.com/api/v2
    description: EU
  - url: https://app.us.kosli.com/api/v2
    description: US
security:
  - HTTPBearer: []
paths:
  /repos/{org}/tags:
    get:
      tags:
        - Repos
      summary: List repo tag choices
      description: >-
        List the distinct tag key/value pairs across the organization's repos.


        Used to populate the repos tag filter. Declared before the
        "/{org}/{repo_name}"

        route so the literal "tags" segment is not captured as a repo name.
      operationId: list_repo_tag_choices
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
            title: Org
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RepoTagChoicesResponse'
        '404':
          description: Resource Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/fastapi_app__errors__NotFoundResponse___locals___NotFoundResponseModel__39
      security:
        - HTTPBearer: []
        - HTTPBasic: []
components:
  schemas:
    RepoTagChoicesResponse:
      properties:
        tag_choices:
          items:
            $ref: '#/components/schemas/TagChoiceResponse'
          type: array
          title: Tag Choices
        _links:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Links
      type: object
      required:
        - tag_choices
      title: RepoTagChoicesResponse
    fastapi_app__errors__NotFoundResponse___locals___NotFoundResponseModel__39:
      properties:
        message:
          type: string
          title: Message
          description: Error message
        errors:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Errors
          description: Validation errors by field
      type: object
      required:
        - message
      title: NotFoundResponseModel
      description: Organization not found
      examples:
        - message: Organization not found
    TagChoiceResponse:
      properties:
        key:
          type: string
          title: Key
        value:
          type: string
          title: Value
      type: object
      required:
        - key
        - value
      title: TagChoiceResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````