Composio · Arazzo Workflow

Composio Set Up a Trigger

Version 1.0.0

Discover a trigger type, create a trigger instance on a connected account, and confirm it is active.

1 workflow 1 source API 1 provider
View Spec View on GitHub AI AgentsAuthenticationIntegrationMCPSandboxToolsTriggersUnified-APIWebhookArazzoWorkflows

Provider

composio

Workflows

setup-trigger
Create a trigger instance for a toolkit event and verify it is active.
Lists trigger types for a toolkit, reads the selected trigger type schema, upserts a trigger instance against a connected account, and lists active triggers to confirm the new trigger id is present.
4 steps inputs: apiKey, connectedAccountId, toolkitSlug, triggerConfig, triggerSlug outputs: activeTriggers, triggerId
1
listTriggerTypes
List the trigger types available for the toolkit to confirm the requested trigger exists.
2
getTriggerType
Read the chosen trigger type to learn its required config fields before creating the instance.
3
upsertTrigger
Create or update the trigger instance for the connected account using the supplied trigger configuration.
4
confirmActive
List active triggers filtered to the connected account to confirm the newly created trigger instance is registered.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Composio Set Up a Trigger
  summary: Discover a trigger type, create a trigger instance on a connected account, and confirm it is active.
  description: >-
    Wires a third-party event source into an application. The workflow lists the
    trigger types available for a toolkit, reads the chosen trigger type's config
    schema, upserts a trigger instance bound to a connected account, and confirms
    the new trigger appears in the active triggers list. 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
sourceDescriptions:
- name: triggersApi
  url: ../openapi/composio-triggers-api-openapi.yml
  type: openapi
workflows:
- workflowId: setup-trigger
  summary: Create a trigger instance for a toolkit event and verify it is active.
  description: >-
    Lists trigger types for a toolkit, reads the selected trigger type schema,
    upserts a trigger instance against a connected account, and lists active
    triggers to confirm the new trigger id is present.
  inputs:
    type: object
    required:
    - apiKey
    - toolkitSlug
    - triggerSlug
    - connectedAccountId
    properties:
      apiKey:
        type: string
        description: Composio project API key sent in the x-api-key header.
      toolkitSlug:
        type: string
        description: The toolkit slug to list trigger types for (e.g. "github").
      triggerSlug:
        type: string
        description: The trigger type slug to instantiate (e.g. "GITHUB_STAR_ADDED_EVENT").
      connectedAccountId:
        type: string
        description: The connected account id the trigger fires for.
      triggerConfig:
        type: object
        description: Configuration values matching the trigger type's config schema.
  steps:
  - stepId: listTriggerTypes
    description: >-
      List the trigger types available for the toolkit to confirm the requested
      trigger exists.
    operationId: getTriggersTypes
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    - name: toolkit_slugs
      in: query
      value: $inputs.toolkitSlug
    - name: limit
      in: query
      value: 50
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      triggerTypes: $response.body#/items
  - stepId: getTriggerType
    description: >-
      Read the chosen trigger type to learn its required config fields before
      creating the instance.
    operationId: getTriggersTypesBySlug
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    - name: slug
      in: path
      value: $inputs.triggerSlug
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      config: $response.body#/config
      requiresWebhook: $response.body#/requires_webhook_endpoint_setup
  - stepId: upsertTrigger
    description: >-
      Create or update the trigger instance for the connected account using the
      supplied trigger configuration.
    operationId: postTriggerInstancesBySlugUpsert
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    - name: slug
      in: path
      value: $inputs.triggerSlug
    requestBody:
      contentType: application/json
      payload:
        connected_account_id: $inputs.connectedAccountId
        trigger_config: $inputs.triggerConfig
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      triggerId: $response.body#/trigger_id
  - stepId: confirmActive
    description: >-
      List active triggers filtered to the connected account to confirm the
      newly created trigger instance is registered.
    operationId: getTriggerInstancesActive
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    - name: connected_account_ids
      in: query
      value: $inputs.connectedAccountId
    - name: limit
      in: query
      value: 50
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      activeTriggers: $response.body#/items
  outputs:
    triggerId: $steps.upsertTrigger.outputs.triggerId
    activeTriggers: $steps.confirmActive.outputs.activeTriggers

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/composio-setup-trigger-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.