Convoy · Arazzo Workflow

Convoy Define Event Type and Subscribe

Version 1.0.0

Define a project event type, create an endpoint, and subscribe filtered to that type.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub WebhookWebhook GatewayEvent DeliveryEventingMessagingIntegrationAPI InfrastructureArazzoWorkflows

Provider

convoy

Workflows

define-event-type-and-subscribe
Create an event type, an endpoint, and a subscription filtered to that type.
Creates a project event type, registers a destination endpoint, and creates a subscription whose filter configuration matches only the new event type, routing those events to the endpoint.
3 steps inputs: apiKey, endpointName, endpointUrl, eventTypeName, projectID, subscriptionName outputs: endpointId, eventTypeId, subscriptionId
1
createEventType
Define a new event type for the project so subscriptions can filter on it.
2
createEndpoint
Register the destination endpoint that will receive events of the new type.
3
createTypedSubscription
Create a subscription whose filter configuration routes only events of the new type to the endpoint.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Convoy Define Event Type and Subscribe
  summary: Define a project event type, create an endpoint, and subscribe filtered to that type.
  description: >-
    Establishes a typed webhook pipeline. It defines a new event type for the
    project, registers a destination endpoint, and creates a subscription whose
    filter configuration only routes events of the new type to that endpoint.
    Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-4270.80
  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-4270.80
      capability_name: Webhook & Event Subscription Management
      spec: convoy-subscriptions-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: endpointsApi
  url: ../openapi/convoy-endpoints-api-openapi.yml
  type: openapi
- name: eventtypesApi
  url: ../openapi/convoy-eventtypes-api-openapi.yml
  type: openapi
- name: subscriptionsApi
  url: ../openapi/convoy-subscriptions-api-openapi.yml
  type: openapi
workflows:
- workflowId: define-event-type-and-subscribe
  summary: Create an event type, an endpoint, and a subscription filtered to that type.
  description: >-
    Creates a project event type, registers a destination endpoint, and creates
    a subscription whose filter configuration matches only the new event type,
    routing those events to the endpoint.
  inputs:
    type: object
    required:
    - apiKey
    - projectID
    - eventTypeName
    - endpointName
    - endpointUrl
    - subscriptionName
    properties:
      apiKey:
        type: string
        description: Convoy API key used as the Bearer token on the Authorization header.
      projectID:
        type: string
        description: The Convoy project identifier.
      eventTypeName:
        type: string
        description: The event type name to define (e.g. invoice.created).
      endpointName:
        type: string
        description: Human-readable name for the new webhook endpoint.
      endpointUrl:
        type: string
        description: HTTPS URL Convoy will deliver webhooks to.
      subscriptionName:
        type: string
        description: Name for the subscription filtered to the new event type.
  steps:
  - stepId: createEventType
    description: >-
      Define a new event type for the project so subscriptions can filter on
      it.
    operationId: CreateEventType
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    - name: projectID
      in: path
      value: $inputs.projectID
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.eventTypeName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      eventTypeId: $response.body#/data/uid
      eventTypeName: $response.body#/data/name
  - stepId: createEndpoint
    description: >-
      Register the destination endpoint that will receive events of the new
      type.
    operationId: CreateEndpoint
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    - name: projectID
      in: path
      value: $inputs.projectID
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.endpointName
        url: $inputs.endpointUrl
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      endpointId: $response.body#/data/uid
  - stepId: createTypedSubscription
    description: >-
      Create a subscription whose filter configuration routes only events of
      the new type to the endpoint.
    operationId: CreateSubscription
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    - name: projectID
      in: path
      value: $inputs.projectID
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.subscriptionName
        endpoint_id: $steps.createEndpoint.outputs.endpointId
        filter_config:
          event_types:
          - $steps.createEventType.outputs.eventTypeName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      subscriptionId: $response.body#/data/uid
  outputs:
    eventTypeId: $steps.createEventType.outputs.eventTypeId
    endpointId: $steps.createEndpoint.outputs.endpointId
    subscriptionId: $steps.createTypedSubscription.outputs.subscriptionId

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/convoy-define-event-type-and-subscribe-workflow"
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.