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

# Handle Webhook

> Receive and process GitHub App webhook events.

Guide: [GitHub Code Scanner](https://docs.promptguard.co/tools/github-scanner)



## OpenAPI

````yaml /api-reference/openapi-developer.json post /api/v1/github/webhook
openapi: 3.1.0
info:
  title: PromptGuard Developer API
  description: >-
    Public API for developers to integrate PromptGuard security into their
    applications
  version: 1.0.0
servers:
  - url: https://api.promptguard.co
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/github/webhook:
    post:
      tags:
        - GitHub Webhooks
      summary: Handle Webhook
      description: >-
        Receive and process GitHub App webhook events.


        Guide: [GitHub Code
        Scanner](https://docs.promptguard.co/tools/github-scanner)
      operationId: handle_webhook_api_v1_github_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookAckResponse'
              example:
                status: accepted
      externalDocs:
        description: 'Guide: GitHub Code Scanner'
        url: https://docs.promptguard.co/tools/github-scanner
components:
  schemas:
    WebhookAckResponse:
      properties:
        status:
          type: string
          enum:
            - pong
            - accepted
          title: Status
      type: object
      required:
        - status
      title: WebhookAckResponse
      description: >-
        What GitHub is told: a ping is answered, every other event accepted for
        later.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        PromptGuard API key for developer endpoints. Keys start with pg_live_
        and are created in the dashboard.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.