Sync users from HTTP GET every 5 minutes
Recipe ToolsMarketingWorkatoDeveloper ToolAPI Integration
What it does
When the clock triggers every 5 minutes, this automation sends an HTTP GET request to fetch a users array. For each user returned, it checks if the email ends with .biz and stops the job when that condition is met.
Who it's for
IT teams who need to periodically fetch and filter user data from an HTTP endpoint.
Apps used
How teams use this
Monitor users on a schedule
Fetch the users array every 5 minutes and filter by email domain so the team can track which users match the .biz criteria.
Extend filtering to multiple domains
Add conditions to check for other email domains like .org or .edu in addition to .biz so the automation only processes users from approved domains.
Route users to different systems
Instead of stopping the job, send .biz users to one system and others to another so each group is processed according to its rules.
How it works
- Trigger every 5 minutes. This automation runs on a schedule, checking for updates every 5 minutes so user data stays current.
- Fetch users via HTTP GET request. Send an HTTP GET request to the endpoint to retrieve the users array with all user records and their email addresses.
- Loop through each user. Repeat the following steps for each item in the users array returned from the REST endpoint.
- Check if email ends with .biz. For each user, check whether the email address ends with .biz. If yes, stop the job; if no, continue to the next user.