TriggersSet up triggers
Managing triggers
After a trigger is created, you manage it over its lifecycle: list active instances, pause one with disable(), bring it back with enable(), or remove it for good with delete().
Listing active triggers
List the trigger instances you've created. Results are cursor-paginated.
from composio import Composio
composio = Composio()
active = composio.triggers.list_active(
connected_account_ids=["ca_def456"],
)
for trigger in active.items:
print(f"{trigger.id} ({trigger.trigger_name}) - disabled: {trigger.disabled_at is not None}")
# Paginate with cursor
if active.next_cursor:
next_page = composio.triggers.list_active(
connected_account_ids=["ca_def456"],
cursor=active.next_cursor,
)| Filter | Description |
|---|---|
connected_account_ids / connectedAccountIds | Array of connected account IDs |
trigger_ids / triggerIds | Array of trigger instance IDs |
trigger_names / triggerNames | Array of trigger type slugs |
auth_config_ids / authConfigIds | Array of auth config IDs |
show_disabled / showDisabled | Include disabled triggers (default: false) |
Keep the same filters on every page. To find paused instances after reconnecting an account, include show_disabled=True in Python or showDisabled: true in TypeScript.
Enable / Disable triggers
Pause a trigger temporarily without deleting it:
# Disable a trigger
composio.triggers.disable(trigger_id="ti_abcd123")
# Re-enable when needed
composio.triggers.enable(trigger_id="ti_abcd123")Deleting triggers
Permanently remove a trigger instance:
composio.triggers.delete(trigger_id="ti_abcd123")Deleting a trigger is permanent. Use disable() instead to temporarily stop receiving events.
If an enabled trigger isn't delivering events, follow Troubleshooting triggers.