Skip to main content

Overview

The crons resource provides methods for managing recurring cron jobs. Access it via client.crons or use the default cuey instance.

Quick Start

import { cuey } from "cuey";

// List all crons
const { data: crons } = await cuey.crons.list();

// Get a specific cron
const cron = await cuey.crons.get("cron-id");

// Create a new cron job
const newCron = await cuey.crons.create({
  webhook_url: "https://api.example.com/webhook",
  cron_expression: "0 9 * * *", // Daily at 9 AM
  timezone: "America/New_York",
  payload: { report_type: "daily" },
});

Methods