mlab Webhooks API

Signed webhook endpoints an integration registers for itself (the n8n trigger does). Permission `webhooks.manage`, never included in full access. Members manage every endpoint from Organization → Alerting → Channels.

GitHub OpenAPI

Operations 3

GET /api/v1/orga/webhooks List the endpoints this key registered #
POST /api/v1/orga/webhooks/create Register a signed endpoint #
POST /api/v1/orga/webhooks/delete Delete an endpoint this key registered #

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/mlab-sh:mlab-sh-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. 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

mlab-sh-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: mlab.sh Webhooks API
  version: 1.0.0
  description: 'The **mlab.sh** REST API lets you launch domain security scans, look up IP, crypto, hash, URL, email, phone and MAC intelligence, extract IOCs from raw text, analyze files and scripts, triage indicator lists, run RedKit audits, schedule scans, work on cases and inspect SSL certificates programmatically.


    All endpoints are authenticated with an API key sent in the `Authorization` header. Generate a key from **Organization → Settings → API keys** on mlab.sh. A key belongs to the organization and carries permissions chosen when it is created (`scan.lookup`, `scan.domain`, `scan.file`, `scan.batch`, `redkit`, `watchdog.read`, `watchdog.write`, `cases.read`, `cases.write`, `tags.read`, `tags.write`, `webhooks.manage`, or full access). A call outside the key''s permissions returns **403** naming the missing permission; organization and account settings are never reachable with a key. `webhooks.manage` is the one exception and is **never part of full access**: it must be ticked by name (a full-access key can hold it too). It lets a key register signed webhook endpoints and list or delete only the ones it registered itself.


    **Working through an AI agent?** Prefer the Model Context Protocol server at `https://mlab.sh/mcp` (Streamable HTTP, OAuth 2.0 or an `mcp_` token). It exposes 48 tools covering most of what is below plus CVE search, threat-actor attribution, SBOM scanning, cases and workspace memory, cluster and Proxmox inspection and offline indicator lookups that consume no scan quota, so it is a wider surface than this REST API rather than a wrapper over it. See https://doc.mlab.sh/docs/mlab.sh/integrations/mcp and https://mlab.sh/llms.txt.


    **Permissions.** Each operation lists the API key permission it needs (`x-api-key-permission`). Keys created before 2026-10-01 were migrated to full access.


    **Expiry.** A key is created with a lifetime (90 days by default; 30, 180, 365 days or never). An expired key is answered **401**, like an unknown one. The expiry date shows in Organization → Settings → API keys.


    **Quota headers.** Every call that spends scan quota answers with `X-RateLimit-Limit` (the plan''s limit for that scan type), `X-RateLimit-Remaining` (what is left after this call), `X-RateLimit-Resource` (the scan type) and `X-RateLimit-Window` (86400: quotas count a rolling 24 hours, so there is no fixed reset time). Unlimited plans send none.'
  contact:
    name: mlab.sh support
    email: contact@cyberdream.io
    url: https://mlab.sh
  license:
    name: Proprietary
  x-source-of-truth: html/openapi.json in the mlab.sh app repository, served at https://mlab.sh/openapi.json. The docs repository generates openapi.yaml from it with scripts/sync-openapi.mjs.
servers:
- url: https://mlab.sh
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Webhooks
  description: Signed webhook endpoints an integration registers for itself (the n8n trigger does). Permission `webhooks.manage`, never included in full access. Members manage every endpoint from Organization → Alerting → Channels.
paths:
  /api/v1/orga/webhooks:
    get:
      tags:
      - Webhooks
      summary: List the endpoints this key registered
      operationId: listWebhooks
      description: 'With an API key, only the endpoints that key created; endpoints made by members or by other keys are not returned. The signing secret is masked.


        **API key permission:** `webhooks.manage` (explicit only, not granted by full access). Every call is written to the organization''s audit log with the key''s uuid.'
      responses:
        '200':
          description: The endpoints and the event catalog.
          content:
            application/json:
              example:
                webhooks:
                - uuid: …
                  label: 'n8n: Close RedKit loop'
                  url: https://n8n.example.com/webhook/…/webhook
                  format: generic
                  secret: whsec_0123...
                  events:
                  - scan.redkit.findings.new
                  enabled: true
                  failure_count: 0
                  last_status: 200
                  last_error: ''
                  last_delivery_at: '2026-11-06 09:12:00'
                  created_at: '2026-11-06 09:00:00'
                catalog:
                - event: scan.redkit.findings.new
                  label: New RedKit findings
                  group: Scans
                  hint: …
                formats:
                - generic
                - slack
                - discord
                - teams
                max: 10
        '403':
          $ref: '#/components/responses/Forbidden'
        '401':
          $ref: '#/components/responses/Unauthorized'
      x-api-key-permission: webhooks.manage
  /api/v1/orga/webhooks/create:
    post:
      tags:
      - Webhooks
      summary: Register a signed endpoint
      operationId: createWebhook
      description: 'Pro, Team and Enterprise plans. The URL must be public HTTPS on port 443 (no internal address). A key can only register the `generic` (signed) format. The signing secret is returned **once**, in this answer: deliveries carry `X-Mlab-Signature: sha256=HMAC(secret, timestamp + "." + body)`, `X-Mlab-Timestamp`, `X-Mlab-Event` and `X-Mlab-Delivery`.


        **API key permission:** `webhooks.manage` (explicit only, not granted by full access). Every call is written to the organization''s audit log with the key''s uuid.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              - events
              properties:
                url:
                  type: string
                  maxLength: 500
                label:
                  type: string
                  maxLength: 80
                format:
                  type: string
                  enum:
                  - generic
                  default: generic
                events:
                  type: array
                  items:
                    type: string
                  description: Event names from the catalog, or `["*"]` for every event, including ones added later.
            example:
              url: https://n8n.example.com/webhook/…/webhook
              label: 'n8n: Close RedKit loop'
              events:
              - scan.redkit.findings.new
      responses:
        '200':
          description: Created.
          content:
            application/json:
              example:
                status: success
                uuid: …
                secret: whsec_…
        '400':
          description: Invalid URL or events, chat format with a key, endpoint limit reached, or a plan without webhooks.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          $ref: '#/components/responses/Forbidden'
        '401':
          $ref: '#/components/responses/Unauthorized'
      x-api-key-permission: webhooks.manage
  /api/v1/orga/webhooks/delete:
    post:
      tags:
      - Webhooks
      summary: Delete an endpoint this key registered
      operationId: deleteWebhook
      description: 'Removes the endpoint and its pending deliveries. A key can only delete the endpoints it created: any other uuid answers 404.


        **API key permission:** `webhooks.manage` (explicit only, not granted by full access). Every call is written to the organization''s audit log with the key''s uuid.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - uuid
              properties:
                uuid:
                  type: string
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              example:
                status: success
        '404':
          description: No endpoint with this uuid registered by this key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          $ref: '#/components/responses/Forbidden'
        '401':
          $ref: '#/components/responses/Unauthorized'
      x-api-key-permission: webhooks.manage
components:
  responses:
    Unauthorized:
      description: Invalid or missing API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: error
            message: Invalid or missing API key.
    Forbidden:
      description: The API key lacks the permission this endpoint needs, or the endpoint is not open to API keys (organization and account settings never are).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: This API key does not have the 'cases.write' permission (Write cases). An owner or admin can add it in the organization settings.
  schemas:
    Error:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Description of what went wrong.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Your API key, prefixed with `token `. Example: `Authorization: token mlab_your_api_key_here`. Each key only reaches the endpoints its permissions allow.

        '