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

# Create GitHub integration

> Link a project to a GitHub repository.



## OpenAPI

````yaml /openapi.json post /github-integration/project/{projectId}
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:
  /github-integration/project/{projectId}:
    post:
      tags:
        - GitHub
      summary: Create GitHub integration
      description: Link a project to a GitHub repository.
      operationId: createGitHubIntegration
      parameters:
        - schema:
            type: string
          required: true
          name: projectId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                repositoryOwner:
                  type: string
                  minLength: 1
                repositoryName:
                  type: string
                  minLength: 1
              required:
                - repositoryOwner
                - repositoryName
      responses:
        '200':
          description: The stored integration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedGitHubIntegration'
        '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:
    CreatedGitHubIntegration:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        repositoryOwner:
          type: string
        repositoryName:
          type: string
        installationId:
          type:
            - number
            - 'null'
          description: The GitHub App installation that grants access to the repository.
        branchPattern:
          type: string
          description: Template used to name branches created for a task.
        commentTaskLinkOnGitHubIssue:
          type: boolean
          description: >-
            When on, Kaneo comments a link back to the task on the linked GitHub
            issue.
        isActive:
          type:
            - boolean
            - 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - repositoryOwner
        - repositoryName
        - installationId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````