Skip to main content
POST
/
api
/
v1
/
crons
TypeScript SDK
import { cuey } from 'cuey';

const cron = await cuey.repeat({
  webhook_url: 'https://api.example.com/daily-report',
  method: 'POST',
  cron_expression: '0 9 * * *',
  timezone: 'America/New_York',
  payload: {
    report_type: 'daily'
  }
});
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "cron_expression": "<string>",
    "timezone": "<string>",
    "webhook_url": "<string>",
    "method": "GET",
    "headers": {},
    "payload": {},
    "retry_config": {
      "maxRetries": 5,
      "backoffMs": 2550,
      "backoffType": "exponential"
    },
    "is_active": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header as: Bearer <your-api-key>

Body

application/json
webhook_url
string<uri>
required
cron_expression
string
required

Cron expression (e.g., '0 0 * * *')

method
enum<string>
default:POST
Available options:
GET,
POST,
PUT,
PATCH,
DELETE,
HEAD,
OPTIONS
timezone
string | null

IANA timezone identifier (e.g., 'America/New_York')

headers
object | null
payload
object | null
retry_config
object
is_active
boolean
default:true

Response

Cron created

data
object
required