Skip to content

Repository files navigation

Hostinger API PHP SDK

About

This is a PHP SDK for the Hostinger API. For more information, please visit https://developers.hostinger.com.

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

To install the package via Composer, run the following command:

composer require hostinger/api-php-sdk

Manual Installation

Download the files and include autoload.php:

<?phprequire_once('/path/to/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = newHostinger\Api\AgencyHostingCacheApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.
client: newGuzzleHttp\Client(),
config: $config
);
$websiteUid = zpwlGlp19; // string | Agency Plan website UIDtry {
$result = $apiInstance->clearAgencyPlanWebsiteCacheV1($websiteUid);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling AgencyHostingCacheApi->clearAgencyPlanWebsiteCacheV1: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://developers.hostinger.com

ClassMethodHTTP requestDescription
AgencyHostingCacheApiclearAgencyPlanWebsiteCacheV1DELETE /api/agency-hosting/v1/websites/{website_uid}/cacheClear Agency Plan website cache
AgencyHostingCronJobsApicreateAgencyPlanWebsiteCronJobV1POST /api/agency-hosting/v1/websites/{website_uid}/cron-jobsCreate Agency Plan website cron job
AgencyHostingCronJobsApideleteAgencyPlanWebsiteCronJobV1DELETE /api/agency-hosting/v1/websites/{website_uid}/cron-jobs/{uuid}Delete Agency Plan website cron job
AgencyHostingCronJobsApilistAgencyPlanWebsiteCronJobsV1GET /api/agency-hosting/v1/websites/{website_uid}/cron-jobsList Agency Plan website cron jobs
AgencyHostingDatabasesApicreateAgencyPlanWebsiteDatabaseUserV1POST /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/usersCreate Agency Plan website database user
AgencyHostingDatabasesApicreateAgencyPlanWebsiteDatabaseV1POST /api/agency-hosting/v1/websites/{website_uid}/databasesCreate Agency Plan website database
AgencyHostingDatabasesApideleteAgencyPlanWebsiteDatabaseUserV1DELETE /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users/{database_user_name}Delete Agency Plan website database user
AgencyHostingDatabasesApideleteAgencyPlanWebsiteDatabaseV1DELETE /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}Delete Agency Plan website database
AgencyHostingDatabasesApilistAgencyPlanWebsiteDatabasesV1GET /api/agency-hosting/v1/websites/{website_uid}/databasesList Agency Plan website databases
AgencyHostingDatacentersApilistAvailableDatacentersForAnAgencyPlanOrderV1GET /api/agency-hosting/v1/orders/{order_id}/datacentersList available datacenters for an Agency Plan order
AgencyHostingDomainsApichangeAgencyPlanWebsiteDomainV1PUT /api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}Change Agency Plan website domain
AgencyHostingDomainsApilinkDomainToAgencyPlanWebsiteV1POST /api/agency-hosting/v1/websites/{website_uid}/domainsLink domain to Agency Plan website
AgencyHostingDomainsApilistAgencyPlanDomainsV1GET /api/agency-hosting/v1/domainsList Agency Plan domains
AgencyHostingDomainsApiunlinkDomainFromAgencyPlanWebsiteV1DELETE /api/agency-hosting/v1/websites/{website_uid}/domains/{domain}Unlink domain from Agency Plan website
AgencyHostingFilesApiimportAgencyPlanWebsiteFromArchiveV1POST /api/agency-hosting/v1/websites/{website_uid}/files/import-archiveImport Agency Plan website from archive
AgencyHostingOrdersApilistAgencyPlanOrdersV1GET /api/agency-hosting/v1/ordersList Agency Plan orders
AgencyHostingWebsiteSetupsApigetAgencyPlanWebsiteSetupStatusV1GET /api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid}Get Agency Plan website setup status
AgencyHostingWebsiteSetupsApiprovisionANewAgencyPlanWebsiteV1POST /api/agency-hosting/v1/orders/{order_id}/websites/setupsProvision a new Agency Plan website
AgencyHostingWebsitesApibuildAgencyPlanWebsiteNodeJSAssetsV1POST /api/agency-hosting/v1/websites/{website_uid}/build-assetsBuild Agency Plan website NodeJS assets
AgencyHostingWebsitesApideleteAgencyPlanWebsiteV1DELETE /api/agency-hosting/v1/websites/{website_uid}Delete Agency Plan website
AgencyHostingWebsitesApigetAgencyPlanWebsiteDetailsV1GET /api/agency-hosting/v1/websites/{website_uid}Get Agency Plan website details
AgencyHostingWebsitesApilistRunningAgencyPlanWebsiteProcessesV1GET /api/agency-hosting/v1/websites/{website_uid}/processesList running Agency Plan website processes
AgencyHostingWordPressApichangeAgencyPlanWebsiteWordPressCoreVersionV1PATCH /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versionChange Agency Plan website WordPress core version
AgencyHostingWordPressApigetAgencyPlanWebsiteWordPressSettingsV1GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settingsGet Agency Plan website WordPress settings
AgencyHostingWordPressApilistAvailableWordPressVersionsForAnAgencyPlanWebsiteV1GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versionsList available WordPress versions for an Agency Plan website
BillingCatalogApigetCatalogItemListV1GET /api/billing/v1/catalogGet catalog item list
BillingOrdersApicreatePurchaseOrderV1POST /api/billing/v1/ordersCreate purchase order
BillingPaymentMethodsApideletePaymentMethodV1DELETE /api/billing/v1/payment-methods/{paymentMethodId}Delete payment method
BillingPaymentMethodsApigetPaymentMethodListV1GET /api/billing/v1/payment-methodsGet payment method list
BillingPaymentMethodsApisetDefaultPaymentMethodV1POST /api/billing/v1/payment-methods/{paymentMethodId}Set default payment method
BillingSubscriptionsApidisableAutoRenewalV1DELETE /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disableDisable auto-renewal
BillingSubscriptionsApienableAutoRenewalV1PATCH /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enableEnable auto-renewal
BillingSubscriptionsApigetSubscriptionListV1GET /api/billing/v1/subscriptionsGet subscription list
BillingSubscriptionsApirenewSubscriptionV1POST /api/billing/v1/subscriptions/{subscriptionId}/renewRenew subscription
DNSSnapshotApigetDNSSnapshotListV1GET /api/dns/v1/snapshots/{domain}Get DNS snapshot list
DNSSnapshotApigetDNSSnapshotV1GET /api/dns/v1/snapshots/{domain}/{snapshotId}Get DNS snapshot
DNSSnapshotApirestoreDNSSnapshotV1POST /api/dns/v1/snapshots/{domain}/{snapshotId}/restoreRestore DNS snapshot
DNSZoneApideleteDNSRecordsV1DELETE /api/dns/v1/zones/{domain}Delete DNS records
DNSZoneApigetDNSRecordsV1GET /api/dns/v1/zones/{domain}Get DNS records
DNSZoneApiresetDNSRecordsV1POST /api/dns/v1/zones/{domain}/resetReset DNS records
DNSZoneApiupdateDNSRecordsV1PUT /api/dns/v1/zones/{domain}Update DNS records
DNSZoneApivalidateDNSRecordsV1POST /api/dns/v1/zones/{domain}/validateValidate DNS records
DomainAccessVerifierVerificationsApigetDomainVerificationsDIRECTGET /api/v2/direct/verifications/activeGet domain verifications
DomainsAvailabilityApicheckDomainAvailabilityV1POST /api/domains/v1/availabilityCheck domain availability
DomainsForwardingApicreateDomainForwardingV1POST /api/domains/v1/forwardingCreate domain forwarding
DomainsForwardingApideleteDomainForwardingV1DELETE /api/domains/v1/forwarding/{domain}Delete domain forwarding
DomainsForwardingApigetDomainForwardingV1GET /api/domains/v1/forwarding/{domain}Get domain forwarding
DomainsForwardingApiupdateDomainForwardingV1PUT /api/domains/v1/forwarding/{domain}Update domain forwarding
DomainsMoveApiacceptIncomingDomainMoveV1PUT /api/domains/v1/move/incoming/{domain}Accept incoming domain move
DomainsMoveApicancelOutgoingDomainMoveV1DELETE /api/domains/v1/move/outgoing/{domain}Cancel outgoing domain move
DomainsMoveApigetIncomingDomainMoveListV1GET /api/domains/v1/move/incomingGet incoming domain move list
DomainsMoveApigetIncomingDomainMoveV1GET /api/domains/v1/move/incoming/{domain}Get incoming domain move
DomainsMoveApigetOutgoingDomainMoveListV1GET /api/domains/v1/move/outgoingGet outgoing domain move list
DomainsMoveApigetOutgoingDomainMoveV1GET /api/domains/v1/move/outgoing/{domain}Get outgoing domain move
DomainsMoveApirejectIncomingDomainMoveV1DELETE /api/domains/v1/move/incoming/{domain}Reject incoming domain move
DomainsMoveApistartOutgoingDomainMoveV1POST /api/domains/v1/move/outgoing/{domain}Start outgoing domain move
DomainsPortfolioApiclaimFreeDomainV1POST /api/domains/v1/portfolio/claimClaim free domain
DomainsPortfolioApidisableDomainLockV1DELETE /api/domains/v1/portfolio/{domain}/domain-lockDisable domain lock
DomainsPortfolioApidisablePrivacyProtectionV1DELETE /api/domains/v1/portfolio/{domain}/privacy-protectionDisable privacy protection
DomainsPortfolioApienableDomainLockV1PUT /api/domains/v1/portfolio/{domain}/domain-lockEnable domain lock
DomainsPortfolioApienablePrivacyProtectionV1PUT /api/domains/v1/portfolio/{domain}/privacy-protectionEnable privacy protection
DomainsPortfolioApigetDomainAuthorizationCodeV1GET /api/domains/v1/portfolio/{domain}/auth-codeGet domain authorization code
DomainsPortfolioApigetDomainDetailsV1GET /api/domains/v1/portfolio/{domain}Get domain details
DomainsPortfolioApigetDomainListV1GET /api/domains/v1/portfolioGet domain list
DomainsPortfolioApigetDomainRenewalInformationV1GET /api/domains/v1/portfolio/{domain}/renewalGet domain renewal information
DomainsPortfolioApipurchaseNewDomainV1POST /api/domains/v1/portfolioPurchase new domain
DomainsPortfolioApiupdateDomainNameserversV1PUT /api/domains/v1/portfolio/{domain}/nameserversUpdate domain nameservers
DomainsTransferApiclaimFreeDomainTransferV1POST /api/domains/v1/transfers/claimClaim free domain transfer
DomainsTransferApigetTransferListV1GET /api/domains/v1/transfersGet transfer list
DomainsTransferApigetTransferV1GET /api/domains/v1/transfers/{domain}Get transfer
DomainsWHOISApicancelPendingIRTPVerificationV1DELETE /api/domains/v1/irtp/{domain}Cancel pending IRTP verification
DomainsWHOISApichangeWHOISProfileForDomainV1PUT /api/domains/v1/whois/changeChange WHOIS profile for domain
DomainsWHOISApicreateWHOISProfileV1POST /api/domains/v1/whoisCreate WHOIS profile
DomainsWHOISApideleteWHOISProfileV1DELETE /api/domains/v1/whois/{whoisId}Delete WHOIS profile
DomainsWHOISApigetPendingIRTPVerificationV1GET /api/domains/v1/irtp/{domain}Get pending IRTP verification
DomainsWHOISApigetWHOISProfileListV1GET /api/domains/v1/whoisGet WHOIS profile list
DomainsWHOISApigetWHOISProfileUsageV1GET /api/domains/v1/whois/{whoisId}/usageGet WHOIS profile usage
DomainsWHOISApigetWHOISProfileV1GET /api/domains/v1/whois/{whoisId}Get WHOIS profile
DomainsWHOISApisetWHOISProfileAsDefaultV1PUT /api/domains/v1/whois/default/{whoisId}Set WHOIS profile as default
DomainsWHOISApiunsetDefaultWHOISProfileV1DELETE /api/domains/v1/whois/default/{whoisId}Unset default WHOIS profile
EcommerceMiscellaneousApigetCustomStorefrontSetupInstructionsV1GET /api/ecommerce/v1/miscellaneous/custom-storefront-instructionsGet custom storefront setup instructions
EcommercePaymentsApienableManualPaymentMethodV1POST /api/ecommerce/v1/stores/{store_id}/payment-methods/manualEnable manual payment method
EcommerceProductsApicreateDigitalProductV1POST /api/ecommerce/v1/stores/{store_id}/products/digitalCreate digital product
EcommerceProductsApicreatePhysicalProductV1POST /api/ecommerce/v1/stores/{store_id}/products/physicalCreate physical product
EcommerceSalesChannelsApicreateCustomSalesChannelV1POST /api/ecommerce/v1/stores/{store_id}/sales-channelsCreate custom sales channel
EcommerceSalesChannelsApilistSalesChannelsV1GET /api/ecommerce/v1/stores/{store_id}/sales-channelsList sales channels
EcommerceSalesChannelsApiupdateSalesChannelV1PATCH /api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}Update sales channel
EcommerceShippingApisetStoreShippingV1POST /api/ecommerce/v1/stores/{store_id}/shippingSet store shipping
EcommerceStoresApicreateStoreV1POST /api/ecommerce/v1/storesCreate store
EcommerceStoresApideleteStoreV1DELETE /api/ecommerce/v1/stores/{store_id}Delete store
EcommerceStoresApigetStoreMetadataV1GET /api/ecommerce/v1/stores/{store_id}/metadataGet store metadata
EcommerceStoresApigetStoresV1GET /api/ecommerce/v1/storesGet stores
HorizonsWebsitesApicreateWebsiteV1POST /api/horizons/v1/websitesCreate website
HorizonsWebsitesApigetWebsiteV1GET /api/horizons/v1/websites/{websiteId}Get website
HostingCacheApiclearWebsiteCacheV1DELETE /api/hosting/v1/accounts/{username}/websites/{domain}/cache/clearClear website cache
HostingCacheApitoggleCachelessModeV1PATCH /api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggleToggle cacheless mode
HostingCacheApitoggleWebsiteCacheV1PATCH /api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggleToggle website cache
HostingCronJobsApicreateAccountCronJobV1POST /api/hosting/v1/accounts/{username}/cron-jobsCreate account cron job
HostingCronJobsApideleteAccountCronJobV1DELETE /api/hosting/v1/accounts/{username}/cron-jobs/{uid}Delete account cron job
HostingCronJobsApigetCronJobOutputV1GET /api/hosting/v1/accounts/{username}/cron-jobs/{uid}/outputGet cron job output
HostingCronJobsApilistAccountCronJobsV1GET /api/hosting/v1/accounts/{username}/cron-jobsList account cron jobs
HostingDatabasesApichangeDatabasePasswordV1PATCH /api/hosting/v1/accounts/{username}/databases/{name}/change-passwordChange database password
HostingDatabasesApicreateAccountDatabaseV1POST /api/hosting/v1/accounts/{username}/databasesCreate account database
HostingDatabasesApicreateDatabaseRemoteConnectionV1POST /api/hosting/v1/accounts/{username}/databases/{name}/remote-connectionsCreate database remote connection
HostingDatabasesApideleteAccountDatabaseV1DELETE /api/hosting/v1/accounts/{username}/databases/{name}Delete account database
HostingDatabasesApideleteDatabaseRemoteConnectionV1DELETE /api/hosting/v1/accounts/{username}/databases/{name}/remote-connectionsDelete database remote connection
HostingDatabasesApigetPhpMyAdminLinkV1GET /api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-linkGet phpMyAdmin link
HostingDatabasesApilistAccountDatabasesV1GET /api/hosting/v1/accounts/{username}/databasesList account databases
HostingDatabasesApilistDatabaseRemoteConnectionsV1GET /api/hosting/v1/accounts/{username}/databases/remote-connectionsList database remote connections
HostingDatabasesApirepairDatabaseV1PATCH /api/hosting/v1/accounts/{username}/databases/{name}/repairRepair database
HostingDatacentersApilistAvailableDatacentersV1GET /api/hosting/v1/datacentersList available datacenters
HostingDomainsApicreateWebsiteParkedDomainV1POST /api/hosting/v1/accounts/{username}/websites/{domain}/parked-domainsCreate website parked domain
HostingDomainsApicreateWebsiteSubdomainV1POST /api/hosting/v1/accounts/{username}/websites/{domain}/subdomainsCreate website subdomain
HostingDomainsApideleteWebsiteParkedDomainV1DELETE /api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains/{parkedDomain}Delete website parked domain
HostingDomainsApideleteWebsiteSubdomainV1DELETE /api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}Delete website subdomain
HostingDomainsApigenerateAFreeSubdomainV1POST /api/hosting/v1/domains/free-subdomainsGenerate a free subdomain
HostingDomainsApilistWebsiteParkedDomainsV1GET /api/hosting/v1/accounts/{username}/websites/{domain}/parked-domainsList website parked domains
HostingDomainsApilistWebsiteSubdomainsV1GET /api/hosting/v1/accounts/{username}/websites/{domain}/subdomainsList website subdomains
HostingDomainsApiverifyDomainOwnershipV1POST /api/hosting/v1/domains/verify-ownershipVerify domain ownership
HostingNodeJSApicreateNodeJSBuildFromArchiveV1POST /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archiveCreate NodeJS build from archive
HostingNodeJSApigetNodeJSBuildLogsV1GET /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logsGet NodeJS build logs
HostingNodeJSApilistNodeJSBuildsV1GET /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/buildsList NodeJS builds
HostingNodeJSApilistNodeJsVulnerabilitiesV1GET /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilitiesList Node.js vulnerabilities
HostingNodeJSApipatchNodeJsVulnerabilitiesV1POST /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities/patchPatch Node.js vulnerabilities
HostingNodeJSApirestartNodeJsApplicationV1POST /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restartRestart Node.js application
HostingOrdersApilistOrdersV1GET /api/hosting/v1/ordersList orders
HostingPHPApigetPHPDetailsV1GET /api/hosting/v1/accounts/{username}/websites/{domain}/php/detailsGet PHP details
HostingPHPApigetPHPInfoV1GET /api/hosting/v1/accounts/{username}/websites/{domain}/php/php-infoGet PHP info
HostingPHPApiresetPHPExtensionsV1PATCH /api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/resetReset PHP extensions
HostingPHPApiupdatePHPExtensionsV1PATCH /api/hosting/v1/accounts/{username}/websites/{domain}/php/extensionsUpdate PHP extensions
HostingPHPApiupdatePHPOptionsV1PATCH /api/hosting/v1/accounts/{username}/websites/{domain}/php/optionsUpdate PHP options
HostingPHPApiupdatePHPVersionV1PATCH /api/hosting/v1/accounts/{username}/websites/{domain}/php/versionUpdate PHP version
HostingWebsitesApicreateWebsiteV1POST /api/hosting/v1/websitesCreate website
HostingWebsitesApideleteWebsiteV1DELETE /api/hosting/v1/websites/{domain}Delete website
HostingWebsitesApilistWebsitesV1GET /api/hosting/v1/websitesList websites
MailAPITokensApicreateAPITokenV1POST /api/mail/v1/orders/{orderId}/api-tokensCreate API token
MailAPITokensApilistAPITokensV1GET /api/mail/v1/api-tokensList API tokens
MailAPITokensApirevokeAPITokenV1DELETE /api/mail/v1/api-tokens/{tokenId}Revoke API token
MailAliasesApicreateAliasV1POST /api/mail/v1/mailboxes/{mailboxId}/aliasesCreate alias
MailAliasesApideleteAliasV1DELETE /api/mail/v1/aliases/{aliasId}Delete alias
MailAliasesApilistAliasesV1GET /api/mail/v1/orders/{orderId}/aliasesList aliases
MailAutorepliesApicreateAutoreplyV1POST /api/mail/v1/mailboxes/{mailboxId}/autorepliesCreate autoreply
MailAutorepliesApideleteAutoreplyV1DELETE /api/mail/v1/autoreplies/{autoreplyId}Delete autoreply
MailAutorepliesApilistAutorepliesV1GET /api/mail/v1/orders/{orderId}/autorepliesList autoreplies
MailAutorepliesApiupdateAutoreplyV1PUT /api/mail/v1/autoreplies/{autoreplyId}Update autoreply
MailCatchallsApicreateCatchAllV1POST /api/mail/v1/mailboxes/{mailboxId}/catchallsCreate catch-all
MailCatchallsApideleteCatchAllV1DELETE /api/mail/v1/catchalls/{catchallId}Delete catch-all
MailCatchallsApilistCatchAllsV1GET /api/mail/v1/orders/{orderId}/catchallsList catch-alls
MailCatchallsApiresendCatchAllConfirmationV1POST /api/mail/v1/catchalls/{catchallId}/confirmation/resendResend catch-all confirmation
MailForwardersApicreateForwarderV1POST /api/mail/v1/mailboxes/{mailboxId}/forwardersCreate forwarder
MailForwardersApideleteForwarderV1DELETE /api/mail/v1/forwarders/{forwarderId}Delete forwarder
MailForwardersApilistForwardersV1GET /api/mail/v1/orders/{orderId}/forwardersList forwarders
MailForwardersApiresendForwarderConfirmationV1POST /api/mail/v1/forwarders/{forwarderId}/confirmation/resendResend forwarder confirmation
MailForwardersApiupdateForwarderKeepCopySettingV1PATCH /api/mail/v1/forwarders/{forwarderId}/keep-copyUpdate forwarder keep-copy setting
MailLogsApilistAccessLogsV1GET /api/mail/v1/orders/{orderId}/logs/accessList access logs
MailLogsApilistActionLogsV1GET /api/mail/v1/orders/{orderId}/logs/actionList action logs
MailLogsApilistInboundLogsV1GET /api/mail/v1/orders/{orderId}/logs/inboundList inbound logs
MailLogsApilistMailboxActionLogsV1GET /api/mail/v1/orders/{orderId}/logs/mailbox-actionsList mailbox action logs
MailLogsApilistOutboundLogsV1GET /api/mail/v1/orders/{orderId}/logs/outboundList outbound logs
MailMailboxesApichangeMailboxPasswordV1PATCH /api/mail/v1/mailboxes/{mailboxId}/passwordChange mailbox password
MailMailboxesApicreateMailboxV1POST /api/mail/v1/orders/{orderId}/mailboxesCreate mailbox
MailMailboxesApideleteMailboxV1DELETE /api/mail/v1/mailboxes/{mailboxId}Delete mailbox
MailMailboxesApilistMailboxesV1GET /api/mail/v1/orders/{orderId}/mailboxesList mailboxes
MailOrdersApigetOrderPlanV1GET /api/mail/v1/orders/{orderId}/planGet order plan
MailOrdersApilistOrdersV1GET /api/mail/v1/ordersList orders
MailWebhooksApicreateWebhookV1POST /api/mail/v1/mailboxes/{mailboxId}/webhooksCreate webhook
MailWebhooksApideleteWebhookV1DELETE /api/mail/v1/webhooks/{webhookId}Delete webhook
MailWebhooksApigetWebhookV1GET /api/mail/v1/webhooks/{webhookId}Get webhook
MailWebhooksApilistWebhookDeliveryLogsV1GET /api/mail/v1/orders/{orderId}/webhooks/delivery-logsList webhook delivery logs
MailWebhooksApilistWebhooksV1GET /api/mail/v1/orders/{orderId}/webhooksList webhooks
MailWebhooksApiregenerateWebhookSecretV1POST /api/mail/v1/webhooks/{webhookId}/regenerate-secretRegenerate webhook secret
MailWebhooksApitestWebhookV1POST /api/mail/v1/webhooks/{webhookId}/testTest webhook
MailWebhooksApiupdateWebhookV1PATCH /api/mail/v1/webhooks/{webhookId}Update webhook
ReachContactFieldsApicreateAContactFieldV1POST /api/reach/v1/profiles/{profileUuid}/contacts/fieldsCreate a contact field
ReachContactFieldsApideleteAContactFieldV1DELETE /api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}Delete a contact field
ReachContactFieldsApilistContactFieldsV1GET /api/reach/v1/profiles/{profileUuid}/contacts/fieldsList contact fields
ReachContactFieldsApiupdateAContactFieldV1PATCH /api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}Update a contact field
ReachContactsApicreateANewContactV1POST /api/reach/v1/contactsCreate a new contact
ReachContactsApicreateContactsInBulkV1POST /api/reach/v1/profiles/{profileUuid}/contacts/bulkCreate contacts in bulk
ReachContactsApicreateNewContactsV1POST /api/reach/v1/profiles/{profileUuid}/contactsCreate new contacts
ReachContactsApideleteAContactV1DELETE /api/reach/v1/contacts/{uuid}Delete a contact
ReachContactsApideleteAProfileContactV1DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}Delete a profile contact
ReachContactsApigetContactDetailsV1GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}Get contact details
ReachContactsApilistContactGroupsV1GET /api/reach/v1/contacts/groupsList contact groups
ReachContactsApilistContactsV1GET /api/reach/v1/contactsList contacts
ReachContactsApilistProfileContactsV1GET /api/reach/v1/profiles/{profileUuid}/contactsList profile contacts
ReachContactsApiupdateAContactV1PATCH /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}Update a contact
ReachProfilesApigetProfileDomainDNSStatusV1GET /api/reach/v1/profiles/{profileUuid}/domains/dns-statusGet profile domain DNS status
ReachProfilesApilistProfilesV1GET /api/reach/v1/profilesList Profiles
ReachSegmentsApicountProfileSegmentContactsV1GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/countCount profile segment contacts
ReachSegmentsApicreateANewContactSegmentV1POST /api/reach/v1/segmentation/segmentsCreate a new contact segment
ReachSegmentsApicreateAProfileSegmentV1POST /api/reach/v1/profiles/{profileUuid}/segmentation/segmentsCreate a profile segment
ReachSegmentsApideleteAProfileSegmentV1DELETE /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}Delete a profile segment
ReachSegmentsApigetProfileSegmentDetailsV1GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}Get profile segment details
ReachSegmentsApigetSegmentDetailsV1GET /api/reach/v1/segmentation/segments/{segmentUuid}Get segment details
ReachSegmentsApilistProfileSegmentContactsV1GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contactsList profile segment contacts
ReachSegmentsApilistProfileSegmentsV1GET /api/reach/v1/profiles/{profileUuid}/segmentation/segmentsList profile segments
ReachSegmentsApilistSegmentContactsV1GET /api/reach/v1/segmentation/segments/{segmentUuid}/contactsList segment contacts
ReachSegmentsApilistSegmentsV1GET /api/reach/v1/segmentation/segmentsList segments
ReachSegmentsApiupdateAProfileSegmentV1PUT /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}Update a profile segment
ReachTagsApiassignAContactToATagV1POST /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}Assign a contact to a tag
ReachTagsApiassignContactsToATagV1POST /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contactsAssign contacts to a tag
ReachTagsApicreateOrFindTagsV1POST /api/reach/v1/profiles/{profileUuid}/tagsCreate or find tags
ReachTagsApideleteATagV1DELETE /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}Delete a tag
ReachTagsApilistProfileTagsV1GET /api/reach/v1/profiles/{profileUuid}/tagsList profile tags
ReachTagsApiremoveAContactFromATagV1DELETE /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}Remove a contact from a tag
ReachTagsApiremoveContactsFromATagV1DELETE /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contactsRemove contacts from a tag
ReachTagsApirenameATagV1PATCH /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}Rename a tag
VPSActionsApigetActionDetailsV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/actions/{actionId}Get action details
VPSActionsApigetActionsV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/actionsGet actions
VPSBackupsApigetBackupsV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/backupsGet backups
VPSBackupsApirestoreBackupV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restoreRestore backup
VPSDataCentersApigetDataCenterListV1GET /api/vps/v1/data-centersGet data center list
VPSDockerManagerApicreateNewProjectV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/dockerCreate new project
VPSDockerManagerApideleteProjectV1DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/downDelete project
VPSDockerManagerApigetProjectContainersV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/containersGet project containers
VPSDockerManagerApigetProjectContentsV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}Get project contents
VPSDockerManagerApigetProjectListV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/dockerGet project list
VPSDockerManagerApigetProjectLogsV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/logsGet project logs
VPSDockerManagerApirestartProjectV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/restartRestart project
VPSDockerManagerApistartProjectV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/startStart project
VPSDockerManagerApistopProjectV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/stopStop project
VPSDockerManagerApiupdateProjectV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/updateUpdate project
VPSFirewallApiactivateFirewallV1POST /api/vps/v1/firewall/{firewallId}/activate/{virtualMachineId}Activate firewall
VPSFirewallApicreateFirewallRuleV1POST /api/vps/v1/firewall/{firewallId}/rulesCreate firewall rule
VPSFirewallApicreateNewFirewallV1POST /api/vps/v1/firewallCreate new firewall
VPSFirewallApideactivateFirewallV1POST /api/vps/v1/firewall/{firewallId}/deactivate/{virtualMachineId}Deactivate firewall
VPSFirewallApideleteFirewallRuleV1DELETE /api/vps/v1/firewall/{firewallId}/rules/{ruleId}Delete firewall rule
VPSFirewallApideleteFirewallV1DELETE /api/vps/v1/firewall/{firewallId}Delete firewall
VPSFirewallApigetFirewallDetailsV1GET /api/vps/v1/firewall/{firewallId}Get firewall details
VPSFirewallApigetFirewallListV1GET /api/vps/v1/firewallGet firewall list
VPSFirewallApisyncFirewallV1POST /api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId}Sync firewall
VPSFirewallApiupdateFirewallRuleV1PUT /api/vps/v1/firewall/{firewallId}/rules/{ruleId}Update firewall rule
VPSMalwareScannerApigetScanMetricsV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/monarxGet scan metrics
VPSMalwareScannerApiinstallMonarxV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/monarxInstall Monarx
VPSMalwareScannerApiuninstallMonarxV1DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/monarxUninstall Monarx
VPSOSTemplatesApigetTemplateDetailsV1GET /api/vps/v1/templates/{templateId}Get template details
VPSOSTemplatesApigetTemplatesV1GET /api/vps/v1/templatesGet templates
VPSPTRRecordsApicreatePTRRecordV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}Create PTR record
VPSPTRRecordsApideletePTRRecordV1DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}Delete PTR record
VPSPostInstallScriptsApicreatePostInstallScriptV1POST /api/vps/v1/post-install-scriptsCreate post-install script
VPSPostInstallScriptsApideletePostInstallScriptV1DELETE /api/vps/v1/post-install-scripts/{postInstallScriptId}Delete post-install script
VPSPostInstallScriptsApigetPostInstallScriptV1GET /api/vps/v1/post-install-scripts/{postInstallScriptId}Get post-install script
VPSPostInstallScriptsApigetPostInstallScriptsV1GET /api/vps/v1/post-install-scriptsGet post-install scripts
VPSPostInstallScriptsApiupdatePostInstallScriptV1PUT /api/vps/v1/post-install-scripts/{postInstallScriptId}Update post-install script
VPSPublicKeysApiattachPublicKeyV1POST /api/vps/v1/public-keys/attach/{virtualMachineId}Attach public key
VPSPublicKeysApicreatePublicKeyV1POST /api/vps/v1/public-keysCreate public key
VPSPublicKeysApideletePublicKeyV1DELETE /api/vps/v1/public-keys/{publicKeyId}Delete public key
VPSPublicKeysApigetPublicKeysV1GET /api/vps/v1/public-keysGet public keys
VPSRecoveryApistartRecoveryModeV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/recoveryStart recovery mode
VPSRecoveryApistopRecoveryModeV1DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/recoveryStop recovery mode
VPSSnapshotsApicreateSnapshotV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/snapshotCreate snapshot
VPSSnapshotsApideleteSnapshotV1DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/snapshotDelete snapshot
VPSSnapshotsApigetSnapshotV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/snapshotGet snapshot
VPSSnapshotsApirestoreSnapshotV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot/restoreRestore snapshot
VPSVirtualMachineApigetAttachedPublicKeysV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/public-keysGet attached public keys
VPSVirtualMachineApigetMetricsV1GET /api/vps/v1/virtual-machines/{virtualMachineId}/metricsGet metrics
VPSVirtualMachineApigetVirtualMachineDetailsV1GET /api/vps/v1/virtual-machines/{virtualMachineId}Get virtual machine details
VPSVirtualMachineApigetVirtualMachinesV1GET /api/vps/v1/virtual-machinesGet virtual machines
VPSVirtualMachineApipurchaseNewVirtualMachineV1POST /api/vps/v1/virtual-machinesPurchase new virtual machine
VPSVirtualMachineApirecreateVirtualMachineV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/recreateRecreate virtual machine
VPSVirtualMachineApiresetHostnameV1DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/hostnameReset hostname
VPSVirtualMachineApirestartVirtualMachineV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/restartRestart virtual machine
VPSVirtualMachineApisetHostnameV1PUT /api/vps/v1/virtual-machines/{virtualMachineId}/hostnameSet hostname
VPSVirtualMachineApisetNameserversV1PUT /api/vps/v1/virtual-machines/{virtualMachineId}/nameserversSet nameservers
VPSVirtualMachineApisetPanelPasswordV1PUT /api/vps/v1/virtual-machines/{virtualMachineId}/panel-passwordSet panel password
VPSVirtualMachineApisetRootPasswordV1PUT /api/vps/v1/virtual-machines/{virtualMachineId}/root-passwordSet root password
VPSVirtualMachineApisetupPurchasedVirtualMachineV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/setupSetup purchased virtual machine
VPSVirtualMachineApistartVirtualMachineV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/startStart virtual machine
VPSVirtualMachineApistopVirtualMachineV1POST /api/vps/v1/virtual-machines/{virtualMachineId}/stopStop virtual machine
WordPressAIToolsApisetAIOptionStatusV1PATCH /api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/statusSet AI option status
WordPressAIToolsApishowAIOptionStatusV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/statusShow AI option status
WordPressInstallationsApicheckIfWordPressInstallationsAreValidV1POST /api/hosting/v1/accounts/{username}/wordpress/installations/check-is-validCheck if WordPress installations are valid
WordPressInstallationsApideleteWordPressInstallationV1DELETE /api/hosting/v1/accounts/{username}/wordpress/{software}Delete WordPress installation
WordPressInstallationsApidetectWordPressInstallationsV1POST /api/hosting/v1/accounts/{username}/wordpress/installations/detectDetect WordPress installations
WordPressInstallationsApigetInstallationJWTTokenV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-tokenGet installation JWT token
WordPressInstallationsApiinstallWordPressV1POST /api/hosting/v1/accounts/{username}/wordpress/installationsInstall WordPress
WordPressInstallationsApilistAvailableWordPressCoreUpdatesV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/updatesList available WordPress core updates
WordPressInstallationsApilistWordPressInstallationsV1GET /api/hosting/v1/wordpress/installationsList WordPress installations
WordPressInstallationsApishowWordPressCoreVersionV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/versionShow WordPress core version
WordPressInstallationsApiupdateWordPressCoreV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/updateUpdate WordPress core
WordPressLiteSpeedCacheApipurgeLiteSpeedCacheV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/purgePurge LiteSpeed Cache
WordPressLiteSpeedCacheApishowLiteSpeedCacheStatusV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/statusShow LiteSpeed Cache status
WordPressLoginApicreateLoginLinksV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/login/linksCreate login links
WordPressMaintenanceApishowMaintenanceStatusV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/statusShow maintenance status
WordPressMaintenanceApitoggleMaintenanceModeV1PATCH /api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggleToggle maintenance mode
WordPressObjectCacheApishowMemcachedObjectCacheStatusV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/statusShow Memcached object cache status
WordPressObjectCacheApitoggleMemcachedObjectCacheV1PATCH /api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/toggleToggle Memcached object cache
WordPressPluginsApiactivateWordPressPluginV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activateActivate WordPress plugin
WordPressPluginsApicheckIfWooCommerceIsInstalledV1GET /api/hosting/v1/wordpress/plugins/is-woocommerce-installedCheck if WooCommerce is installed
WordPressPluginsApideactivateWordPressPluginV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivateDeactivate WordPress plugin
WordPressPluginsApiinstallWordPressPluginsV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/installInstall WordPress plugins
WordPressPluginsApilistAvailableWordPressPluginsV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/availableList available WordPress plugins
WordPressPluginsApilistInstalledWordPressPluginsV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/pluginsList installed WordPress plugins
WordPressPluginsApilistSuggestedWordPressPluginsV1GET /api/hosting/v1/wordpress/plugins/suggestedList suggested WordPress plugins
WordPressPluginsApisearchWordPressPluginsV1GET /api/hosting/v1/wordpress/pluginsSearch WordPress plugins
WordPressPluginsApiuninstallWordPressPluginsV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstallUninstall WordPress plugins
WordPressPluginsApiupdateHostingerWordPressPluginV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/updateUpdate Hostinger WordPress plugin
WordPressPluginsApiupdateWordPressPluginsV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/updateUpdate WordPress plugins
WordPressThemesApiactivateWordPressThemeV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activateActivate WordPress theme
WordPressThemesApiinstallWordPressThemeV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/installInstall WordPress theme
WordPressThemesApilistInstalledWordPressThemesV1GET /api/hosting/v1/accounts/{username}/wordpress/{software}/themesList installed WordPress themes
WordPressThemesApilistWordPressThemesV1GET /api/hosting/v1/wordpress/themesList WordPress themes
WordPressThemesApiuninstallWordPressThemesV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstallUninstall WordPress themes
WordPressThemesApiupdateWordPressThemesV1POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/updateUpdate WordPress themes

Models

About

Hostinger API PHP SDK

Topics

Resources

Stars

29 stars

Watchers

5 watching

Forks

Releases

Used by

Contributors

Languages