Persona · Capability

Persona API — Webhooks

Persona API — Webhooks. 2 operations. Lead operation: List all Webhooks. Self-contained Naftiko capability covering one Persona business surface.

Run with Naftiko PersonaWebhooks

What You Can Do

GET
Listwebhooks — List all Webhooks
/v1/webhooks
POST
Createwebhook — Create a Webhook
/v1/webhooks

MCP Tools

list-all-webhooks

List all Webhooks

read-only idempotent
create-webhook

Create a Webhook

Capability Spec

persona-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Persona API — Webhooks
  description: 'Persona API — Webhooks. 2 operations. Lead operation: List all Webhooks. Self-contained Naftiko capability
    covering one Persona business surface.'
  tags:
  - Persona
  - Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PERSONA_API_KEY: PERSONA_API_KEY
capability:
  consumes:
  - type: http
    namespace: persona-webhooks
    baseUri: https://withpersona.com/api/v1
    description: Persona API — Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: webhooks
      path: /webhooks
      operations:
      - name: listwebhooks
        method: GET
        description: List all Webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createwebhook
        method: POST
        description: Create a Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.PERSONA_API_KEY}}'
  exposes:
  - type: rest
    namespace: persona-webhooks-rest
    port: 8080
    description: REST adapter for Persona API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/webhooks
      name: webhooks
      description: REST surface for webhooks.
      operations:
      - method: GET
        name: listwebhooks
        description: List all Webhooks
        call: persona-webhooks.listwebhooks
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createwebhook
        description: Create a Webhook
        call: persona-webhooks.createwebhook
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: persona-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Persona API — Webhooks. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-all-webhooks
      description: List all Webhooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: persona-webhooks.listwebhooks
      outputParameters:
      - type: object
        mapping: $.
    - name: create-webhook
      description: Create a Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: persona-webhooks.createwebhook
      outputParameters:
      - type: object
        mapping: $.