تخطَّ إلى المحتوى الرئيسي
المملكة العربية السعودية

SAUDI GULF HOSTiNG

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

نُشر في ١٦ نوفمبر ٢٠٢٥

المستوى
متوسط

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.

نُشر أولاً لدى SAUDI GULF HOSTiNG. قراءة الصفحة الأصلية

الوسوم

  • Domain Names & DNS
  • enterprise-intelligence

بقلم SAUDI GULF HOSTiNG

البنية التحتية لمراكز البيانات والاستضافة، ومعها قاعدة المعرفة والمدونة والإعلانات والمنتدى الخاصة بـ K®‎ (Kenzie).

شارك هذا المقال

شاركه مع فريقك

ساعد الزملاء والعملاء على الوصول إلى هذه الإرشادات.