---
title: "Create hosting plan"
method: GET
path: "/addpkg"
tags: ["Packages", "Hosting Plans"]
---

# Create hosting plan

`GET /addpkg`

This function creates a hosting plan (package).

**Note:**

The [Access Control Lists](https://go.cpanel.net/GuidetoWHMPluginsAccessControlLists)
restricts some of this function's parameters, which limit the features that
WHM users can access.

## Query parameters

- `name` string, required
- `_PACKAGE_EXTENSIONS` string
- `bwlimit` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `cgi` 1 | 0
- `cpmod` string
- `digestauth` 1 | 0
- `featurelist` string
- `frontpage` 1 | 0
- `hasshell` 1 | 0
- `ip` 'y' | 'n'
- `language` string, ISO-3166-1 (alpha-2)
- `MAX_DEFER_FAIL_PERCENTAGE` union
  - integer
  - 'unlimited' — The hosting plan allows users ot send an unlimited number of failed or deferred messages.
- `MAX_EMAIL_PER_HOUR` union
  - integer
  - 'unlimited' — The hosting plan allows users to send an unlimited number of emails.
- `max_emailacct_quota` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `max_team_users` integer
- `maxaddon` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `maxftp` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `maxlst` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `maxpark` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `maxpop` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `maxsql` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `maxsub` union
  - integer
  - unknown
  - unknown
  - 'unlimited'
- `quota` union
  - integer
  - unknown
  - unknown
  - 'unlimited'

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `pkg` string — The new hosting plan's name.
  - `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)
