The raw crontab endpoints let you read and replace the full crontab text for a system user, or list every user that currently has a crontab. These operations work on the complete crontab file as a single string and do not parse, validate, or manage individual scheduled entries. For per-entry management, use the managed entry endpoints under /api/cron/users/{user}/entries/.
GET /crontab
Returns a paginated list of every system user that has a crontab installed. Each item contains the username and the raw crontab text.
Name In Type Required Description pagequery integer No Page number (1-based) limitquery integer No Items per page (max 200)
"crontab" : " 0 2 * * * /usr/local/bin/backup.sh \n "
"crontab" : " */15 * * * * /usr/local/bin/rotate-logs.sh \n "
"details" : " crontab binary not found in PATH " ,
"message" : " Internal server error "
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
const result = await client . cron . crontab . listGlobalIterator ( {
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 text for a single system user.
Name In Type Required Description userpath string Yes System username
"crontab" : " 0 2 * * * /usr/local/bin/backup.sh \n "
"message" : " Invalid user "
Error Code Title Description Resolution INVALID_USERInvalid user User parameter failed validation Provide a valid system username INVALID_COMMENTInvalid comment Comment is empty, too long, or contains newlines Provide a short single-line comment INVALID_SCHEDULEInvalid schedule Schedule is not a valid cron expression Use a standard 5-field cron expression or @daily style macros INVALID_COMMANDInvalid command Command field is empty or contains invalid characters Provide a command without newlines INVALID_PAGINATIONInvalid pagination Page or limit is out of range Use page >= 1 and limit between 1 and 200
"code" : " USER_NOT_FOUND " ,
"message" : " User not found "
Error Code Title Description Resolution USER_NOT_FOUNDUser not found The requested system user does not exist Create the user or choose an existing username ENTRY_NOT_FOUNDEntry not found No managed entry with the provided id exists List entries and retry with a valid id
"details" : " crontab binary not found in PATH " ,
"message" : " Internal server error "
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
const result = await client . cron . crontab . get ( {
curl -X GET " https://api.example.com/api/cron/crontab/users/deploy/crontab " \
-H " Authorization: Bearer <token> "
PUT /users/{user}/crontab
Replaces the entire crontab for a system user with the supplied text. The response includes removed_expired, the number of expired managed entries that were pruned during the replacement.
Name In Type Required Description userpath string Yes System username
Field Type Required Description crontabstring Yes Full crontab text to install for the user. Replaces any existing crontab.
"crontab" : " 0 2 * * * /usr/local/bin/backup.sh \n " ,
"message" : " Invalid user "
Error Code Title Description Resolution INVALID_USERInvalid user User parameter failed validation Provide a valid system username INVALID_COMMENTInvalid comment Comment is empty, too long, or contains newlines Provide a short single-line comment INVALID_SCHEDULEInvalid schedule Schedule is not a valid cron expression Use a standard 5-field cron expression or @daily style macros INVALID_COMMANDInvalid command Command field is empty or contains invalid characters Provide a command without newlines INVALID_PAGINATIONInvalid pagination Page or limit is out of range Use page >= 1 and limit between 1 and 200
"code" : " USER_NOT_FOUND " ,
"message" : " User not found "
Error Code Title Description Resolution USER_NOT_FOUNDUser not found The requested system user does not exist Create the user or choose an existing username ENTRY_NOT_FOUNDEntry not found No managed entry with the provided id exists List entries and retry with a valid id
"code" : " PAYLOAD_TOO_LARGE " ,
"details" : " crontab text exceeds maximum allowed size " ,
"message" : " Payload too large "
"details" : " crontab binary not found in PATH " ,
"message" : " Internal server error "
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
await client . cron . crontab . put ({
crontab: " 0 2 * * * /usr/local/bin/backup.sh \n " ,
curl -X PUT " https://api.example.com/api/cron/crontab/users/deploy/crontab " \
-H " Authorization: Bearer <token> " \
-H " Content-Type: application/json " \
-d ' {"crontab": "0 2 * * * /usr/local/bin/backup.sh\n"} '