Skip to main content
The triggers API manages webhook triggers that notify your application when events occur in connected services. Triggers enable real-time integrations without polling.

Methods

listActive()

List all active trigger instances.
TriggerInstanceListActiveParams
Example:

create()

Create a new trigger instance for a user.
string
required
User ID to create trigger for
string
required
Trigger slug (e.g., GITHUB_PULL_REQUEST_EVENT)
TriggerInstanceUpsertParams

update()

Update an existing trigger instance.
Example:

delete()

Delete a trigger instance.
Example:

enable() / disable()

Enable or disable a trigger instance.
Example:

listTypes()

List all available trigger types.
TriggersTypeListParams
Example:

getType()

Retrieve a specific trigger type.
Example:

subscribe()

Subscribe to trigger events via Pusher.
function
required
Callback function to handle trigger events
TriggerSubscribeParams

unsubscribe()

Unsubscribe from trigger events.
Example:

verifyWebhook()

Verify an incoming webhook payload and signature.
VerifyWebhookParams
required

Types

IncomingTriggerPayload

VerifyWebhookResult

Common Triggers

GitHub

  • GITHUB_PULL_REQUEST_EVENT - PR opened, closed, or updated
  • GITHUB_COMMIT_EVENT - New commits pushed
  • GITHUB_ISSUE_EVENT - Issues created or updated
  • GITHUB_STAR_ADDED - Repository starred

Slack

  • SLACK_RECEIVE_MESSAGE - Message posted to channel
  • SLACK_RECEIVE_REACTION - Reaction added to message
  • SLACK_CHANNEL_CREATED - New channel created

Gmail

  • GMAIL_NEW_EMAIL_RECEIVED - New email received
  • GMAIL_NEW_LABELED_EMAIL - Email labeled

Best Practices

  1. Webhook Verification: Always verify webhooks in production
  2. Error Handling: Handle trigger failures gracefully
  3. Idempotency: Use uuid to prevent duplicate processing
  4. Filtering: Use filters to reduce unnecessary events
  5. Unsubscribe: Clean up subscriptions when done

Next Steps

Connected Accounts

Set up user authentication

Tools API

Execute tools from triggers

Toolkits

Browse available toolkits

Auth Configs

Configure authentication