> ## 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.

# Verify Gitea access

> Check that the base URL is a Gitea instance and that the token can reach the repository with the permissions Kaneo needs. Always 200 -- problems are reported in the body.



## OpenAPI

````yaml /openapi.json post /gitea-integration/verify
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/verify:
    post:
      tags:
        - Gitea
      summary: Verify Gitea access
      description: >-
        Check that the base URL is a Gitea instance and that the token can reach
        the repository with the permissions Kaneo needs. Always 200 -- problems
        are reported in the body.
      operationId: verifyGiteaAccess
      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
                repositoryOwner:
                  type: string
                  minLength: 1
                repositoryName:
                  type: string
                  minLength: 1
              required:
                - projectId
                - baseUrl
                - accessToken
                - repositoryOwner
                - repositoryName
      responses:
        '200':
          description: Verification result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GiteaVerificationResult'
        '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:
    GiteaVerificationResult:
      type: object
      properties:
        isInstalled:
          type: boolean
        hasRequiredPermissions:
          type: boolean
        repositoryExists:
          type: boolean
        repositoryPrivate:
          type:
            - boolean
            - 'null'
        missingPermissions:
          type: array
          items:
            type: string
        message:
          type: string
          description: A human-readable summary to show the user.
        failureReason:
          type:
            - string
            - 'null'
          enum:
            - not_a_gitea_instance
            - redirected
            - repository_not_found
            - null
          description: >-
            Why verification failed, when it did. `redirected` usually means the
            base URL is behind a proxy that rewrites it.
      required:
        - isInstalled
        - hasRequiredPermissions
        - repositoryExists
        - repositoryPrivate
        - missingPermissions
        - message
        - failureReason
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````