Lago Webhooks API

Everything about Webhooks

Operations 2

GET /webhooks/public_key Retrieve webhook public key #
GET /webhooks/json_public_key Retrieve webhook public key (JSON) #

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/lago:lago-webhooks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

lago-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lago API documentation Webhooks API
  description: Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
  version: 1.55.0
  license:
    name: AGPLv3
    url: https://github.com/getlago/lago-openapi/blob/main/LICENSE
  contact:
    email: tech@getlago.com
servers:
- url: https://api.getlago.com/api/v1
  description: US Lago cluster
- url: https://api.eu.getlago.com/api/v1
  description: EU Lago cluster
security:
- bearerAuth: []
tags:
- name: Webhooks
  description: Everything about Webhooks
  externalDocs:
    description: Find out more
    url: https://getlago.com/docs/api-reference/webhooks/format---signature#1-retrieve-the-public-key
paths:
  /webhooks/public_key:
    get:
      tags:
      - Webhooks
      summary: Retrieve webhook public key
      description: '**Deprecated.** Use `GET /webhooks/json_public_key` instead. This endpoint is used to retrieve the public key used to verify the webhook signature.'
      deprecated: true
      operationId: fetchPublicKey
      responses:
        '200':
          description: Public key
          content:
            text/plain:
              schema:
                type: string
                description: The RSA public key used to verify webhook signatures. The key is PEM encoded, then Base64 encoded with line breaks.
                example: 'LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3

                  MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFyRVBKd3hlZUJwSmRGSXFyRTBO

                  MQpnTWxUamNaaTRSeGlwN2FsZ0RqQ3B1M2VlUDU5clZ4TUxmb3ZxVnNndENn

                  aWZYWGp0WmpFc3NnZVJRejh4TW9MCks1YWY5YjhjTjJlaTNMVlRPMDdxaFRF

                  YjBjakM3NmhON1NabnF1aTVvS3haNGVOVml4MTZCWXNLb3pyamd2eWEKWDB2

                  cUtNNDlGNzM3dloyTld5M1luS2w3cXNTaGs5NGM5bVlFM1creUNMMERSUFQ5

                  Z1AxYlliQ1FHc0hZdVV3TgpIQjVxdlM3OFhhUFY5d1doUGNsNzBYSWlreXhR

                  L3BiZGtpOEhoRUhtRTAxVnJwSFhNQW1zNzBXQkQyT0toVTJICm1rdGZaZVpJ

                  VmROeU5MUXNacGx3TmphUjZOdWxrdUFyOUZnRStWWXVmL01jUEZYZ1ViRUFt

                  MkM3emU4Ulp1eUkKb1FJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t

                  Cg==

                  '
        '401':
          $ref: '#/components/responses/Unauthorized'
  /webhooks/json_public_key:
    get:
      tags:
      - Webhooks
      summary: Retrieve webhook public key (JSON)
      description: This endpoint is used to retrieve the public key used to verify the webhook signature, wrapped in a JSON object. Prefer this endpoint over the deprecated `GET /webhooks/public_key`.
      operationId: fetchJsonPublicKey
      responses:
        '200':
          description: Public key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookPublicKey'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    WebhookPublicKeyObject:
      type: object
      required:
      - public_key
      properties:
        public_key:
          type: string
          description: The RSA public key used to verify webhook signatures. The key is PEM encoded, then Base64 encoded with line breaks.
          example: 'LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3

            MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFyRVBKd3hlZUJwSmRGSXFyRTBO

            MQpnTWxUamNaaTRSeGlwN2FsZ0RqQ3B1M2VlUDU5clZ4TUxmb3ZxVnNndENn

            aWZYWGp0WmpFc3NnZVJRejh4TW9MCks1YWY5YjhjTjJlaTNMVlRPMDdxaFRF

            YjBjakM3NmhON1NabnF1aTVvS3haNGVOVml4MTZCWXNLb3pyamd2eWEKWDB2

            cUtNNDlGNzM3dloyTld5M1luS2w3cXNTaGs5NGM5bVlFM1creUNMMERSUFQ5

            Z1AxYlliQ1FHc0hZdVV3TgpIQjVxdlM3OFhhUFY5d1doUGNsNzBYSWlreXhR

            L3BiZGtpOEhoRUhtRTAxVnJwSFhNQW1zNzBXQkQyT0toVTJICm1rdGZaZVpJ

            VmROeU5MUXNacGx3TmphUjZOdWxrdUFyOUZnRStWWXVmL01jUEZYZ1ViRUFt

            MkM3emU4Ulp1eUkKb1FJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t

            Cg==

            '
    ApiErrorUnauthorized:
      type: object
      required:
      - status
      - error
      properties:
        status:
          type: integer
          format: int32
          example: 401
        error:
          type: string
          example: Unauthorized
    WebhookPublicKey:
      type: object
      required:
      - webhook
      properties:
        webhook:
          $ref: '#/components/schemas/WebhookPublicKeyObject'
  responses:
    Unauthorized:
      description: Unauthorized error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorUnauthorized'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
externalDocs:
  description: Lago Github
  url: https://github.com/getlago
x-provenance:
  method: harvested
  publisher: Lago
  source: https://getlago.com/api/openapi.yaml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)