For the complete documentation index, see llms.txt. This page is also available as Markdown.

List account cron jobs

Returns the list of cron jobs configured for the specified account, including their schedule and command.

List account cron jobs

get

Returns the list of cron jobs configured for the specified account, including their schedule and command.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
Responses
200

Success response

application/json
uidstringOptional

Unique identifier of the cron job. Use it to delete the cron job or fetch its output.

Example: cron_abc123
usernamestringOptional

Username of the account that owns the cron job.

Example: u123456789
timestringOptional

Cron schedule expression.

Example: 0 2 * * *
commandstringOptional

Command executed on the schedule.

Example: php /home/u123456789/cleanup.php
get/api/hosting/v1/accounts/{username}/cron-jobs
GET /api/hosting/v1/accounts/{username}/cron-jobs HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "uid": "cron_abc123",
    "username": "u123456789",
    "time": "0 2 * * *",
    "command": "php /home/u123456789/cleanup.php"
  }
]

Last updated

Was this helpful?