Log scheduled REST API calls and stop on 403 errors

Recipe ToolsMarketingDeveloper ToolAPI Integration

What it does

When the clock triggers every 5 minutes, this automation sends a REST request and monitors the response. If a 403 error is found, the job stops without retry and logs the message to the job report.

Who it's for

Engineering teams who monitor scheduled API endpoints and need to catch permission errors without wasting retries.

How teams use this

Stop on permission errors

Detect when a REST API returns a 403 forbidden error and halt the job immediately without wasting retries. The team reviews the logs to fix the permission issue.

Monitor a third-party webhook

Point this automation at a partner REST endpoint and catch authentication failures before they cascade. Only the endpoint URL changes, and the error handling stays the same.

Retry on transient errors only

Add a condition to check the error code and only stop on 403, while retrying on 429 or 5xx errors. Include a retry counter and backoff delay to handle rate limits.

How it works

  1. Trigger every 5 minutes. The automation runs on a schedule every 5 minutes to check the endpoint status and health.
  2. Send REST request to endpoint. Send a REST request via HTTP to the specified endpoint and wait for the response from the server.
  3. Check if error message contains 403. Examine the error message returned by the REST call to determine if a 403 forbidden error occurred.
  4. Stop job or log result. If 403 is found, stop the job without retry. Otherwise, log the success status to the job report for review.