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

# List Gitea repositories

> List the repositories a Gitea token can reach, for picking one to link. Sent as a POST because the token travels in the body rather than the URL.



## OpenAPI

````yaml /openapi.json post /gitea-integration/repositories
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /gitea-integration/repositories:
    post:
      tags:
        - Gitea
      summary: List Gitea repositories
      description: >-
        List the repositories a Gitea token can reach, for picking one to link.
        Sent as a POST because the token travels in the body rather than the
        URL.
      operationId: listGiteaRepositories
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                  minLength: 1
                baseUrl:
                  type: string
                  format: uri
                accessToken:
                  type: string
                  minLength: 1
              required:
                - projectId
                - baseUrl
                - accessToken
      responses:
        '200':
          description: Accessible repositories
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GiteaRepositoryList'
        '400':
          description: Invalid body, or unknown project
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing workspace:manage_settings
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    GiteaRepositoryList:
      type: object
      properties:
        repositories:
          type: array
          items:
            $ref: '#/components/schemas/GiteaRepository'
      required:
        - repositories
    GiteaRepository:
      type: object
      properties:
        id:
          type: number
        name:
          type: string
        full_name:
          type: string
        owner:
          $ref: '#/components/schemas/GiteaRepositoryOwner'
        private:
          type: boolean
        html_url:
          type: string
      required:
        - id
        - name
        - full_name
        - owner
        - private
        - html_url
    GiteaRepositoryOwner:
      type: object
      properties:
        login:
          type: string
      required:
        - login
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````