# List cronjobs of a web hosting package

> The cronjobs of one web hosting package, with their last run and the package's limits.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: beta
- MCP tool: `manitu_webhosting_web_cronjob_list` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/webhosting/web/cronjob/list`
- Needs: `service_webhosting`
- Page: /reference/webhosting/web/cronjob/list/

## MCP tool

`manitu_webhosting_web_cronjob_list`

### Description for the model

Lists the cronjobs of a web hosting package of the manitu customer account this connection works in, by its site_id from manitu_webhosting_list: for each what it runs (task: type with command, url or script_path), when (schedule as a cron expression in Europe/Berlin, next_run_at), whether and how it reports, and its last run (exit code, when, how long). The package's limits: count_max cronjobs, runs_per_hour_max runs per hour each, runtime_seconds_max per run (then it is stopped), and the PHP versions for php_script. What a run wrote: manitu_webhosting_web_cronjob_get.

### Arguments

- `site_id` (integer | string, required) - The site_id from manitu_webhosting_list - never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_webhosting_web_cronjob_list",
    "arguments": {
      "site_id": 12345
    }
  }
}
```

## REST

`POST https://api.manitu.de/v1/webhosting/web/cronjob/list`

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `site_id` (integer | string, required) - The site_id from manitu_webhosting_list - never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Response

In `data`; the rest of the body as on every call.

- `cronjob_list` (array of object, required)
  - `cronjob_list[].cronjob_id` (integer, required) - The cronjob - what the other cronjob tools take.
  - `cronjob_list[].description` (string | null, required) - What the customer wrote about it (his description), null if nothing - not its name or user name.
  - `cronjob_list[].status` (string, required) - active, or inactive (switched off by the customer, kept for later). (one of `"active"`, `"inactive"`)
  - `cronjob_list[].task` (object, required) - What it runs - type, and only the field(s) that type uses.
    - `cronjob_list[].task.type` (string | null, required) - command (a shell command), url (calls a URL), php_script (a PHP file of the package). (one of `"command"`, `"url"`, `"php_script"`, `null`)
    - `cronjob_list[].task.command` (string | null) - For type command: the shell command - runs as the package's user, in its root directory.
    - `cronjob_list[].task.url` (string | null) - For type url: the URL called.
    - `cronjob_list[].task.script_path` (string | null) - For type php_script: the PHP file, relative to the package.
    - `cronjob_list[].task.php_version` (string | null) - For type php_script: the PHP version (e.g. "php8.3"); null: the package's default.
  - `cronjob_list[].schedule` (string | null, required) - When it runs - a cron expression (minute hour day-of-month month day-of-week), in Europe/Berlin. null only if what is stored cannot be read.
  - `cronjob_list[].schedule_type` (string | null, required) - How the customer panel shows the schedule: minutely, hourly, daily, weekly, monthly, yearly, or crontab (anything else).
  - `cronjob_list[].runs_per_hour_max` (integer | null, required) - How often it runs in one hour at most.
  - `cronjob_list[].next_run_at` (string | null, required) - When it runs next; null if inactive or never. (format `date-time`)
  - `cronjob_list[].report` (object, required) - Whom it tells about a run, and how.
    - `cronjob_list[].report.reason` (string | null, required) - When the customer is told about a run: never, onerror (exit code not 0), always. (one of `"never"`, `"onerror"`, `"always"`, `null`)
    - `cronjob_list[].report.type` (string | null, required) - How: mail, or logfile (a line in logs/cron.log of the package). (one of `"mail"`, `"logfile"`, `null`)
    - `cronjob_list[].report.mail` (object | null, required) - The report mail - null unless type is mail.
      - `cronjob_list[].report.mail.recipient` (string | null, required) - Who gets the report mail.
      - `cronjob_list[].report.mail.subject` (string | null, required) - Its subject, with placeholders.
      - `cronjob_list[].report.mail.body` (string | null, required) - Its text, with placeholders.
  - `cronjob_list[].last_run` (object | null, required) - Its last run; null if it has not run yet.
    - `cronjob_list[].last_run.exit_code` (integer | null, required) - Its exit code - 0 is success, 127 "command not found"; a run stopped at the time limit often shows 9 or 137.
    - `cronjob_list[].last_run.started_at` (string | null, required) - When it started. (format `date-time`)
    - `cronjob_list[].last_run.ended_at` (string | null, required) - When it ended. (format `date-time`)
    - `cronjob_list[].last_run.duration_seconds` (number | null, required) - How long it ran.
  - `cronjob_list[].created_at` (string | null, required) - When it was created. (format `date-time`)
- `count_max` (integer | null, required) - How many cronjobs the package allows.
- `runs_per_hour_max` (integer, required) - How often a cronjob may run in one hour at most.
- `runtime_seconds_max` (integer, required) - How long a run may take - then it is stopped.
- `php_version_list` (array of object, required) - The PHP versions a php_script may run with.
  - `php_version_list[].name` (string, required) - What php_version takes, e.g. "php8.3".
  - `php_version_list[].is_default` (boolean, required) - The package's default - used when php_version is null.

### Statuses

- `200` Success.
- `400` The request does not match the declared input schema.
- `401` No credential was presented, or it was not recognised.
- `403` The credential is not permitted to use this operation.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST 'https://api.manitu.de/v1/webhosting/web/cronjob/list' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"site_id":12345}'
```

## Example result

```json
{
  "cronjob_list": [
    {
      "cronjob_id": 12345,
      "description": "Example",
      "status": "active",
      "task": {
        "type": "command",
        "command": "string",
        "url": "https://www.example.com/",
        "script_path": "/web",
        "php_version": "string"
      },
      "schedule": "string",
      "schedule_type": "string",
      "runs_per_hour_max": 1,
      "next_run_at": "2026-10-23T12:00:00+02:00",
      "report": {
        "reason": "never",
        "type": "mail",
        "mail": {
          "recipient": "string",
          "subject": "string",
          "body": "string"
        }
      },
      "last_run": {
        "exit_code": 1,
        "started_at": "2026-10-23T12:00:00+02:00",
        "ended_at": "2026-10-23T12:00:00+02:00",
        "duration_seconds": 1.5
      },
      "created_at": "2026-10-23T12:00:00+02:00"
    }
  ],
  "count_max": 1,
  "runs_per_hour_max": 1,
  "runtime_seconds_max": 1,
  "php_version_list": [
    {
      "name": "example.com",
      "is_default": true
    }
  ]
}
```
