Getting Started Print

  • API
  • 0

Sive.Host SHAPI

SHAPI exposes customer-owned Sive.Host billing, compute, hosting, domain, support, and DirectAdmin operations as JSON.

Direct API

  1. Sign in at the SHAPI client page.
  2. Create or enable an API key and secret.
  3. Add the public egress IP used by your integration.
  4. Copy the HTTP Basic username/password shown on that authenticated page.
  5. POST URL-encoded requests to https://sive.host/modules/addons/shapi/sh-api.php.

ChatGPT plugin

Add https://sh.sive.ai/mcp as a ChatGPT plugin connection named Sive.Host, or use the equivalent alias https://ai.paas.africa/mcp. OAuth asks for the same customer API key and secret. ChatGPT does not need the HTTP Basic values.

Authorization model

The client ID is derived from the API key. Request-supplied client IDs are ignored. Service, domain, invoice, and ticket ownership is checked server-side. Partner actions additionally verify the active Partner, the selected Partner-client relationship, the Partner-service assignment, and the service owner.

Current action catalog (96)

ActionRiskPurpose
AccountSummaryReadReturn a limited profile, status, currency, credit balance, and account statistics for the authenticated client.
CreditCheckReadReturn the authenticated client credit balance and currency.
ListActiveProductsReadList active public products and pricing through the custom WHMCS GetProductsActive API action.
ListServicesReadList services owned by the authenticated client.
GetPartnerContextReadIdentify an active Sive.Host Partner and return separate owned and Partner-managed active-service counts.
GetPartnerStorefrontReadReturn the authenticated active Partner storefront identity, VAT, contact, social, colour and default-currency settings without exposing credentials or payment configuration.
UpdatePartnerStorefrontWriteUpdate allowlisted settings for the authenticated Partner storefront.
ListPartnerCatalogReadList products, addons and domain operations in the authenticated Partner Pricing Group with per-currency administrator bounds and Partner retail prices.
SetPartnerCatalogPricingDestructiveActivate, reprice or deactivate one Pricing Group item for the authenticated Partner.
SetPartnerProductDisplayWriteSet a Partner-specific storefront product name and plain-text description.
ListPartnerClientsReadList clients explicitly assigned to the authenticated active Partner without returning credentials.
ListPartnerClientServicesReadList hosting and compute services explicitly assigned to the Partner for one active Partner client.
ListClientDomainsReadList WHMCS domain registrations owned by the authenticated client.
ListInvoicesReadList invoices owned by the authenticated client.
GetInvoiceReadReturn one invoice after verifying client ownership.
ListTicketsReadList support tickets owned by the authenticated client.
GetTicketReadReturn one support ticket after verifying client ownership.
OpenTicketWriteOpen a support ticket as the authenticated client.
NameCheckReadCheck whether a valid domain is available for registration. No minimum credit is required.
NamePriceReadReturn registration, transfer, and renewal pricing for configured TLDs in the client currency. No minimum credit is required.
BuyDomainDestructiveRegister an available domain through WHMCS and create the related order and invoice.
ListComputeOrderOptionsReadList product-linked operating systems and, after an OS is selected, only the compatible application recipes.
BuyNowDestructiveOrder one supported VM or container product with an explicit OS and optional compatible application recipe.
BuySharedDestructiveOrder one supported shared-hosting product.
StartVMWriteStart an owned VM or container.
StopVMWriteStop an owned VM or container.
BuyCloneDestructiveClone an owned VM or container and create a billable service.
ListComputeReinstallOptionsReadList operating systems and optional application recipes allowed for reinstalling an owned active VPS.
ReinstallComputeDestructiveErase and reinstall an owned active Proxmox VPS with an allowed operating system and optional application recipe.
QuoteComputeResourceReadCalculate the current prorated WHMCS price for bandwidth, backup quota, IPv4, or a private internal network.
BuyComputeBandwidthDestructiveBuy additional recurring bandwidth in 500 GB units through the WHMCS upgrade engine.
BuyComputeBackupDestructiveBuy additional recurring Proxmox backup quota in 1 GB units through the WHMCS upgrade engine.
BuyComputeIPv4DestructiveBuy additional recurring dedicated IPv4 addresses through the WHMCS upgrade engine.
BuyComputePrivateNetworkDestructiveBuy and provision the one managed private internal network available to an eligible VPS.
AddNewDiskDestructivePurchase and attach a new SSD or HDD disk to an owned VM or container.
IncreaseDiskSizeDestructivePurchase capacity and grow an existing disk.
AddMoreCPUDestructivePurchase and add CPU cores to an owned VM or container.
AddMoreRAMDestructivePurchase and add RAM to an owned VM or container.
ReassignDiskDestructiveMove a disk between two compute services owned by the same client.
FirewallPolicyOptionWriteSet a firewall policy option on an owned VM or container.
AddFirewallRuleWriteAdd a firewall rule to an owned VM or container.
EditFirewallRuleWriteEdit an existing firewall rule on an owned VM or container.
MigrateVMDestructiveMigrate an owned VM or container to an allowed target node.
accDetailReadReturn control-panel account details for an owned active hosting service.
accQuotaReadReturn quota usage for an owned active hosting service.
accExistReadCheck the control-panel account for an owned active hosting service.
quotaLimitReadReturn configured quota limits for an owned active hosting service.
addSSLWriteProvision a certificate for a domain in an owned hosting service.
delSSLDestructiveDelete certificate records for a domain in an owned hosting service.
autoLoginWriteCreate a short-lived control-panel login URL for an owned service.
passwdUpdDestructiveChange the main hosting control-panel password.
cronListReadList cron jobs in an owned hosting service.
cronAddWriteCreate a cron job in an owned hosting service.
cronDelDestructiveDelete the cron job matching a schedule and command.
domainsListReadList domains or subdomains in an owned hosting service.
domainsAddWriteAdd a domain or subdomain to an owned hosting service.
domainsDelDestructiveDelete a domain or subdomain from an owned hosting service.
ReadHostingDomainLogReadRead a bounded tail of an owned DirectAdmin domain access or error log.
ListWebsiteFilesReadList files beneath a customer domain public_html directory through DirectAdmin.
ReadWebsiteFileReadRead one file beneath a customer domain public_html directory.
BackupWebsiteFileWriteCopy one public_html file into the managed Sive.Host MCP backup directory outside public_html.
PublishWebsiteFileDestructivePublish one file beneath a customer domain public_html directory using DirectAdmin multipart upload.
RestoreWebsiteFileDestructiveRestore an exact Sive.Host MCP backup into the same domain public_html directory.
DeleteWebsiteFilesDestructiveMove selected public_html files or directories to the DirectAdmin trash.
listEmailReadList mailboxes in an owned hosting service.
addEmailWriteCreate a mailbox and encrypt its password for the SHAPI mail tools.
udpEmailDestructiveChange a mailbox password and quota and update the encrypted SHAPI credential.
delEmailDestructivePermanently delete a mailbox.
suspEmailWriteSuspend a mailbox.
unspEmailWriteUnsuspend a mailbox.
ConnectMailboxDestructiveOptionally verify an owned mailbox over IMAP and store its password encrypted as a fallback. Passwordless DirectAdmin delegation is used normally.
SendMailboxEmailDestructiveSend email from an exact owned mailbox through a short-lived DirectAdmin/Roundcube delegated session without requesting its password.
ReplyMailboxMessageDestructiveSend a true threaded reply to one existing owned mailbox message through passwordless DirectAdmin/Roundcube delegation.
ListMailboxMessagesReadList message metadata from any existing owned mailbox through passwordless DirectAdmin/Roundcube delegation.
GetMailboxMessageReadRead one message from any existing owned mailbox by UID through passwordless delegation.
SetMailboxMessageReadStateWriteMark one existing owned mailbox message read or unread through passwordless delegation.
ftpListReadList FTP accounts in an owned hosting service.
ftpAddWriteCreate an FTP account.
ftpUpdDestructiveChange an FTP account password.
ftpDelDestructiveDelete an FTP account.
dbListReadList databases in an owned hosting service.
dbAddWriteCreate a database and initial user.
dbDelDestructivePermanently delete a database.
dbuserListReadList database users in an owned hosting service.
dbuserAddWriteCreate a database user and grant database access.
dbuserUpdDestructiveChange a database user password or allowed host.
dbuserDelDestructiveDelete a database user.
PartnerCreateControlPanelLoginWriteCreate a short-lived DirectAdmin login URL for an explicitly assigned active Partner client service.
PartnerDirectAdminLegacyReadReadCall a user-scoped DirectAdmin legacy CMD_API_* endpoint with GET for an explicitly assigned Partner client service.
PartnerDirectAdminLegacyWriteDestructiveCall a user-scoped DirectAdmin legacy CMD_API_* endpoint with POST for an explicitly assigned Partner client service.
PartnerDirectAdminModernReadReadCall a user-scoped DirectAdmin /api/* endpoint with GET for an explicitly assigned Partner client service.
PartnerDirectAdminModernWriteDestructiveCall a user-scoped DirectAdmin /api/* endpoint with POST, PUT, PATCH, or DELETE for an explicitly assigned Partner client service.
DirectAdminLegacyReadReadCall a user-scoped DirectAdmin legacy CMD_API_* endpoint with GET for an owned DirectAdmin service.
DirectAdminLegacyWriteDestructiveCall a user-scoped DirectAdmin legacy CMD_API_* endpoint with POST for an owned DirectAdmin service.
DirectAdminModernReadReadCall a user-scoped DirectAdmin modern /api/* endpoint with GET for an owned DirectAdmin service.
DirectAdminModernWriteDestructiveCall a user-scoped DirectAdmin modern /api/* endpoint with POST, PUT, PATCH, or DELETE.

SHAPI documentation version 2.0.


هل كانت المقالة مفيدة ؟
Back