Affinda · Capability

Affinda Webhooks API — Resthook Subscriptions

Affinda Webhooks — manage resthook subscriptions for document parsing events with the probe + activate handshake.

Affinda Webhooks API — Resthook Subscriptions is a Naftiko capability published by Affinda, one of 8 capabilities the APIs.io network indexes for this provider. It bundles 3 operations.

The capability includes 1 read-only operation and 2 state-changing operations. Lead operation: List Affinda webhook subscriptions. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Affinda, Webhooks, and Events.

Run with Naftiko AffindaWebhooksEvents

MCP Tools

affinda-list-webhooks

List Affinda webhook subscriptions.

read-only idempotent
affinda-create-webhook

Create an Affinda webhook subscription.

affinda-activate-webhook

Activate an Affinda webhook subscription via probe value.

Capability Spec

webhooks-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Affinda Webhooks API — Resthook Subscriptions
  description: Affinda Webhooks — manage resthook subscriptions for document parsing events with the
    probe + activate handshake.
  tags:
  - Affinda
  - Webhooks
  - Events
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    AFFINDA_API_KEY: AFFINDA_API_KEY
capability:
  consumes:
  - type: http
    namespace: webhooks
    baseUri: https://api.affinda.com
    description: Affinda v3 Resthook Subscriptions.
    resources:
    - name: v3-resthook-subscriptions
      path: /v3/resthook_subscriptions
      operations:
      - name: listsubscriptions
        method: GET
        description: List webhook subscriptions.
        outputRawFormat: json
        outputParameters: [{name: results, type: object, value: $.}]
        inputParameters: []
      - name: createsubscription
        method: POST
        description: Create a webhook subscription. Affinda sends a probe to the target URL.
        outputRawFormat: json
        outputParameters: [{name: subscription, type: object, value: $.}]
        inputParameters:
        - {name: body, in: body, type: object, required: true}
    - name: v3-resthook-subscriptions-activate
      path: /v3/resthook_subscriptions/activate
      operations:
      - name: activatesubscription
        method: POST
        description: Activate a subscription using the probe value received at the target URL.
        outputRawFormat: json
        outputParameters: [{name: subscription, type: object, value: $.}]
        inputParameters:
        - {name: body, in: body, type: object, required: true}
    authentication:
      type: apikey
      key: Authorization
      value: 'Bearer {{env.AFFINDA_API_KEY}}'
      placement: header
  exposes:
  - type: mcp
    namespace: webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Affinda Webhooks.
    tools:
    - name: affinda-list-webhooks
      description: List Affinda webhook subscriptions.
      hints: {readOnly: true, destructive: false, idempotent: true}
      call: webhooks.listsubscriptions
      outputParameters: [{type: object, mapping: $.}]
    - name: affinda-create-webhook
      description: Create an Affinda webhook subscription.
      hints: {readOnly: false, destructive: false, idempotent: false}
      call: webhooks.createsubscription
      with: {body: tools.body}
      outputParameters: [{type: object, mapping: $.}]
    - name: affinda-activate-webhook
      description: Activate an Affinda webhook subscription via probe value.
      hints: {readOnly: false, destructive: false, idempotent: false}
      call: webhooks.activatesubscription
      with: {body: tools.body}
      outputParameters: [{type: object, mapping: $.}]