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

# Create webhooks github app

> Public endpoint (no bearer token required).



## OpenAPI

````yaml /api-reference/openapi.json post /api/webhooks/github-app
openapi: 3.1.0
info:
  title: EvalGate API
  version: 3.7.6
  description: EvalGate API. See docs/api-contract.md for stability commitments.
servers:
  - url: https://evalgate.com
    description: Production
  - url: http://localhost:3000
    description: Local
security: []
paths:
  /api/webhooks/github-app:
    post:
      tags:
        - webhooks
      summary: Create webhooks github app
      description: Public endpoint (no bearer token required).
      operationId: post_webhooks_github_app
      parameters:
        - name: X-GitHub-Event
          in: header
          required: true
          description: GitHub App event name (for example ping, pull_request).
          schema:
            type: string
        - name: X-GitHub-Delivery
          in: header
          required: true
          description: GitHub delivery id used for webhook deduplication.
          schema:
            type: string
        - name: X-Hub-Signature-256
          in: header
          required: true
          description: GitHub HMAC SHA-256 signature over the raw request body.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksGithubAppRequest'
      responses:
        '202':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostApiWebhooksGithubAppResponse202ApplicationJson
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security: []
components:
  schemas:
    PostApiWebhooksGithubAppRequest:
      description: >-
        Raw signed GitHub App webhook delivery. EvalGate verifies
        X-Hub-Signature-256 over the exact request bytes before parsing this
        JSON contract.
      type: object
      properties:
        action:
          type: string
        zen:
          type: string
          description: Present on ping deliveries
        installation:
          type: object
          properties:
            id:
              type: integer
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        repository:
          type: object
          properties:
            id:
              type: integer
            full_name:
              type: string
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        pull_request:
          type: object
          properties:
            number:
              type: integer
            merged:
              type: boolean
            head:
              type: object
              properties:
                sha:
                  type: string
                ref:
                  type: string
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            merge_commit_sha:
              oneOf:
                - type: string
                - type: 'null'
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        sender:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
      additionalProperties:
        $ref: '#/components/schemas/JsonValue'
    PostApiWebhooksGithubAppResponse202ApplicationJson:
      oneOf:
        - type: object
          properties:
            status:
              type: string
            reason:
              type: string
            deliveryId:
              type: string
          additionalProperties: false
          required:
            - status
            - reason
            - deliveryId
        - type: object
          properties:
            status:
              type: string
            deliveryId:
              type: string
            operations:
              type: array
              items:
                type: object
                properties:
                  jobId:
                    type: number
                  type:
                    type: string
                additionalProperties: false
                required:
                  - jobId
                  - type
          additionalProperties: false
          required:
            - status
            - deliveryId
            - operations
    JsonValue:
      oneOf:
        - type: 'null'
        - type: boolean
        - type: number
        - type: string
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - VALIDATION_ERROR
                - RATE_LIMITED
                - CONFLICT
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
                - QUOTA_EXCEEDED
                - NO_ORG_MEMBERSHIP
                - CROSS_ORG_REFERENCE
                - INCOMPLETE
                - MALFORMED
            message:
              type: string
            details: {}
            requestId:
              type: string
              format: uuid
          required:
            - code
            - message
      required:
        - error
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Conflict:
      description: Conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'

````