Skip to content

The Raw Crontab API provides low-level access to the system crontab for a given user. Use these endpoints to read the full crontab contents for a user, list the crontabs available across all users, and overwrite a user’s crontab with a raw payload. These endpoints are useful when you need to inspect or bulk-replace a crontab without going through the managed entry endpoints.

GET /crontab

Returns a paginated list of crontab entries for every user known to the system.

NameInTypeRequiredDescription
pagequeryintegerNoPage number (1-based)
limitqueryintegerNoItems per page (max 200)
Terminal window
curl -X GET "https://api.example.com/api/cron/crontab/?page=1&limit=50" \
-H "Authorization: Bearer <token>"

GET /users/{user}/crontab

Returns the raw crontab contents for a single system user.

NameInTypeRequiredDescription
userpathstringYesSystem username
Terminal window
curl -X GET "https://api.example.com/api/cron/crontab/users/root/crontab" \
-H "Authorization: Bearer <token>"

PUT /users/{user}/crontab

Replaces the crontab for the given user with the supplied raw contents. Returns the updated crontab and the number of expired entries that were pruned during the operation.

NameInTypeRequiredDescription
userpathstringYesSystem username
Terminal window
curl -X PUT "https://api.example.com/api/cron/crontab/users/root/crontab" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"crontab": "# m h dom mon dow command\n0 2 * * * /usr/local/bin/backup.sh"
}'