fly-io · Capability

Fly.io Extensions API — Webhooks

Fly.io Extensions API — Webhooks. 2 operations. Lead operation: Send a webhook to Fly.io. Self-contained Naftiko capability covering one Fly Io business surface.

Run with Naftiko Fly IoWebhooks

What You Can Do

POST
Sendextensionwebhook — Send a webhook to Fly.io
/v1/api/hooks/extensions/{provider-name}
POST
Receiveextensionevent — Receive a machine event webhook from Fly.io
/v1/extensions/events

MCP Tools

send-webhook-fly-io

Send a webhook to Fly.io

receive-machine-event-webhook-fly-io

Receive a machine event webhook from Fly.io

Capability Spec

extensions-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fly.io Extensions API — Webhooks
  description: 'Fly.io Extensions API — Webhooks. 2 operations. Lead operation: Send a webhook to Fly.io. Self-contained Naftiko
    capability covering one Fly Io business surface.'
  tags:
  - Fly Io
  - Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FLY_IO_API_KEY: FLY_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: extensions-webhooks
    baseUri: https://{provider_base_url}
    description: Fly.io Extensions API — Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: api-hooks-extensions-provider_name
      path: /api/hooks/extensions/{provider_name}
      operations:
      - name: sendextensionwebhook
        method: POST
        description: Send a webhook to Fly.io
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: provider_name
          in: path
          type: string
          description: The slug identifier of the extension provider registered with Fly.io.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: extensions-events
      path: /extensions/events
      operations:
      - name: receiveextensionevent
        method: POST
        description: Receive a machine event webhook from Fly.io
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.FLY_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: extensions-webhooks-rest
    port: 8080
    description: REST adapter for Fly.io Extensions API — Webhooks. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/hooks/extensions/{provider-name}
      name: api-hooks-extensions-provider-name
      description: REST surface for api-hooks-extensions-provider_name.
      operations:
      - method: POST
        name: sendextensionwebhook
        description: Send a webhook to Fly.io
        call: extensions-webhooks.sendextensionwebhook
        with:
          provider_name: rest.provider_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/extensions/events
      name: extensions-events
      description: REST surface for extensions-events.
      operations:
      - method: POST
        name: receiveextensionevent
        description: Receive a machine event webhook from Fly.io
        call: extensions-webhooks.receiveextensionevent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: extensions-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fly.io Extensions API — Webhooks. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: send-webhook-fly-io
      description: Send a webhook to Fly.io
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: extensions-webhooks.sendextensionwebhook
      with:
        provider_name: tools.provider_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: receive-machine-event-webhook-fly-io
      description: Receive a machine event webhook from Fly.io
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: extensions-webhooks.receiveextensionevent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.