> ## 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 git provider

> Public endpoint (no bearer token required).



## OpenAPI

````yaml /api-reference/openapi.json post /api/webhooks/git-provider
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/git-provider:
    post:
      tags:
        - webhooks
      summary: Create webhooks git provider
      description: Public endpoint (no bearer token required).
      operationId: post_webhooks_git_provider
      parameters:
        - name: X-GitHub-Event
          in: header
          required: false
          description: GitHub event name. Required for GitHub deliveries.
          schema:
            type: string
        - name: X-Hub-Signature-256
          in: header
          required: false
          description: GitHub HMAC SHA-256 signature. Required for GitHub deliveries.
          schema:
            type: string
        - name: X-GitHub-Delivery
          in: header
          required: false
          description: GitHub delivery id used for one-hour replay deduplication.
          schema:
            type: string
        - name: X-Gitlab-Event
          in: header
          required: false
          description: GitLab event name. Required for GitLab deliveries.
          schema:
            type: string
        - name: X-Gitlab-Token
          in: header
          required: false
          description: GitLab webhook token. Required for GitLab deliveries.
          schema:
            type: string
        - name: X-Gitlab-Event-UUID
          in: header
          required: false
          description: GitLab delivery id used for one-hour replay deduplication.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksGitProviderRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostApiWebhooksGitProviderResponse200ApplicationJson
        '202':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostApiWebhooksGitProviderResponse202ApplicationJson
        '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:
    PostApiWebhooksGitProviderRequest:
      description: >-
        Raw signed provider event. EvalGate verifies the exact request bytes
        before parsing this GitHub or GitLab JSON contract.
      oneOf:
        - type: object
          properties:
            action:
              type: string
            number:
              oneOf:
                - type: number
                - type: string
            pull_request:
              type: object
              properties:
                merged:
                  type: boolean
                head:
                  type: object
                  properties:
                    ref:
                      type: string
                  additionalProperties:
                    $ref: '#/components/schemas/JsonValue'
                merge_commit_sha:
                  oneOf:
                    - type: string
                    - type: 'null'
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            repository:
              type: object
              properties:
                full_name:
                  type: string
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
          required:
            - action
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        - type: object
          properties:
            object_kind:
              type: string
              enum:
                - merge_request
            object_attributes:
              type: object
              properties:
                action:
                  type: string
                state:
                  type: string
                source_branch:
                  type: string
                iid:
                  oneOf:
                    - type: number
                    - type: string
                merged_at:
                  oneOf:
                    - type: string
                    - type: 'null'
                merge_commit_sha:
                  oneOf:
                    - type: string
                    - type: 'null'
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            project:
              type: object
              properties:
                path_with_namespace:
                  type: string
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
          required:
            - object_kind
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
    PostApiWebhooksGitProviderResponse200ApplicationJson:
      type: object
      properties:
        provider:
          oneOf:
            - type: string
              enum:
                - github
            - type: string
              enum:
                - gitlab
        status:
          type: string
        reconciliation:
          type: object
          properties:
            proposedChangeId:
              oneOf:
                - type: 'null'
                - type: string
            status:
              oneOf:
                - type: string
                  enum:
                    - approved
                - type: string
                  enum:
                    - rejected
                - type: string
                  enum:
                    - abandoned
                - type: string
                  enum:
                    - ignored
                - type: string
                  enum:
                    - noop
            revertedActiveVersionId:
              oneOf:
                - type: 'null'
                - type: string
          additionalProperties: false
          required:
            - proposedChangeId
            - status
            - revertedActiveVersionId
      additionalProperties: false
      required:
        - provider
        - status
        - reconciliation
    PostApiWebhooksGitProviderResponse202ApplicationJson:
      oneOf:
        - type: object
          properties:
            provider:
              oneOf:
                - type: string
                  enum:
                    - github
                - type: string
                  enum:
                    - gitlab
            status:
              type: string
            reason:
              type: string
          additionalProperties: false
          required:
            - provider
            - status
            - reason
        - type: object
          properties:
            provider:
              oneOf:
                - type: string
                  enum:
                    - github
                - type: string
                  enum:
                    - gitlab
            status:
              type: string
            reason:
              type: string
            proposedChangeId:
              oneOf:
                - type: 'null'
                - type: string
          additionalProperties: false
          required:
            - provider
            - status
            - reason
            - proposedChangeId
    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'

````