Z League · Arazzo Workflow

MEGA CRM — capture lead and register webhook

Version 1.0.0

Register a lead.created webhook, then create a lead. Real inserts fire the webhook so your endpoint is notified. Uses an Idempotency-Key so the create is retry-safe.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CompanyCRMLeadsMarketingAI AgentsSEOAdvertisingWebhookGamingArazzoWorkflows

Provider

z-league

Workflows

captureAndNotify
Register a webhook, then create a lead that triggers it.
2 steps inputs: contactEmail, contactName, customerId, idempotencyKey, token, webhookUrl outputs: leadId, webhookId
1
registerWebhook
Register a lead.created webhook and capture the signing secret (shown once).
2
createLead
Create a lead; a genuine new insert fires the registered webhook.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: MEGA CRM — capture lead and register webhook
  version: 1.0.0
  description: >-
    Register a lead.created webhook, then create a lead. Real inserts fire the webhook so
    your endpoint is notified. Uses an Idempotency-Key so the create is retry-safe.
  x-realizes-capability-ids:
  - BC-410.30
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-410.30
      capability_name: Opportunity & Pipeline Management
      spec: z-league-leads-api-openapi.yml
      confidence: 0.78
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: leadsApi
  url: ../openapi/z-league-leads-api-openapi.yml
  type: openapi
- name: webhooksApi
  url: ../openapi/z-league-webhooks-api-openapi.yml
  type: openapi
workflows:
- workflowId: captureAndNotify
  summary: Register a webhook, then create a lead that triggers it.
  inputs:
    type: object
    required: [token, customerId, webhookUrl, idempotencyKey]
    properties:
      token: {type: string, description: 'Bearer PAT (mega_...) with leads:write + webhooks:manage'}
      customerId: {type: string, format: uuid}
      webhookUrl: {type: string, description: Public HTTPS endpoint to receive lead.created}
      idempotencyKey: {type: string}
      contactEmail: {type: string, default: sam@example.com}
      contactName: {type: string, default: Sam Seller}
  steps:
  - stepId: registerWebhook
    description: Register a lead.created webhook and capture the signing secret (shown once).
    operationId: createWebhook
    parameters:
    - name: Authorization
      in: header
      value: 'Bearer $inputs.token'
    - name: x-customer-id
      in: header
      value: $inputs.customerId
    requestBody:
      contentType: application/json
      payload:
        url: $inputs.webhookUrl
        event_types: [lead.created]
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      webhookId: $response.body#/webhook/id
      secret: $response.body#/secret
  - stepId: createLead
    description: Create a lead; a genuine new insert fires the registered webhook.
    operationId: createLead
    parameters:
    - name: Authorization
      in: header
      value: 'Bearer $inputs.token'
    - name: x-customer-id
      in: header
      value: $inputs.customerId
    - name: Idempotency-Key
      in: header
      value: $inputs.idempotencyKey
    requestBody:
      contentType: application/json
      payload:
        contact_name: $inputs.contactName
        contact_email: $inputs.contactEmail
        source_platform: referral
        source_type: form
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      leadId: $response.body#/lead/id
  outputs:
    webhookId: $steps.registerWebhook.outputs.webhookId
    leadId: $steps.createLead.outputs.leadId

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/z-league-capture-and-notify"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.