Lago · Capability

Lago API documentation — Webhook_endpoints

Lago API documentation — Webhook_endpoints. 5 operations. Lead operation: Lago Create a webhook_endpoint. Self-contained Naftiko capability covering one Lago business surface.

Run with Naftiko LagoWebhook_endpoints

What You Can Do

POST
Createwebhookendpoint — Lago Create a webhook_endpoint
/v1/webhook-endpoints
GET
Findallwebhookendpoints — Lago List all webhook endpoints
/v1/webhook-endpoints
PUT
Updatewebhookendpoint — Lago Update a webhook endpoint
/v1/webhook-endpoints/{lago-id}
GET
Findwebhookendpoint — Lago Retrieve a webhook endpoint
/v1/webhook-endpoints/{lago-id}
DELETE
Destroywebhookendpoint — Lago Delete a webhook endpoint
/v1/webhook-endpoints/{lago-id}

MCP Tools

lago-create-webhook-endpoint

Lago Create a webhook_endpoint

lago-list-all-webhook-endpoints

Lago List all webhook endpoints

read-only idempotent
lago-update-webhook-endpoint

Lago Update a webhook endpoint

idempotent
lago-retrieve-webhook-endpoint

Lago Retrieve a webhook endpoint

read-only idempotent
lago-delete-webhook-endpoint

Lago Delete a webhook endpoint

idempotent

Capability Spec

lago-webhook-endpoints.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lago API documentation — Webhook_endpoints
  description: 'Lago API documentation — Webhook_endpoints. 5 operations. Lead operation: Lago Create a webhook_endpoint.
    Self-contained Naftiko capability covering one Lago business surface.'
  tags:
  - Lago
  - Webhook_endpoints
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LAGO_API_KEY: LAGO_API_KEY
capability:
  consumes:
  - type: http
    namespace: lago-webhook-endpoints
    baseUri: https://api.getlago.com/api/v1
    description: Lago API documentation — Webhook_endpoints business capability. Self-contained, no shared references.
    resources:
    - name: webhook_endpoints
      path: /webhook_endpoints
      operations:
      - name: createwebhookendpoint
        method: POST
        description: Lago Create a webhook_endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: findallwebhookendpoints
        method: GET
        description: Lago List all webhook endpoints
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: webhook_endpoints-lago_id
      path: /webhook_endpoints/{lago_id}
      operations:
      - name: updatewebhookendpoint
        method: PUT
        description: Lago Update a webhook endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: findwebhookendpoint
        method: GET
        description: Lago Retrieve a webhook endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: destroywebhookendpoint
        method: DELETE
        description: Lago Delete a webhook endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.LAGO_API_KEY}}'
  exposes:
  - type: rest
    namespace: lago-webhook-endpoints-rest
    port: 8080
    description: REST adapter for Lago API documentation — Webhook_endpoints. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/webhook-endpoints
      name: webhook-endpoints
      description: REST surface for webhook_endpoints.
      operations:
      - method: POST
        name: createwebhookendpoint
        description: Lago Create a webhook_endpoint
        call: lago-webhook-endpoints.createwebhookendpoint
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: findallwebhookendpoints
        description: Lago List all webhook endpoints
        call: lago-webhook-endpoints.findallwebhookendpoints
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/webhook-endpoints/{lago-id}
      name: webhook-endpoints-lago-id
      description: REST surface for webhook_endpoints-lago_id.
      operations:
      - method: PUT
        name: updatewebhookendpoint
        description: Lago Update a webhook endpoint
        call: lago-webhook-endpoints.updatewebhookendpoint
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: findwebhookendpoint
        description: Lago Retrieve a webhook endpoint
        call: lago-webhook-endpoints.findwebhookendpoint
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: destroywebhookendpoint
        description: Lago Delete a webhook endpoint
        call: lago-webhook-endpoints.destroywebhookendpoint
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lago-webhook-endpoints-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lago API documentation — Webhook_endpoints. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: lago-create-webhook-endpoint
      description: Lago Create a webhook_endpoint
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lago-webhook-endpoints.createwebhookendpoint
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: lago-list-all-webhook-endpoints
      description: Lago List all webhook endpoints
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lago-webhook-endpoints.findallwebhookendpoints
      outputParameters:
      - type: object
        mapping: $.
    - name: lago-update-webhook-endpoint
      description: Lago Update a webhook endpoint
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: lago-webhook-endpoints.updatewebhookendpoint
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: lago-retrieve-webhook-endpoint
      description: Lago Retrieve a webhook endpoint
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lago-webhook-endpoints.findwebhookendpoint
      outputParameters:
      - type: object
        mapping: $.
    - name: lago-delete-webhook-endpoint
      description: Lago Delete a webhook endpoint
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lago-webhook-endpoints.destroywebhookendpoint
      outputParameters:
      - type: object
        mapping: $.