Skip to main content
Kingdom of Saudi Arabia

SAUDI GULF HOSTiNG

How do I retrieve a list of packages via the API?

Published 16 November 2025

Level
Intermediate

What is the K® Kenziei Reseller Hosting API?

The K® (Kenzie) Reseller API gives you access to all the features and functionality of StackCP, allowing you to create a hosting control panel from scratch or integrate external services such as WHMCS.

This is for advanced hosting resellers and the support we provide for the Reseller API is service-based only.

How to retrieve a list of packages via the API?

GET /package

An array of objects will be returned, the objects pertaining to current hosting packages held within the 20i account.

PHP examples use our API wrapper, which can be downloaded here: https://docs.20i.com/api/retrieve-packages-api

PHP

Request:

require_once "vendor/autoload.php"; //We specify the API wrapper location.
$bearer_token = "INSERT YOUR GENERAL API KEY"; //Your Kenziei API key.
$response = json_encode($services_api->getWithFields("/package"), JSON_PRETTY_PRINT);
print_r($response);

The response, shows a list of hosting packages and various other details about each package instance. For example, in the response, we can see the name and id of packages, the name of the package type the package is assigned-to, as well as any StackUsers assigned to those packages.

First published by SAUDI GULF HOSTiNG. Read the original page

Tags

  • Domain Names & DNS
  • enterprise-intelligence

Written by SAUDI GULF HOSTiNG

Data centre infrastructure, hosting and the enterprise knowledge base, blog, announcements and forum of K® (Kenzie).

Share this article

Share this with your team

Help colleagues and clients find this guidance.