EvalGate Webhooks API

The webhooks API from EvalGate — 2 operation(s) for webhooks.

GitHub OpenAPI

Operations 2

POST /api/webhooks/git-provider Create webhooks git provider #
POST /api/webhooks/github-app Create webhooks github app #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/evalgate-com:evalgate-com-webhooks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

evalgate-com-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EvalGate Webhooks API
  version: 18.13.0
  description: EvalGate API. See docs/api-contract.md for stability commitments.
servers:
- url: https://evalgate.com
  description: Production
- url: http://localhost:3000
  description: Local
tags:
- name: Webhooks
paths:
  /api/webhooks/git-provider:
    post:
      x-evalgate-source-hash: sha256:ed13d0ad94b6bd36f743ca713c30d5ed47168e18a3355818de8a46ee59b7da75
      summary: Create webhooks git provider
      operationId: post_webhooks_git_provider
      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'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security: []
      tags:
      - Webhooks
      description: Public endpoint (no bearer token required).
      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
      x-evalgate-contract-hash: sha256:2158e64b82e73eab773357cf3bd3f8aa52bedb7fac2e84f9e0ae931da4704b89
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksGitProviderRequest'
  /api/webhooks/github-app:
    post:
      x-evalgate-source-hash: sha256:ca6a67fe7696b43b0643bd7c7ea54bbacdd2daf5c3fcfda582b6193250f00617
      summary: Create webhooks github app
      operationId: post_webhooks_github_app
      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'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security: []
      tags:
      - Webhooks
      description: Public endpoint (no bearer token required).
      x-evalgate-contract-hash: sha256:7834dcc58a9bc3532e98cafc4075ab62e2fd2cbc454574e044acab561f7f5421
      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'
components:
  schemas:
    OrganizationId:
      type: string
      format: uuid
    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
          workspaces:
            type: number
          operations:
            type: array
            items:
              type: object
              properties:
                jobId:
                  type: number
                type:
                  type: string
                organizationId:
                  $ref: '#/components/schemas/OrganizationId'
              additionalProperties: false
              required:
              - jobId
              - type
        additionalProperties: false
        required:
        - status
        - deliveryId
        - workspaces
        - operations
    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
    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:
                - rejected
              - type: string
                enum:
                - abandoned
              - type: string
                enum:
                - approved
              - 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
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - UNAUTHORIZED
              - FORBIDDEN
              - NOT_FOUND
              - INVALID_REFERENCE
              - VALIDATION_ERROR
              - RATE_LIMITED
              - CONFLICT
              - INTERNAL_ERROR
              - SERVICE_UNAVAILABLE
              - QUOTA_EXCEEDED
              - FEATURE_LIMIT_REACHED
              - NO_ORG_MEMBERSHIP
              - SHARE_REVOKED
              - SHARE_EXPIRED
              - SHARE_UNAVAILABLE
              - PROVIDER_KEY_MISSING
              - PROVIDER_KEY_EXPIRED
              - PROVIDER_RATE_LIMITED
              - PROVIDER_UNAUTHORIZED
              - PROVIDER_UNAVAILABLE
              - AGENT_HANDOFF_INVALID
              - AGENT_HANDOFF_EXPIRED
              - AGENT_HANDOFF_DENIED
              - AGENT_HANDOFF_CONSUMED
              - PAYLOAD_TOO_LARGE
              - METHOD_NOT_ALLOWED
            message:
              type: string
            details: {}
            requestId:
              type: string
              format: uuid
            redaction:
              type: object
              properties:
                applied:
                  type: boolean
                  enum:
                  - true
                fieldCount:
                  type: integer
                  minimum: 0
                secretCount:
                  type: integer
                  minimum: 0
              required:
              - applied
              - fieldCount
              - secretCount
          required:
          - code
          - message
      required:
      - error
    JsonValue:
      oneOf:
      - type: 'null'
      - type: boolean
      - type: number
      - type: string
      - type: array
        items:
          $ref: '#/components/schemas/JsonValue'
      - type: object
        additionalProperties:
          $ref: '#/components/schemas/JsonValue'
    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'
    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'
  responses:
    Conflict:
      description: Conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: IETF HTTPAPI structured remaining quota and reset delay (work in progress).
          schema:
            type: string
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: IETF HTTPAPI structured remaining quota and reset delay (work in progress).
          schema:
            type: string
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: IETF HTTPAPI structured remaining quota and reset delay (work in progress).
          schema:
            type: string
        Retry-After:
          description: Delay in seconds before retrying when present.
          schema:
            type: integer
            minimum: 1
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: IETF HTTPAPI structured remaining quota and reset delay (work in progress).
          schema:
            type: string
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: IETF HTTPAPI structured remaining quota and reset delay (work in progress).
          schema:
            type: string
        WWW-Authenticate:
          description: Bearer challenge. Agent-facing routes include the RFC 9728 resource_metadata URL.
          schema:
            type: string
    ServiceUnavailable:
      description: Service unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: IETF HTTPAPI structured remaining quota and reset delay (work in progress).
          schema:
            type: string
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: IETF HTTPAPI structured remaining quota and reset delay (work in progress).
          schema:
            type: string
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: IETF HTTPAPI structured remaining quota and reset delay (work in progress).
          schema:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: EvalGate API key
      description: Organization-scoped EvalGate API key. Discover the supported agent scopes at /.well-known/oauth-protected-resource. Per-operation grants are listed in x-evalgate-required-scopes; OpenAPI bearer security requirement arrays remain empty as required for non-OAuth schemes.
      x-evalgate-scopes-supported:
      - eval:read
      - eval:write
      - objectives:read
      - objectives:write
      - runs:read
      - runs:write
      - traces:read
      - traces:write
      - exports:download
      - reports:write
      - prompt:publish
      - scorer:publish
      - red_team:read
      - red_team:run
      - red_team:approve
      - docs:read
      - agent:read
      - agent:execute
      - resources:read
      - resources:write
      - contexts:read
      - contexts:write
      - observations:write
      - checks:read
      - checks:run
      - standards:read
      - standards:write
      - standards:approve
      - grants:read
      - grants:write
      - admin:keys
      - admin:workspace
      - admin:org
      x-evalgate-protected-resource-metadata: https://www.evalgate.com/.well-known/oauth-protected-resource
    ProviderHealthSignature:
      type: apiKey
      in: header
      name: x-evalgate-provider-health-signature
      description: HMAC SHA-256 signature over the exact provider request bytes. Provider requests also require the timestamp and key-id headers.
    browserSession:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: Interactive EvalGate browser session established through GitHub or Google sign-in. This scheme represents the human approval step and is not an agent API key or an EvalGate OAuth authorization-server token.
x-service-info:
  categories:
  - ai
  - developer-tools
  docs:
    homepage: https://evalgate.com
    apiReference: https://docs.evalgate.com/api-reference
    llms: https://evalgate.com/llms.txt