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

# Open GitHub Pull Request

> Create a new branch and open a pull request containing the submitted file changes. Requires an authenticated Cekura agent session, and the repository must be available through the organization's active GitHub connection. Direct writes to the default branch are not permitted, and repository access is verified for every request.



## OpenAPI

````yaml post /github/open-pr/
openapi: 3.1.0
info:
  title: Cekura API
  version: v1
  description: >-
    Complete API documentation for the Cekura platform. This API provides
    endpoints for testing, observing, and evaluating AI voice agents — including
    managing agents, running evaluators, defining metrics, and analyzing call
    quality.
servers:
  - url: https://api.cekura.ai
security: []
paths:
  /github/open-pr/:
    post:
      tags:
        - github
      summary: Open a pull request in a connected repository
      description: >-
        Create a new branch and open a pull request containing the submitted
        file changes. Requires an authenticated Cekura agent session, and the
        repository must be available through the organization's active GitHub
        connection. Direct writes to the default branch are not permitted, and
        repository access is verified for every request.
      operationId: github-open-pr-create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpenPRRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/OpenPRRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/OpenPRRequest'
        required: true
      responses:
        '201':
          description: Pull request created on a new branch.
        '400':
          description: The pull request could not be created.
        '401':
          description: Authentication required.
        '404':
          description: The repository is not available through the active connection.
      security:
        - api_key: []
components:
  schemas:
    OpenPRRequest:
      type: object
      properties:
        repo:
          type: string
          description: Short repository name to open the PR against.
        title:
          type: string
          description: Pull request title (also the commit message).
        body:
          type: string
          default: ''
        base:
          type: string
          description: Base branch to target; defaults to the repo's default branch.
        files:
          type: array
          items:
            $ref: '#/components/schemas/_PRFile'
          description: Files to create, update, or delete.
      required:
        - files
        - repo
        - title
    _PRFile:
      type: object
      properties:
        path:
          type: string
          description: Repo-relative file path.
        content:
          type:
            - string
            - 'null'
          description: New file contents; null to delete the path.
      required:
        - path
  securitySchemes:
    api_key:
      type: apiKey
      name: X-CEKURA-API-KEY
      in: header
      description: >-
        API Key Authentication. It should be included in the header of each
        request.

````