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

# Authorize GitHub Repository Checkout

> Create a short-lived, read-only checkout credential for one repository. Requires an authenticated Cekura agent session, and the repository must be available through the organization's active GitHub connection. Repository access is verified for every request.



## OpenAPI

````yaml post /github/checkout-token/
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/checkout-token/:
    post:
      tags:
        - github
      summary: Authorize a connected repository checkout
      description: >-
        Create a short-lived, read-only checkout credential for one repository.
        Requires an authenticated Cekura agent session, and the repository must
        be available through the organization's active GitHub connection.
        Repository access is verified for every request.
      operationId: github-checkout-token-create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutTokenRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CheckoutTokenRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CheckoutTokenRequest'
        required: true
      responses:
        '200':
          description: Repository checkout details and a short-lived credential.
        '401':
          description: Authentication required.
        '404':
          description: The repository is not available through the active connection.
      security:
        - api_key: []
components:
  schemas:
    CheckoutTokenRequest:
      type: object
      properties:
        repo:
          type: string
          description: Short repository name to check out.
      required:
        - repo
  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.

````