Create a cron job

Create a CRON job

Reposter.app needs an external CRON job that call the <application-url>/api/webhook/scheduler endpoint to send posts to X.

The easiest way to create it is by creating an account on Cron Jobs (opens in a new tab). Alt text

Once signed up, create a POST request that runs every 5 minutes for example, that point to the application url setup on Vercel (like: https://cloud.reposter.app/api/webhook/scheduler). Alt text

Then click on the "Advanced" tab and set a custom header: X-Auth-Token with the value you defined in the SCHEDULE_SECRET variable.

Alt text