Skip to main content

Quick Start

This guide will help you create and manage your first cron job with A1Cron. By the end, you’ll have a scheduled task running automatically.

Prerequisites

Before you begin, make sure you have:
  • An A1Base account
  • Your API key and secret from the dashboard
  • A publicly accessible endpoint URL to call

Step 1: Create Your First Cron Job

Let’s create a simple daily cron job that calls your endpoint every morning at 9 AM.

Response

Save the returned id - you’ll need it to manage this cron job later.

Step 2: Verify Your Cron Job

Let’s check that your cron job was created successfully:

Step 3: Test with Manual Trigger

Before waiting for the scheduled time, test your cron job manually:
This will immediately execute your cron job and return the result:

Step 4: Monitor Execution Logs

Check the execution history of your cron job:

Common Patterns

Hourly Health Check

Weekly Report on Business Days

Limited Duration Campaign

Troubleshooting

  • Check that is_active is set to true
  • Verify the timezone and scheduled time
  • Ensure your endpoint URL is publicly accessible
  • Check the execution logs for error messages
  • Verify your API key and secret are correct
  • Ensure you’re including both headers in your requests
  • Check that your account ID in the URL is correct
  • Increase the timeout_seconds in your retry configuration
  • Ensure your endpoint responds within the timeout period
  • Consider optimizing your endpoint for faster response

Next Steps

Now that you have a working cron job:

Explore Examples

See more use cases and patterns

API Reference

Deep dive into all endpoints

Monitoring Guide

Learn about logs and monitoring

Webhook Setup

Configure success/failure callbacks