Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cuey.dev/llms.txt

Use this file to discover all available pages before exploring further.

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

List Crons

List all cron jobs with optional pagination and filters

Get Cron

Retrieve a single cron job by ID

Create Cron

Create a new recurring cron job

Update Cron

Update an existing cron job

Delete Cron

Delete a cron job

Events

Learn about managing scheduled events

Cron Expressions

Learn more about cron expressions

Error Handling

Understand error handling patterns

Advanced Configuration

Configure the client