Sync data via Rest on a scheduled interval

UtilitiesDeveloperAPI

What it does

When a specified interval triggers, this automation makes Rest requests to fetch, create, and update data across systems. Someone can schedule these calls to run automatically without manual intervention.

Who it's for

Engineering teams who need to sync data across systems on a regular schedule.

How teams use this

Sync customer data nightly

Run this automation every night to fetch customer records from a source system and update them in a destination system. The schedule ensures data stays current without manual effort.

Refresh inventory across platforms

Set the interval to sync inventory levels from a warehouse system to an e-commerce platform every hour. Only the Rest endpoints change to point to inventory systems.

Add error handling and retry logic

Extend this automation to check Rest response codes and retry failed requests before moving to the next step. Include conditional logic to handle different error scenarios.

How it works

  1. Set a schedule for regular intervals. Configure the Clock to run this automation at regular intervals, such as hourly, daily, or weekly, so data syncs happen automatically.
  2. Request token via Rest. Make a Rest request to retrieve an authentication token needed for the subsequent Rest calls to protected endpoints.
  3. Fetch data via Rest. Use the token to make a Rest request and retrieve the current data from the source system for processing.
  4. Create records via Rest. Make a Rest request to create new records in the destination system based on the fetched data.
  5. Update records via Rest. Make a Rest request to update existing records in the destination system with the latest information.