Send REST requests on a schedule

Recipe ToolsMarketingDeveloper ToolAPI Integration

What it does

When the clock triggers every 5 minutes, this automation sends a request via Rest to an external endpoint. The job report logs each request so someone can track what was sent and received.

Who it's for

Engineering teams who need to poll an external API or webhook on a regular interval.

How teams use this

Poll an external API regularly

Fetch data from a third-party API every 5 minutes and log the response. The automation runs unattended and keeps a record of each poll in the job report for audit purposes.

Sync data to a webhook endpoint

Send data to a webhook on a fixed schedule so a downstream system stays in sync. Each request is logged for troubleshooting and compliance review.

Monitor an API with custom intervals

Change the clock interval from 5 minutes to a different schedule based on business needs. The request and logging steps remain the same.

Add conditional logic to requests

Include a condition that only sends the request when a specific state is met, and log a different message based on the outcome. This requires adding a conditional step before the Rest request.

How it works

  1. Start on a 5-minute schedule. The Clock app starts this automation every 5 minutes so the request runs repeatedly without manual intervention or oversight.
  2. Send request to the endpoint. The Rest app sends a request to an external API or webhook endpoint and captures the response from the remote service.
  3. Record details in job report. Log the request details and outcome to the job report so someone can review the history of all requests made by this automation.