Layero Webhook API

The webhook API from Layero — 3 operation(s) for webhook.

GitHub OpenAPI

Operations 3

POST /webhook/{project_id} Handle Webhook #
POST /webhook/github-app Handle App Webhook #
POST /webhook/v2/{token} Handle External Webhook #

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/layero-ru:layero-ru-webhook-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

layero-ru-webhook-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Layero Webhook API
  version: 0.1.0
tags:
- name: Webhook
paths:
  /webhook/{project_id}:
    post:
      tags:
      - Webhook
      summary: Handle Webhook
      operationId: handle_webhook_webhook__project_id__post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: x-github-event
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Github-Event
      - name: x-hub-signature-256
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Hub-Signature-256
      - name: x-github-delivery
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Github-Delivery
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Handle Webhook Webhook  Project Id  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /webhook/github-app:
    post:
      tags:
      - Webhook
      summary: Handle App Webhook
      description: 'Receive a GitHub App webhook.


        All of an App''s installations send their events to a single URL

        configured on github.com (App settings → Webhook URL). We disambiguate

        by reading installation.id from the payload and looking up the

        matching organizations row.


        Signature is HMAC-SHA256 of the raw body using the App''s webhook

        secret (one secret for the whole App, not per-project). On signature

        failure we return 401 — GitHub will retry, which gives us a chance to

        fix a misconfigured secret without losing events permanently.


        Supported events:

        * push — main deploy trigger; same downstream as OAuth path

        * installation — created/deleted; we evict cached tokens / clear

        organizations.github_app_installation_id on delete

        * installation_repositories — repo access added/removed, no action

        yet (would inform UI repo picker)

        * repository — transferred/renamed; переписываем repo_full_name

        у проектов, иначе push перестаёт находить проект

        * ping — health check from GitHub UI; respond 200'
      operationId: handle_app_webhook_webhook_github_app_post
      parameters:
      - name: x-github-event
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Github-Event
      - name: x-hub-signature-256
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Hub-Signature-256
      - name: x-github-delivery
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Github-Delivery
      - name: x-github-hook-installation-target-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Github-Hook-Installation-Target-Id
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Handle App Webhook Webhook Github App Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /webhook/v2/{token}:
    post:
      tags:
      - Webhook
      summary: Handle External Webhook
      description: Push от внешнего git-провайдера (GitVerse и далее).
      operationId: handle_external_webhook_webhook_v2__token__post
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Handle External Webhook Webhook V2  Token  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError