Turn on events for an action
Events are delivered to a webhook in your project. If you don’t have one yet, add it on the Webhooks page first, or create it from the connector page in step 4.1
Open the connector
Go to Connectors, open the connector, and select a saved Connector Profile. The action has to be switched on in that profile.
2
Open the action's Data Sync panel
Click the Data Sync icon on the action’s row (Set up Data Sync).
3
Choose which changes to send
- Turn on Enable Data Sync, if it isn’t on already. The event toggles stay disabled until it is.
- Under Events, turn on Created Events, Updated Events, Deleted Events, or any combination.
4
Pick the webhook
Select the webhook under Deliver to, or choose + Add Webhook to create one.
5
Save
Click Save Changes. Events start with the next run of each Linked Account’s sync.
When events are sent
Events go out once a run finishes, not the moment a record changes at the provider. How soon you hear about a change depends on Sync every.Event payload
The event name is the action ID followed by the change:{action_id}.created: a record that wasn’t in the stored set when the run started.{action_id}.updated: a stored record whose fields changed since the last run.{action_id}.deleted: a stored record a full run no longer found at the provider.
bamboohr_list_employees.updated. Each change is its own request to your webhook.
event_data is read from the stored record when the event is prepared, after the run finishes. On a large run, preparing every event can take long enough for the next run to change the stored record first:
- If the next run updates the record, the event carries the newer version.
- If the next run removes the record, the event isn’t sent, since there’s no record left to send.
Delivery
Data Sync events are signed like every other webhook event, so the same signature verification applies. Their delivery works as follows:- A delivery that doesn’t get a
2xxresponse is retried, starting after 5 seconds and backing off to every 10 minutes, for up to 20 attempts. - StackOne sends each change from a run once per webhook, and its own retries don’t create duplicates. Your endpoint can still receive the same event twice if it returned
200but the response was lost, so treat a repeat of the sameevent,record_id, andevent_dateas a duplicate. - Events arrive in batches and several are sent at once, so they aren’t guaranteed to arrive in the order the records changed.
Next steps
Data Sync
Turn on sync for an action and set how often it runs.
Webhooks
Create the webhook Data Sync events are delivered to, and verify their signatures.