Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Triggers Beta

A trigger tells your app when something changes in a user's connected app, such as a new lead in Salesforce or a message in Slack. Subscribe a connected account, or a whole connection, to a trigger, and Scalekit sends each event to your delivery endpoint. See How triggers work and Receive trigger events.

A webhook trigger also needs a webhook URL for the connection, registered in your app at the provider, and a signing secret for it. For an app that signs its events, that's the app's own secret: set it. For an app that doesn't, Scalekit generates one. This secret covers the events the app sends to Scalekit. It isn't your delivery endpoint's whsec_ secret, which Scalekit signs the events it sends to you with. A polling trigger needs neither: Scalekit checks the app on the interval you set.

While Triggers isn't turned on for your environment, every endpoint here returns 404. Contact us to turn it on.

MethodEndpointPathWhat it doesSDKs
GETList available triggersBetaList a connection's triggers, and whether each one can run on it./api/v1/connections/{connection_id}/triggersList a connection's triggers, and whether each one can run on it.Python
GETList accounts eligible for a triggerBetaList a connection's connected accounts, and whether each can subscribe to a trigger./api/v1/connections/{connection_id}/triggers/{trigger_name}/eligible-accountsList a connection's connected accounts, and whether each can subscribe to a trigger.Python
GETList trigger subscriptionsBetaList a connection's trigger subscriptions, with each one's status./api/v1/connections/{connection_id}/trigger-subscriptionsList a connection's trigger subscriptions, with each one's status.Python
POSTSubscribe to a triggerBetaSubscribe one connected account, or a whole connection, to a trigger./api/v1/connections/{connection_id}/trigger-subscriptionsSubscribe one connected account, or a whole connection, to a trigger.Python
POSTSubscribe several accounts to a triggerBetaSubscribe up to 100 connected accounts to a trigger, with a result for each./api/v1/connections/{connection_id}/trigger-subscriptions:batchCreateSubscribe up to 100 connected accounts to a trigger, with a result for each.Python
DELETEDelete a trigger subscriptionBetaDelete one trigger subscription./api/v1/connections/{connection_id}/trigger-subscriptions/{subscription_id}Delete one trigger subscription.Python
POSTDelete several trigger subscriptionsBetaDelete up to 100 subscriptions, by ID or by account, with a result for each./api/v1/connections/{connection_id}/trigger-subscriptions:batchDeleteDelete up to 100 subscriptions, by ID or by account, with a result for each.Python
POSTCreate a webhook URLBetaCreate the URL an app sends a connection's webhook events to./api/v1/connections/{connection_id}/trigger-ingressCreate the URL an app sends a connection's webhook events to.Python
GETGet a webhook URLBetaGet a connection's webhook URL and the state of its signing secret./api/v1/connections/{connection_id}/trigger-ingressGet a connection's webhook URL and the state of its signing secret.Python
PUTSet a signing secretBetaSave the signing secret the app signs its webhook events with./api/v1/connections/{connection_id}/trigger-ingress/signing-secretSave the signing secret the app signs its webhook events with.Python
POSTConfirm a signing secret rotationBetaRetire the previous signing secret once the app uses the new one./api/v1/connections/{connection_id}/trigger-ingress/signing-secret/confirmRetire the previous signing secret once the app uses the new one.Python
POSTGenerate a signing secretBetaGenerate a secret for an app that sends no signature of its own./api/v1/connections/{connection_id}/trigger-ingress/signing-secret/generateGenerate a secret for an app that sends no signature of its own.Python
GETList deliveriesBetaList the trigger events sent to your delivery endpoint, with their state./api/v1/trigger-delivery/endpoints/{endpoint_id}/deliveriesList the trigger events sent to your delivery endpoint, with their state.Python
GETList the attempts for a deliveryBetaList every attempt to deliver one event to your endpoint./api/v1/trigger-delivery/endpoints/{endpoint_id}/deliveries/{msg_id}/attemptsList every attempt to deliver one event to your endpoint.Python
GETList recent delivery attemptsBetaList the most recent delivery attempts to your endpoint./api/v1/trigger-delivery/endpoints/{endpoint_id}/attemptsList the most recent delivery attempts to your endpoint.Python
GETLook up a deliveryBetaFind one event by its message ID or event ID, with its delivery attempts./api/v1/trigger-delivery/deliveries/{id}Find one event by its message ID or event ID, with its delivery attempts.Python
POSTLook up several deliveriesBetaFind up to 25 events by message ID or event ID, with a result for each./api/v1/trigger-delivery/deliveries:batchLookupFind up to 25 events by message ID or event ID, with a result for each.Python
POSTResend deliveriesBetaSend up to 50 events to your endpoint again, with a result for each./api/v1/trigger-delivery/deliveries:batchResendSend up to 50 events to your endpoint again, with a result for each.Python
POSTRecover failed deliveriesBetaResend every event that failed to reach your endpoint in a time window./api/v1/trigger-delivery/endpoints/{endpoint_id}:recoverResend every event that failed to reach your endpoint in a time window.Python
GETGet trigger activityBetaCount what happened to your environment's trigger events in the last 24 hours./api/v1/trigger-activityCount what happened to your environment's trigger events in the last 24 hours.Python
GETGet trigger usageBetaGet the trigger deliveries metered for your environment, by hour or day./api/v1/trigger-usageGet the trigger deliveries metered for your environment, by hour or day.Python

This page as markdownWhole reference as one file