capabilities.work

Set Up a Trigger

A 4-step recipe with Composio. We can help you get access.

Recipe · 4 steps

Set Up a Trigger

Create a trigger instance for a toolkit event and verify it is active.

  1. List the trigger types available for the toolkit to confirm the requested trigger exists.
  2. Read the chosen trigger type to learn its required config fields before creating the instance.
  3. Create or update the trigger instance for the connected account using the supplied trigger configuration.
  4. List active triggers filtered to the connected account to confirm the newly created trigger instance is registered.
What you'll need to have ready
  • apiKey: Composio project API key sent in the x-api-key header.
  • toolkitSlug: The toolkit slug to list trigger types for (e.g. "github").
  • triggerSlug: The trigger type slug to instantiate (e.g. "GITHUB_STAR_ADDED_EVENT").
  • connectedAccountId: The connected account id the trigger fires for.
  • triggerConfig: Configuration values matching the trigger type's config schema.
For your developer

Arazzo workflow composio:setup-trigger, 4 operations: getTriggersTypes → getTriggersTypesBySlug → postTriggerInstancesBySlugUpsert → getTriggerInstancesActive. Specs on APIs.io.