---
title: "Return hosting plan configuration"
method: GET
path: "/getpkginfo"
tags: ["Packages", "Hosting Plans"]
---

# Return hosting plan configuration

`GET /getpkginfo`

This function lists a hosting plan's (package's) settings.

## Query parameters

- `pkg` string, required

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `pkg` object — A list of the hosting plan's settings. **Note:** * The function will only return the package's enabled resources and settings. * If the account or its hosting plan use package extensions, the list also includes the extension's variables.
      - `BWLIMIT` union — The hosting plan's bandwidth limit, in megabytes (MB). * `unlimited` — The hosting plan allows unlimited bandwidth.
        - integer
        - unknown
        - unknown
        - 'unlimited'
      - `CGI` 1 | 0 — Whether CGI is enabled for the hosting plan. * `1` — Enabled. * `0` — Disabled.
      - `CPMOD` string — The hosting plan's cPanel interface theme.
      - `DIGESTAUTH` string — Whether the hosting plan enables Digest Authentication. * `y` — Enabled. * `n` — Disabled.
      - `FEATURELIST` string — The hosting plan's [feature list](https://go.cpanel.net/whmdocsFeatureManager).
      - `FRONTPAGE` 1 | 0 — Whether Microsoft® FrontPage Extensions are enabled for the account. **Note:** cPanel & WHM ignores all FrontPage settings and parameters.
      - `HASSHELL` 1 | 0 — Whether shell access is enabled for the hosting plan. * `1` — Enabled. * `0` — Disabled.
      - `IP` 1 | 0 — Whether the hosting plan grants accounts a dedicated IP address. * `1` — Dedicated IP address. * `0` — Shared IP address.
      - `LANG` string, ISO-3166-1 (alpha-2) — The hosting plan's locale.
      - `MAXADDON` union — The hosting plan's maximum number of addon domains. * `unlimited` — The hosting plan allows unlimited addon domains.
        - integer
        - unknown
        - unknown
        - 'unlimited'
      - `MAXFTP` union — The hosting plan's maximum number of FTP accounts. * `unlimited` — The hosting plan allows unlimited FTP accounts.
        - integer
        - unknown
        - unknown
        - 'unlimited'
      - `MAXLST` union — The hosting plan's maximum number of mailing lists. * `unlimited` — The hosting plan allows unlimited mailing lists.
        - integer
        - unknown
        - unknown
        - 'unlimited'
      - `MAXPARK` union — The hosting plan's maximum number of parked domains (aliases). * `unlimited` — The hosting plan allows unlimited parked domains.
        - integer
        - 'unlimited' — The hosting plan allows unlimited parked domains.
      - `MAXPOP` union — The hosting plan's maximum number of email accounts. * `unlimited` — The hosting plan allows unlimited email accounts.
        - integer
        - unknown
        - unknown
        - 'unlimited'
      - `MAXSQL` union — The hosting plan's maximum number of SQL databases. * `unlimited` — The hosting plan allows unlimited SQL databases.
        - integer
        - unknown
        - unknown
        - 'unlimited'
      - `MAXSUB` union — The hosting plan's maximum number of subdomains. * `unlimited` — The hosting plan allows unlimited subdomains.
        - integer
        - unknown
        - unknown
        - 'unlimited'
      - `MAX_DEFER_FAIL_PERCENTAGE` union — The [percentage of failed or deferred email messages](https://go.cpanel.net/howtopreventspam) that the hosting plan can send per hour before the system rate-limits outgoing mail. * `unlimited` — The hosting plan allows unlimited email messages.
        - integer
        - 'unlimited' — The hosting plan allows unlimited email messages.
      - `MAX_EMAILACCT_QUOTA` union — The hosting plan's maximum email account quota size, in megabytes (MB). * `unlimited` — The hosting plan allows an unlimited email account quota size.
        - integer
        - 'unlimited' — The hosting plan allows an unlimited email account quota size.
      - `MAX_EMAIL_PER_HOUR` union — The [maximum number of emails](https://go.cpanel.net/howtopreventspam) that the hosting plan can send in one hour. * `unlimited` — The hosting plan allows unlimited emails per hour.
        - integer
        - 'unlimited' — The hosting plan allows unlimited emails per hour.
      - `MAX_TEAM_USERS` integer, nullable — The hosting plan's maximum number of Team users.
      - `QUOTA` union — The hosting plan's disk space limit, in megabytes (MB). * `unlimited` — The hosting plan has unlimited disk space.
        - integer
        - unknown
        - unknown
        - 'unlimited'
      - `_PACKAGE_EXTENSIONS` string — A list of one or more of the hosting plan's package extensions, if any exist.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
