---
docId: doc_d40ff00f72984beca1e3607279db9c2d
title: 'Schedule a request with Cron Jobs'
description: 'Configure a recurring request, limit its schedule and review executions.'
---

# Schedule a request with Cron Jobs

A cron job runs an HTTP request periodically. It can query or update a service, or refresh a token for other tools.

Open **Integrations → Functions → Cron Jobs**. You need Integrations access and the request details accepted by the service.

<span id="step-1-configuration"></span>
<span id="step-2-request"></span>
<span id="paso-1-configuración"></span>
<span id="paso-2-request"></span>


![Scheduled job settings](/images/screenshots/manuales-piloto/integraciones/pantallas-completas/en/cron-jobs.webp)

## Configure the cron

1. Click **Create cron job**.
2. Enter a name and description.
3. Choose **Generic** to run a request and save its response, or **Auth** to refresh a token.
4. Set the interval, between 1 and 720 hours.
5. In **Request**, complete the method, URL, parameters, headers, authentication and body.

The request can affect the external service. Check what it will do before testing or scheduling it.

<span id="step-3-result-auth-type-only"></span>
<span id="paso-3-resultado-solo-tipo-auth"></span>

## If you refresh a token

The **Auth** type adds a **Result** step. Specify where the token is in the response and check that the test extracts it correctly.

The cron stores its latest result so a compatible tool can use it for periodic authentication. In a [REST API](/help/integrations/functions/rest-apis), configure that option in **Advanced** and select the corresponding cron.

Do not put credentials in instructions or conversations. When a connection offers a [Secrets](/help/integrations/functions/secrets) binding control, use it and complete its authorization.

<span id="step-4-when"></span>
<span id="paso-4-cuándo"></span>

## Limit when it runs

In **When**, choose a time zone, allowed days, time window and daily or monthly execution caps.

Without rules, the cron uses its interval every day. With rules, it is scheduled only within the allowed conditions. Caps count attempts, including failed ones.

Periodic scheduling does not guarantee an exact arrival time at the service. Check the next execution shown in the detail page.

<span id="step-5-test"></span>
<span id="step-6-done"></span>
<span id="paso-5-probar"></span>
<span id="paso-6-listo"></span>

## Test and create

1. In **Test**, run the test and review the HTTP code, duration and response.
2. For Auth, also check the extracted token.
3. Fix any errors and finish with **Create cron**.

**Test** makes a real request. A successful test does not guarantee future executions will work if credentials or the service change.

## Manage executions

Open the cron to change its request, interval or rules, save changes and review executions. **Run now** requests an execution without waiting for the next interval.

**Pause** stops future scheduling. It does not cancel jobs already queued or running. Check their results before repeating an action that changes data.

If you delete an Auth cron, review tools that depended on its token. **Knowledge** crons are internal tasks managed from [Knowledge](/help/agents/knowledge); they do not show an editable HTTP request in this wizard.
